/* ==========================================================================
   TAX EXCELLENCE AUSTRALIA - LOGO BRANDED LUXURY STYLING
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. DESIGN TOKENS & ROOT VARIABLES (MATCHED TO TAX_LOGO.PNG)
   -------------------------------------------------------------------------- */
:root {
  /* Logo Derived Palette */
  --royal-blue: #16509E;
  --royal-deep: #0D356A;
  --royal-light: #2A6DC9;
  --royal-glow: rgba(22, 80, 158, 0.15);
  
  --orange-primary: #F05A22;
  --orange-light: #FF7B4A;
  --orange-dark: #C8400C;
  --orange-glow: rgba(240, 90, 34, 0.25);
  
  --charcoal-dark: #222831;
  --charcoal-main: #2D343F;
  
  /* Neutral Palette */
  --slate-900: #0F172A;
  --slate-800: #1E293B;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748B;
  --slate-400: #94A3B8;
  --slate-200: #E2E8F0;
  --slate-100: #F1F5F9;
  --slate-50: #F8FAFC;
  --white: #FFFFFF;
  
  /* Status */
  --emerald-success: #10B981;
  
  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  
  /* Elevations & Shadows */
  --shadow-sm: 0 2px 8px rgba(22, 80, 158, 0.05);
  --shadow-md: 0 10px 30px rgba(22, 80, 158, 0.08);
  --shadow-lg: 0 20px 50px rgba(22, 80, 158, 0.12);
  --shadow-orange: 0 10px 30px rgba(240, 90, 34, 0.25);
  --shadow-royal: 0 10px 30px rgba(22, 80, 158, 0.25);

  /* Transitions */
  --transition-fast: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  
  /* Radii */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 30px;
  --radius-full: 9999px;
}

/* Global Resets */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  color: var(--slate-700);
  background-color: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--charcoal-dark);
  font-weight: 700;
  line-height: 1.25;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--slate-100);
}
::-webkit-scrollbar-thumb {
  background: var(--royal-blue);
  border-radius: var(--radius-full);
  border: 2px solid var(--slate-100);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--orange-primary);
}

/* Preloader */
#preloader {
  position: fixed;
  inset: 0;
  background: var(--charcoal-dark);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader-spinner {
  width: 65px;
  height: 65px;
  border: 3px solid rgba(240, 90, 34, 0.15);
  border-top-color: var(--orange-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.preloader-logo {
  height: 55px;
  margin-top: 20px;
  filter: drop-shadow(0 4px 12px rgba(255,255,255,0.2));
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Floating Actions */
.floating-actions {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.float-btn {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  box-shadow: var(--shadow-lg);
  position: relative;
  transition: var(--transition-smooth);
}
.float-btn:hover {
  transform: translateY(-5px) scale(1.08);
  color: var(--white);
}

.float-call {
  background: linear-gradient(135deg, var(--orange-primary), var(--orange-dark));
}
.float-email {
  background: linear-gradient(135deg, var(--royal-blue), var(--royal-deep));
}
.float-top {
  background: var(--charcoal-dark);
  border: 1px solid rgba(255, 255, 255, 0.15);
  opacity: 0;
  visibility: hidden;
}
.float-top.active {
  opacity: 1;
  visibility: visible;
}

.float-btn .tooltip-text {
  position: absolute;
  right: 60px;
  background: var(--charcoal-dark);
  color: var(--white);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.825rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-fast);
  box-shadow: var(--shadow-md);
}
.float-btn:hover .tooltip-text {
  opacity: 1;
}

/* Header & Top Bar */
.top-bar {
  background-color: var(--royal-deep);
  color: var(--slate-200);
  font-size: 0.85rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.top-bar a {
  color: var(--white);
}
.top-bar a:hover {
  color: var(--orange-primary);
}
.top-bar-badge {
  background: rgba(240, 90, 34, 0.15);
  color: var(--orange-light);
  border: 1px solid rgba(240, 90, 34, 0.3);
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}

.main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--slate-200);
  transition: var(--transition-smooth);
}
.main-header.scrolled {
  box-shadow: var(--shadow-md);
  background: rgba(255, 255, 255, 0.99);
}

.header-logo-img {
  height: 80px;
  width: auto;
  object-fit: contain;
  transition: var(--transition-fast);
}
@media (max-width: 768px) {
  .header-logo-img {
    height: 60px;
  }
}
.header-logo-img:hover {
  transform: scale(1.04);
}

.navbar-nav .nav-link {
  font-weight: 600;
  color: var(--charcoal-dark) !important;
  padding: 8px 18px !important;
  font-size: 0.98rem;
  position: relative;
}
.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 18px;
  right: 18px;
  height: 3px;
  background: var(--orange-primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
  border-radius: 2px;
}
.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  transform: scaleX(1);
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--royal-blue) !important;
}

