/* DESIGN TOKENS */
:root {
  --brand: #FF6B00;
  --brand-dim: rgba(255, 107, 0, 0.12);
  --brand-glow: rgba(255, 107, 0, 0.25);
  --gradient: linear-gradient(135deg, #FF6B00 0%, #f7e11c 50%, #9B51E0 100%);
  /* Light theme */
  --bg:         #F7F6F3;
  --bg-alt:     #EFEDE8;
  --surface:    #FFFFFF;
  --surface-2:  #F0EEE9;
  --border:     rgba(0, 0, 0, 0.08);
  --text:       #111010;
  --text-2:     #5A5754;
  --text-3:     #8A8582;

  --nav-bg:     rgba(247, 246, 243, 0.82);
  --glass-bg:   rgba(255, 255, 255, 0.55);
  --glass-border: rgba(255,255,255,0.6);

  --shadow-sm:  0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:  0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg:  0 16px 48px rgba(0,0,0,0.10);

  --radius-sm:  8px;
  --radius-md:  14px;
  --radius-lg:  22px;
  --radius-xl:  32px;

  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);

  --font-display: 'Syne', sans-serif;
  --font-body:    'Inter', sans-serif;
}

[data-theme="dark"] {
  --bg:         #0D0C0B;
  --bg-alt:     #131210;
  --surface:    #1A1916;
  --surface-2:  #211F1C;
  --border:     rgba(255, 255, 255, 0.07);
  --text:       #F0EDE8;
  --text-2:     #9D9893;
  --text-3:     #6B6763;

  --nav-bg:     rgba(13, 12, 11, 0.82);
  --glass-bg:   rgba(26, 25, 22, 0.65);
  --glass-border: rgba(255,255,255,0.07);

  --shadow-sm:  0 1px 3px rgba(0,0,0,0.3);
  --shadow-md:  0 4px 20px rgba(0,0,0,0.35);
  --shadow-lg:  0 16px 48px rgba(0,0,0,0.45);
}

/* ---------- RESET & BASE ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }
button, a, .btn, .nav-link, .dropdown-toggle, .logo-item, .service-link, .location-directions-btn { cursor: pointer; }
button { border: none; background: none; font: inherit; }

/* MOUSE GLOW */
.mouse-glow {
  pointer-events: none;
  position: fixed;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--brand-glow) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  z-index: 0;
  transition: opacity 0.3s;
  opacity: 0;
}
[data-theme="dark"] .mouse-glow { opacity: 1; }

/* TYPOGRAPHY */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--text);
}

h1 {
   font-size: clamp(2.4rem, 6vw, 4.8rem); 
   font-weight: 800; 
  }

h2 { font-size: clamp(1.9rem, 4vw, 3.2rem); }
h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; }
h4 { font-size: 1.05rem; }
h5 { font-size: 0.85rem; 
  letter-spacing: 0.04em; 
  text-transform: uppercase; 
  color: var(--text-3); 
}

p { color: var(--text-2); }

em { font-style: normal; color: var(--brand); }

/* LAYOUT */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
  position: relative;
}

.section--alt { background: var(--bg-alt); }

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-sub {
  margin-top: 16px;
  font-size: 1.05rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.hide-sm { display: none; }

/* EYEBROW */
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 16px;
}

.eyebrow--light { color: rgba(240, 61, 17, 0.7); }

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.22s var(--ease-out);
  position: relative;
  white-space: nowrap;
}

.btn-sm {
  padding: 9px 18px;
  font-size: 0.8rem;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 0 0 0 var(--brand-glow);
}

.btn-primary:hover {
  background: #e85e00;
  box-shadow: 0 8px 28px var(--brand-glow);
  transform: translateY(-1px);
}

.btn-ghost {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: var(--surface);
  border-color: var(--brand);
  color: var(--brand);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--brand);
  color: var(--brand);
}

/* NAVBAR */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  z-index: 101;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 4px;
}

.nav-link {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-2);
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover { color: var(--text); background: var(--surface-2); }

.nav-right-mobile {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Theme toggle */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-2);
  transition: all 0.2s;
}
.theme-toggle:hover { color: var(--text); background: var(--surface); }

[data-theme="dark"] .icon-sun  { display: block; }
[data-theme="dark"] .icon-moon { display: none;  }
[data-theme="light"] .icon-sun  { display: none;  }
[data-theme="light"] .icon-moon { display: block; }

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 36px;
  padding: 6px 4px;
}

