/* ── Reset & Base ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --navy:  #1c1f4c;
  --teal:  #00848c;
  --coral: #f76d61;
  --gold:  #fdb208;
  --cream: #f5f4ea;
  --white: #ffffff;
  --text:  #1c1f4c;
  --muted: #454d5c;
}
html { scroll-behavior: smooth; }
body { font-family: 'Montserrat', sans-serif; color: var(--text); background: var(--white); line-height: 1.6; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── Accessibility ────────────────────────────────────────────────── */
.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 200;
  background: var(--navy); color: var(--white); padding: 10px 18px;
  border-radius: 8px; font-size: 14px; font-weight: 600;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 8px; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
/* Visually hidden but available to screen readers and search engines. */
.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;
}

/* ── Typography ───────────────────────────────────────────────────── */
h1, h2, h3, h4 { font-family: 'Recoleta', Georgia, serif; line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p  { font-size: 1rem; color: var(--muted); line-height: 1.75; }

/* ── Nav ──────────────────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--white);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem; height: 84px;
  box-shadow: 0 1px 12px rgba(28,31,76,0.08);
}
.nav-logo img { height: 56px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a { font-size: 13.5px; font-weight: 600; color: var(--navy); letter-spacing: 0.02em; transition: color 0.15s; }
.nav-links a:hover { color: var(--teal); }
.nav-cta {
  background: var(--navy); color: var(--white) !important;
  padding: 10px 22px; border-radius: 50px; font-size: 13.5px; font-weight: 600;
  transition: background 0.15s !important;
}
.nav-cta:hover { background: var(--teal) !important; color: var(--white) !important; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; border-radius: 2px; transition: all 0.3s; }

/* ── Buttons ──────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: 50px; font-size: 14px;
  font-weight: 700; font-family: inherit; cursor: pointer;
  border: 2px solid transparent; transition: all 0.2s; letter-spacing: 0.02em;
  text-decoration: none;
}
.btn-primary { background: var(--teal); color: var(--white); border-color: var(--teal); }
.btn-primary:hover { background: #006e75; border-color: #006e75; }
.btn-coral { background: var(--coral); color: var(--white); border-color: var(--coral); }
.btn-coral:hover { background: #e85c50; }

/* ── Sections ─────────────────────────────────────────────────────── */
section { padding: 34px 2rem; }
.container { max-width: 1100px; margin: 0 auto; }
.section-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--teal); margin-bottom: 0.75rem;
}
.text-center { text-align: center; }
.text-navy { color: var(--navy) !important; }
.text-teal { color: var(--teal) !important; }
.text-coral { color: var(--coral) !important; }
.bg-cream { background: var(--cream); }
.bg-navy { background: var(--navy); }
.bg-teal { background: var(--teal); }

/* ── Rainbow wave divider ─────────────────────────────────────────── */
.wave-divider { width: 100%; line-height: 0; }
.wave-divider svg { width: 100%; height: auto; display: block; }

