/* ============================================================
   INNOVATE REAL ESTATE — Main Stylesheet
   Brand: Gold #DDC159 | Black #121212 | White #FFFFFF
   Fonts: Montserrat (headings) | Inter (body)
   ============================================================ */

/* ── Design Tokens ───────────────────────────────────────── */
:root {
  --gold:           #DDC159;
  --gold-dark:      #B89D3A;
  --gold-light:     #EDD87A;
  --black:          #000000;
  --dark:           #121212;
  --dark-2:         #1a1a1a;
  --dark-3:         #222222;
  --dark-card:      #1e1e1e;
  --white:          #FFFFFF;
  --light-gray:     #F9F9F9;
  --gray:           #7a7a7a;
  --gray-light:     #aaaaaa;
  --border:         rgba(221,193,89,0.15);
  --border-dark:    rgba(255,255,255,0.08);

  --font-display:   'Montserrat', system-ui, sans-serif;
  --font-body:      'Inter', system-ui, sans-serif;

  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1.2rem  + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);
  --text-3xl:  clamp(2.5rem,   1rem    + 4vw,    5rem);
  --text-hero: clamp(2.8rem,   0.5rem  + 6vw,    7rem);

  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;

  --transition: 200ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 400ms cubic-bezier(0.16, 1, 0.3, 1);

  --shadow-sm:  0 1px 3px rgba(0,0,0,0.4);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.5);
  --shadow-lg:  0 12px 40px rgba(0,0,0,0.6);
  --shadow-gold: 0 0 30px rgba(221,193,89,0.2);

  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;
  --nav-height: 80px;
}

/* ── Light Theme Overrides ───────────────────────────────── */
[data-theme="light"] {
  --dark:           #F7F6F2;
  --dark-2:         #F0EDE6;
  --dark-3:         #E8E5DE;
  --dark-card:      #FFFFFF;
  --black:          #F7F6F2;
  --white:          #1a1a1a;
  --light-gray:     #F0EDE6;
  --gray:           #888888;
  --gray-light:     #666666;
  --border:         rgba(0,0,0,0.08);
  --border-dark:    rgba(0,0,0,0.10);
  --gold:           #B89D3A;
  --gold-dark:      #9A8230;
  --gold-light:     #DDC159;

  --shadow-sm:  0 1px 3px rgba(0,0,0,0.06);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg:  0 12px 40px rgba(0,0,0,0.10);
  --shadow-gold: 0 0 30px rgba(184,157,58,0.12);
}

/* Light theme: navbar scrolled state */
[data-theme="light"] #navbar.scrolled {
  background: rgba(247,246,242,0.95);
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

/* Light theme: nav link color */
[data-theme="light"] .nav-links a {
  color: rgba(26,26,26,0.7);
}
[data-theme="light"] .nav-links a:hover {
  color: var(--gold);
}

/* Light theme: hamburger */
[data-theme="light"] .hamburger span {
  background: var(--white);
}

/* Light theme: mobile nav */
[data-theme="light"] .mobile-nav {
  background: #F7F6F2;
}
[data-theme="light"] .mobile-nav a {
  color: #1a1a1a;
}

/* Light theme: hero overlay */
[data-theme="light"] .hero-overlay {
  background: linear-gradient(
    135deg,
    rgba(247,246,242,0.92) 0%,
    rgba(240,237,230,0.80) 50%,
    rgba(247,246,242,0.90) 100%
  );
}
[data-theme="light"] .hero-sub {
  color: rgba(26,26,26,0.65);
}
[data-theme="light"] .stat-label {
  color: rgba(26,26,26,0.55);
}
[data-theme="light"] .hero-label {
  background: rgba(184,157,58,0.10);
  border-color: rgba(184,157,58,0.25);
}

/* Light theme: about section text */
[data-theme="light"] .about-text p {
  color: rgba(26,26,26,0.7);
}
[data-theme="light"] .about-feature {
  color: rgba(26,26,26,0.75);
}