/* Dropdown Menu Styling */
.dropdown-menu {
  border: 1px solid var(--slate-200) !important;
  box-shadow: 0 15px 35px rgba(22, 80, 158, 0.12) !important;
  border-radius: var(--radius-md) !important;
  padding: 10px 0;
}
@media (min-width: 992px) {
  .navbar-nav .dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    animation: dropFade 0.25s ease-in-out;
  }
}
@keyframes dropFade {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.dropdown-item {
  font-weight: 600;
  color: var(--slate-700);
  padding: 10px 22px;
  font-size: 0.925rem;
  transition: var(--transition-fast);
}
.dropdown-item:hover, .dropdown-item:focus {
  background: var(--slate-100);
  color: var(--royal-blue);
  padding-left: 26px;
}
.dropdown-item.active {
  background: var(--royal-blue);
  color: var(--white);
}

/* Custom Buttons */
.btn-orange {
  background: linear-gradient(135deg, var(--orange-primary), var(--orange-dark));
  color: var(--white);
  border: none;
  font-weight: 700;
  padding: 12px 26px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-orange);
  transition: var(--transition-smooth);
}
.btn-orange:hover {
  background: linear-gradient(135deg, var(--orange-light), var(--orange-primary));
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(240, 90, 34, 0.4);
}

.btn-royal {
  background: linear-gradient(135deg, var(--royal-blue), var(--royal-deep));
  color: var(--white);
  border: none;
  font-weight: 700;
  padding: 12px 26px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-royal);
  transition: var(--transition-smooth);
}
.btn-royal:hover {
  background: linear-gradient(135deg, var(--royal-light), var(--royal-blue));
  color: var(--white);
  transform: translateY(-2px);
}

.btn-royal-outline {
  background: transparent;
  color: var(--royal-blue);
  border: 2px solid var(--royal-blue);
  font-weight: 700;
  padding: 10px 24px;
  border-radius: var(--radius-md);
  transition: var(--transition-smooth);
}
.btn-royal-outline:hover {
  background: var(--royal-blue);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-white-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.4);
  font-weight: 700;
  padding: 10px 24px;
  border-radius: var(--radius-md);
  transition: var(--transition-smooth);
}
.btn-white-outline:hover {
  background: var(--white);
  color: var(--royal-deep);
  border-color: var(--white);
  transform: translateY(-2px);
}

/* Page Banner (For Inner Multi-Pages) */
.page-banner {
  background: linear-gradient(135deg, var(--royal-deep) 0%, var(--royal-blue) 60%, #1A3E72 100%);
  color: var(--white);
  padding: 70px 0 80px;
  position: relative;
  overflow: hidden;
}
.page-banner-title {
  font-size: 3rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 15px;
}
.breadcrumb {
  background: transparent;
  padding: 0;
  margin: 0;
}
.breadcrumb-item, .breadcrumb-item a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
  font-weight: 500;
}
.breadcrumb-item.active {
  color: var(--orange-primary);
  font-weight: 700;
}

/* Hero Section */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, var(--royal-deep) 0%, var(--royal-blue) 65%, #0B2545 100%);
  color: var(--white);
  padding: 100px 0 120px;
  overflow: hidden;
}