/* ── Hero ─────────────────────────────────────────────────────────── */
.hero-wrap { position: relative; overflow: hidden; padding-top: 84px; }
.hero-waves { position: absolute; inset: 0; line-height: 0; pointer-events: none; z-index: 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom left, #000 50%, transparent 85%);
  mask-image: linear-gradient(to bottom left, #000 50%, transparent 85%); }
.hero-waves img { width: 100%; height: 100%; display: block; }
.hero-image-shaped { border-radius: 28px !important; }

.hero {
  position: relative; z-index: 1;
  padding-top: 56px; padding-bottom: 76px;
  background: transparent;
  display: grid; grid-template-columns: 0.85fr 1.2fr; gap: 3rem; align-items: center;
  max-width: 1180px; margin: 0 auto; padding-left: 2rem; padding-right: 2rem;
}
.hero-text h1 { color: var(--navy); margin-bottom: 1.25rem; text-wrap: balance; }
.hero-text p { font-size: 1.05rem; margin-bottom: 2rem; max-width: 480px; }
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-image { border-radius: 20px; overflow: hidden; box-shadow: 0 20px 60px rgba(28,31,76,0.15); }
.hero-image img { width: 100%; height: auto; display: block; }

/* ── Two-col section ──────────────────────────────────────────────── */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.two-col.reverse { direction: rtl; }
.two-col.reverse > * { direction: ltr; }

.outcome-card { display: grid; grid-template-columns: 1fr 1.05fr; gap: 3rem; align-items: center; background: var(--white); border: 1px solid rgba(28,31,76,0.07); border-radius: 20px; padding: 2.75rem; box-shadow: 0 12px 40px rgba(28,31,76,0.07); }
.outcome-chart { background: var(--cream); border-radius: 14px; padding: 1.5rem 1.5rem 1.25rem; }
.outcome-chart-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--teal); margin-bottom: 1.25rem; }
.outcome-bars { display: flex; align-items: flex-end; gap: 12px; height: 150px; border-bottom: 2px solid rgba(28,31,76,0.12); }
.outcome-bar { flex: 1; min-height: 8px; border-radius: 7px 7px 0 0; background: linear-gradient(180deg, #17aab2 0%, var(--teal) 100%); }
.outcome-bar.coral { background: linear-gradient(180deg, #ff8f83 0%, var(--coral) 100%); }
.outcome-chart-note { font-size: 12px; color: var(--muted); font-weight: 600; text-align: right; margin-top: 0.85rem; }

/* ── Services grid ────────────────────────────────────────────────── */
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; margin-top: 2rem; }
.service-card {
  background: var(--white); border-radius: 16px; padding: 2rem;
  border: 1px solid #ede9df;
  transition: transform 0.2s;
}
/* left column: solid teal edge on top + left, card raised in foreground */
.services-grid .service-card:nth-child(odd) {
  box-shadow: -5px -5px 0 0 var(--teal), 0 16px 30px -10px rgba(28,31,76,0.22);
}
/* right column: solid coral edge on top + right, card raised in foreground */
.services-grid .service-card:nth-child(even) {
  box-shadow: 5px -5px 0 0 var(--coral), 0 16px 30px -10px rgba(28,31,76,0.22);
}
.service-card:hover { transform: translateY(-4px); }
.service-icon { font-size: 2rem; margin-bottom: 1rem; }
.service-card h3 { color: var(--navy); margin-bottom: 0.5rem; }

/* ── Steps ────────────────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 2rem; }
.steps--4 { grid-template-columns: repeat(4, 1fr); }
.step { text-align: center; padding: 1.5rem 1.5rem; }
.step-num {
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--teal); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; font-weight: 700; margin: 0 auto 1rem;
  font-family: 'Recoleta', Georgia, serif;
  box-shadow: 0 8px 20px rgba(28,31,76,0.15);
}
.steps .step:nth-child(1) .step-num { background: var(--teal); }
.steps .step:nth-child(2) .step-num { background: var(--coral); box-shadow: 0 8px 20px rgba(247,109,97,0.3); }
.steps .step:nth-child(3) .step-num { background: var(--gold); color: var(--navy); box-shadow: 0 8px 20px rgba(253,178,8,0.3); }
.steps .step:nth-child(4) .step-num { background: var(--navy); }
.step h3 { color: var(--navy); margin-bottom: 0.5rem; }

/* ── Team section ─────────────────────────────────────────────────── */
.team-photo { border-radius: 16px; overflow: hidden; }
.team-photo img { width: 100%; height: 380px; object-fit: cover; }
.bullet-list { list-style: none; margin-top: 1rem; }
.bullet-list li { padding: 6px 0; font-size: 0.95rem; color: var(--muted); display: flex; align-items: flex-start; gap: 10px; }
.bullet-list li::before { content: '✓'; color: var(--teal); font-weight: 700; flex-shrink: 0; }

/* ── CTA banner ───────────────────────────────────────────────────── */
.cta-banner {
  background: var(--teal); color: var(--white);
  text-align: center; padding: 40px 2rem;
}
.cta-banner h2 { color: var(--white); margin-bottom: 1rem; }
.cta-banner p { color: rgba(255,255,255,0.75); max-width: 520px; margin: 0 auto 2rem; }

/* ── Case study card ──────────────────────────────────────────────── */
.case-study {
  background: var(--white); border-radius: 20px; padding: 2rem;
  box-shadow: 0 4px 32px rgba(28,31,76,0.08); margin-bottom: 1.5rem;
  border: 1px solid #ede9df;
}
.case-study-label {
  display: inline-block;
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--white); background: var(--coral);
  padding: 5px 14px; border-radius: 50px; margin-bottom: 0.9rem;
}
.case-study h3 { color: var(--navy); font-size: 1.5rem; margin-bottom: 1.5rem; }
.case-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 2rem; padding: 1.25rem; background: var(--cream); border-radius: 12px; }
.case-meta-item label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--teal); display: block; margin-bottom: 2px; }
.case-meta-item span { font-size: 13px; font-weight: 600; color: var(--navy); }
.case-sections { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1.25rem; margin-bottom: 2rem; }
.case-section { background: #faf8f2; border: 1px solid #efece2; border-top: 3px solid var(--teal); border-radius: 12px; padding: 1.25rem 1.25rem 1.4rem; }
.case-section h4 { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--teal); margin-bottom: 0.5rem; font-family: 'Montserrat', sans-serif; }
.case-section p { font-size: 0.9rem; }
.case-sections .case-section:nth-child(1) { border-top-color: var(--coral); }
.case-sections .case-section:nth-child(1) h4 { color: var(--coral); }
.case-sections .case-section:nth-child(3) { border-top-color: var(--gold); }
.case-sections .case-section:nth-child(3) h4 { color: var(--gold); }