/* Light theme: service cards */
[data-theme="light"] .service-card {
  background: #FFFFFF;
  border-color: rgba(0,0,0,0.08);
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
[data-theme="light"] .service-card:hover {
  border-color: rgba(184,157,58,0.3);
  box-shadow: 0 8px 30px rgba(184,157,58,0.10);
}
[data-theme="light"] .service-card h3 {
  color: #1a1a1a;
}

/* Light theme: tool cards */
[data-theme="light"] .tool-card {
  background: #FFFFFF;
  border-color: rgba(0,0,0,0.08);
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
[data-theme="light"] .tool-header {
  background: linear-gradient(135deg, rgba(184,157,58,0.08) 0%, rgba(184,157,58,0.02) 100%);
  border-bottom-color: rgba(0,0,0,0.06);
}
[data-theme="light"] .tool-header h3 {
  color: #1a1a1a;
}
[data-theme="light"] .tool-input {
  background: #F7F6F2;
  border-color: rgba(0,0,0,0.12);
  color: #1a1a1a;
}
[data-theme="light"] .tool-result {
  background: #F7F6F2;
  border-color: rgba(0,0,0,0.08);
}

/* Light theme: video section */
[data-theme="light"] #video-section {
  background: #F0EDE6;
}
[data-theme="light"] .video-wrapper {
  box-shadow: 0 20px 60px rgba(0,0,0,0.10), 0 0 0 1px rgba(184,157,58,0.15);
}

/* Light theme: testimonials */
[data-theme="light"] .testimonial-card {
  background: #FFFFFF;
  border-color: rgba(0,0,0,0.08);
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
[data-theme="light"] .testimonial-text {
  color: rgba(26,26,26,0.75);
}
[data-theme="light"] .author-name {
  color: #1a1a1a;
}

/* Light theme: blog cards */
[data-theme="light"] .blog-card {
  background: #FFFFFF;
  border-color: rgba(0,0,0,0.08);
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
[data-theme="light"] .blog-card:hover {
  border-color: rgba(184,157,58,0.25);
  box-shadow: 0 8px 30px rgba(184,157,58,0.10);
}
[data-theme="light"] .blog-card h3 {
  color: #1a1a1a;
}

/* Light theme: team card */
[data-theme="light"] .team-card-front {
  background: #FFFFFF;
  border-color: rgba(0,0,0,0.08);
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
[data-theme="light"] .team-name {
  color: #1a1a1a;
}
[data-theme="light"] .team-card-back {
  background: linear-gradient(135deg, #FFFFFF 0%, #F7F6F2 100%);
  border-color: rgba(184,157,58,0.2);
}
[data-theme="light"] .team-bio {
  color: rgba(26,26,26,0.7);
}

/* Light theme: contact section */
[data-theme="light"] .contact-info-value {
  color: rgba(26,26,26,0.75);
}
[data-theme="light"] .contact-map {
  background: #E8E5DE;
  border-color: rgba(0,0,0,0.08);
  color: #888888;
}
[data-theme="light"] .social-link {
  background: #F0EDE6;
  border-color: rgba(0,0,0,0.08);
  color: #666666;
}

/* Light theme: footer */
[data-theme="light"] #footer {
  background: #E8E5DE;
  border-top-color: rgba(0,0,0,0.08);
}
[data-theme="light"] .footer-bottom {
  border-top-color: rgba(0,0,0,0.1);
}

/* Light theme: CTA section */
[data-theme="light"] #cta-section {
  background: var(--gold-light);
}

/* Light theme: selection */
[data-theme="light"] ::selection {
  background: rgba(184,157,58,0.2);
  color: #1a1a1a;
}

/* Light theme: btn--white inversion */
[data-theme="light"] .btn--white {
  background: #1a1a1a;
  color: #F7F6F2;
  border-color: #1a1a1a;
}
[data-theme="light"] .btn--white:hover {
  background: #333;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

/* Light theme: scroll to top */
[data-theme="light"] #scroll-top {
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
}

/* Light theme: quiz / component */
[data-theme="light"] .quiz-option {
  background: #F7F6F2;
  border-color: rgba(0,0,0,0.10);
  color: #666666;
}
[data-theme="light"] .quiz-option:hover,
[data-theme="light"] .quiz-option.selected {
  border-color: var(--gold);
  color: #1a1a1a;
  background: rgba(184,157,58,0.06);
}
[data-theme="light"] .component-btn {
  background: #F0EDE6;
  border-color: rgba(0,0,0,0.08);
  color: #666666;
}
[data-theme="light"] .component-btn:hover,
[data-theme="light"] .component-btn.active {
  border-color: var(--gold);
  color: #1a1a1a;
  background: rgba(184,157,58,0.06);
}
[data-theme="light"] .component-info {
  background: #F7F6F2;
  border-color: rgba(0,0,0,0.08);
}

/* Light theme: building diagram */
[data-theme="light"] .building-diagram {
  background: #F0EDE6;
}

/* Light theme: industry bars */
[data-theme="light"] .industry-bar-wrap {
  background: #E8E5DE;
}
[data-theme="light"] .industry-name {
  color: #1a1a1a;
}

/* Light theme: cashflow table */
[data-theme="light"] .cashflow-table th {
  background: rgba(184,157,58,0.08);
}
[data-theme="light"] .cashflow-table td {
  color: rgba(26,26,26,0.8);
  border-bottom-color: rgba(0,0,0,0.06);
}

/* Light theme: quiz question text */
[data-theme="light"] .quiz-question p {
  color: #1a1a1a;
}

/* Light theme: timeline */
[data-theme="light"] .timeline-bar-fill.depleted {
  background: linear-gradient(to top, #bbb, #ccc);
}
[data-theme="light"] .timeline-bar-pct.depleted {
  color: #888;
}

/* ── Theme Toggle Button ────────────────────────────────── */
.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid rgba(221,193,89,0.4);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.theme-toggle:hover {
  border-color: var(--gold);
  background: rgba(221,193,89,0.08);
}
.theme-toggle svg {
  width: 20px;
  height: 20px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: absolute;
}
.theme-toggle .icon-sun {
  color: var(--gold);
  opacity: 1;
  transform: rotate(0deg) scale(1);
}
.theme-toggle .icon-moon {
  color: var(--gold);
  opacity: 0;
  transform: rotate(-90deg) scale(0.5);
}
[data-theme="light"] .theme-toggle .icon-sun {
  opacity: 0;
  transform: rotate(90deg) scale(0.5);
}
[data-theme="light"] .theme-toggle .icon-moon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}
[data-theme="light"] .theme-toggle {
  border-color: rgba(26,26,26,0.2);
}
[data-theme="light"] .theme-toggle:hover {
  border-color: var(--gold);
  background: rgba(184,157,58,0.08);
}

/* Mobile theme toggle */
.mobile-theme-toggle {
  margin-top: var(--space-6);
}

/* Light theme: form page (submitform) */
[data-theme="light"] .form-sidebar {
  background: #F0EDE6;
  border-right-color: rgba(0,0,0,0.08);
}
[data-theme="light"] .form-main {
  background: #F7F6F2;
}
[data-theme="light"] .form-input,
[data-theme="light"] .form-select,
[data-theme="light"] .form-textarea {
  background: #FFFFFF;
  border-color: rgba(0,0,0,0.12);
  color: #1a1a1a;
}
[data-theme="light"] .form-select option {
  background: #FFFFFF;
}
[data-theme="light"] .form-step-title {
  color: #1a1a1a;
}
[data-theme="light"] .sidebar-benefit-title {
  color: #1a1a1a;
}
[data-theme="light"] .radio-label,
[data-theme="light"] .checkbox-label {
  background: #FFFFFF;
  border-color: rgba(0,0,0,0.10);
  color: #1a1a1a;
}
[data-theme="light"] .progress-step-dot {
  background: #E8E5DE;
  border-color: rgba(0,0,0,0.12);
}

/* Light theme: affiliate page */
[data-theme="light"] .affiliate-hero {
  background: linear-gradient(135deg, #F7F6F2 0%, #F0EDE6 100%);
  border-bottom-color: rgba(0,0,0,0.08);
}
[data-theme="light"] .affiliate-hero h1 {
  color: #1a1a1a;
}
[data-theme="light"] .benefit-pill {
  background: rgba(184,157,58,0.06);
  border-color: rgba(184,157,58,0.2);
}

/* Light theme: section--light inversion */
[data-theme="light"] .section--light {
  background: #E8E5DE;
  color: #1a1a1a;
}

/* Light theme: section-subtitle */
[data-theme="light"] .section-subtitle {
  color: #666666;
}

/* Light theme: blog page hero */
[data-theme="light"] .blog-page-hero {
  background: #F0EDE6;
}
[data-theme="light"] .blog-page-hero h1 {
  color: #1a1a1a;
}

/* Light theme: team page hero */
[data-theme="light"] .team-page-hero {
  background: linear-gradient(135deg, #F0EDE6 0%, #E8E5DE 100%);
}
[data-theme="light"] .team-page-hero h1 {
  color: #1a1a1a;
}

/* Light theme: section divider */
[data-theme="light"] .section-divider {
  background: linear-gradient(90deg, transparent, rgba(0,0,0,0.08), transparent);
}

/* Light theme: team page hero overlay */
[data-theme="light"] .team-page-hero::before {
  background: linear-gradient(135deg, rgba(247,246,242,0.92) 0%, rgba(240,237,230,0.80) 100%);
}
[data-theme="light"] .team-page-hero .hero-desc {
  color: rgba(26,26,26,0.65) !important;
}

/* Light theme: team page bio and expertise */
[data-theme="light"] .member-bio {
  color: rgba(26,26,26,0.75) !important;
}
[data-theme="light"] .expertise-tag {
  color: rgba(26,26,26,0.7) !important;
}
[data-theme="light"] .team-photo-name {
  color: #FFFFFF !important;
}
[data-theme="light"] .team-photo-badge {
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%) !important;
}

/* Light theme: blog page hero */
[data-theme="light"] .blog-page-hero::before {
  background: linear-gradient(135deg, rgba(247,246,242,0.92) 0%, rgba(240,237,230,0.85) 100%);
}

/* Light theme: contact icon backgrounds */
[data-theme="light"] .contact-icon {
  background: rgba(184,157,58,0.08);
  border-color: rgba(184,157,58,0.15);
}

/* Light theme: sidebar benefit icon */
[data-theme="light"] .sidebar-benefit-icon {
  background: rgba(184,157,58,0.08);
  border-color: rgba(184,157,58,0.15);
}

/* Light theme: sidebar stat */
[data-theme="light"] .sidebar-stat {
  background: rgba(184,157,58,0.04);
  border-color: rgba(184,157,58,0.12);
}

/* Light theme: tool number */
[data-theme="light"] .tool-number {
  background: rgba(184,157,58,0.08);
  border-color: rgba(184,157,58,0.25);
}

/* Light theme: team link on card backs */
[data-theme="light"] .team-link {
  background: rgba(184,157,58,0.06);
  border-color: rgba(184,157,58,0.15);
}

/* Light theme: team social btn */
[data-theme="light"] .team-social-btn {
  background: rgba(184,157,58,0.06);
  border-color: rgba(184,157,58,0.15);
}

/* Light theme: blog article body text */
[data-theme="light"] .featured-post-excerpt {
  color: rgba(26,26,26,0.65) !important;
}
[data-theme="light"] .article-body p {
  color: rgba(26,26,26,0.75) !important;
}
[data-theme="light"] .article-body ul {
  color: rgba(26,26,26,0.75) !important;
}
[data-theme="light"] .article-callout p {
  color: rgba(26,26,26,0.85) !important;
}

/* Light theme: filter buttons on blog page */
[data-theme="light"] .filter-btn {
  background: #FFFFFF;
  border-color: rgba(0,0,0,0.10);
  color: #666666;
}
[data-theme="light"] .filter-btn:hover,
[data-theme="light"] .filter-btn.active {
  border-color: var(--gold);
  background: rgba(184,157,58,0.06);
}

/* Smooth theme transition */
html {
  transition: background-color 0.3s ease;
}
body, .service-card, .tool-card, .testimonial-card, .blog-card,
.team-card-front, .team-card-back, .mobile-nav, #footer, .form-sidebar,
.form-main, .form-input, .form-select, .form-textarea,
.social-link, .contact-map, .component-btn, .component-info,
.quiz-option, .building-diagram, #navbar, .tool-input, .tool-result,
.hero-overlay, .theme-toggle {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  overflow-x: hidden;
}

body {
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--white);
  background-color: var(--dark);
  overflow-x: hidden;
}

img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
ul[role="list"], ol[role="list"] { list-style: none; }
input, button, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4, h5, h6 { text-wrap: balance; line-height: 1.15; font-family: var(--font-display); }
p, li, figcaption { text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; background: none; border: none; }

::selection { background: rgba(221,193,89,0.3); color: var(--white); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── Layout Utilities ────────────────────────────────────── */
.container {
  width: min(var(--content-wide), 100% - var(--space-8));
  margin-inline: auto;
}
.container--narrow {
  width: min(var(--content-narrow), 100% - var(--space-8));
  margin-inline: auto;
}
.container--wide {
  width: min(1400px, 100% - var(--space-8));
  margin-inline: auto;
}

.section {
  padding-block: clamp(var(--space-16), 8vw, var(--space-32));
}

.section--dark { background: var(--dark); }
.section--darker { background: var(--dark-2); }
.section--black { background: var(--black); }
.section--light { background: var(--light-gray); color: var(--dark); }

/* ── Typography ──────────────────────────────────────────── */
.label {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
}

.section-title {
  font-size: var(--text-2xl);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: var(--space-6);
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--gray-light);
  max-width: 60ch;
  line-height: 1.6;
}

.text-gold { color: var(--gold); }
.text-gray { color: var(--gray-light); }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  border: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}

.btn--gold {
  background: var(--gold);
  color: var(--black);
  border-color: var(--gold);
}
.btn--gold:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(221,193,89,0.35);
}

.btn--outline {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}
.btn--outline:hover {
  background: var(--gold);
  color: var(--black);
  transform: translateY(-2px);
}

.btn--white {
  background: var(--white);
  color: var(--dark);
  border-color: var(--white);
}
.btn--white:hover {
  background: var(--light-gray);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255,255,255,0.2);
}