.hamburger span {
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s var(--ease-out);
  transform-origin: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hamburger:hover { background: rgba(255,255,255,0.08); }

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav open state */
.nav-links.open {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  background: var(--bg);
  padding: 32px 24px 40px;
  align-items: stretch;
  gap: 4px;
  z-index: 99;
  overflow-y: auto;
}

/* Desktop items stay hidden inside drawer */
.nav-links.open .nav-desktop-only { display: none; }

/* Nav links get big and readable */
.nav-links.open .nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  color: var(--text);
  border-bottom: 1px solid var(--border);
  display: block;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1)
}

.nav-links.open li:last-of-type .nav-link { border-bottom: none; }
/*code change*/
.nav-links.open .nav-item-dropdown {
  width: 100%;
}

.nav-links.open .dropdown-toggle {
  padding: 14px 16px;
}

/* Show mobile CTA inside open drawer */
.nav-links.open .nav-mobile-cta {
  display: flex !important;
  justify-content: center;
  margin-top: 16px;
  padding: 16px 24px;
  font-size: 1rem;
  border-radius: var(--radius-md);
  width: 100%;
}

/*Don't display logo on small screen*/
@media (max-width: 899px) {
  .nav-logo span {
    display: none;
  }
}

/* Mobile nav footer bar: theme toggle */
.mobile-nav-footer {
  display: none;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.nav-links.open .mobile-nav-footer {
  display: flex;
}

.mobile-nav-footer .theme-toggle {
  display: flex;
  align-items: center;
  width: auto;
  height: auto;
  border-radius: var(--radius-md);
  padding: 12px 20px;
  gap: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.mobile-nav-footer-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* DROPDOWN */
.nav-item-dropdown {
  position: relative;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.dropdown-chevron {
  flex-shrink: 0;
  transition: transform 0.25s var(--ease-out);
  color: var(--text-3);
}

.nav-item-dropdown.open .dropdown-chevron,
.nav-item-dropdown:hover .dropdown-chevron {
  transform: rotate(180deg);
  color: var(--brand);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  transition: background 0.18s, color 0.18s;
  color: var(--text);
  text-decoration: none;
}

.dropdown-item:hover {
  background: var(--brand-dim);
  color: var(--brand);
}

.dropdown-item:hover strong { color: var(--brand); }

.dropdown-icon {
  font-size: 0.7rem;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-2);
  border-radius: 7px;
  color: var(--brand);
  flex-shrink: 0;
  transition: background 0.18s;
}

.dropdown-item:hover .dropdown-icon {
  background: var(--brand);
  color: #fff;
}

.dropdown-item strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  transition: color 0.18s;
}

.dropdown-item small {
  display: block;
  font-size: 0.72rem;
  color: var(--text-3);
  margin-top: 1px;
}

/* Divider between groups */
.dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 6px 4px;
}

/* ── NESTED DROPDOWN (SUBMENU) ───────────────────────────── */
.dropdown-item--has-submenu {
  position: relative;
  cursor: pointer;
  user-select: none;
}

.dropdown-chevron-sub {
  flex-shrink: 0;
  margin-left: auto;
  transition: transform 0.25s var(--ease-out), color 0.2s;
  color: var(--text-3);
}

.dropdown-item--has-submenu.open .dropdown-chevron-sub,
.dropdown-item--has-submenu:hover .dropdown-chevron-sub {
  transform: rotate(90deg);
  color: var(--brand);
}

.dropdown-submenu {
  position: absolute;
  top: -8px;
  left: calc(100% + 8px);
  min-width: 230px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-6px);
  transition:
    opacity 0.22s var(--ease-out),
    transform 0.22s var(--ease-out),
    visibility 0.22s;
  z-index: 210;
}

.dropdown-submenu::before {
  content: '';
  position: absolute;
  top: 16px;
  left: -5px;
  transform: rotate(45deg);
  width: 10px;
  height: 10px;
  background: var(--surface);
  border-left: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.dropdown-item--has-submenu.open .dropdown-submenu,
.dropdown-item--has-submenu:hover .dropdown-submenu {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transform: translateX(0);
}

/* Flip to the left when there isn't room on the right (set via JS) */
.dropdown-submenu.submenu-left {
  left: auto;
  right: calc(100% + 8px);
  transform: translateX(6px);
}

.dropdown-submenu.submenu-left::before {
  left: auto;
  right: -5px;
  border-left: none;
  border-bottom: none;
  border-right: 1px solid var(--border);
  border-top: 1px solid var(--border);
}

.dropdown-item--has-submenu.open .dropdown-submenu.submenu-left,
.dropdown-item--has-submenu:hover .dropdown-submenu.submenu-left {
  transform: translateX(0);
}

/* Desktop dropdown panel */
.dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 240px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.22s var(--ease-out),
    transform 0.22s var(--ease-out),
    visibility 0.22s;
  z-index: 200;
}

