/* ============================================================
   CUSTOM FONTS
   ============================================================ */
@font-face {
  font-family: 'Viently Flustin Trial';
  src: url('../assets/fonts/VientlyFlustinTrialRegular-MAePp.ttf') format('truetype'),
       url('../assets/fonts/VientlyflustintrialRegular-rvZ6x.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}


/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  /* Brand colours */
  --color-primary:          #1998d3;
  --color-secondary:        #0F4C81;
  --color-accent-1:         #4d1998d3; /* primary @ 30% opacity */
  --color-accent-2:         #4d0F4C81; /* secondary @ 30% opacity */

  /* Text */
  --color-text-primary:     #14181b;
  --color-text-secondary:   #b2262d34; /* use sparingly – very low opacity */

  /* Backgrounds */
  --color-bg-primary:       #f1f4f8;
  --color-bg-secondary:     #ffffff;

  /* Semantic aliases */
  --color-surface:          var(--color-bg-secondary);
  --color-border:           #dde1e7;

  /* Typography */
  --font-base:              'Nunito', 'Segoe UI', Arial, sans-serif;
  --font-heading:           'Nunito', Arial, sans-serif;
  --font-size-xs:           0.75rem;
  --font-size-sm:           0.875rem;
  --font-size-base:         1rem;
  --font-size-lg:           1.125rem;
  --font-size-xl:           1.25rem;
  --font-size-2xl:          1.5rem;
  --font-size-3xl:          1.875rem;
  --font-size-4xl:          2.25rem;
  --font-size-5xl:          3rem;

  /* Spacing scale */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-7:  1.75rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-14: 3.5rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Responsive section padding — overridden per breakpoint below */
  --sec-pad: var(--space-20);

  /* Layout */
  --container-max:  1200px;
  --navbar-height:  72px;

  /* Shape */
  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.08);
  --shadow-md:  0 4px 12px rgba(0,0,0,0.10);
  --shadow-lg:  0 8px 32px rgba(0,0,0,0.12);

  /* Transitions */
  --transition-fast:   150ms ease;
  --transition-base:   250ms ease;
  --transition-slow:   400ms ease;
}


/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  overflow-y: scroll;
  scrollbar-gutter: stable;
}

body {
  font-family: var(--font-base);
  font-size: var(--font-size-base);
  color: var(--color-text-primary);
  background-color: var(--color-bg-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  letter-spacing: 0.03em;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
input, textarea, select { font: inherit; }


/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

/* Section base — padding scales via --sec-pad */
section {
  padding-block: var(--sec-pad);
}

/* ── Legal content body ── */
.legal-content {
  max-width: 760px;
  margin: var(--space-12) auto var(--space-20);
  color: #4a5568;
  line-height: 1.8;
}
.legal-content h2 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-text-primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: var(--space-10);
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 2px solid var(--color-border);
}
.legal-content h3 {
  font-size: var(--font-size-base);
  font-weight: 700;
  color: var(--color-text-primary);
  margin-top: var(--space-5);
  margin-bottom: var(--space-2);
}
.legal-content p { margin-bottom: var(--space-4); }
.legal-content ul, .legal-content ol {
  padding-left: var(--space-6);
  margin-bottom: var(--space-4);
}
.legal-content li { margin-bottom: var(--space-2); }
.legal-content a { color: var(--color-primary); }
.legal-content a:hover { text-decoration: underline; }

.legal-callout {
  background: rgba(25, 152, 211, 0.07);
  border-left: 3px solid var(--color-primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: var(--space-4) var(--space-5);
  margin-bottom: var(--space-5);
}
.legal-callout p { margin-bottom: 0; color: var(--color-text-primary); }

.legal-meta {
  display: flex;
  gap: var(--space-8);
  flex-wrap: wrap;
  margin-top: var(--space-5);
}
.legal-meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.legal-body-section {
  background: var(--color-bg-secondary);
  padding-top: var(--space-8);
  padding-bottom: var(--space-16);
}

.legal-meta-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-primary);
}
.legal-meta-value {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-text-primary);
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--space-6);
  font-size: var(--font-size-sm);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 1px 0 var(--color-border);
}
.legal-table th {
  background: var(--color-primary);
  color: #ffffff;
  padding: var(--space-3) var(--space-4);
  text-align: left;
  font-weight: 700;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.legal-table td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-primary);
  vertical-align: top;
  color: #14181b;
}
.legal-table tr:last-child td { border-bottom: none; }
.legal-table tr:nth-child(even) td { background: rgba(25, 152, 211, 0.05); }

.legal-hero-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-8);
  flex-wrap: wrap;
}
.legal-hero-left .section-label { margin-bottom: var(--space-2); }
.legal-hero-left .section-title  { margin-bottom: var(--space-2); }
.legal-meta { align-self: flex-end; }