.btn--lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
}

/* ── Gold Accent Line ────────────────────────────────────── */
.gold-line {
  display: block;
  width: 50px;
  height: 3px;
  background: var(--gold);
  margin-bottom: var(--space-6);
}

/* ── Navigation ──────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: all var(--transition-slow);
  padding-inline: var(--space-6);
}

#navbar.scrolled {
  background: rgba(18,18,18,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}

.nav-logo img {
  height: 44px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  list-style: none;
}

.nav-links a {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  transition: color var(--transition);
  white-space: nowrap;
}

.nav-links a:hover { color: var(--gold); }

.nav-cta-group {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}

.nav-cta-group .btn {
  padding: var(--space-2) var(--space-5);
  font-size: 0.72rem;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav overlay */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  transform: translateX(100%);
  transition: transform var(--transition-slow);
}

.mobile-nav.open { transform: translateX(0); }

.mobile-nav a {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--white);
  transition: color var(--transition);
}
.mobile-nav a:hover { color: var(--gold); }

.mobile-nav-btns {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-4);
  width: 100%;
  padding: 0 var(--space-8);
  box-sizing: border-box;
}

.mobile-nav-btns .btn {
  width: 100%;
  justify-content: center;
  white-space: normal;
  text-align: center;
}

/* ── Hero Section ────────────────────────────────────────── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../assets/hero-main.png');
  background-size: cover;
  background-position: center 30%;
  will-change: transform;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0,0,0,0.88) 0%,
    rgba(18,18,18,0.75) 50%,
    rgba(0,0,0,0.85) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: var(--nav-height);
  padding-bottom: var(--space-20);
  padding-inline: var(--space-6);
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(221,193,89,0.12);
  border: 1px solid rgba(221,193,89,0.3);
  border-radius: var(--radius-full);
  padding: var(--space-2) var(--space-4);
  margin-bottom: var(--space-6);
}

.hero-label span {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero-headline {
  font-size: var(--text-hero);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -0.02em;
  max-width: 14ch;
  margin-bottom: var(--space-6);
}

.hero-headline em {
  font-style: normal;
  color: var(--gold);
  display: block;
}

.hero-sub {
  font-size: var(--text-lg);
  color: rgba(255,255,255,0.75);
  max-width: 52ch;
  line-height: 1.65;
  margin-bottom: var(--space-10);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-16);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  max-width: 700px;
}

.stat-item {
  border-left: 2px solid var(--gold);
  padding-left: var(--space-4);
}

.stat-number {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
  margin-bottom: var(--space-1);
}

.stat-label {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ── About Section ───────────────────────────────────────── */
#about {
  background: var(--dark-2);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.about-image-wrap {
  position: relative;
}