/* Small arrow pointer */
.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 10px;
  height: 10px;
  background: var(--surface);
  border-left: 1px solid var(--border);
  border-top: 1px solid var(--border);
}

/* Open state — desktop hover + JS class */
.nav-item-dropdown:hover .dropdown-menu,
.nav-item-dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  transition: background 0.18s, color 0.18s;
  color: var(--text);
  text-decoration: none;
}

.dropdown-item:hover {
  background: var(--brand-dim);
  color: var(--brand);
}

.dropdown-item:hover strong { color: var(--brand); }

.dropdown-icon {
  font-size: 0.7rem;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-2);
  border-radius: 7px;
  color: var(--brand);
  flex-shrink: 0;
  transition: background 0.18s;
}

.dropdown-item:hover .dropdown-icon {
  background: var(--brand);
  color: #fff;
}

.dropdown-item strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  transition: color 0.18s;
}

.dropdown-item small {
  display: block;
  font-size: 0.72rem;
  color: var(--text-3);
  margin-top: 1px;
}

/* Divider between groups */
.dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 6px 4px;
}

/* MOBILE ACCORDION DROPDOWN */
@media (max-width: 899px) {
  .nav-item-dropdown.open .dropdown-menu {
    max-height: 400px;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: all;
    transform: none !important;
    display: flex;
  }

  .dropdown-menu {
    position: static !important;
    transform: none !important;
    width: 100%;
    left: auto;
    right: auto;
    box-shadow: none;
    border: none;
    border-left: 2px solid var(--brand);
    border-radius: 0;
    background: transparent;
    padding: 0;
    margin: 4px 0 8px 16px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: max-height 0.35s var(--ease-out),
                opacity 0.3s var(--ease-out),
                visibility 0.3s,
                transform 0.3s var(--ease-out);
  }

  .dropdown-menu::before { display: none !important; }

  .dropdown-item {
    display: flex !important;
    align-items: center;
    gap: 12px;
    padding: 11px 16px;
    color: var(--text-2);
    font-size: 0.875rem;
    font-weight: 500;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    transition: color 0.2s, background 0.2s;
    background: transparent;
  }

  .dropdown-item:last-child { border-bottom: none; }

  .dropdown-item:active { 
    color: var(--brand); 
    background: var(--brand-dim); 
  }

  .dropdown-item strong { 
    font-size: 0.875rem; 
    font-weight: 500; 
    color: inherit; 
  }

  .dropdown-item small { display: none; }

  .dropdown-icon {
    width: 26px;
    height: 26px;
    font-size: 0.6rem;
    flex-shrink: 0;
    background: var(--brand-dim);
    color: var(--brand);
  }

  .dropdown-toggle {
    justify-content: space-between;
    width: 100%;
  }

  .nav-item-dropdown:hover .dropdown-chevron {
    transform: none !important;
    color: var(--text-3);
  }

  .nav-item-dropdown.open .dropdown-chevron {
    transform: rotate(180deg) !important;
    color: var(--brand);
  }
}

/* HERO */
/* ── HERO BACKGROUND SLIDER ───── */
.hbg-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  
}

.hbg-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.2s ease;
  animation: hbgKenBurns 7s ease-in-out forwards;
  animation-play-state: paused;
}

.hbg-slide.hbg-active {
  opacity: 1;
  animation-play-state: running;
  z-index: 1;
}

.hbg-slide.hbg-exit {
  opacity: 0;
  z-index: 0;
}

.hbg-slide:nth-child(odd).hbg-active {
  animation-name: hbgKenBurns;
}
.hbg-slide:nth-child(even).hbg-active {
  animation-name: hbgKenBurns2;
}

@keyframes hbgKenBurns {
  0%   { transform: scale(1)    translate(0, 0); }
  100% { transform: scale(1.08) translate(-1.5%, -1%); }
}
@keyframes hbgKenBurns2 {
  0%   { transform: scale(1)    translate(0, 0); }
  100% { transform: scale(1.08) translate(1.5%, 1%); }
}

.hbg-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0.38) 50%,
    rgba(0, 0, 0, 0.65) 100%
  );
}

[data-theme="light"] .hbg-overlay {
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.45) 0%,
    rgba(0, 0, 0, 0.28) 50%,
    rgba(0, 0, 0, 0.55) 100%
  );
}

.hbg-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: auto;
  opacity: 0;
  transition: opacity 0.3s ease, background 0.25s ease, transform 0.25s var(--ease-out);
}

.hero:hover .hbg-btn { opacity: 1; }