.hero-bg-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.bg-shape-1 {
  position: absolute;
  top: -10%;
  right: -5%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(240, 90, 34, 0.18) 0%, rgba(13, 53, 106, 0) 70%);
  border-radius: 50%;
  filter: blur(40px);
}
.bg-shape-2 {
  position: absolute;
  bottom: -15%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(22, 80, 158, 0.3) 0%, rgba(13, 53, 106, 0) 70%);
  border-radius: 50%;
  filter: blur(50px);
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(240, 90, 34, 0.4);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  color: var(--orange-light);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 25px;
  backdrop-filter: blur(8px);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 20px;
}
.hero-title span.orange-text {
  color: var(--orange-primary);
  background: linear-gradient(135deg, #FFF, #FF8C5A, var(--orange-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.35rem;
  color: var(--slate-200);
  font-weight: 400;
  margin-bottom: 35px;
  max-width: 560px;
}

.hero-glass-card {
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-xl);
  padding: 30px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
  position: relative;
  z-index: 2;
}

.dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 15px;
  margin-bottom: 20px;
}

.dash-avatar {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--orange-primary), var(--royal-blue));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 800;
}

.dash-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-bottom: 20px;
}
.dash-stat-box {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 16px;
}
.dash-stat-label {
  font-size: 0.75rem;
  color: var(--slate-300);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.dash-stat-val {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--white);
  margin-top: 4px;
}
.dash-stat-val.orange {
  color: var(--orange-primary);
}

.dash-chart-placeholder {
  height: 120px;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding: 10px 0;
}
.chart-bar {
  flex: 1;
  background: linear-gradient(to top, rgba(240, 90, 34, 0.2), var(--orange-primary));
  border-radius: 6px 6px 0 0;
}

.floating-badge {
  position: absolute;
  background: rgba(34, 40, 49, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(240, 90, 34, 0.4);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.3);
  z-index: 3;
}
.badge-1 { top: -20px; right: -20px; }
.badge-2 { bottom: -20px; left: -20px; }

/* Section Styles */
.section-padding { padding: 100px 0; }

.section-tag {
  display: inline-block;
  font-size: 0.825rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--orange-primary);
  background: rgba(240, 90, 34, 0.1);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
  border: 1px solid rgba(240, 90, 34, 0.25);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--charcoal-dark);
  margin-bottom: 15px;
  letter-spacing: -0.5px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--slate-600);
  max-width: 650px;
  margin: 0 auto 50px;
}

/* Cards & Components */
.why-section {
  background: linear-gradient(180deg, #EDF3FA 0%, #F8FAFC 50%, #FFFFFF 100%);
  position: relative;
  border-top: 1px solid rgba(22, 80, 158, 0.08);
  border-bottom: 1px solid rgba(22, 80, 158, 0.08);
}

.feature-card {
  background: #ffffff;
  border: 1px solid rgba(22, 80, 158, 0.12);
  border-radius: var(--radius-lg);
  padding: 40px 30px;
  height: 100%;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(22, 80, 158, 0.06);
  opacity: 1;
  visibility: visible;
}

.service-card, .advisory-card, .step-card {
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 35px 28px;
  height: 100%;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-sm);
  position: relative;
  opacity: 1;
  visibility: visible;
}

.feature-card:hover, .service-card:hover, .advisory-card:hover, .step-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--royal-blue);
}

.service-icon-box, .feature-icon-wrapper {
  width: 62px;
  height: 62px;
  background: linear-gradient(135deg, var(--royal-blue), var(--royal-deep));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange-primary);
  font-size: 1.5rem;
  margin-bottom: 22px;
  box-shadow: 0 8px 20px rgba(22, 80, 158, 0.2);
}

.feature-counter {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--royal-blue);
  margin-bottom: 5px;
}
.feature-counter span.plus {
  color: var(--orange-primary);
}

/* Service Detail Lists */
.service-feature-list {
  list-style: none;
  padding: 0;
}
.service-feature-list li {
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--slate-700);
  font-size: 0.95rem;
}
.service-feature-list li i {
  color: var(--orange-primary);
}