.about-image-wrap img {
  width: 100%;
  height: 560px;
  object-fit: cover;
  border-radius: var(--radius-xl);
}

.about-image-badge {
  position: absolute;
  bottom: var(--space-6);
  right: calc(-1 * var(--space-6));
  background: var(--gold);
  color: var(--black);
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.about-image-badge strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 900;
  line-height: 1;
}

.about-image-badge span {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.about-quote {
  font-size: var(--text-lg);
  font-style: italic;
  color: var(--gold);
  line-height: 1.6;
  border-left: 3px solid var(--gold);
  padding-left: var(--space-6);
  margin-bottom: var(--space-8);
}

.about-text p {
  color: rgba(255,255,255,0.75);
  line-height: 1.75;
  margin-bottom: var(--space-4);
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-top: var(--space-8);
}

.about-feature {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: rgba(255,255,255,0.8);
  font-size: var(--text-sm);
  font-weight: 500;
}

.about-feature::before {
  content: '';
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
}

/* ── Video Section ───────────────────────────────────────── */
#video-section {
  background: var(--black);
  text-align: center;
}

.video-header {
  margin-bottom: var(--space-10);
}

.video-wrapper {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.7), 0 0 0 1px rgba(221,193,89,0.2);
}

.video-wrapper video {
  width: 100%;
  display: block;
  border-radius: var(--radius-xl);
}