.hbg-btn:hover {
  background: var(--brand);
  border-color: var(--brand);
  transform: translateY(-50%) scale(1.08);
}

.hbg-prev { left: 20px; }
.hbg-next { right: 20px; }

@media (max-width: 639px) {
  .hbg-btn { opacity: 0.7; width: 38px; height: 38px; }
  .hbg-prev { left: 10px; }
  .hbg-next { right: 10px; }
}

.hbg-dots {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 8px;
  align-items: center;
  pointer-events: auto;
}

.hbg-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  padding: 0;
}

.hbg-dot.active {
  background: var(--brand);
  width: 24px;
  border-radius: 4px;
}

.hero-bg-grid,
.hero-orb,
.hero-content {
  position: relative;
  z-index: 5;
}

.hero-heading,
.hero-sub { color: #fff !important; -webkit-text-fill-color: #fff !important; }

.hero-heading .gradient-text {
  -webkit-text-fill-color: transparent !important;
}

#typedText {
  -webkit-text-fill-color: transparent !important;
  color: var(--brand) !important;
}

.hero-sub { color: rgba(255, 255, 255, 0.82) !important; }

.hero-badge {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.85);
}

.hero-stats {
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-color: rgba(255, 255, 255, 0.12);
}

.stat-num, .stat-suffix { color: #fff !important; }
.stat-label { color: rgba(255, 255, 255, 0.6) !important; }
.stat-divider { background: rgba(255, 255, 255, 0.15) !important; }

.hero .btn-ghost {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}
.hero .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: #fff;
  color: #fff;
}

@media (prefers-reduced-motion: reduce) {
  .hbg-slide { animation: none !important; }
  .hbg-slide.hbg-active { transition: opacity 0.3s ease; }
}

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 30%, transparent 100%);
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}
.hero-orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(255,107,0,0.18) 0%, transparent 70%);
  top: -150px; right: -100px;
}
.hero-orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(255,107,0,0.1) 0%, transparent 70%);
  bottom: 50px; left: -80px;
}

.hero-content {
  text-align: center;
  pointer-events: auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  padding: 7px 16px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-2);
  margin-bottom: 28px;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34,197,94,0.6);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.4); }
  50% { box-shadow: 0 0 0 6px rgba(34,197,94,0); }
}

.hero-heading {
  margin-bottom: 24px;
  max-width: 840px;
  margin-left: auto;
  margin-right: auto;
  min-height: 4.2em; /* locks the h1 height so it never reflows */
  overflow: hidden;
}
/*
.hero-sub {
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  max-width: 540px;
  margin: 0 auto 40px;
  line-height: 1.75;
}*/

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-bottom: 64px;
  position: relative;
  z-index: 20;
  pointer-events: auto;
}

.hero-actions .btn {
  position: relative;
  z-index: 21;
  pointer-events: auto;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  align-items: center;
  padding: 28px 36px;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  max-width: 600px;
  margin: 0 auto;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}
.stat-suffix { font-family: var(--font-display); font-size: 2rem; font-weight: 800; color: var(--brand); }
.stat-num + .stat-suffix { display: inline; }

/* Fix: put num and suffix on same line */
.stat > span:not(.stat-label) {
  display: inline;
}
.stat .stat-num, .stat .stat-suffix {
  display: inline;
  font-size: 2rem;
  line-height: 1;
}
.stat-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-top: 4px;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

/* Typedwriter */
#typedText {
  display: inline-block;
  min-width: 2rem;
  vertical-align: bottom;
  color: var(--brand);
  overflow: hidden;
  max-width: 100%;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Blinking cursor after the typed text */
#typedText::after {
  content: '|';
  display: inline-block;
  margin-left: 2px;
  color: var(--brand);
  -webkit-text-fill-color: var(--brand);
  animation: cursorBlink 1s step-end infinite;
}

@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ---------- TRUSTED BY ---------- */
.trusted-section {
  padding: 64px 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.trusted-label {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 40px;
}

/* Outer wrapper: clips and adds edge fades */
.marquee-outer {
  position: relative;
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    black 8%,
    black 92%,
    transparent 100%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    black 8%,
    black 92%,
    transparent 100%
  );
}

/* The scrolling row — two .marquee-inner side by side */
.marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 24s linear infinite;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  transform-style: preserve-3d;
}

.marquee-track:hover {
  animation-play-state: paused;
}

/* One full set of logos */
.marquee-inner {
  display: flex;
  align-items: center;
  gap: 56px;
  padding: 0 28px;
  flex-shrink: 0;
  white-space: nowrap;
}

