/* =========================================================
   Ahdana — Design System
   Colours, type, and components sourced from the Ahdana
   Brand Identity Guide v1.0.
   ========================================================= */

:root {
  /* Brand colours */
  --navy: #0F2D52;
  --navy-rgb: 15, 45, 82;
  --teal: #0E7C7B;
  --teal-rgb: 14, 124, 123;
  --slate: #3D6B8C;
  --offwhite: #F8F6F2;
  --charcoal: #2C2C2C;
  --white: #FFFFFF;
  --border: #E4E0D6;
  --border-dark: rgba(248, 246, 242, 0.16);

  /* Type */
  --font: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing scale */
  --space-1: 0.5rem;
  --space-2: 0.75rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --space-7: 4rem;
  --space-8: 6rem;
  --space-9: 8rem;

  /* Layout */
  --max-width: 1180px;
  --container-pad: clamp(1.25rem, 4vw, 2.5rem);
  --radius-sm: 4px;
  --radius-md: 8px;

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --speed: 180ms;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--charcoal);
  background: var(--white);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; }
h1, h2, h3, h4 { margin: 0; color: var(--navy); font-weight: 700; line-height: 1.18; letter-spacing: -0.01em; }
p { margin: 0; }
input, select, textarea { font-family: inherit; font-size: 1rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ---------- Skip link (a11y) ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  z-index: 200;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus {
  left: 0;
}

/* ---------- Focus states ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ---------- Type scale ---------- */
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: var(--space-3);
}
h1, .h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  font-weight: 700;
}
h2, .h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.25rem);
  font-weight: 700;
}
h3, .h3 {
  font-size: 1.2rem;
  font-weight: 600;
}
.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--charcoal);
  line-height: 1.7;
  max-width: 46em;
}
.body-text { color: var(--charcoal); }
.text-muted { color: #5B5B5B; }

/* ---------- Layout helpers ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}
.section {
  padding: var(--space-8) 0;
}
.section--tight { padding: var(--space-6) 0; }
.section--offwhite { background: var(--offwhite); }
.section--navy { background: var(--navy); color: var(--offwhite); }
.section--navy h2, .section--navy h3 { color: var(--white); }
.section-head {
  max-width: 44em;
  margin-bottom: var(--space-6);
}
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }

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

@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4, .grid-6 { grid-template-columns: 1fr; }
}

.contact-grid {
  grid-template-columns: 1.4fr 1fr;
  align-items: start;
}
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}
@media (min-width: 901px) and (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font);
  font-weight: 500;
  font-size: 0.98rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--speed) var(--ease), color var(--speed) var(--ease), border-color var(--speed) var(--ease), transform var(--speed) var(--ease);
  min-height: 48px;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--teal);
  color: var(--white);
}
.btn-primary:hover { background: #0a6564; }
.btn-secondary {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-secondary:hover { background: var(--navy); color: var(--white); }
.section--navy .btn-secondary,
.section--navy .btn-outline {
  color: var(--white);
  border-color: var(--border-dark);
}
.section--navy .btn-secondary:hover { background: var(--white); color: var(--navy); }
.btn-link {
  color: var(--teal);
  font-weight: 500;
  padding: 0;
  min-height: auto;
  border-bottom: 1px solid transparent;
}
.btn-link:hover { border-bottom-color: var(--teal); }
.btn-block { width: 100%; }

.cta-row {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  align-items: center;
  margin-top: var(--space-5);
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--offwhite);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--navy);
}
.brand img { height: 34px; width: auto; }
.brand-word { letter-spacing: -0.01em; }

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}
.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--charcoal);
  position: relative;
  padding: 0.25rem 0;
}
.nav-links a:hover { color: var(--teal); }
.nav-links a[aria-current="page"] {
  color: var(--navy);
}
.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--teal);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--navy);
}
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 860px) {
  .nav-links {
    position: fixed;
    inset: 64px 0 0 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-5) var(--container-pad);
    gap: var(--space-5);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--speed) var(--ease), transform var(--speed) var(--ease);
  }
  .nav-links a { font-size: 1.1rem; }
  body.nav-open .nav-links {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav-toggle { display: inline-flex; }
}

@media (max-width: 420px) {
  .nav-cta-btn {
    padding: 0.6rem 0.9rem;
    font-size: 0.85rem;
    min-height: 42px;
  }
  .brand-word { font-size: 1.05rem; }
}

/* ---------- Hero ---------- */
.hero {
  padding: var(--space-8) 0 var(--space-7);
  background: linear-gradient(180deg, var(--offwhite) 0%, #FBFAF8 100%);
}
.hero-brandline {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}
.hero-brandline img { height: 30px; }
.hero-tagline {
  font-weight: 600;
  color: var(--teal);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}
.hero h1 { max-width: 15em; }
.hero .lede { margin-top: var(--space-4); }

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-5);
}
.card--offwhite { background: var(--offwhite); }
.service-card {
  border-top: 3px solid var(--teal);
  border-radius: var(--radius-sm);
  background: var(--white);
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: var(--space-5);
  height: 100%;
}
.service-card h3 { margin-bottom: var(--space-2); }
.service-card p { color: var(--charcoal); font-size: 0.97rem; }
.service-card ul { margin-top: var(--space-3); display: grid; gap: 0.5rem; }
.service-card li {
  font-size: 0.92rem;
  color: var(--charcoal);
  padding-left: 1.1rem;
  position: relative;
}
.service-card li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 6px; height: 6px;
  background: var(--teal);
  border-radius: 50%;
}