/* ── Services Section ────────────────────────────────────── */
#services {
  background: var(--dark);
}

.services-header {
  text-align: center;
  margin-bottom: var(--space-16);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

.service-card {
  background: var(--dark-card);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-xl);
  padding: var(--space-8) var(--space-6);
  transition: all var(--transition-slow);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform var(--transition-slow);
  transform-origin: left;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(221,193,89,0.25);
  box-shadow: var(--shadow-gold);
}

.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 48px;
  height: 48px;
  color: var(--gold);
  margin-bottom: var(--space-4);
}

.service-card h3 {
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: var(--space-1);
  color: var(--white);
}

.service-subtitle {
  font-size: var(--text-xs);
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-bottom: var(--space-4);
}

.service-card p {
  font-size: var(--text-sm);
  color: var(--gray-light);
  line-height: 1.65;
}

/* ── Tools Section ───────────────────────────────────────── */
#tools {
  background: var(--dark-2);
}

.tools-header {
  text-align: center;
  margin-bottom: var(--space-16);
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}

.tool-card {
  background: var(--dark-card);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: box-shadow var(--transition-slow);
}

.tool-card:hover {
  box-shadow: 0 0 0 1px rgba(221,193,89,0.2), var(--shadow-lg);
}

.tool-header {
  background: linear-gradient(135deg, rgba(221,193,89,0.12) 0%, rgba(221,193,89,0.04) 100%);
  border-bottom: 1px solid rgba(221,193,89,0.15);
  padding: var(--space-5) var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.tool-number {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 900;
  color: var(--gold);
  background: rgba(221,193,89,0.12);
  border: 1px solid rgba(221,193,89,0.3);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tool-header h3 {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--white);
  font-family: var(--font-display);
}

.tool-body {
  padding: var(--space-6);
}

/* Tool: Tax Savings Estimator */
.tool-form-group {
  margin-bottom: var(--space-4);
}

.tool-form-group label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--gray-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-2);
}

.tool-input {
  width: 100%;
  background: var(--dark-3);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  color: var(--white);
  font-size: var(--text-sm);
  transition: border-color var(--transition);
}

.tool-input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(221,193,89,0.1);
}

.tool-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.tool-result {
  background: var(--dark-3);
  border: 1px solid rgba(221,193,89,0.15);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  margin-top: var(--space-4);
}

.result-value {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
}

.result-label {
  font-size: var(--text-xs);
  color: var(--gray-light);
  margin-top: var(--space-1);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── Testimonials ────────────────────────────────────────── */
#testimonials {
  background: var(--black);
}

.testimonials-header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.testimonials-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.testimonial-card {
  background: var(--dark-card);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-xl);
  padding: var(--space-8) var(--space-6);
  position: relative;
}

.testimonial-quote {
  font-size: 60px;
  line-height: 1;
  color: var(--gold);
  opacity: 0.3;
  font-family: Georgia, serif;
  position: absolute;
  top: var(--space-4);
  left: var(--space-6);
}

