/* =========================================================
   SAANVIKA TECHNOLOGIES — styles
   Brand: Midnight Navy primary, Premium Teal accent.
   ========================================================= */

:root {
  --navy: #101D35;
  --navy-2: #172744;
  --teal: #18B7A7;
  --teal-ink: #0B7A70;      /* AA-compliant teal for small text on light bg */
  --teal-soft: #E8F7F5;
  --graphite: #243247;
  --soft: #F5F7FA;
  --white: #FFFFFF;
  --muted: #778397;
  --text: #243247;
  --text-2: #56627A;        /* AA body-secondary on white */
  --line: #E3E8EF;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(16, 29, 53, .06), 0 1px 1px rgba(16, 29, 53, .04);
  --shadow: 0 10px 30px -12px rgba(16, 29, 53, .18);
  --shadow-lg: 0 24px 60px -24px rgba(16, 29, 53, .28);
  --container: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(72px, 9vw, 120px);
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { color: var(--navy); line-height: 1.12; margin: 0; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.75rem); font-weight: 700; }
h3 { font-size: 1.125rem; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
address { font-style: normal; }
ul[role="list"], ol[role="list"] { list-style: none; margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--navy); color: var(--white); padding: 10px 16px; border-radius: 10px;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  border-radius: 12px; border: 1.5px solid transparent;
  font-weight: 600; font-size: .975rem; line-height: 1.2; letter-spacing: -0.005em;
  cursor: pointer; white-space: nowrap;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--teal); color: var(--navy); }