/* ---------- Process steps ---------- */
.process-step {
  position: relative;
  padding-top: var(--space-3);
  border-top: 1px solid var(--border);
}
.process-step .step-number {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--teal);
  opacity: 0.35;
  display: block;
  margin-bottom: var(--space-2);
}
.process-step h3 { margin-bottom: var(--space-2); }
.process-step p { color: var(--charcoal); font-size: 0.96rem; }

/* ---------- Pillars (Why Ahdana) ---------- */
.pillar h3 { display: flex; align-items: center; gap: 0.6rem; margin-bottom: var(--space-2); }
.pillar h3::before {
  content: "";
  width: 8px; height: 8px;
  background: var(--teal);
  border-radius: 50%;
  flex-shrink: 0;
}
.pillar p { color: var(--charcoal); font-size: 0.96rem; }

/* ---------- Lists with check marks ---------- */
.check-list { display: grid; gap: var(--space-3); }
.check-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 1rem;
  color: var(--charcoal);
}
.check-list li svg {
  flex-shrink: 0;
  margin-top: 0.2em;
  color: var(--teal);
  width: 18px;
  height: 18px;
}
.cross-list li svg { color: var(--slate); }

/* ---------- Founder cards ---------- */
.founder-card {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: var(--space-4);
  align-items: start;
}
.founder-avatar {
  width: 132px; height: 132px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.8rem;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
.founder-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 3px solid var(--white);
  box-shadow: 0 0 0 1px var(--border);
}
.founder-role {
  color: var(--teal);
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  display: block;
}
@media (max-width: 560px) {
  .founder-card { grid-template-columns: 88px 1fr; }
  .founder-avatar { width: 88px; height: 88px; font-size: 1.2rem; }
}

/* ---------- Divider ---------- */
.divider {
  height: 1px;
  background: var(--border);
  border: none;
  margin: 0;
}

/* ---------- Closing CTA band ---------- */
.cta-band {
  background: var(--navy);
  color: var(--offwhite);
  padding: var(--space-8) 0;
  text-align: center;
}
.cta-band h2 { color: var(--white); max-width: 20em; margin: 0 auto; }
.cta-band .cta-row { justify-content: center; }
.cta-band p { color: rgba(248,246,242,0.78); margin-top: var(--space-3); max-width: 32em; margin-left:auto; margin-right:auto; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: rgba(248, 246, 242, 0.82);
  padding: var(--space-7) 0 var(--space-5);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--space-6);
  padding-bottom: var(--space-6);
}
.footer-brand { color: var(--white); font-weight: 700; font-size: 1.15rem; margin-bottom: var(--space-2); }
.footer-tagline { color: var(--teal); font-weight: 500; font-size: 0.9rem; margin-bottom: var(--space-3); }
.footer-desc { max-width: 26em; font-size: 0.92rem; line-height: 1.7; }
.footer-col h4 {
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
}
.footer-col ul { display: grid; gap: 0.6rem; }
.footer-col a { font-size: 0.92rem; transition: color var(--speed) var(--ease); }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid var(--border-dark);
  padding-top: var(--space-4);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-2);
  font-size: 0.85rem;
  color: rgba(248,246,242,0.55);
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-5); }
}

/* ---------- Forms ---------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}
.form-field { display: flex; flex-direction: column; gap: 0.5rem; }
.form-field.full { grid-column: 1 / -1; }
.form-field label {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--navy);
}
.form-field .optional { color: #8a8a8a; font-weight: 400; }
.form-field input,
.form-field select,
.form-field textarea {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.8rem 0.9rem;
  background: var(--white);
  color: var(--charcoal);
  transition: border-color var(--speed) var(--ease);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--teal);
  outline: none;
}
.form-field textarea { resize: vertical; min-height: 120px; }
.consent-row {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-size: 0.88rem;
  color: var(--charcoal);
}
.consent-row input { margin-top: 0.25rem; width: 16px; height: 16px; accent-color: var(--teal); }
.consent-row a { color: var(--teal); text-decoration: underline; }
.form-note { font-size: 0.82rem; color: #8a8a8a; margin-top: var(--space-2); }
.form-status {
  margin-top: var(--space-4);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  background: #EAF4F3;
  color: #0a5c5b;
  font-size: 0.95rem;
  display: none;
}
.form-status.is-visible { display: block; }
.form-status.is-error { background: #FBEAEA; color: #8a2a2a; }

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

/* ---------- Contact info card ---------- */
.contact-info-card { position: sticky; top: 100px; }
.contact-line { display: flex; align-items: center; gap: 0.7rem; margin-top: var(--space-3); }
.contact-line svg { color: var(--teal); width: 20px; height: 20px; flex-shrink: 0; }

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.text-center { text-align: center; }
.stack { display: grid; gap: var(--space-5); }
.pill {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(var(--teal-rgb), 0.1);
  color: var(--teal);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  padding: var(--space-7) 0 var(--space-6);
  background: var(--offwhite);
  border-bottom: 1px solid var(--border);
}
.page-hero .lede { margin-top: var(--space-3); }
.breadcrumb {
  font-size: 0.85rem;
  color: var(--slate);
  margin-bottom: var(--space-3);
}

/* ---------- Not-a-fit list styling ---------- */
.fit-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
}
@media (max-width: 800px) { .fit-columns { grid-template-columns: 1fr; } }
.fit-col h3 { margin-bottom: var(--space-4); }