.testimonial-text {
  color: rgba(255,255,255,0.8);
  line-height: 1.7;
  margin-bottom: var(--space-6);
  font-style: italic;
  padding-top: var(--space-8);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.author-avatar {
  width: 48px;
  height: 48px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--black);
  font-size: var(--text-sm);
  flex-shrink: 0;
}

.author-name {
  font-weight: 700;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  color: var(--white);
}

.author-company {
  font-size: var(--text-xs);
  color: var(--gold);
}

/* ── Team Section ────────────────────────────────────────── */
#team {
  background: var(--dark-2);
}

.team-header {
  text-align: center;
  margin-bottom: var(--space-16);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

.team-card {
  perspective: 1000px;
  height: 480px;
}

.team-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.team-card:hover .team-card-inner { transform: rotateY(180deg); }

.team-card-front,
.team-card-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.team-card-front {
  background: var(--dark-card);
  border: 1px solid var(--border-dark);
}

.team-card-front img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  object-position: top center;
}

.team-front-info {
  padding: var(--space-5) var(--space-6);
}

.team-name {
  font-size: var(--text-lg);
  font-weight: 800;
  color: var(--white);
  margin-bottom: var(--space-1);
}

.team-title {
  font-size: var(--text-xs);
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.team-card-back {
  background: linear-gradient(135deg, var(--dark-card) 0%, var(--dark-3) 100%);
  border: 1px solid rgba(221,193,89,0.2);
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-8) var(--space-6);
}

.team-back-name {
  font-size: var(--text-lg);
  font-weight: 800;
  color: var(--gold);
  margin-bottom: var(--space-1);
}

.team-back-title {
  font-size: var(--text-xs);
  color: var(--gray-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-5);
}

.team-bio {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.65;
  margin-bottom: var(--space-6);
}

.team-links {
  display: flex;
  gap: var(--space-3);
}

.team-link {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(221,193,89,0.1);
  border: 1px solid rgba(221,193,89,0.2);
  border-radius: var(--radius-sm);
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--gold);
  transition: all var(--transition);
}

.team-link:hover {
  background: var(--gold);
  color: var(--black);
}

/* ── Blog Section ────────────────────────────────────────── */
#blog {
  background: var(--dark);
}

.blog-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: var(--space-12);
  flex-wrap: wrap;
  gap: var(--space-4);
}

.blog-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  grid-template-rows: auto auto;
  gap: var(--space-6);
}

.blog-grid .blog-card:first-child {
  grid-row: 1 / 3;
}

.blog-secondary-grid {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: var(--space-6);
}

.blog-more-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-6);
}

.blog-card {
  background: var(--dark-card);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition-slow);
}

.blog-card:hover {
  transform: translateY(-4px);
  border-color: rgba(221,193,89,0.2);
  box-shadow: var(--shadow-gold);
}

.blog-card--featured .blog-img-wrap { height: 320px; }
.blog-card--secondary .blog-img-wrap { height: 180px; }
.blog-card--small .blog-img-wrap { height: 160px; }

.blog-img-wrap {
  overflow: hidden;
}

.blog-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.blog-card:hover .blog-img-wrap img { transform: scale(1.04); }

.blog-content {
  padding: var(--space-5) var(--space-6);
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.blog-tag {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--black);
  background: var(--gold);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
}

.blog-date {
  font-size: var(--text-xs);
  color: var(--gray);
}

.blog-card h3 {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--white);
  margin-bottom: var(--space-3);
  line-height: 1.35;
}

.blog-card--featured h3 {
  font-size: var(--text-lg);
}

.blog-excerpt {
  font-size: var(--text-sm);
  color: var(--gray-light);
  line-height: 1.65;
  margin-bottom: var(--space-4);
}

.blog-read-more {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  transition: gap var(--transition);
}

.blog-read-more:hover { gap: var(--space-3); }

/* ── CTA Section ─────────────────────────────────────────── */
#cta-section {
  background: var(--gold);
  color: var(--black);
  text-align: center;
  padding-block: clamp(var(--space-16), 8vw, var(--space-24));
}

#cta-section .section-title { color: var(--black); }

#cta-section .section-subtitle {
  color: rgba(0,0,0,0.7);
  margin: var(--space-4) auto var(--space-10);
}

/* ── Contact Section ─────────────────────────────────────── */
#contact {
  background: var(--dark-2);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: start;
}

.contact-info-item {
  display: flex;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
  align-items: flex-start;
}

.contact-icon {
  width: 44px;
  height: 44px;
  background: rgba(221,193,89,0.1);
  border: 1px solid rgba(221,193,89,0.2);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
}

.contact-info-label {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: var(--space-1);
}

.contact-info-value {
  color: rgba(255,255,255,0.8);
  font-size: var(--text-sm);
}

.contact-info-value a {
  color: inherit;
  transition: color var(--transition);
}
.contact-info-value a:hover { color: var(--gold); }

.contact-social {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-8);
}

.social-link {
  width: 44px;
  height: 44px;
  background: var(--dark-3);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-light);
  transition: all var(--transition);
}

.social-link:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--black);
}