/* Individual logo wrapper */
.logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  height: 100px;
  cursor: default;
  position: relative;
  transition: transform 0.3s ease;
  will-change: transform;
  /* Grayscale + dim by default */
}

a.logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
}

/* Full colour on hover */
.logo-item:hover {
  transform: scale(1.08);
}

[data-theme="dark"] .logo-item img {
  filter: grayscale(100%) opacity(0.25) brightness(1.8);
}
[data-theme="dark"] .logo-item:hover img {
  filter: grayscale(0%) opacity(1) saturate(1.2) brightness(1);
}

.logo-item img {
  height: 80px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  border-radius: 6px;
  filter: grayscale(100%) opacity(0.5);
  transition: filter 0.4s ease;
  z-index: 1;
  transform: translateZ(0);
}

.logo-item:hover img {
  filter: grayscale(0%) opacity(1) saturate(1.2);
}

.logo-item:hover {
  transform: scale(1.08);
}

/* Fallback: client name when no logo image is uploaded */
.logo-text {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-2);
  white-space: nowrap;
  padding: 0 8px;
  transition: color 0.3s ease;
}
.logo-item:hover .logo-text { color: var(--brand); }
[data-theme="dark"] .logo-text { color: rgba(240, 237, 232, 0.6); }
[data-theme="dark"] .logo-item:hover .logo-text { color: var(--brand); }

/* Keyframe: translate exactly -50% (one full set width) for seamless loop */
@keyframes marqueeScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Mobile: smaller logos, slightly faster */
@media (max-width: 639px) {
  .trusted-section { padding: 48px 0; }
  .marquee-inner { gap: 36px; padding: 0 18px; }
  .logo-item { height: 100px; }
  .logo-item img { height: 80px; max-width: 190px; }
  .marquee-track { animation-duration: 22s; }
}

/* ---------- SERVICES ---------- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.3s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}

.service-card:hover::before { transform: scaleX(1); }
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-glow);
}

.service-card--featured {
  background: linear-gradient(135deg, var(--brand-dim) 0%, var(--surface) 100%);
  border-color: rgba(255,107,0,0.25);
}

.service-icon {
  width: 52px;
  height: 52px;
  background: var(--brand-dim);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  margin-bottom: 20px;
}

.service-card h3 { margin-bottom: 10px; }
.service-card p  { font-size: 0.9rem; margin-bottom: 20px; }

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.service-tags li {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
  background: var(--surface-2);
  color: var(--text-3);
  border: 1px solid var(--border);
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand);
  transition: gap 0.2s;
}
.service-link:hover { gap: 10px; }

/* ---------- PROJECTS ---------- */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.project-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
}
.project-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.project-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
}
.project-card--large .project-img { aspect-ratio: 16/8; }

.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}
.project-card:hover .project-img img { transform: scale(1.04); }

.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}
.project-card:hover .project-overlay { opacity: 1; }

.project-meta {
  padding: 24px;
}

.project-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.project-tags span {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-dim);
  padding: 3px 9px;
  border-radius: 100px;
}

.project-meta h3 { margin-bottom: 8px; font-size: 1.1rem; }
.project-meta p  { font-size: 0.875rem; }


/* ─ GALLERY PREVIEW ─ */
.gallery-preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 14px;
  margin-bottom: 40px;
}

.gp-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface-2);
  aspect-ratio: 4/3;
}

.gp-item--large {
  grid-column: 1 / -1;
  aspect-ratio: 16/7;
}

.gp-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease-out);
}

.gp-item:hover img {
  transform: scale(1.04);
}

.gp-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.3) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gp-item:hover .gp-overlay {
  opacity: 1;
}

.gallery-preview-cta {
  text-align: center;
}

@media (min-width: 640px) {
  .gallery-preview-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .gp-item--large {
    grid-column: 1 / -1;
  }
}

@media (min-width: 900px) {
  .gallery-preview-grid {
    grid-template-columns: 1.6fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    height: 480px;
  }
  .gp-item { aspect-ratio: unset; height: auto; }
  .gp-item--large {
    grid-column: 1;
    grid-row: 1 / -1;
    aspect-ratio: unset;
  }
}


/* ---------- WHY US ---------- */
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
}

.why-left h2 { margin-bottom: 20px; }
.why-left p  { margin-bottom: 32px; }

.why-item {
  display: flex;
  gap: 18px;
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: all 0.25s;
}
.why-item:not(:last-child) { margin-bottom: 14px; }
.why-item:hover { border-color: var(--brand); box-shadow: var(--shadow-md); }

.why-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  background: var(--brand-dim);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
}
.why-item h4 { margin-bottom: 4px; }
.why-item p  { font-size: 0.875rem; }