[data-theme="dark"] .legal-content { color: rgba(255,255,255,0.7); }
[data-theme="dark"] .legal-content h2 { color: #ffffff; border-color: rgba(255,255,255,0.1); }
[data-theme="dark"] .legal-content h3 { color: #ffffff; }
[data-theme="dark"] .legal-content p strong,
[data-theme="dark"] .legal-content li strong { color: rgba(255,255,255,0.9); }
[data-theme="dark"] .legal-callout { background: rgba(25, 152, 211, 0.1); }
[data-theme="dark"] .legal-callout p { color: rgba(255,255,255,0.85); }
[data-theme="dark"] .legal-table tr:nth-child(even) td { background: rgba(255,255,255,0.04); }
[data-theme="dark"] .legal-table tr:nth-child(odd) td { background: rgba(255,255,255,0.02); }
[data-theme="dark"] .legal-table td { color: rgba(255,255,255,0.85); border-color: var(--color-primary); }
[data-theme="dark"] .legal-meta-value { color: #ffffff; }
[data-theme="dark"] .legal-body-section { background: #14181b; }

/* Legal pages — hero-style gradient on the first section */
.legal-page main > .section:first-child {
  background:
    radial-gradient(ellipse 110% 55% at 50% -8%, rgba(25, 152, 211, 0.20) 0%, transparent 72%),
    radial-gradient(ellipse 52% 52% at -4% 112%,  rgba(57, 210, 192, 0.17) 0%, transparent 65%),
    radial-gradient(ellipse 52% 52% at 104% 112%, rgba(25, 152, 211, 0.15) 0%, transparent 65%),
    linear-gradient(155deg, #ddeef8 0%, #f6fbff 42%, #daf5f0 100%);
}

[data-theme="dark"] .legal-page main > .section:first-child {
  background:
    radial-gradient(ellipse 110% 55% at 50% -8%, rgba(25, 152, 211, 0.20) 0%, transparent 72%),
    radial-gradient(ellipse 52% 52% at -4% 112%,  rgba(57, 210, 192, 0.16) 0%, transparent 65%),
    radial-gradient(ellipse 52% 52% at 104% 112%, rgba(25, 152, 211, 0.14) 0%, transparent 65%),
    linear-gradient(155deg, #0c1018 0%, #0f1c2a 100%);
}

/* Alternating section backgrounds */
.section-about,
.section-testimonials { background-color: var(--color-bg-primary); }

.section-services,
.section-why-us,
.section-contact   { background-color: var(--color-bg-secondary); }


/* ============================================================
   TYPOGRAPHY UTILITIES
   ============================================================ */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  background: none;
  color: var(--color-primary);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0;
  margin-bottom: var(--space-4);
}

.section-label::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--color-primary);
  border-radius: 50%;
  flex-shrink: 0;
}


.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: 0.03em;
  color: var(--color-text-primary);
  margin-bottom: var(--space-4);
  position: relative;
  z-index: 1;
}

.section-subtitle {
  font-size: var(--font-size-lg);
  color: #4a5568;
  max-width: 560px;
  line-height: 1.8;
}

.text-center { text-align: center; }
.text-center .section-subtitle { margin-inline: auto; }
.text-accent { color: var(--color-secondary); }

.gradient-text {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}


/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: 600;
  white-space: nowrap;
  transition: all var(--transition-base);
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--color-primary);
  color: #ffffff;
}
.btn-primary:hover {
  background: #1480b8;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--color-secondary);
  color: #ffffff;
}
.btn-secondary:hover {
  background: #2db8a7;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.btn-outline:hover {
  background: var(--color-primary);
  color: #ffffff;
  transform: translateY(-1px);
}

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


/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--navbar-height);
  background: transparent;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.navbar.scrolled {
  background: linear-gradient(155deg, #ddeef8 0%, #f0f8fc 100%);
  box-shadow: var(--shadow-sm);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  font-family: 'Viently Flustin Trial', 'Nunito', Arial, sans-serif;
  font-size: 48px;
  font-weight: 900;
  color: var(--color-primary);
  letter-spacing: 0.03em;
  line-height: 1;
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--color-primary);
  border-radius: var(--radius-full);
  padding: 4px 8px;
}

.nav-links a {
  font-family: 'Nunito', Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  color: rgba(255, 255, 255, 0.85);
  padding: 8px 20px;
  border-radius: var(--radius-full);
  transition: color var(--transition-fast), background var(--transition-fast);
  white-space: nowrap;
  text-decoration: none;
}

.nav-links a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
}

.nav-links a.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
}

/* ── Nav item wrapper (for dropdown triggers) ── */
.nav-item.has-dd {
  display: flex;
  align-items: center;
}

.nav-item.has-dd > a {
  display: flex;
  align-items: center;
  gap: 5px;
}