.contact-map {
  background: var(--dark-3);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-xl);
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  font-size: var(--text-sm);
  margin-bottom: var(--space-6);
}

.contact-ctas {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

/* ── Footer ──────────────────────────────────────────────── */
#footer {
  background: var(--black);
  border-top: 1px solid var(--border-dark);
  padding-block: var(--space-16) var(--space-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}

.footer-brand img {
  height: 40px;
  width: auto;
  margin-bottom: var(--space-4);
}

.footer-brand p {
  font-size: var(--text-sm);
  color: var(--gray);
  line-height: 1.65;
  max-width: 30ch;
  margin-bottom: var(--space-6);
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: var(--space-5);
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-col a {
  font-size: var(--text-sm);
  color: var(--gray);
  transition: color var(--transition);
}

.footer-col a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid var(--border-dark);
  padding-top: var(--space-8);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer-copyright {
  font-size: var(--text-xs);
  color: var(--gray);
}

/* ── Animations ──────────────────────────────────────────── */
[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-animate].in-view {
  opacity: 1;
  transform: translateY(0);
}

[data-animate="fade"] { transform: none; }
[data-animate="slide-left"] { transform: translateX(-30px); }
[data-animate="slide-right"] { transform: translateX(30px); }

[data-delay="1"] { transition-delay: 0.1s; }
[data-delay="2"] { transition-delay: 0.2s; }
[data-delay="3"] { transition-delay: 0.3s; }
[data-delay="4"] { transition-delay: 0.4s; }
[data-delay="5"] { transition-delay: 0.5s; }
[data-delay="6"] { transition-delay: 0.6s; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-image-wrap img { height: 360px; }
  .about-image-badge {
    right: var(--space-4);
    bottom: var(--space-4);
  }
  .tools-grid { grid-template-columns: 1fr; }
  .testimonials-track { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-grid .blog-card:first-child { grid-row: auto; }
  .blog-secondary-grid { grid-template-rows: auto; }
  .blog-more-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .nav-links, .nav-cta-group { display: none; }
  .hamburger { display: flex; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .services-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .blog-more-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .tool-row { grid-template-columns: 1fr; }
  .building-visual { grid-template-columns: 1fr; }

  /* Prevent tool result values from overflowing narrow cards */
  .result-value {
    font-size: clamp(1.1rem, 6vw, var(--text-2xl));
    word-break: break-all;
  }
  .tool-result {
    overflow: hidden;
  }

  /* Tighten hero section padding on small screens */
  .hero-content {
    padding-inline: var(--space-4);
  }

  /* Scroll-to-top button — bring slightly inward on small screens */
  #scroll-top {
    right: var(--space-4);
    bottom: var(--space-4);
    width: 40px;
    height: 40px;
  }

  /* Blog and contact section padding */
  .section { padding-block: var(--space-16); }
}

/* ── Chart Container ─────────────────────────────────────── */
.chart-container {
  position: relative;
  width: 100%;
}

.chart-container canvas {
  max-width: 100%;
}

/* ── Bonus Depreciation Timeline ─────────────────────────── */
.timeline-bar {
  display: flex;
  align-items: flex-end;
  gap: var(--space-2);
  height: 160px;
  padding-bottom: var(--space-2);
}

.timeline-year-bar {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
}

.timeline-bar-fill {
  width: 100%;
  background: linear-gradient(to top, var(--gold), var(--gold-light));
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  transition: height 1s ease;
  position: relative;
}

.timeline-bar-fill.depleted {
  background: linear-gradient(to top, var(--gray), #555);
}

.timeline-bar-pct {
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold);
  white-space: nowrap;
}

.timeline-bar-pct.depleted { color: var(--gray); }

.timeline-year-label {
  font-size: 0.7rem;
  color: var(--gray-light);
  margin-top: var(--space-2);
  font-weight: 600;
}

/* ── Building Component Visual ───────────────────────────── */
.building-visual {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-6);
  align-items: start;
}

.building-diagram {
  background: var(--dark-3);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.building-svg-area {
  width: 100%;
  height: 100%;
}

.building-part {
  cursor: pointer;
  transition: opacity var(--transition);
}

.building-part:hover { opacity: 0.8; }
.building-part.active .part-fill { fill: var(--gold) !important; }

.component-info {
  background: var(--dark-3);
  border: 1px solid rgba(221,193,89,0.15);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}

.component-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.component-btn {
  background: var(--dark-2);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  text-align: left;
  cursor: pointer;
  transition: all var(--transition);
  color: var(--gray-light);
  font-size: var(--text-sm);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.component-btn:hover,
.component-btn.active {
  border-color: var(--gold);
  color: var(--white);
  background: rgba(221,193,89,0.08);
}

.component-btn-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-dark);
  flex-shrink: 0;
}

.component-btn.active .component-btn-dot { background: var(--gold); }

.component-detail {
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border-dark);
  display: none;
}

.component-detail.visible { display: block; }

.component-detail-title {
  font-weight: 700;
  color: var(--gold);
  margin-bottom: var(--space-2);
}

/* ── ROI Gauge ───────────────────────────────────────────── */
.roi-gauge {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: var(--space-4) 0;
}

/* ── Quiz Tool ───────────────────────────────────────────── */
.quiz-question {
  margin-bottom: var(--space-5);
}

.quiz-question p {
  font-size: var(--text-sm);
  color: var(--white);
  margin-bottom: var(--space-3);
  font-weight: 500;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.quiz-option {
  background: var(--dark-3);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  text-align: left;
  cursor: pointer;
  transition: all var(--transition);
  color: var(--gray-light);
  font-size: var(--text-sm);
}

.quiz-option:hover,
.quiz-option.selected {
  border-color: var(--gold);
  color: var(--white);
  background: rgba(221,193,89,0.08);
}

.quiz-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--space-4);
}

