/* ===========================================================
   Joyfulearner — Child & Adolescent Development Consultancy
   Shared stylesheet
   =========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  --bg:            #f9f1e4;
  --panel:         #fdf8ef;
  --panel-2:       #fbf4e6;
  --accent:        #2d7dd2;
  --accent-dark:   #245fa0;
  --accent-soft:   #e7f0fb;
  --ink:           #1c2330;
  --ink-soft:      #4a5263;
  --ink-faint:     #7a8194;
  --line:          #e6dcc8;
  --white:         #ffffff;
  --radius:        18px;
  --radius-sm:     12px;
  --maxw:          1180px;
  --shadow-sm:     0 1px 3px rgba(28,35,48,.06), 0 4px 16px rgba(28,35,48,.04);
  --shadow-md:     0 8px 30px rgba(28,35,48,.08);
  --shadow-lg:     0 24px 60px rgba(28,35,48,.14);
  --ease:          cubic-bezier(.22,1,.36,1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Outfit', system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-weight: 400;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

::selection { background: var(--accent); color: #fff; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--ink);
}

h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.3rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); font-weight: 500; }

.eyebrow {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-block;
  margin-bottom: 1.1rem;
}

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
  color: var(--ink-soft);
  font-weight: 300;
  line-height: 1.7;
}

/* ---------- Navigation ---------- */
.nav {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 26px 0;
}
.nav.solid {
  position: sticky;
  background: rgba(249,241,228,.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 1.32rem;
  letter-spacing: -.02em;
}
.brand .mark {
  width: 38px; height: 38px;
  border-radius: 11px;
  background: var(--accent);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(45,125,210,.35);
}
.brand .mark svg { width: 21px; height: 21px; }
.nav.light .brand { color: #fff; }
.nav.light .brand .mark { background: #fff; }
.nav.light .brand .mark svg path { fill: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 38px;
  list-style: none;
}
.nav-links a {
  font-size: .98rem;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding: 4px 0;
  transition: color .25s var(--ease);
}
.nav.light .nav-links a { color: rgba(255,255,255,.85); }
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width .3s var(--ease);
}
.nav.light .nav-links a::after { background: #fff; }
.nav-links a:hover,
.nav-links a.active { color: var(--accent); }
.nav.light .nav-links a:hover,
.nav.light .nav-links a.active { color: #fff; }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--accent);
  color: #fff !important;
  padding: 13px 26px;
  border-radius: 100px;
  font-weight: 600;
  font-size: .96rem;
  border: none;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
  box-shadow: 0 6px 20px rgba(45,125,210,.32);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(45,125,210,.42); background: var(--accent-dark); }
.btn.ghost {
  background: transparent;
  color: var(--accent) !important;
  box-shadow: none;
  border: 1.5px solid var(--accent);
}
.btn.ghost:hover { background: var(--accent); color: #fff !important; }
.btn.white {
  background: #fff;
  color: var(--accent) !important;
  box-shadow: 0 6px 20px rgba(0,0,0,.18);
}
.btn.white:hover { background: #fff; color: var(--accent-dark) !important; }

.nav-toggle {
  display: none;
  background: none; border: none;
  cursor: pointer;
  width: 30px; height: 24px;
  position: relative;
}
.nav-toggle span {
  position: absolute; left: 0;
  width: 100%; height: 2.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: .3s var(--ease);
}
.nav.light .nav-toggle span { background: #fff; }
.nav-toggle span:nth-child(1) { top: 2px; }
.nav-toggle span:nth-child(2) { top: 11px; }
.nav-toggle span:nth-child(3) { top: 20px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(110deg, rgba(20,35,55,.78) 0%, rgba(20,35,55,.5) 45%, rgba(20,35,55,.25) 100%);
}
.hero-inner {
  position: relative;
  z-index: 10;
  width: 100%;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 70px;
  align-items: center;
  padding: 150px 0 90px;
}
.hero-copy { color: #fff; }
.hero-copy .eyebrow { color: #fff; opacity: .9; }
.hero-copy h1 {
  color: #fff;
  margin-bottom: 1.5rem;
}
.hero-copy h1 .hl { color: #9ec8f0; }
.hero-copy p {
  font-size: 1.18rem;
  font-weight: 300;
  color: rgba(255,255,255,.9);
  max-width: 540px;
  margin-bottom: 2.4rem;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* Glass booking form */
.glass-form {
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 24px;
  padding: 38px 34px;
  box-shadow: 0 30px 70px rgba(0,0,0,.3);
}
.glass-form h3 {
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 6px;
}
.glass-form p.sub {
  color: rgba(255,255,255,.78);
  font-size: .95rem;
  font-weight: 300;
  margin-bottom: 26px;
}
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: rgba(255,255,255,.88);
  margin-bottom: 7px;
  text-transform: uppercase;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 11px;
  padding: 13px 15px;
  font-family: inherit;
  font-size: .96rem;
  color: #fff;
  transition: border .25s, background .25s;
}
.field input::placeholder,
.field textarea::placeholder { color: rgba(255,255,255,.6); }
.field select option { color: var(--ink); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: #fff;
  background: rgba(255,255,255,.24);
}
.glass-form .btn { width: 100%; justify-content: center; margin-top: 8px; }
.form-note {
  text-align: center;
  font-size: .82rem;
  color: rgba(255,255,255,.7);
  margin-top: 14px;
  font-weight: 300;
}

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding: 110px 0; }
.section.tight { padding: 80px 0; }
.section.panel { background: var(--panel); }
.section.panel-2 { background: var(--panel-2); }

.section-head {
  max-width: 720px;
  margin-bottom: 64px;
}
.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section-head h2 { margin-bottom: 1.1rem; }

/* ---------- Stats strip ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  padding: 56px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat { text-align: center; }
.stat .num {
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 600;
  color: var(--accent);
  letter-spacing: -.03em;
  line-height: 1;
}
.stat .label {
  margin-top: 10px;
  font-size: .92rem;
  color: var(--ink-soft);
  font-weight: 400;
}

/* ---------- Feature grid ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 38px 32px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.card .ico {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--accent-soft);
  display: grid;
  place-items: center;
  margin-bottom: 22px;
}
.card .ico svg { width: 25px; height: 25px; stroke: var(--accent); }
.card h3 { margin-bottom: 12px; }
.card p { color: var(--ink-soft); font-size: .98rem; font-weight: 300; }

/* ---------- Split / image+text ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.split.reverse .split-media { order: 2; }
.split-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3.4;
  box-shadow: var(--shadow-lg);
}
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-copy h2 { margin-bottom: 1.4rem; }
.split-copy p { color: var(--ink-soft); font-weight: 300; margin-bottom: 1.1rem; }
.split-badge {
  position: absolute;
  bottom: 22px; left: 22px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  padding: 14px 20px;
  border-radius: 14px;
  font-size: .9rem;
  font-weight: 500;
  box-shadow: var(--shadow-sm);
}

.tick-list { list-style: none; margin-top: 1.6rem; }
.tick-list li {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-bottom: 14px;
  color: var(--ink-soft);
  font-weight: 300;
}
.tick-list li svg {
  flex-shrink: 0;
  width: 22px; height: 22px;
  margin-top: 2px;
}

/* ---------- Quote block ---------- */
.quote-block {
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius);
  padding: 80px 70px;
  position: relative;
  overflow: hidden;
}
.quote-block::before {
  content: '“';
  position: absolute;
  top: -30px; left: 40px;
  font-size: 16rem;
  font-weight: 700;
  color: rgba(255,255,255,.13);
  line-height: 1;
}
.quote-block p {
  position: relative;
  font-size: clamp(1.4rem, 2.6vw, 2.05rem);
  font-weight: 300;
  line-height: 1.45;
  letter-spacing: -.02em;
  max-width: 880px;
}

/* ---------- Services accordion-style blocks ---------- */
.svc-block {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 40px;
  padding: 56px 0;
  border-top: 1px solid var(--line);
}
.svc-block:last-child { border-bottom: 1px solid var(--line); }
.svc-num {
  font-size: 3rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: -.04em;
  line-height: 1;
}
.svc-block h3 {
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  font-weight: 500;
  margin-bottom: 4px;
}
.svc-block .aud {
  color: var(--accent);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .02em;
  margin-bottom: 14px;
}
.svc-block > div > p.intro {
  color: var(--ink-soft);
  font-weight: 300;
  max-width: 720px;
  margin-bottom: 30px;
}
.svc-items {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.svc-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 26px 26px;
  transition: box-shadow .3s var(--ease), transform .3s var(--ease);
}
.svc-item:hover { box-shadow: var(--shadow-sm); transform: translateY(-3px); }
.svc-item h4 {
  font-size: 1.12rem;
  font-weight: 600;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.svc-item h4::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
.svc-item p { font-size: .94rem; color: var(--ink-soft); font-weight: 300; }

/* ---------- Testimonials ---------- */
.test-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.test-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 42px 40px;
  display: flex;
  flex-direction: column;
}
.stars { display: flex; gap: 4px; margin-bottom: 22px; }
.stars svg { width: 19px; height: 19px; fill: var(--accent); }
.test-card .body {
  font-size: 1.04rem;
  font-weight: 300;
  color: var(--ink);
  line-height: 1.72;
  flex-grow: 1;
}
.test-card .who {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.test-card .who strong {
  display: block;
  font-weight: 600;
  font-size: .98rem;
}
.test-card .who span {
  font-size: .88rem;
  color: var(--ink-faint);
  font-weight: 300;
}

/* ---------- Page banner (inner pages) ---------- */
.page-banner {
  position: relative;
  padding: 180px 0 90px;
  overflow: hidden;
}
.page-banner .pb-bg { position: absolute; inset: 0; z-index: 1; }
.page-banner .pb-bg img { width: 100%; height: 100%; object-fit: cover; }
.page-banner .pb-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(20,35,55,.82), rgba(20,35,55,.55));
}
.page-banner .pb-inner { position: relative; z-index: 10; color: #fff; max-width: 760px; }
.page-banner .crumb {
  font-size: .85rem;
  color: rgba(255,255,255,.78);
  font-weight: 400;
  margin-bottom: 18px;
  letter-spacing: .03em;
}
.page-banner .crumb a:hover { color: #fff; }
.page-banner h1 { color: #fff; margin-bottom: 1.1rem; }
.page-banner p { color: rgba(255,255,255,.9); font-size: 1.15rem; font-weight: 300; max-width: 600px; }

/* ---------- Founder ---------- */
.founder {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 70px;
  align-items: center;
}
.founder-photo {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3 / 3.6;
  box-shadow: var(--shadow-lg);
}
.founder-photo img { width: 100%; height: 100%; object-fit: cover; }
.founder-copy .eyebrow { margin-bottom: .8rem; }
.founder-copy h2 { margin-bottom: .4rem; }
.founder-copy .role {
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 1.6rem;
  font-size: 1.02rem;
}
.founder-copy p { color: var(--ink-soft); font-weight: 300; margin-bottom: 1.1rem; }

.cred-list { list-style: none; margin-top: 1.8rem; display: grid; gap: 18px; }
.cred-list li {
  display: flex; gap: 16px;
  padding: 18px 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.cred-list li .cd { font-size: .88rem; color: var(--ink-soft); font-weight: 300; }
.cred-list li .ct { font-weight: 600; font-size: 1rem; margin-bottom: 3px; }

/* ---------- Mission / Vision cards ---------- */
.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.mv-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 46px 42px;
  position: relative;
}
.mv-card .mv-ico {
  width: 54px; height: 54px;
  border-radius: 15px;
  background: var(--accent-soft);
  display: grid; place-items: center;
  margin-bottom: 24px;
}
.mv-card .mv-ico svg { width: 26px; height: 26px; stroke: var(--accent); }
.mv-card h3 { font-size: 1.45rem; margin-bottom: 14px; }
.mv-card p { color: var(--ink-soft); font-weight: 300; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 70px;
  align-items: start;
}
.contact-info h2 { margin-bottom: 1.2rem; }
.contact-info > p { color: var(--ink-soft); font-weight: 300; margin-bottom: 2.4rem; }
.ci-item {
  display: flex;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.ci-item:first-of-type { border-top: 1px solid var(--line); }
.ci-item .ci-ico {
  width: 46px; height: 46px;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--accent-soft);
  display: grid; place-items: center;
}
.ci-item .ci-ico svg { width: 21px; height: 21px; stroke: var(--accent); }
.ci-item .ci-label {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--ink-faint);
  font-weight: 600;
  margin-bottom: 4px;
}
.ci-item .ci-val { font-weight: 500; font-size: 1.05rem; }
.ci-item .ci-val a:hover { color: var(--accent); }

.contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 48px 44px;
  box-shadow: var(--shadow-sm);
}
.contact-form h3 { margin-bottom: 6px; }
.contact-form .cf-sub { color: var(--ink-soft); font-weight: 300; font-size: .96rem; margin-bottom: 30px; }
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form .field label { color: var(--ink-soft); }
.contact-form .field input,
.contact-form .field select,
.contact-form .field textarea {
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--ink);
}
.contact-form .field input::placeholder,
.contact-form .field textarea::placeholder { color: var(--ink-faint); }
.contact-form .field input:focus,
.contact-form .field select:focus,
.contact-form .field textarea:focus {
  border-color: var(--accent);
  background: #fff;
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form .btn { width: 100%; justify-content: center; margin-top: 6px; }

.form-success {
  display: none;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  color: var(--accent-dark);
  padding: 14px 18px;
  border-radius: 11px;
  font-size: .94rem;
  font-weight: 500;
  margin-top: 16px;
}
.form-success.show { display: block; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--accent);
  border-radius: var(--radius);
  padding: 72px 60px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-band::after {
  content: '';
  position: absolute;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  top: -160px; right: -120px;
}
.cta-band h2 { color: #fff; margin-bottom: 1rem; position: relative; }
.cta-band p { color: rgba(255,255,255,.9); font-weight: 300; max-width: 560px; margin: 0 auto 2rem; position: relative; }
.cta-band .btn { position: relative; }

/* ---------- Footer ---------- */
.footer {
  background: #1c2330;
  color: rgba(255,255,255,.7);
  padding: 76px 0 36px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 50px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer .brand { color: #fff; margin-bottom: 18px; }
.footer .brand .mark { background: var(--accent); }
.footer-about { font-size: .95rem; font-weight: 300; line-height: 1.7; max-width: 320px; }
.footer h4 {
  color: #fff;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 600;
  margin-bottom: 20px;
}
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 12px; }
.footer ul li a {
  font-size: .95rem;
  font-weight: 300;
  transition: color .25s;
}
.footer ul li a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  font-size: .88rem;
  font-weight: 300;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 44px; padding: 130px 0 70px; }
  .split { grid-template-columns: 1fr; gap: 44px; }
  .split.reverse .split-media { order: 0; }
  .founder { grid-template-columns: 1fr; gap: 44px; }
  .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .feature-grid { grid-template-columns: 1fr; }
  .test-grid { grid-template-columns: 1fr; }
  .mv-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 36px; }
  .svc-block { grid-template-columns: 1fr; gap: 18px; padding: 44px 0; }
  .svc-items { grid-template-columns: 1fr; }
  .quote-block { padding: 56px 38px; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .wrap { padding: 0 22px; }
  .section { padding: 76px 0; }
  .nav-links {
    position: fixed;
    inset: 0;
    background: var(--bg);
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    transform: translateX(100%);
    transition: transform .4s var(--ease);
    z-index: 40;
  }
  .nav-links.open { transform: none; }
  .nav-links a { font-size: 1.3rem; color: var(--ink) !important; }
  .nav-toggle { display: block; z-index: 60; }
  .nav .btn { display: none; }
  .cf-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 30px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .quote-block { padding: 44px 26px; }
  .quote-block::before { font-size: 10rem; top: -10px; left: 18px; }
  .contact-form, .test-card, .mv-card { padding: 32px 26px; }
}

/* ---------- Testimonials (homepage feature) ---------- */
.t-feature {
  display: grid;
  grid-template-columns: 1.6fr .9fr;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 28px;
}
.t-feature-quote { padding: 54px 52px; }
.q-ico { width: 46px; height: 46px; fill: var(--accent); opacity: .9; margin-bottom: 22px; }
.t-feature-quote blockquote p {
  font-size: clamp(1.08rem, 1.6vw, 1.22rem);
  font-weight: 300;
  line-height: 1.7;
  color: var(--ink);
  margin-bottom: 1rem;
}
.t-who {
  display: flex; align-items: center; gap: 16px;
  margin-top: 30px; padding-top: 24px;
  border-top: 1px solid var(--line);
}
.t-who strong { display: block; font-weight: 600; }
.t-who span { font-size: .9rem; color: var(--ink-faint); font-weight: 300; }
.t-avatar {
  width: 50px; height: 50px; flex-shrink: 0;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid; place-items: center;
  font-weight: 600; font-size: .95rem; letter-spacing: .04em;
}
.t-avatar.lg { width: 62px; height: 62px; font-size: 1.1rem; }
.t-feature-stat {
  background: var(--accent);
  color: #fff;
  padding: 54px 44px;
  display: flex; flex-direction: column; justify-content: center;
  position: relative; overflow: hidden;
}
.t-feature-stat::after {
  content: ''; position: absolute;
  width: 280px; height: 280px; border-radius: 50%;
  background: rgba(255,255,255,.08);
  bottom: -120px; right: -100px;
}
.t-big { font-size: clamp(3.6rem, 7vw, 5.4rem); font-weight: 600; line-height: 1; letter-spacing: -.04em; margin-bottom: 18px; }
.t-feature-stat p { font-weight: 300; line-height: 1.6; color: rgba(255,255,255,.92); position: relative; z-index: 1; }
.t-src { margin-top: 20px; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.7); font-weight: 500; position: relative; z-index: 1; }

.t-case {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 50px 52px;
  box-shadow: var(--shadow-sm);
}
.t-case-head { display: flex; align-items: center; gap: 20px; margin-bottom: 36px; }
.t-tag { font-size: .76rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }
.t-case-head h3 { margin: 4px 0 2px; }
.t-org { font-size: .92rem; color: var(--ink-faint); font-weight: 300; }
.t-case-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.t-part {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 34px 32px;
}
.t-part-label {
  display: inline-block;
  font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent-dark); background: var(--accent-soft);
  padding: 6px 12px; border-radius: 100px; margin-bottom: 18px;
}
.t-part blockquote {
  font-size: 1.05rem; font-weight: 300; line-height: 1.7; color: var(--ink);
  border-left: 3px solid var(--accent); padding-left: 18px; margin-bottom: 26px;
}
.t-part h4 { font-size: 1rem; font-weight: 600; letter-spacing: -.01em; }
.t-part .tick-list { margin-top: 14px; }
.t-part .tick-list li { margin-bottom: 10px; font-size: .96rem; }

@media (max-width: 980px) {
  .t-feature { grid-template-columns: 1fr; }
  .t-case-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .t-feature-quote, .t-feature-stat, .t-case { padding: 34px 26px; }
  .t-part { padding: 26px 22px; }
  .t-case-head { align-items: flex-start; }
}

/* ---------- Logo ---------- */
.brand-logo { height: 58px; width: auto; display: block; }
.footer .brand-logo { height: 54px; margin-bottom: 18px; }
.nav { padding: 18px 0; }

/* ---------- Nav button sizing ---------- */
.nav-links { gap: 34px; }
.nav-links .btn {
  white-space: nowrap;
  padding: 14px 30px;
  font-size: .98rem;
  min-width: max-content;
}
.nav-links a.btn::after { display: none; }
.nav-links a.btn,
.nav-links a.btn:hover { color: #fff !important; padding: 14px 30px; }
.nav.light .nav-links a.btn { background: #fff; color: var(--accent) !important; }
.nav.light .nav-links a.btn:hover { color: var(--accent-dark) !important; }

/* ---------- Photo gallery (home) ---------- */
.gallery {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: 260px 260px;
  gap: 18px;
}
.gallery figure { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery figure:hover img { transform: scale(1.04); }
.g-a { grid-column: 1; grid-row: 1 / 3; }
.g-b { grid-column: 2; grid-row: 1 / 3; }
.g-b img { object-position: center 25%; }
.g-c { grid-column: 3; grid-row: 1; }
.g-d { grid-column: 3; grid-row: 2; }

/* ---------- Photo strip (about) ---------- */
.photo-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.photo-strip figure { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--shadow-sm); }
.photo-strip img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Cards with photos (services) ---------- */
.card.has-photo { padding-top: 0; overflow: hidden; }
.card-photo { margin: 0 -32px 26px; aspect-ratio: 16 / 10; overflow: hidden; }
.card-photo img { width: 100%; height: 100%; object-fit: cover; }

/* Photo banners need a slightly stronger overlay for legibility */
.hero-bg::after { background: linear-gradient(110deg, rgba(20,35,55,.85) 0%, rgba(20,35,55,.6) 50%, rgba(20,35,55,.4) 100%); }

@media (max-width: 1100px) {
  .nav-links {
    position: fixed; inset: 0;
    background: var(--bg);
    flex-direction: column; justify-content: center;
    gap: 30px;
    transform: translateX(100%);
    transition: transform .4s var(--ease);
    z-index: 40;
  }
  .nav-links.open { transform: none; }
  .nav-links a { font-size: 1.3rem; color: var(--ink) !important; }
  .nav.light .nav-links a.btn, .nav-links a.btn { background: var(--accent); color: #fff !important; }
  .nav-toggle { display: block; z-index: 60; }
  .nav-links.open ~ .nav-toggle span, .nav-toggle.open span { background: var(--ink); }
}
@media (max-width: 980px) {
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 240px 240px 240px; }
  .g-a { grid-column: 1 / 3; grid-row: 1; }
  .g-b { grid-column: 1; grid-row: 2 / 4; }
  .g-c { grid-column: 2; grid-row: 2; }
  .g-d { grid-column: 2; grid-row: 3; }
  .photo-strip { grid-template-columns: 1fr 1fr; }
  .photo-strip figure:last-child { grid-column: 1 / 3; aspect-ratio: 16 / 7; }
}
@media (max-width: 680px) {
  .brand-logo { height: 44px; }
  .nav .btn { display: inline-flex; }
  .gallery { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-rows: 220px; }
  .g-a, .g-b, .g-c, .g-d { grid-column: 1; grid-row: auto; }
  .photo-strip { grid-template-columns: 1fr; }
  .photo-strip figure:last-child { grid-column: 1; aspect-ratio: 4 / 3; }
  .card-photo { margin: 0 -26px 22px; }
}
@media (max-width: 1100px) {
  .nav .nav-toggle.open span { background: var(--ink); }
  .nav .nav-links a::after { background: var(--accent) !important; }
  .nav .nav-toggle.open span:nth-child(1) { top: 11px; transform: rotate(45deg); }
  .nav .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav .nav-toggle.open span:nth-child(3) { top: 11px; transform: rotate(-45deg); }
}
.photo-strip figure:last-child img { object-position: center 70%; }
.g-d img { object-position: 30% center; }

/* ---------- Hero slideshow ---------- */
.hero-slide {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.4s ease;
}
.hero-slide.active { opacity: 1; animation: kenburns 7s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.06); } to { transform: scale(1); } }
.hero-dots {
  position: absolute; z-index: 12;
  left: 50%; bottom: 28px; transform: translateX(-50%);
  display: flex; gap: 10px;
}
.hero-dots button {
  width: 10px; height: 10px; border-radius: 100px;
  border: none; padding: 0; cursor: pointer;
  background: rgba(255,255,255,.45);
  transition: width .35s var(--ease), background .35s;
}
.hero-dots button.on { width: 30px; background: #fff; }
@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: none; }
  .hero-slide.active { animation: none; }
}

/* ---------- Form states ---------- */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.form-error {
  display: none;
  background: #fdecec; border: 1px solid #e0a3a3; color: #8a2b2b;
  padding: 14px 18px; border-radius: 11px;
  font-size: .94rem; font-weight: 500; margin-top: 16px;
}
.form-error a { text-decoration: underline; }
.form-error.show { display: block; }
form[data-form] button[disabled] { opacity: .7; cursor: wait; }

/* ---------- Media page ---------- */
.media-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.media-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
}
.media-player { position: relative; aspect-ratio: 3 / 2; background: #10161f; }
.media-player video { width: 100%; height: 100%; object-fit: contain; display: block; background: #10161f; }
.media-play {
  position: absolute; inset: 0; margin: auto;
  width: 78px; height: 78px; border-radius: 50%;
  border: none; cursor: pointer;
  background: rgba(45,125,210,.92);
  display: grid; place-items: center;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  transition: transform .3s var(--ease), background .3s;
}
.media-play:hover { transform: scale(1.08); background: var(--accent-dark); }
.media-play svg { width: 32px; height: 32px; fill: #fff; margin-left: 4px; }
.media-player.playing .media-play, .media-player.playing .media-dur { display: none; }
.media-dur {
  position: absolute; right: 14px; bottom: 14px;
  background: rgba(0,0,0,.7); color: #fff;
  font-size: .82rem; font-weight: 500;
  padding: 4px 10px; border-radius: 6px;
}
.media-body { padding: 30px 32px 34px; }
.media-show {
  display: inline-block;
  font-size: .76rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 10px;
}
.media-body h3 { margin-bottom: 10px; }
.media-body p { color: var(--ink-soft); font-weight: 300; font-size: .98rem; }
@media (max-width: 980px) { .media-grid { grid-template-columns: 1fr; } }
@media (max-width: 680px) { .media-body { padding: 24px 22px 28px; } .hero-dots { bottom: 18px; } }