.nav-chevron {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.nav-item.has-dd.dd-open > a,
.nav-item.has-dd.dd-active > a {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
}

.nav-item.has-dd.dd-open > a .nav-chevron {
  transform: rotate(180deg);
}

/* ── Dropdown panel ── */
.nav-dropdown {
  position: absolute;
  top: calc(100% + 2px);
  transform: translateX(-50%) translateY(-6px);
  background: var(--color-bg-secondary);
  border-radius: 16px;
  border: 1px solid var(--color-border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.10), 0 2px 8px rgba(0, 0, 0, 0.06);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 998;
  min-width: 460px;
}

.nav-dropdown.dd-open {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}

.nav-dd-inner {
  display: flex;
  padding: 16px;
  gap: 0;
}

/* Left column — categories */
.nav-dd-cats {
  width: 190px;
  flex-shrink: 0;
  padding-right: 8px;
  border-right: 1px solid var(--color-border);
}

/* Right column — panels */
.nav-dd-panels {
  flex: 1;
  padding-left: 12px;
  min-width: 220px;
}

.nav-dd-panel {
  display: none;
}

.nav-dd-panel.active {
  display: block;
}

/* Section header label */
.nav-dd-hdr {
  font-family: 'Nunito', Arial, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9ca3af;
  margin-bottom: 8px;
  padding: 0 10px;
}

/* Category rows */
.nav-dd-cat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: 'Nunito', Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-primary);
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-dd-cat:hover,
.nav-dd-cat.active {
  background: rgba(25, 152, 211, 0.09);
  color: var(--color-primary);
}

.nav-dd-cat svg {
  opacity: 0;
  transition: opacity 0.15s ease;
  flex-shrink: 0;
}

.nav-dd-cat.active svg {
  opacity: 1;
}

/* Service links */
.nav-dd-panel a {
  display: block;
  font-family: 'Nunito', Arial, sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-primary);
  padding: 7px 10px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-dd-panel a:hover {
  background: rgba(25, 152, 211, 0.07);
  color: var(--color-primary);
}

/* Cities — single column */
.nav-dropdown--sm {
  min-width: 200px;
}

.nav-dd-inner--single {
  flex-direction: column;
  gap: 2px;
}

.nav-dd-inner--single .nav-dd-hdr {
  margin-bottom: 4px;
}

.nav-dd-inner--single a {
  display: block;
  font-family: 'Nunito', Arial, sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-primary);
  padding: 7px 10px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-dd-inner--single a:hover {
  background: rgba(25, 152, 211, 0.07);
  color: var(--color-primary);
}

.nav-dd-soon {
  font-family: 'Nunito', Arial, sans-serif;
  font-size: 11px;
  font-style: italic;
  color: #9ca3af;
  padding: 4px 10px 6px;
  display: block;
}

/* Dark mode */
[data-theme="dark"] .nav-dropdown {
  background: #1e2530;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .nav-dd-cats {
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .nav-dd-cat {
  color: rgba(255, 255, 255, 0.85);
}

[data-theme="dark"] .nav-dd-cat:hover,
[data-theme="dark"] .nav-dd-cat.active {
  background: rgba(25, 152, 211, 0.15);
  color: #5bb8e8;
}

[data-theme="dark"] .nav-dd-panel a,
[data-theme="dark"] .nav-dd-inner--single a {
  color: rgba(255, 255, 255, 0.8);
}

[data-theme="dark"] .nav-dd-panel a:hover,
[data-theme="dark"] .nav-dd-inner--single a:hover {
  background: rgba(25, 152, 211, 0.12);
  color: #5bb8e8;
}

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

/* Theme toggle button */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(20, 24, 27, 0.07);
  border: 1px solid var(--color-border);
  color: var(--color-text-primary);
  cursor: pointer;
  transition: all var(--transition-base);
  flex-shrink: 0;
}

.theme-toggle:hover {
  background: rgba(25, 152, 211, 0.1);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* Light mode: show moon. Dark mode: show sun. */
.theme-icon--sun  { display: none; }
.theme-icon--moon { display: block; }
[data-theme="dark"] .theme-icon--sun  { display: block; }
[data-theme="dark"] .theme-icon--moon { display: none; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  padding: 4px;
}
.hamburger span {
  display: block;
  height: 2px;
  background: var(--color-text-primary);
  border-radius: 2px;
  transition: all var(--transition-base);
}
.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); }

/* Hero sections handle their own top offset — no global push needed */
main { padding-top: 0; }


/* ============================================================
   SECTION PLACEHOLDERS (removed once content is added)
   ============================================================ */
.section-about   .container,
.section-why-us  .container,
.section-testimonials .container,
.section-contact .container {
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aab0b7;
  font-style: italic;
}


/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--color-text-primary);
  color: rgba(255,255,255,0.7);
  padding-top: var(--space-16);
  padding-bottom: 0;
}

/* 4-column grid */
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-10);
  padding-bottom: var(--space-12);
}

/* ── Brand column ── */
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.footer-logo-link { display: inline-block; }

.footer-logo-text {
  font-family: 'Viently Flustin Trial', 'Nunito', Arial, sans-serif;
  font-size: 3rem;
  font-weight: 900;
  color: var(--color-primary);
  text-decoration: none;
  letter-spacing: 0.03em;
  line-height: 1;
}

.footer-tagline {
  font-size: var(--font-size-sm);
  color: rgba(255,255,255,0.60);
  line-height: 1.75;
  max-width: 230px;
}