/* ── Pillars ──────────────────────────────────────────────────────── */
.pillars { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.5rem; margin-top: 1.75rem; }
.pillar { text-align: center; padding: 1.5rem 1rem; }
.pillar-num { width: 44px; height: 44px; border-radius: 50%; background: var(--coral); color: var(--white); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.1rem; margin: 0 auto 0.75rem; }
.pillar h3 { font-size: 13px; font-weight: 700; color: var(--navy); margin-bottom: 0.4rem; font-family: 'Montserrat', sans-serif; }
.pillar p { font-size: 12px; }

/* ── Contact form ─────────────────────────────────────────────────── */
.contact-info-item { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.5rem; }
.contact-icon { width: 48px; height: 48px; border-radius: 50%; background: var(--cream); display: flex; align-items: center; justify-content: center; font-size: 1.25rem; flex-shrink: 0; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-field { margin-bottom: 1rem; }
.form-field label { display: block; font-size: 12px; font-weight: 700; color: var(--navy); margin-bottom: 6px; letter-spacing: 0.02em; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; padding: 12px 16px; border: 1.5px solid #e2ddd4;
  border-radius: 10px; font-size: 14px; font-family: inherit;
  background: var(--white); color: var(--text); transition: border-color 0.15s;
}
.form-field input:focus, .form-field textarea:focus {
  outline: none; border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0,132,140,0.30);
}
.form-field textarea { resize: vertical; min-height: 100px; }

/* ── Footer ───────────────────────────────────────────────────────── */
footer {
  background: #ece8dd; color: var(--navy);
  padding: 40px 2rem 28px;
}
.footer-inner { max-width: 1100px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1.5rem; }
.footer-logo img { height: 46px; width: auto; }
.footer-links { display: flex; gap: 2rem; }
.footer-links a { font-size: 13px; color: var(--navy); font-weight: 600; }
.footer-links a:hover { color: var(--teal); }
.footer-copy { font-size: 12px; color: var(--muted); text-align: center; max-width: 1100px; margin: 2rem auto 0; padding-top: 1.5rem; border-top: 1px solid rgba(28,31,76,0.12); }

/* ── Page hero (inner pages) ──────────────────────────────────────── */
.page-hero {
  padding: 34px 2rem 40px;
  background: var(--cream);
  text-align: center;
}
.page-hero h1 { color: var(--navy); margin-bottom: 0.85rem; }
.page-hero p { max-width: 560px; margin: 0 auto 1.5rem; font-size: 1.05rem; }