.btn-primary:hover { background: #22c6b6; box-shadow: 0 8px 20px -10px rgba(24, 183, 167, .7); }
.btn-dark { background: var(--navy); color: var(--white); }
.btn-dark:hover { background: var(--navy-2); box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: var(--navy); border-color: #CDD5E0; }
.btn-ghost:hover { border-color: var(--navy); background: var(--white); }
.btn-sm { min-height: 42px; padding: 9px 18px; font-size: .925rem; }
.btn-lg { min-height: 54px; padding: 14px 26px; font-size: 1rem; }
.btn-block { width: 100%; }

/* ---------- Eyebrow / headings ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--teal-ink); margin-bottom: 14px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(24, 183, 167, .18); }
.eyebrow-light { color: var(--teal); }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.15rem); color: var(--text-2); }
.section { padding-block: var(--section); }
.section-soft { background: var(--soft); }
.section-head { max-width: 680px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head h2 { margin-bottom: 14px; }
.section-head .lead { margin: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, background-color .25s, box-shadow .25s;
}
.site-header.scrolled { background: rgba(255, 255, 255, .95); border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(16, 29, 53, .35); }
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 11px; margin-right: auto; }
.brand img { width: 36px; height: 36px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-weight: 700; font-size: 1.075rem; letter-spacing: .1em; color: var(--navy); }
.brand-sub { font-size: .6rem; font-weight: 600; letter-spacing: .32em; color: var(--muted); margin-top: 5px; }

.nav-list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-list a {
  display: inline-block; padding: 8px 14px; border-radius: 10px;
  font-size: .94rem; font-weight: 500; color: var(--text-2);
  transition: color .2s, background-color .2s;
}
.nav-list a:hover { color: var(--navy); background: var(--soft); }
.nav-list a.active { color: var(--navy); }
.nav-list a.active::after { content: ""; display: block; height: 2px; border-radius: 2px; background: var(--teal); margin-top: 2px; }
.header-actions { display: flex; align-items: center; gap: 10px; }

.menu-toggle {
  display: none; width: 46px; height: 46px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--white); cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.menu-toggle span { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--navy); transition: transform .25s var(--ease), opacity .2s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: absolute; inset: var(--header-h) 0 auto 0;
  background: var(--white); border-top: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  padding: 12px var(--gutter) 24px;
  max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
}
.mobile-menu ul { list-style: none; margin: 0; padding: 0; }
.mobile-menu li a {
  display: flex; align-items: center; min-height: 54px; padding: 0 6px;
  font-size: 1.125rem; font-weight: 600; color: var(--navy);
  border-bottom: 1px solid var(--line);
}
.mobile-menu-actions { display: grid; gap: 10px; margin-top: 20px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: clamp(40px, 7vw, 96px) clamp(64px, 8vw, 112px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 100%;
  background: linear-gradient(180deg, var(--soft) 0%, rgba(245, 247, 250, 0) 85%);
  z-index: -1;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: clamp(32px, 5vw, 72px); }
.hero h1 {
  font-size: clamp(2.35rem, 5.4vw, 4.1rem);
  font-weight: 700; letter-spacing: -0.04em; line-height: 1.04;
  margin-bottom: 20px;
}
.hero-sub { font-size: clamp(1.1rem, 1.6vw, 1.3rem); font-weight: 600; color: var(--graphite); margin-bottom: 14px; letter-spacing: -0.01em; }
.hero-text { font-size: 1.05rem; color: var(--text-2); max-width: 540px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-call { margin-top: 20px; font-size: .95rem; color: var(--text-2); }
.hero-call a { color: var(--navy); font-weight: 600; border-bottom: 1.5px solid var(--teal); }
.hero-art { position: relative; }
.hero-svg { width: 100%; height: auto; }
.traces path { stroke-dasharray: 6 10; animation: flow 6s linear infinite; }
.bar { transform-box: fill-box; transform-origin: left center; animation: grow 1.4s var(--ease) both; }
.bar-2 { animation-delay: .15s; } .bar-3 { animation-delay: .3s; }
@keyframes flow { to { stroke-dashoffset: -64; } }
@keyframes grow { from { transform: scaleX(0); } }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 20px; }
.service-card {
  position: relative; display: flex; flex-direction: column;
  padding: clamp(26px, 3vw, 36px);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.service-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #D5DCE6; }
.service-card .s-ic {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px;
  background: var(--navy); color: var(--teal); margin-bottom: 22px;
}
.service-card .s-ic .ic { width: 26px; height: 26px; }
.service-card h3 { font-size: 1.3rem; margin-bottom: 10px; }
.service-card p { color: var(--text-2); flex: 1; }
.link-cta {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  min-height: 44px; font-weight: 600; color: var(--navy);
}
.link-cta .ic { transition: transform .2s var(--ease); color: var(--teal-ink); }
.link-cta:hover .ic { transform: translateX(4px); }
.noscript-list { margin: 0; padding-left: 20px; }

/* ---------- Problems ---------- */
.problems-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 14px; list-style: none; margin: 0; padding: 0; }
.problem {
  display: flex; align-items: center; gap: 14px; height: 100%;
  min-height: 72px; padding: 16px 18px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  font-weight: 600; color: var(--navy); line-height: 1.3;
  transition: border-color .2s, box-shadow .2s, transform .2s var(--ease);
}
.problem:hover { border-color: var(--teal); box-shadow: var(--shadow); transform: translateY(-2px); }
.problem .p-ic { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--teal-soft); color: var(--teal-ink); flex: none; }
.problem .p-label { flex: 1; }
.problem .p-go { color: var(--muted); transition: color .2s, transform .2s var(--ease); }
.problem:hover .p-go { color: var(--teal-ink); transform: translateX(3px); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; position: relative; list-style: none; margin: 0; padding: 0; counter-reset: none; }
.steps::before {
  content: ""; position: absolute; top: 44px; left: 12%; right: 12%; height: 0;
  border-top: 2px dashed #CBD3DE; z-index: 0;
}
.step {
  position: relative; z-index: 1;
  padding: 32px 28px 30px; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  text-align: left;
}
.step-num {
  display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--navy); color: var(--white); font-weight: 700; font-size: 1.05rem; letter-spacing: .02em;
  box-shadow: 0 0 0 8px var(--white), 0 0 0 9px var(--line);
  margin-bottom: 22px;
}
.step:nth-child(3) .step-num { background: var(--teal); color: var(--navy); }
.step h3 { font-size: 1.25rem; margin-bottom: 8px; }
.step p { color: var(--text-2); margin: 0; }