/* Social icon row */
.footer-social {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-1);
}

.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.70);
  transition: background var(--transition-base), color var(--transition-base), transform var(--transition-base);
}
.social-icon:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #ffffff;
  transform: translateY(-2px);
}

/* ── Column headings ── */
.footer-col-title {
  font-family: var(--font-base);
  font-size: var(--font-size-xs);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: var(--space-4);
}

.footer-col-title--gap {
  margin-top: var(--space-6);
}

/* ── Standard link lists ── */
.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-links a {
  font-size: var(--font-size-sm);
  color: rgba(255,255,255,0.60);
  line-height: 1.4;
  transition: color var(--transition-fast);
}
.footer-links a:hover { color: var(--color-secondary); }

.footer-coming-soon {
  font-size: var(--font-size-sm);
  color: rgba(255,255,255,0.28);
  font-style: italic;
}

/* ── Services single-column list ── */
.footer-services-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-services-list a {
  font-size: var(--font-size-sm);
  color: rgba(255,255,255,0.60);
  line-height: 1.4;
  transition: color var(--transition-fast);
}
.footer-services-list a:hover { color: var(--color-secondary); }

/* ── Contact card (column 4) ── */
.footer-contact-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  align-self: start;
}

/* Inside the card the link list has tighter gap */
.footer-links--card { gap: var(--space-2); }

/* Contact rows with icon */
.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--font-size-sm);
  color: rgba(255,255,255,0.60);
  line-height: 1.5;
}

.footer-contact-list a {
  color: rgba(255,255,255,0.60);
  transition: color var(--transition-fast);
  word-break: break-all;
}
.footer-contact-list a:hover { color: var(--color-secondary); }

.contact-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Copyright bar ── */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-block: var(--space-5);
  text-align: center;
}

.footer-bottom p {
  font-size: var(--font-size-sm);
  color: rgba(255,255,255,0.35);
}

/* ── Footer responsive ── */
@media (max-width: 960px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }
  /* Explicit placement: brand + company left, services + contact right */
  .footer-brand        { grid-column: 1; grid-row: 1; }
  .footer-col:first-of-type { grid-column: 2; grid-row: 1; } /* services */
  .footer-col:last-of-type  { grid-column: 1; grid-row: 2; } /* company */
  .footer-contact-card { grid-column: 2; grid-row: 2; }
}

@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-brand,
  .footer-col:first-of-type,
  .footer-col:last-of-type,
  .footer-contact-card {
    grid-column: 1;
    grid-row: auto;
  }
}


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .nav-links a {
    font-size: 13px;
    padding: 8px 14px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: var(--navbar-height);
    left: 0;
    right: 0;
    background: var(--color-bg-secondary);
    border-radius: 0;
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-4) var(--space-6);
    gap: var(--space-2);
    box-shadow: var(--shadow-md);
  }
  .nav-links.open { display: flex; }

  .nav-links a {
    font-size: 14px;
    color: var(--color-text-primary);
    width: 100%;
    padding: 12px 16px;
  }
  .nav-links a:hover {
    color: var(--color-primary);
    background: var(--color-bg-primary);
  }
  .nav-links a.active {
    color: var(--color-primary);
    background: var(--color-bg-primary);
  }

  .nav-actions .btn-primary { display: none; }
  .hamburger { display: flex; }

  .section-subtitle { font-size: var(--font-size-base); }

  /* --sec-pad is now set via :root media queries below */
}

@media (max-width: 480px) {
  .container { padding-inline: var(--space-4); }
}

/* ── Responsive section padding scale ── */
@media (max-width: 900px) {
  :root { --sec-pad: var(--space-14); }
}
@media (max-width: 560px) {
  :root { --sec-pad: var(--space-10); }
}


/* ============================================================
   HERO SECTION
   ============================================================ */
.section-hero {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: calc(var(--navbar-height) + var(--space-16));
  padding-bottom: var(--space-16);
  background:
    radial-gradient(ellipse 110% 55% at 50% -8%, rgba(25, 152, 211, 0.20) 0%, transparent 72%),
    radial-gradient(ellipse 52% 52% at -4% 112%,  rgba(57, 210, 192, 0.17) 0%, transparent 65%),
    radial-gradient(ellipse 52% 52% at 104% 112%, rgba(25, 152, 211, 0.15) 0%, transparent 65%),
    linear-gradient(155deg, #ddeef8 0%, #f6fbff 42%, #daf5f0 100%);
}

/* Reset the generic placeholder rule for this section */
.section-hero .container {
  min-height: unset;
  display: block;
}

/* Background decorative blobs */
.hero-shape {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.hero-shape-1 {
  width: 640px;
  height: 640px;
  top: -240px;
  right: -120px;
  background: radial-gradient(circle, rgba(25,152,211,0.12) 0%, transparent 70%);
}
.hero-shape-2 {
  width: 420px;
  height: 420px;
  bottom: -160px;
  left: -80px;
  background: radial-gradient(circle, rgba(57,210,192,0.12) 0%, transparent 70%);
}

/* Two-column layout */
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 55% 1fr;
  gap: var(--space-12);
  align-items: center;
}

/* ── Left: Content ────────────────────────────────────────── */
.hero-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding-block: var(--space-6);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 900;
  line-height: 1.08;
  color: var(--color-text-primary);
}