/* ── TEAM SECTION ─────────────────────────────────────────── */
.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

/* ── TEAM CARD ────────────────────────────────────────────── */
.team-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s, border-color 0.35s;
  position: relative;
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-glow);
}

/* Image wrapper */
.team-card-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.team-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  transition: transform 0.55s var(--ease-out);
}

.team-card:hover .team-card-img {
  transform: scale(1.06);
}

/* Hover overlay with bio + socials */
.team-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.88) 0%,
    rgba(0, 0, 0, 0.55) 55%,
    rgba(255, 107, 0, 0.08) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.team-card:hover .team-card-overlay {
  opacity: 1;
}

.team-card-bio {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  margin-bottom: 14px;
  transform: translateY(8px);
  transition: transform 0.35s var(--ease-out);
}

.team-card:hover .team-card-bio {
  transform: translateY(0);
}

/* Social links */
.team-card-socials {
  display: flex;
  gap: 10px;
  transform: translateY(8px);
  transition: transform 0.35s var(--ease-out) 0.05s;
}

.team-card:hover .team-card-socials {
  transform: translateY(0);
}

.team-social-link {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  text-decoration: none;
}

.team-social-link:hover {
  background: var(--brand);
  border-color: var(--brand);
  transform: scale(1.12);
}

/* Card info bar */
.team-card-info {
  padding: 18px 20px 20px;
  position: relative;
}

/* Orange accent line */
.team-card-accent {
  position: absolute;
  top: 0;
  left: 20px;
  right: 20px;
  height: 2px;
  background: var(--border);
  border-radius: 1px;
  transition: background 0.35s ease;
  overflow: hidden;
}

.team-card-accent::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--brand), #ff9500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease-out);
}

.team-card:hover .team-card-accent::after {
  transform: scaleX(1);
}

.team-card-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.team-card-role {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--brand);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (min-width: 640px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1200px) {
  .team-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  /* First two cards span 2 cols on 4-col row of 6 to balance */
}

/* Mobile tap — show overlay on tap */
@media (max-width: 639px) {
  .team-card.tapped .team-card-overlay { opacity: 1; }
  .team-card.tapped .team-card-bio     { transform: translateY(0); }
  .team-card.tapped .team-card-socials { transform: translateY(0); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .team-card,
  .team-card-img,
  .team-card-overlay,
  .team-card-accent::after { transition: none; }
}
/* ── END TEAM SECTION ─────────────────────────────────────── */



/* ---------- TECH STACK ---------- 
.stack-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.stack-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 24px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-3);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all 0.25s var(--ease-out);
  cursor: default;
}
.stack-item:hover {
  color: var(--brand);
  border-color: var(--brand);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
} */

/* TRAINING */
.training-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.training-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  position: relative;
  transition: all 0.3s var(--ease-out);
}
.training-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--brand-glow); }

.training-badge {
  position: absolute;
  top: -1px;
  right: 28px;
  background: var(--brand);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

.training-icon {
  width: 60px;
  height: 60px;
  background: var(--brand-dim);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  margin-bottom: 24px;
}

.training-card h3 { margin-bottom: 12px; }
.training-card > p { margin-bottom: 24px; font-size: 0.9rem; }

.training-features {
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.training-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--text-2);
}
.training-features li svg { color: var(--brand); flex-shrink: 0; }

/* ---------- TESTIMONIALS ---------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.testimonial-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform 0.3s, box-shadow 0.3s;
}
.testimonial-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.stars { color: var(--brand); font-size: 0.95rem; margin-bottom: 16px; letter-spacing: 2px; }

.testimonial-card > p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 24px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.testimonial-author img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--brand-glow);
}
.testimonial-avatar-fallback {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--brand) 0%, #f7e11c 100%);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  flex-shrink: 0;
  border: 2px solid var(--brand-glow);
}
.testimonial-author strong { display: block; font-size: 0.9rem; color: var(--text); }
.testimonial-author span  { font-size: 0.78rem; color: var(--text-3); }

/* ---------- FAQ ---------- */
.faq-container { max-width: 760px; }

.faq-list { display: flex; flex-direction: column; gap: 12px; }

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s;
}
.faq-item:has(.faq-q[aria-expanded="true"]) { border-color: var(--brand); }

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  gap: 16px;
  transition: color 0.2s;
}
.faq-q:hover { color: var(--brand); }

.faq-chevron {
  flex-shrink: 0;
  transition: transform 0.3s var(--ease-out);
  color: var(--text-3);
}
.faq-q[aria-expanded="true"] .faq-chevron { transform: rotate(180deg); color: var(--brand); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease-out);
}
.faq-a p {
  padding: 0 24px 20px;
  font-size: 0.9rem;
  line-height: 1.75;
}