.quiz-progress {
  font-size: var(--text-xs);
  color: var(--gray);
}

/* ── Industry Savings Chart ──────────────────────────────── */
.industry-item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.industry-name {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--white);
  min-width: 110px;
}

.industry-bar-wrap {
  flex: 1;
  background: var(--dark-3);
  border-radius: var(--radius-full);
  height: 12px;
  overflow: hidden;
}

.industry-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold));
  border-radius: var(--radius-full);
  width: 0;
  transition: width 1.2s ease;
}

.industry-pct {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--gold);
  min-width: 50px;
  text-align: right;
}

/* ── Cash Flow Table ─────────────────────────────────────── */
.cashflow-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.cashflow-table th {
  background: rgba(221,193,89,0.1);
  color: var(--gold);
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: var(--space-3) var(--space-4);
  text-align: left;
}

.cashflow-table td {
  padding: var(--space-3) var(--space-4);
  color: rgba(255,255,255,0.8);
  border-bottom: 1px solid var(--border-dark);
}

.cashflow-table tr:last-child td { border-bottom: none; }

.cashflow-positive { color: #6daa45; font-weight: 600; }

/* ── Section Divider ─────────────────────────────────────── */
.section-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 0;
}

/* ── Scroll to Top ───────────────────────────────────────── */
#scroll-top {
  position: fixed;
  bottom: var(--space-8);
  right: var(--space-8);
  width: 48px;
  height: 48px;
  background: var(--gold);
  color: var(--black);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--transition);
  z-index: 500;
  border: none;
  box-shadow: var(--shadow-md);
}

#scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
}

#scroll-top:hover {
  background: var(--gold-dark);
  transform: translateY(-2px);
}

/* ============================================================
   SERVICES DROPDOWN NAV
   ============================================================ */

/* ── Desktop dropdown ─────────────────────────────────────── */
.has-dropdown {
  position: relative;
}

.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.chevron-icon {
  width: 11px;
  height: 11px;
  transition: transform var(--transition);
  flex-shrink: 0;
}

.has-dropdown:hover .chevron-icon,
.has-dropdown:focus-within .chevron-icon {
  transform: rotate(180deg);
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-2) 0;
  min-width: 240px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  list-style: none;
  z-index: 1100;
}

.has-dropdown:hover .nav-dropdown,
.has-dropdown:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Arrow pointer */
.nav-dropdown::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top: 0;
  border-bottom-color: var(--border);
}
.nav-dropdown::after {
  content: '';
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top: 0;
  border-bottom-color: var(--dark-2);
}

.nav-dropdown li a {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-5);
  color: var(--gray-light);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}

.nav-dropdown li a:hover {
  color: var(--gold);
  background: rgba(221,193,89,0.07);
}

.nav-dropdown li a .dd-icon {
  width: 15px;
  height: 15px;
  color: var(--gold);
  flex-shrink: 0;
}

.nav-dropdown li + li {
  border-top: 1px solid rgba(255,255,255,0.04);
}

/* Light theme adjustments */
[data-theme="light"] .nav-dropdown {
  background: #ffffff;
  border-color: rgba(0,0,0,0.1);
  box-shadow: 0 16px 48px rgba(0,0,0,0.15);
}
[data-theme="light"] .nav-dropdown::after { border-bottom-color: #ffffff; }
[data-theme="light"] .nav-dropdown::before { border-bottom-color: rgba(0,0,0,0.1); }
[data-theme="light"] .nav-dropdown li a { color: #555; }
[data-theme="light"] .nav-dropdown li + li { border-top-color: rgba(0,0,0,0.05); }

/* ── Mobile services submenu ──────────────────────────────── */
.mobile-services-group {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mobile-services-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.chevron-icon-mobile {
  width: 14px;
  height: 14px;
  transition: transform var(--transition);
  flex-shrink: 0;
}

.mobile-services-toggle.open .chevron-icon-mobile {
  transform: rotate(180deg);
}

.mobile-services-dropdown {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: rgba(221,193,89,0.05);
  border: 1px solid rgba(221,193,89,0.15);
  border-radius: var(--radius-lg);
  width: 80%;
}

.mobile-services-dropdown.open {
  display: flex;
}

.mobile-sub-link {
  font-family: var(--font-body) !important;
  font-size: 0.95rem !important;
  font-weight: 500 !important;
  color: var(--gray-light) !important;
  transition: color var(--transition) !important;
}

.mobile-sub-link:hover {
  color: var(--gold) !important;
}