.hero-title-accent {
  display: block;
  color: var(--color-secondary);
}

.hero-title-in {
  color: var(--color-text-primary);
}

/* Lead paragraph with left accent bar */
.hero-lead {
  border-left: 4px solid var(--color-primary);
  padding-left: var(--space-4);
  font-size: var(--font-size-lg);
  color: var(--color-text-primary);
  line-height: 1.75;
}

/* Supporting paragraphs */
.hero-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  font-size: var(--font-size-base);
  color: #4a5568;
  line-height: 1.8;
  margin-top: calc(var(--space-3) * 1.5);
}

.hero-tagline {
  font-weight: 700;
  font-style: italic;
  color: var(--color-primary);
  margin-top: calc(var(--space-3) * 1.5);
}

/* Trust badge pills */
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 6px 14px;
  background: rgba(25,152,211,0.08);
  border: 1.5px solid rgba(25,152,211,0.22);
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

/* CTA buttons */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: 14px 24px;
  border-radius: var(--radius-full);
  font-size: var(--font-size-base);
  font-weight: 700;
  border: 2px solid transparent;
  white-space: nowrap;
  transition: all var(--transition-base);
}

.btn-hero-filled {
  background: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
}
.btn-hero-filled:hover {
  background: #1480b8;
  border-color: #1480b8;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(25,152,211,0.32);
}

.btn-hero-ghost {
  background: transparent;
  color: var(--color-text-primary);
  border-color: var(--color-text-primary);
}
.btn-hero-ghost:hover {
  background: var(--color-text-primary);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-hero-icon {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
}
.btn-hero-filled .btn-hero-icon  { background: rgba(255,255,255,0.22); }
.btn-hero-ghost  .btn-hero-icon  { background: rgba(20,24,27,0.08); }
.btn-hero-ghost:hover .btn-hero-icon { background: rgba(255,255,255,0.15); }

/* ── Right: Visual ───────────────────────────────────────── */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Person image container */
.hero-person-wrap {
  width: 100%;
  height: 560px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  border: 5px solid #ffffff;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

/* Placeholder shown until real image is provided */
.hero-person-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  background: linear-gradient(145deg,
    rgba(25,152,211,0.07) 0%,
    rgba(57,210,192,0.07) 100%);
  border: 2px dashed rgba(25,152,211,0.28);
  border-radius: var(--radius-xl);
  color: var(--color-primary);
}
.hero-person-placeholder p {
  font-size: var(--font-size-sm);
  font-weight: 500;
  opacity: 0.6;
}

/* Real image styles (ready for when asset is provided) */
.hero-person-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transform: scale(1);
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              filter 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.hero-person-wrap:hover .hero-person-img {
  transform: scale(1.04);
  filter: brightness(1.04) saturate(1.06);
}


/* ── Hero responsive ──────────────────────────────────────── */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }

  /* Image above text on smaller screens */
  .hero-visual { order: -1; }

  .hero-person-wrap { height: 400px; }

  .section-hero {
    padding-top: calc(var(--navbar-height) + var(--space-10));
    padding-bottom: var(--space-10);
  }
}

@media (max-width: 600px) {
  .hero-person-wrap { height: 300px; }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-hero {
    justify-content: space-between;
  }

  .hero-badges {
    gap: var(--space-2);
  }

  .trust-badge {
    font-size: 0.7rem;
    padding: 5px 10px;
  }
}


/* ============================================================
   DARK MODE
   ============================================================ */
[data-theme="dark"] {
  --color-text-primary: #ffffff;
  --color-bg-primary:   #1d2428;
  --color-bg-secondary: #14181b;
  --color-border:       rgba(255, 255, 255, 0.1);
  --color-surface:      #14181b;
}

[data-theme="dark"] body {
  background-color: #1d2428;
  color: #ffffff;
}

/* ── Navbar ── */
[data-theme="dark"] .navbar {
  background: transparent;
}

[data-theme="dark"] .navbar.scrolled {
  background: linear-gradient(155deg, #0c1018 0%, #0f1c2a 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .nav-links {
  background: var(--color-primary);
}

[data-theme="dark"] .theme-toggle {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.8);
}

[data-theme="dark"] .hamburger span {
  background: rgba(255, 255, 255, 0.85);
}

/* Mobile nav drawer */
@media (max-width: 768px) {
  [data-theme="dark"] .nav-links {
    background: #14181b;
    border-radius: 0;
  }
  [data-theme="dark"] .nav-links a {
    color: rgba(255, 255, 255, 0.75);
  }
  [data-theme="dark"] .nav-links a:hover,
  [data-theme="dark"] .nav-links a.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
  }
}