/* ---------- CTA SECTION ---------- */
.cta-section {
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  position: relative;
  overflow: hidden;
}

.cta-orb {
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,107,0,0.16) 0%, transparent 65%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  filter: blur(60px);
  pointer-events: none;
}

.cta-inner {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin: 0 auto;
  padding: clamp(30px, 4vw, 52px) 20px 18px;
  text-align: center;
}

.cta-inner h2 {
  margin-bottom: 20px;
  text-align: center;
  font-size: clamp(3rem, 6vw, 6rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.cta-inner > p {
  max-width: 760px;
  margin: 0 auto 32px;
  text-align: center;
  font-size: 1.08rem;
  line-height: 1.6;
  color: rgba(17, 17, 17, 0.72);
}

.cta-form {
  display: block;
  max-width: 620px;
  margin: 0 auto 16px;
}

.cta-form .cta-input {
  display: block;
  width: 100%;
  min-height: 62px;
  padding: 0 22px;
  margin-bottom: 14px;
  border-radius: 18px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  background: rgba(255,255,255,0.78);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.cta-form .cta-input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(255, 107, 0, 0.12);
}

.cta-form .cta-input::placeholder {
  color: rgba(17, 17, 17, 0.50);
}

.cta-form .cta-textarea {
  min-height: 120px;
  resize: vertical;
  padding-top: 18px;
  padding-bottom: 18px;
}

.cta-form .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 210px;
  min-height: 62px;
  border: none;
  border-radius: 18px;
  background: linear-gradient(135deg, #ff7a1a, #ff6b00);
  box-shadow: 0 12px 24px rgba(255, 107, 0, 0.28);
  font-weight: 700;
}

.cta-form .btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(255, 107, 0, 0.32);
}

.cta-note {
  font-size: 0.8rem;
  color: rgba(17, 17, 17, 0.62);
}

/* ── LOCATION SECTION ─────────────────────────────────────── */
.location-section {
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.location-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: start;
}

/* LEFT */
.location-left h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 12px;
}

.location-divider {
  width: 40px;
  height: 3px;
  background: var(--brand);
  border-radius: 2px;
  margin-bottom: 18px;
}

.location-intro {
  font-size: 0.95rem;
  max-width: 400px;
  margin-bottom: 36px;
  line-height: 1.75;
}

/* Info list */
.location-info-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-bottom: 36px;
}

.location-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.location-info-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--brand-dim);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s, transform 0.2s;
}

.location-info-item:hover .location-info-icon {
  background: var(--brand);
  color: #fff;
  transform: scale(1.06);
}

.location-info-icon--wa    { background: rgba(37,211,102,0.12); color: #25D366; }
.location-info-icon--email { background: rgba(96,165,250,0.12); color: #60a5fa; }
.location-info-icon--pin   { background: rgba(239,68,68,0.12);  color: #ef4444; }

.location-info-item:hover .location-info-icon--wa    { background: #25D366; color: #fff; }
.location-info-item:hover .location-info-icon--email { background: #60a5fa; color: #fff; }
.location-info-item:hover .location-info-icon--pin   { background: #ef4444; color: #fff; }

.location-info-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 3px;
}

.location-info-value {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  line-height: 1.5;
  transition: color 0.2s;
}

.location-info-value--brand { color: var(--brand); }
a.location-info-value:hover { color: var(--brand); }

/* Business hours */
.location-hours h4 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 14px;
}

.location-hours-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 24px;
  font-size: 0.875rem;
  color: var(--text-2);
}

.location-hours-grid span:nth-child(odd) {
  font-weight: 500;
  color: var(--text);
}

.location-closed { color: var(--text-3) !important; }

/* RIGHT — Map card */
.location-map-card {
  border-radius: 20px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s;
}

.location-map-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.15), 0 0 0 1px var(--brand-glow);
}

.location-map-wrap {
  width: 100%;
  height: 340px;
  overflow: hidden;
  position: relative;
}

/* Dark theme map filter */
[data-theme="dark"] .location-map-wrap iframe {
  filter: invert(0.9) hue-rotate(180deg) saturate(0.6) brightness(0.85);
}

[data-theme="dark"] .location-map-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: rgba(13,12,11,0.08);
}

.location-map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  transition: filter 0.3s ease;
}

/* Map footer bar */
.location-map-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.location-map-address {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-3);
  font-weight: 500;
}

.location-map-address svg {
  color: var(--brand);
  flex-shrink: 0;
}

.location-directions-btn {
  padding: 9px 18px;
  font-size: 0.82rem;
  white-space: nowrap;
}