/* ── Case Studies: intro image (introduces the case studies below) ─── */
.gap-image {
  border-radius: 20px; overflow: hidden;
  box-shadow: 0 16px 40px -12px rgba(28,31,76,0.22);
}
.gap-image img { width: 100%; height: auto; display: block; }

/* ── Gap callout panel ────────────────────────────────────────────── */
.gap-panel {
  background: var(--cream); border-radius: 22px; padding: 2rem 2.5rem;
  border-left: 7px solid var(--coral);
  box-shadow: 0 18px 40px -16px rgba(28,31,76,0.22);
}

/* ── Brand wave divider (cream fill on top, lines are the edge) ────── */
.wave-divider { line-height: 0; margin: 0; background: transparent; margin-bottom: -1px; }
.wave-divider img { width: 100%; height: 48px; display: block; }

/* ── Outline navy btn ─────────────────────────────────────────────── */
.btn-outline-navy { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline-navy:hover { background: var(--navy); color: var(--white); }

/* ── "What We Do" service cards (home page) ───────────────────────── */
.wd-services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-top: 2rem; }
.wd-service { display: flex; align-items: center; gap: 1rem; padding: 1.5rem 1.4rem; background: var(--white); border: 1px solid #ede9df; border-radius: 18px; }
.wd-services .wd-service:nth-child(1) { box-shadow: -4px -4px 0 0 var(--teal), 0 14px 26px -12px rgba(28,31,76,0.2); }
.wd-services .wd-service:nth-child(2) { box-shadow: -4px -4px 0 0 var(--coral), 0 14px 26px -12px rgba(28,31,76,0.2); }
.wd-services .wd-service:nth-child(3) { box-shadow: -4px -4px 0 0 var(--gold), 0 14px 26px -12px rgba(28,31,76,0.2); }
.wd-services .wd-service:nth-child(4) { box-shadow: -4px -4px 0 0 var(--navy), 0 14px 26px -12px rgba(28,31,76,0.2); }
.wd-service-icon { width: 56px; height: 56px; border-radius: 15px; display: flex; align-items: center; justify-content: center; font-size: 1.75rem; flex-shrink: 0; }
.wd-name { font-weight: 700; color: var(--navy); font-size: 15px; line-height: 1.25; }
.wd-sub { font-size: 12px; font-weight: 500; color: var(--muted); margin-top: 3px; line-height: 1.3; }

/* ── Contact layout ───────────────────────────────────────────────── */
.contact-layout {
  display: grid; grid-template-columns: 1fr 1.4fr;
  max-width: 1100px; margin: 0 auto;
  border-radius: 24px; overflow: hidden;
  border: 1px solid #ede9df; border-left: 7px solid var(--coral);
  box-shadow: 0 24px 56px -22px rgba(28,31,76,0.25);
}
.contact-left { background: var(--cream); padding: 3rem 2.75rem; }
.contact-right { background: var(--white); padding: 3rem 2.75rem; }

/* ── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 40px; padding-bottom: 90px; }
  .hero-waves img { height: 110px; }
  .hero-image { display: block; margin-top: 2.25rem; }
  .two-col { grid-template-columns: 1fr; }
  .outcome-card { grid-template-columns: 1fr; gap: 2rem; padding: 1.75rem; }
  .wd-services { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .gap-panel { padding: 1.75rem 1.5rem; }
  .two-col.reverse { direction: ltr; }
  .services-grid { grid-template-columns: 1fr; }
  .steps, .steps--4 { grid-template-columns: 1fr 1fr; }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .case-sections { grid-template-columns: 1fr; }
  .case-meta { grid-template-columns: 1fr 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .contact-left { padding: 3rem 1.5rem; }
  .contact-right { padding: 2rem 1.5rem; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open { display: flex; flex-direction: column; position: fixed; top: 84px; left: 0; right: 0; background: var(--white); padding: 1.5rem 2rem; box-shadow: 0 8px 24px rgba(28,31,76,0.12); gap: 1.25rem; }
}
@media (max-width: 500px) {
  .steps, .steps--4 { grid-template-columns: 1fr; }
  .wd-services { grid-template-columns: 1fr; }
}