/* ── Section backgrounds ── */
[data-theme="dark"] .section-hero {
  background:
    radial-gradient(ellipse 110% 55% at 50% -8%, rgba(25, 152, 211, 0.20) 0%, transparent 72%),
    radial-gradient(ellipse 52% 52% at -4% 112%,  rgba(57, 210, 192, 0.16) 0%, transparent 65%),
    radial-gradient(ellipse 52% 52% at 104% 112%, rgba(25, 152, 211, 0.14) 0%, transparent 65%),
    linear-gradient(155deg, #0c1018 0%, #0f1c2a 100%);
}

[data-theme="dark"] .section-about,
[data-theme="dark"] .section-testimonials {
  background-color: #1d2428;
}

[data-theme="dark"] .section-services,
[data-theme="dark"] .section-why-us,
[data-theme="dark"] .section-contact {
  background-color: #14181b;
}

/* ── Typography ── */
[data-theme="dark"] .section-title    { color: #ffffff; }
[data-theme="dark"] .section-subtitle { color: rgba(255, 255, 255, 0.65); }

/* ── Hero ── */
[data-theme="dark"] .hero-title   { color: #ffffff; }
[data-theme="dark"] .hero-lead    { color: rgba(255, 255, 255, 0.7); }
[data-theme="dark"] .hero-body p  { color: rgba(255, 255, 255, 0.6); }
[data-theme="dark"] .hero-tagline { color: rgba(255, 255, 255, 0.45) !important; }

[data-theme="dark"] .trust-badge {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.75);
}

[data-theme="dark"] .hero-person-wrap {
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .hero-person-placeholder {
  background: linear-gradient(135deg, rgba(25,152,211,0.08) 0%, rgba(57,210,192,0.06) 100%);
  border-color: rgba(25, 152, 211, 0.2);
  color: rgba(255, 255, 255, 0.3);
}

/* ── Footer ── */
[data-theme="dark"] .footer { background: #0d1416; }

/* ── How It Works ── */
[data-theme="dark"] .section-how         { background: #14181b; }
[data-theme="dark"] .how-title           { color: #ffffff; }
[data-theme="dark"] .how-step-num        { border-color: rgba(255, 255, 255, 0.18); color: rgba(255, 255, 255, 0.45); background: #14181b; }
[data-theme="dark"] .how-step:not(.how-step--active):hover .how-step-num { box-shadow: 0 0 0 4px rgba(25, 152, 211, 0.18); }
[data-theme="dark"] .how-steps::before   { background: rgba(255, 255, 255, 0.1); }
[data-theme="dark"] .how-step-title      { color: rgba(255, 255, 255, 0.75); }
[data-theme="dark"] .how-step--active .how-step-title { color: var(--color-primary); }
[data-theme="dark"] .how-step-desc       { color: rgba(255, 255, 255, 0.5); }
[data-theme="dark"] .how-img-wrap        { background: transparent; }
[data-theme="dark"] .how-img-placeholder { color: rgba(255, 255, 255, 0.2); }


/* ============================================================
   TRUST / USP SECTION (homepage — between hero and services)
   ============================================================ */
.section-trust {
  background: var(--color-bg-secondary);
  padding-block: var(--sec-pad);
}

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

.trust-content {
  display: flex;
  flex-direction: column;
  gap: 0;
}

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

.trust-body p {
  font-size: var(--font-size-base);
  color: #4a5568;
  line-height: 1.85;
}

.trust-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.trust-img-wrap {
  width: 100%;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 5px solid #ffffff;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.10);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: default;
}

.trust-img-wrap:hover {
  transform: scale(1.03) translateY(-6px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.16);
}

.trust-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.trust-img-wrap:hover img {
  transform: scale(1.06);
}

[data-theme="dark"] .section-trust {
  background: #14181b;
}

[data-theme="dark"] .trust-body p {
  color: rgba(255, 255, 255, 0.65);
}

@media (max-width: 900px) {
  .trust-grid {
    grid-template-columns: 1fr;
  }

  .trust-visual {
    order: -1;
  }
}


/* ============================================================
   HOME SERVICES SECTION
   ============================================================ */
.home-svc-outer {
  background: var(--color-bg-secondary);
  padding: var(--space-10) 0 0;
}

.section-services.home-services {
  position: relative;
  padding: 0;
  background: #0d1416;
  overflow: hidden;
  max-width: var(--container-max);
  margin-inline: auto;
  border-radius: 20px;
}

/* Background image */
.home-svc-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.home-svc-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* Gradient overlay — dark at bottom for readability */
.home-svc-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(10, 14, 17, 0.42) 0%,
    rgba(10, 14, 17, 0.72) 55%,
    rgba(10, 14, 17, 0.97) 100%
  );
}

/* Content sits above overlay — flex pushes cards to bottom */
.home-svc-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 625px;
  padding-top: var(--space-10);
  padding-bottom: var(--space-4);
}

/* Header row: label+title top-left */
.home-svc-header {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
}

.home-svc-label {
  color: rgba(255, 255, 255, 0.75) !important;
  margin-bottom: var(--space-3);
}
.home-svc-label::before {
  background: rgba(255, 255, 255, 0.75) !important;
}

.home-svc-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 900;
  color: #ffffff;
  line-height: 1.1;
  max-width: 520px;
}

.home-svc-viewall {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  font-size: var(--font-size-sm);
  font-weight: 700;
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-full);
  text-decoration: none;
  white-space: nowrap;
  margin-top: var(--space-3);
  transition: background var(--transition-base), border-color var(--transition-base);
}
.home-svc-viewall:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.home-svc-viewall-icon {
  display: flex;
  align-items: center;
}

/* ── Horizontal scroll track ── */
.home-svc-scroll-track {
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 0 var(--space-3);
  scrollbar-width: none;
  cursor: grab;
  user-select: none;
}
.home-svc-scroll-track:active { cursor: grabbing; }
.home-svc-scroll-track::-webkit-scrollbar { display: none; }

.home-svc-scroll {
  display: flex;
  gap: var(--space-3);
  width: max-content;
  padding-inline: var(--space-6);
}

/* ── Service card ── */
.hsvc-card {
  flex: 0 0 175px;
  background: rgba(14, 18, 22, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition-base), transform var(--transition-base);
}
.hsvc-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-4px);
}