/* Responsive */
@media (min-width: 900px) {
  .location-grid {
    grid-template-columns: 1fr 1.3fr;
    gap: 64px;
    align-items: center;
  }
  .location-map-wrap { height: 400px; }
}

@media (max-width: 639px) {
  .location-map-wrap { height: 260px; }
  .location-map-footer { flex-direction: column; align-items: flex-start; }
  .location-directions-btn { width: 100%; justify-content: center; }
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 72px 0 10px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  margin-bottom: 56px;
}

.footer-brand p {
  font-size: 0.875rem;
  max-width: 280px;
  margin: 16px 0 24px;
}

.footer-social {
  display: flex;
  gap: 12px;
}
.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
  transition: all 0.2s;
}
.footer-social a:hover { color: var(--brand); border-color: var(--brand); background: var(--brand-dim); }

.footer-col h5 { margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { font-size: 0.875rem; color: var(--text-2); transition: color 0.2s; }
.footer-col ul a:hover { color: var(--brand); }

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-3);
}

/* ---------- SCROLL REVEAL ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Delay helpers via data-delay attribute (applied in JS) */
.reveal[data-delay="100"] { transition-delay: 0.1s; }
.reveal[data-delay="200"] { transition-delay: 0.2s; }
.reveal[data-delay="300"] { transition-delay: 0.3s; }
.reveal[data-delay="400"] { transition-delay: 0.4s; }
.reveal[data-delay="500"] { transition-delay: 0.5s; }
.reveal[data-delay="50"]  { transition-delay: 0.05s; }
.reveal[data-delay="150"] { transition-delay: 0.15s; }

/* ---------- RESPONSIVE: TABLET 640px+ ---------- */
@media (min-width: 640px) {
  .hide-sm { display: inline; }

  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .training-grid { grid-template-columns: repeat(2, 1fr); }

  .cta-form {
    flex-direction: row;
    align-items: center;
  }
  .cta-form .btn { flex-shrink: 0; }

  .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; }

  .footer-grid { grid-template-columns: repeat(2, 1fr); }

  .stack-grid { grid-template-columns: repeat(4, 1fr); }

  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .project-card--large { grid-column: 1 / -1; }
}

/* ---------- RESPONSIVE: DESKTOP 900px+ ---------- */
@media (min-width: 900px) {
  .nav-links { display: flex; }
  .nav-right-mobile { display: none; }

  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .training-grid  { grid-template-columns: repeat(3, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }

  .why-grid { grid-template-columns: 1fr 1.4fr; align-items: start; gap: 80px; }

  .section { padding: 120px 0; }
}

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  .reveal { transition: opacity 0.3s; transform: none !important; }
  .mouse-glow, .scroll-line { display: none; }
  * { animation-duration: 0.01ms !important; }
}

/* ── WHATSAPP FLOATING BUTTON ─────────────────────────────── */
.wa-btn-wrap {
  position: fixed;
  bottom: 32px;
  right: 28px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;

  /* Entrance animation */
  animation: waEntrance 0.6s var(--ease-out) 1.5s both;
}

@keyframes waEntrance {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.8);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Tooltip */
.wa-tooltip {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 7px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  font-family: var(--font-body);
  white-space: nowrap;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateX(8px);
  transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out);
  pointer-events: none;
}

/* Show tooltip on wrap hover */
.wa-btn-wrap:hover .wa-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* The button itself */
.wa-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
  position: relative;
  text-decoration: none;

  /* Idle pulse */
  animation: waPulse 2.8s ease-in-out infinite;
}

.wa-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.55);
  animation-play-state: paused;
}

/* Pulse ring */
.wa-btn::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.45);
  animation: waRing 2.8s ease-in-out infinite;
}

@keyframes waPulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.06); }
}

@keyframes waRing {
  0%        { transform: scale(0.9);  opacity: 0; }
  50%       { transform: scale(1.25); opacity: 1; }
  100%      { transform: scale(1.5);  opacity: 0; }
}

/* Light theme — slightly deeper shadow */
[data-theme="light"] .wa-btn {
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35);
}

/* Mobile */
@media (max-width: 639px) {
  .wa-btn-wrap {
    bottom: 24px;
    right: 20px;
  }

  .wa-btn {
    width: 50px;
    height: 50px;
  }

  /* Tooltip shows on tap via JS class instead of hover */
  .wa-tooltip {
    opacity: 0 !important;
    pointer-events: none;
  }

  .wa-btn-wrap.tooltip-visible .wa-tooltip {
    opacity: 1 !important;
    transform: translateX(0);
  }
}