/* Tax Refund Estimator Widget */
.tax-calc-widget {
  background: var(--royal-deep);
  color: var(--white);
  border-radius: var(--radius-xl);
  padding: 35px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(240, 90, 34, 0.3);
}
.tax-calc-widget h4 {
  color: var(--white);
}
.calc-field label {
  font-size: 0.85rem;
  color: var(--slate-300);
  margin-bottom: 6px;
  display: block;
}
.calc-field input, .calc-field select {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  width: 100%;
}
.calc-result-box {
  background: rgba(240, 90, 34, 0.15);
  border: 1px dashed var(--orange-primary);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  margin-top: 20px;
}
.calc-result-val {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--orange-primary);
  font-family: var(--font-heading);
}

/* SMSF Section */
.smsf-section {
  background: var(--charcoal-dark);
  color: var(--white);
}
.smsf-section .section-title {
  color: var(--white);
}
.smsf-section .section-subtitle {
  color: var(--slate-400);
}

.timeline-container {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 0;
}
.timeline-container::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: linear-gradient(to bottom, var(--orange-primary), rgba(240, 90, 34, 0.1));
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 50px;
  width: 50%;
  padding: 0 40px;
}
.timeline-item.left { left: 0; text-align: right; }
.timeline-item.right { left: 50%; text-align: left; }

.timeline-dot {
  position: absolute;
  top: 15px;
  width: 24px;
  height: 24px;
  background: var(--orange-primary);
  border: 4px solid var(--charcoal-dark);
  border-radius: 50%;
  box-shadow: 0 0 15px var(--orange-primary);
  z-index: 2;
}
.timeline-item.left .timeline-dot { right: -12px; }
.timeline-item.right .timeline-dot { left: -12px; }

.timeline-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 28px;
  backdrop-filter: blur(12px);
}
.timeline-card h4 {
  color: var(--orange-light);
}

/* Testimonials Section */
.testimonials-section {
  background: linear-gradient(135deg, var(--royal-deep) 0%, var(--charcoal-dark) 100%);
  color: var(--white);
}
.testimonials-section .section-title {
  color: var(--white);
}

.testimonial-glass-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 35px;
}
.stars {
  color: var(--orange-primary);
  font-size: 1.1rem;
  margin-bottom: 15px;
}

/* Contact Page Cards */
.contact-info-card {
  background: var(--royal-deep);
  color: var(--white);
  border-radius: var(--radius-xl);
  padding: 45px 35px;
  box-shadow: var(--shadow-lg);
}
.contact-info-card h3 {
  color: var(--white);
}

.contact-icon-box {
  width: 44px;
  height: 44px;
  background: rgba(240, 90, 34, 0.15);
  color: var(--orange-primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-form-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  padding: 45px 35px;
  box-shadow: var(--shadow-md);
}

.form-control-custom {
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 0.95rem;
}
.form-control-custom:focus {
  border-color: var(--royal-blue);
  box-shadow: 0 0 0 3px rgba(22, 80, 158, 0.15);
  outline: none;
}

/* CTA Banner */
.final-cta-section {
  background: linear-gradient(135deg, var(--royal-deep) 0%, var(--charcoal-dark) 100%);
  color: var(--white);
  padding: 90px 0;
  text-align: center;
}
.final-cta-section h2 {
  color: var(--white);
}

/* Footer */
.footer-section {
  background: var(--charcoal-dark);
  color: var(--slate-400);
  padding-top: 80px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-section h5 {
  color: var(--white);
}
.footer-links {
  list-style: none;
}
.footer-links li {
  margin-bottom: 12px;
}
.footer-links a {
  color: var(--slate-400);
}
.footer-links a:hover {
  color: var(--orange-primary);
  padding-left: 5px;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 25px 0;
  margin-top: 60px;
}
.footer-logo-img {
  height: 72px;
  filter: drop-shadow(0 4px 12px rgba(255,255,255,0.15));
}

/* Modal Customization */
.modal-content {
  border-radius: var(--radius-xl);
  border: none;
  overflow: hidden;
}
.modal-header {
  background: var(--royal-deep);
  color: var(--white);
  padding: 22px 30px;
}
.modal-header .btn-close {
  filter: invert(1);
}