.hsvc-card-img {
  height: 95px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.22);
  overflow: hidden;
}
.hsvc-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hsvc-card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-3) var(--space-3) var(--space-4);
}

.hsvc-card-name {
  font-size: 0.76rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.35;
}

.hsvc-card-arrow {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}
.hsvc-card:hover .hsvc-card-arrow {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .home-svc-header { flex-direction: column; gap: var(--space-4); }
  .home-svc-viewall { margin-top: 0; }
  .home-svc-scroll-track { padding: 0 var(--space-4) var(--space-2); }
  .hsvc-card { flex: 0 0 138px; }
  .hsvc-card-img { height: 82px; }
}


/* ============================================================
   HOW IT WORKS SECTION
   ============================================================ */

.section-how {
  background: var(--color-bg-secondary);
  position: relative;
  overflow: hidden;
  padding: var(--sec-pad) 0;
}

.how-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-16);
  align-items: stretch;
}

.how-label { color: var(--color-primary); }
.how-label::before { background: var(--color-primary); }

.how-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 900;
  color: var(--color-text-primary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.1;
  margin-bottom: var(--space-4);
}

/* ── Steps ── */
.how-steps {
  display: flex;
  flex-direction: column;
  margin-top: var(--space-8);
  position: relative;
}

/* Continuous vertical line from centre of first circle to centre of last circle */
.how-steps::before {
  content: '';
  position: absolute;
  left: calc(1.75rem - 1px);
  top: 1.75rem;
  bottom: 1.75rem;
  width: 2px;
  background: var(--color-border);
  z-index: 0;
}

.how-step {
  display: flex;
  gap: var(--space-5);
  align-items: center;
  position: relative;
  padding-bottom: var(--space-8);
  cursor: pointer;
}
.how-step:last-child { padding-bottom: 0; }

.how-step-num {
  flex-shrink: 0;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  border: 1.5px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-base);
  font-weight: 700;
  color: #b0b7c0;
  background: var(--color-bg-secondary);
  position: relative;
  z-index: 1;
  transition: background var(--transition-fast), border-color var(--transition-fast),
              color var(--transition-fast), transform var(--transition-fast),
              box-shadow var(--transition-fast);
}

/* Hover: inactive steps only */
.how-step:not(.how-step--active):hover .how-step-num {
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: scale(1.12);
  box-shadow: 0 0 0 4px rgba(25, 152, 211, 0.12);
}

.how-step--active .how-step-num {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #ffffff;
}

.how-step-title {
  font-family: var(--font-base);
  font-size: var(--font-size-base);
  font-weight: 700;
  color: var(--color-text-primary);
  letter-spacing: 0.01em;
  margin-bottom: var(--space-1);
  transition: color var(--transition-fast);
}
.how-step--active .how-step-title { color: var(--color-primary); }

.how-step-desc {
  font-size: var(--font-size-sm);
  color: #4a5568;
  line-height: 1.8;
}

/* ── Right image ── */
.how-visual {
  position: relative;
  align-self: stretch;
}

.how-img-wrap {
  height: 100%;
  min-height: 200px;
  position: relative;
}

/* Slides — one per step, fade between them */
.how-img-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.35s ease;
  will-change: opacity;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.how-img-slide--active {
  opacity: 1;
  pointer-events: auto;
}