/* ---------- Why ---------- */
.section-dark { background: var(--navy); color: #C7CFDB; position: relative; overflow: hidden; }
.section-dark::after {
  content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%;
  border: 1px solid rgba(24, 183, 167, .18); box-shadow: 0 0 0 60px rgba(24, 183, 167, .03), 0 0 0 120px rgba(24, 183, 167, .02);
  pointer-events: none;
}
.section-dark h2, .section-dark h3 { color: var(--white); }
.why-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(36px, 6vw, 88px); align-items: start; position: relative; z-index: 1; }
.why-intro h2 { margin-bottom: 18px; }
.why-intro p { font-size: 1.075rem; margin-bottom: 28px; max-width: 460px; }
.why-list { display: grid; gap: 4px; }
.why-list li { display: flex; gap: 18px; padding: 20px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.why-list li:last-child { border-bottom: 0; }
.why-ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: rgba(24, 183, 167, .12); color: var(--teal); flex: none; }
.why-list h3 { font-size: 1.1rem; margin-bottom: 4px; }
.why-list p { margin: 0; color: #AEB8C7; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 88px); align-items: center; }
.about-art svg { width: 100%; height: auto; border-radius: 32px; }
.about-copy h2 { margin-bottom: 18px; }
.about-copy p { color: var(--text-2); }
.about-copy .lead { color: var(--graphite); font-weight: 500; }
.ticks { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px !important; }
.ticks li {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px;
  border-radius: 999px; background: var(--soft); border: 1px solid var(--line);
  font-weight: 600; font-size: .925rem; color: var(--navy);
}
.ticks .ic { width: 18px; height: 18px; color: var(--teal-ink); stroke-width: 2.4; }

/* ---------- Reviews ---------- */
.reviews-card {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px;
  padding: clamp(28px, 4vw, 44px);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.reviews-ic { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: var(--teal-soft); color: var(--teal-ink); }
.reviews-ic .ic { width: 30px; height: 30px; }
.reviews-card h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 6px; }
.reviews-card p { margin: 0; color: var(--text-2); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; align-items: stretch; }
.contact-card, .enquiry {
  padding: clamp(26px, 3.5vw, 40px);
  border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--white);
}
.contact-card { background: var(--soft); }
.contact-name { font-size: 1.2rem; letter-spacing: .06em; margin-bottom: 22px; }
.contact-list { display: grid; gap: 20px; margin-bottom: 28px !important; }
.contact-list li { display: flex; gap: 16px; }
.c-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--white); border: 1px solid var(--line); color: var(--navy); flex: none; }
.c-label { display: block; font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.contact-list a { font-weight: 600; color: var(--navy); font-size: 1.05rem; }
.contact-list a:hover { color: var(--teal-ink); }
.contact-list address { color: var(--graphite); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.enquiry h3 { font-size: 1.3rem; margin-bottom: 6px; }
.form-note { font-size: .9rem; color: var(--text-2); margin-bottom: 22px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .92rem; color: var(--navy); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  border: 1.5px solid #D3DAE4; border-radius: 12px; background: var(--white);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 112px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(24, 183, 167, .18); }
.field [aria-invalid="true"] { border-color: #C2410C; }
.form-error { color: #B42318; font-size: .9rem; font-weight: 500; }

.map-wrap { margin-top: 24px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: var(--soft); }
.map-wrap iframe { display: block; width: 100%; height: clamp(280px, 38vw, 400px); border: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #AEB8C7; padding-top: clamp(56px, 7vw, 80px); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 36px; padding-bottom: 48px; }
.footer-brand img { width: 220px; height: auto; margin-bottom: 18px; }
.footer-tag { color: var(--white); font-weight: 600; margin-bottom: 6px; }
.footer-muted { color: #AEB8C7; font-size: .95rem; }
.footer-col h3 { color: var(--white); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: #C7CFDB; transition: color .2s; }
.footer-col a:hover { color: var(--teal); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  padding-block: 22px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .88rem;
}
.footer-bottom p { margin: 0; }
.to-top { color: #C7CFDB; }
.to-top:hover { color: var(--teal); }

/* ---------- Mobile action bar ---------- */
.action-bar { display: none; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  .nav, .header-cta { display: none; }
  .menu-toggle { display: inline-flex; }
  .hero-grid, .why-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 560px; margin-inline: auto; width: 100%; }
  .about-art { order: 2; max-width: 520px; }
  .steps { grid-template-columns: 1fr; gap: 16px; }
  .steps::before { top: 40px; bottom: 40px; left: calc(28px + 28px); right: auto; width: 0; height: auto; border-top: 0; border-left: 2px dashed #CBD3DE; }
  .reviews-card { grid-template-columns: 1fr; text-align: left; }

  /* bottom quick-action bar */
  .action-bar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .96); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
  }
  .action-bar a {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 48px; border-radius: 12px; font-weight: 600;
    background: var(--navy); color: var(--white);
  }
  .action-bar a.wa { background: var(--teal); color: var(--navy); }
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .menu-open .action-bar { display: none; }
}

@media (max-width: 560px) {
  :root { --header-h: 64px; }
  .brand img { width: 32px; height: 32px; }
  .brand-name { font-size: 1rem; }
  .hero-ctas .btn { width: 100%; }
  .contact-actions .btn { flex: 1 1 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .problem { min-height: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