.how-img-slide > img {
  transform: scale(0.96);
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              filter 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.how-img-slide > img:hover {
  transform: scale(1);
  filter: brightness(1.04) saturate(1.06);
}

.how-img-placeholder {
  align-self: stretch;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  color: var(--color-border);
  font-size: var(--font-size-sm);
}

/* ── Phone mockup (for How It Works slides) ── */
.phone-mockup {
  height: 100%;
  max-height: calc(100% - 56px);
  max-width: calc(100% - 40px);
  aspect-ratio: 390 / 844;
  background: #ffffff;
  border-radius: 42px;
  border: 1.5px solid #cfe2ef;
  position: relative;
  box-shadow:
    0 8px 32px rgba(90, 155, 200, 0.18),
    0 2px 6px rgba(0, 0, 0, 0.06);
}

.phone-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 5px;
  background: #c4d8e6;
  border-radius: 3px;
  z-index: 10;
}

.phone-mockup > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
  border-radius: 40px;
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.phone-home-bar {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 36%;
  height: 3px;
  background: rgba(110, 160, 195, 0.45);
  border-radius: 2px;
  z-index: 10;
}

@media (max-width: 900px) {
  /* no .section-how override needed — --sec-pad handles it */
  .how-grid { grid-template-columns: 1fr; gap: var(--space-8); }
  .how-title { font-size: clamp(1.6rem, 5.5vw, 2.4rem); }
  .how-visual {
    width: 100%;
    max-width: 320px;
    margin-inline: auto;
  }
  /* Let image define its own height — swap via display instead of opacity */
  .how-img-wrap {
    height: auto;
    min-height: unset;
    border-radius: 20px;
    overflow: hidden;
  }
  .how-img-slide {
    position: relative;
    inset: unset;
    display: none;
    width: 100%;
  }
  .how-img-slide--active {
    display: block;
  }
  .how-img-slide > img {
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    display: block;
  }
  .how-step { padding-bottom: var(--space-6); }
}

@media (max-width: 560px) {
  /* no .section-how override needed — --sec-pad handles it */
  .how-title { font-size: clamp(1.35rem, 7vw, 1.8rem); }
  .how-steps { margin-top: var(--space-5); }
  .how-step { gap: var(--space-4); padding-bottom: var(--space-5); }
  .how-step-num {
    width: 2.75rem;
    height: 2.75rem;
    font-size: var(--font-size-sm);
  }
  .how-steps::before { left: calc(1.375rem - 1px); }
  .how-visual { max-width: 280px; }
}

@media (max-width: 600px) {
  .how-bg-text { font-size: clamp(3.5rem, 18vw, 7rem); }
}


/* ============================================================
   PRICING SECTION
   ============================================================ */
.section-pricing {
  padding-block: var(--sec-pad);
  background: var(--color-bg-primary);
}

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

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

.pricing-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--color-text-primary);
  line-height: 1.25;
  margin-bottom: 0;
}

.pricing-body {
  font-size: var(--font-size-base);
  color: #4a5568;
  line-height: 1.85;
}

.pricing-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.pricing-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--font-size-base);
  color: #4a5568;
  line-height: 1.6;
}

.pricing-bottom-row {
  display: flex;
  align-items: center;
  gap: var(--space-12);
  flex-wrap: wrap;
  margin-top: var(--space-6);
}

.pricing-from {
  border-left: 3px solid var(--color-primary);
  padding-left: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pricing-from-label {
  font-size: var(--font-size-sm);
  color: #4a5568;
  font-weight: 500;
}

.pricing-from-price {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--color-text-primary);
  line-height: 1.2;
}

.pricing-from-price span {
  font-size: var(--font-size-base);
  font-weight: 500;
  color: #4a5568;
}

.pricing-tc {
  font-size: 11px;
  color: #9ca3af;
}

.pricing-cta {
  flex-shrink: 0;
}

/* Image */
.pricing-visual {
  display: flex;
  flex-direction: column;
}

.pricing-img-wrap {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 6px solid #ffffff;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.10);
}

.pricing-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 20% center;
  transform: scale(1);
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Dark mode */
[data-theme="dark"] .section-pricing {
  background: var(--color-bg-primary);
}

[data-theme="dark"] .pricing-title {
  color: #ffffff;
}

[data-theme="dark"] .pricing-body,
[data-theme="dark"] .pricing-list li,
[data-theme="dark"] .pricing-from-label,
[data-theme="dark"] .pricing-from-price span {
  color: rgba(255, 255, 255, 0.6);
}

[data-theme="dark"] .pricing-from-price {
  color: #ffffff;
}

@media (max-width: 900px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }

  .pricing-visual {
    max-width: 480px;
    margin-inline: auto;
    width: 100%;
  }
}

/* ============================================================
   COMING SOON TOOLTIP
   Shown on hover for all action buttons not yet live.
   ============================================================ */
.btn-hero,
.svc-store-badge,
.btn-svc-primary,
.btn-faq {
  position: relative;
}

.btn-hero::after,
.svc-store-badge::after,
.btn-svc-primary::after,
.btn-faq::after {
  content: 'Coming Soon';
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: rgba(20, 24, 27, 0.88);
  color: #ffffff;
  font-family: var(--font-base);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
  z-index: 100;
}

.btn-hero:hover::after,
.svc-store-badge:hover::after,
.btn-svc-primary:hover::after,
.btn-faq:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
