/* Doulat EducationWala — hand-written CSS3, no build step required. */
:root {
  --bg: #F8F7F3;
  --surface: #FFFFFF;
  --navy: #14263D;
  --navy-2: #1d3652;
  --teal: #187F80;
  --teal-dark: #126566;
  --gold: #D9B66F;
  --text: #1c2b3d;
  --muted: #5b6776;
  --line: #e4e1d7;
  --alt: #EFEDE5;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20,38,61,.06), 0 8px 24px rgba(20,38,61,.06);
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1.0625rem/1.65 var(--font-body); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-dark); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy); line-height: 1.18; margin: 0 0 .6em; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3, .h3 { font-size: 1.28rem; }
.h4 { font-size: 1.05rem; }
.h3 { font-family: var(--font-head); color: var(--navy); font-weight: 600; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
.wrap { width: min(1160px, 100% - 2rem); margin-inline: auto; }
.wrap.narrow { width: min(760px, 100% - 2rem); }
.narrow-center { width: min(980px, 100% - 2rem); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 0; }
.small { font-size: .9rem; }
.muted { color: var(--muted); }
.note { color: var(--muted); margin-top: 1.5rem; }
.eyebrow { font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; color: var(--teal-dark); margin-bottom: .9rem; }
.lead { font-size: 1.2rem; color: #33445a; }
.lead-sm { font-size: 1.08rem; color: #33445a; }
.empty { background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); padding: 1.4rem; color: var(--muted); }

/* Buttons */
.btn { display: inline-block; background: var(--teal-dark); color: #fff; text-decoration: none; font-weight: 700; padding: .85rem 1.4rem; border-radius: 999px; border: 2px solid var(--teal-dark); cursor: pointer; font: inherit; font-weight: 700; line-height: 1.2; transition: background .2s, color .2s, border-color .2s; }
.btn:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-sm { padding: .55rem 1.1rem; font-size: .95rem; }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-gold { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.btn-gold:hover { background: #fff; border-color: #fff; color: var(--navy); }
.link-arrow { font-weight: 700; text-decoration: none; }
.link-arrow::after { content: " →"; }
.link-arrow.back::after { content: none; }
.link-arrow.back::before { content: "← "; }
.link-arrow:hover { text-decoration: underline; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(248,247,243,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--navy); font-family: var(--font-head); font-size: 1.2rem; }
.brand b { font-weight: 600; color: var(--teal-dark); }
.brand-mark { width: 14px; height: 14px; background: var(--gold); border-radius: 50%; box-shadow: 0 0 0 4px rgba(217,182,111,.3); }
.site-nav ul { display: flex; gap: .3rem; list-style: none; margin: 0; padding: 0; align-items: center; }
.site-nav a { display: block; padding: .5rem .8rem; text-decoration: none; color: var(--navy); font-weight: 600; font-size: .96rem; border-radius: 8px; }
.site-nav a:hover { background: var(--alt); }
.site-nav a[aria-current="page"]:not(.btn) { color: var(--teal-dark); box-shadow: inset 0 -2px 0 var(--gold); border-radius: 0; }
.site-nav a.btn { color: #fff; padding: .55rem 1.1rem; }
.site-nav a.btn:hover { background: var(--navy); }
.nav-toggle { display: none; background: none; border: 0; padding: .6rem; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; transition: transform .2s, opacity .2s; }

/* Hero */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0; background: radial-gradient(1200px 500px at 85% -10%, rgba(24,127,128,.10), transparent 60%), var(--bg); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { margin-bottom: .5em; }
.hero .lead { max-width: 36em; }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.hero-photo, .about-photo { margin: 0; position: relative; }
.hero-photo img, .about-photo img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 28px; box-shadow: var(--shadow); border: 6px solid #fff; }
.hero-photo::after, .about-photo::after { content: ""; position: absolute; inset: 14px -14px -14px 14px; border: 2px solid var(--gold); border-radius: 28px; z-index: -1; }

/* Sections */
.section { padding: clamp(2.5rem, 5vw, 4.5rem) 0; }
.section.alt { background: var(--alt); }
.page-head { padding-bottom: 1rem; }
.section-title { margin-bottom: 1.2rem; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: .4rem; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.about-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 3rem; align-items: center; }
.role-line { font-weight: 700; color: var(--teal-dark); }

/* Cards & grids */
.grid { display: grid; gap: 1.2rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow); color: var(--text); text-decoration: none; display: block; transition: transform .2s, border-color .2s; }
a.card:hover { transform: translateY(-3px); border-color: var(--gold); color: var(--text); }
.card.plain { box-shadow: none; }
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.card img { border-radius: 10px; margin-bottom: 1rem; aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.card .meta, .meta { font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--teal-dark); margin-bottom: .5rem; }
.card h2.h3 a { color: var(--navy); text-decoration: none; }
.card h2.h3 a:hover { text-decoration: underline; }
.num { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--navy); color: var(--gold); font-weight: 700; margin-bottom: .8rem; }
.price { font-weight: 800; color: var(--teal-dark); font-size: 1.05rem; margin-bottom: .4rem; }
.badge { display: inline-block; font-size: .78rem; font-weight: 700; padding: .25rem .7rem; border-radius: 999px; background: var(--alt); color: var(--navy); margin-top: .6rem; }
.badge.ok { background: #dff2ee; color: #0f5b45; }
.principles h3 { font-size: 1.1rem; }

/* Mini timeline (home) */
.mini-timeline { list-style: none; margin: 0; padding: 0 0 0 1.4rem; border-left: 2px solid var(--gold); }
.mini-timeline li { padding: .5rem 0 .9rem; position: relative; }
.mini-timeline li::before { content: ""; position: absolute; left: -1.95rem; top: .95rem; width: 12px; height: 12px; background: var(--bg); border: 3px solid var(--teal); border-radius: 50%; }
.mini-timeline span { display: block; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--teal-dark); }

/* Full timeline */
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { display: grid; grid-template-columns: 9rem 1fr; gap: 1.5rem; padding: 1.4rem 0; border-top: 1px solid var(--line); }
.timeline li:last-child { border-bottom: 1px solid var(--line); }
.timeline .when { font-weight: 700; color: var(--teal-dark); }
.timeline h2 { font-size: 1.35rem; margin-bottom: .3em; }

/* Prose */
.prose { font-size: 1.08rem; }
.prose h2 { font-size: 1.5rem; margin-top: 1.8em; }
.prose h3 { font-size: 1.2rem; margin-top: 1.5em; }
.prose ul { margin: 0 0 1em; }
.prose li { margin-bottom: .35em; }
.wide-img { border-radius: var(--radius); margin: 1.5rem 0; width: 100%; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; margin: 1.2rem 0 1.5rem; }
.facts dt { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.facts dd { margin: .2rem 0 0; font-weight: 600; color: var(--navy); }
.tick-list { list-style: none; padding: 0; }
.tick-list li { padding: .5rem 0 .5rem 1.8rem; position: relative; border-bottom: 1px solid var(--line); }
.tick-list li::before { content: ""; position: absolute; left: 0; top: .95rem; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); }

/* Services */
.service-list { display: grid; gap: 1.2rem; margin-top: 1.2rem; }
.service { display: grid; grid-template-columns: 1fr 15rem; gap: 2rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; scroll-margin-top: 90px; }
.service h3 { font-size: 1.45rem; }
.service-side { border-left: 1px solid var(--line); padding-left: 1.5rem; align-self: start; }
.service-side .price { font-size: 1.3rem; }

/* Video & filters */
.video { position: relative; aspect-ratio: 16/9; margin: 0 0 1rem; border-radius: 10px; overflow: hidden; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.filters { display: flex; flex-wrap: wrap; gap: .7rem; margin-bottom: 1rem; }
.filters input, .filters select { font: inherit; padding: .7rem .9rem; border: 1px solid #c9c5b8; border-radius: 10px; background: #fff; min-width: 12rem; }
.filters input { flex: 1 1 16rem; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 0 0 1.4rem; }
.chips a { display: block; padding: .4rem 1rem; border: 1px solid var(--line); border-radius: 999px; background: #fff; text-decoration: none; font-weight: 600; font-size: .92rem; color: var(--navy); }
.chips a[aria-current] { background: var(--navy); color: #fff; border-color: var(--navy); }
.pager { display: flex; gap: .4rem; margin-top: 2rem; }
.pager a { padding: .45rem .9rem; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; background: #fff; }
.pager a[aria-current] { background: var(--navy); color: #fff; }

/* Forms */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2.5rem; align-items: start; }
.form .field { margin-bottom: 1.1rem; }
.form label { display: block; font-weight: 700; margin-bottom: .35rem; color: var(--navy); font-size: .96rem; }
.form .opt { font-weight: 500; color: var(--muted); }
.form input, .form select, .form textarea { width: 100%; font: inherit; padding: .8rem .95rem; border: 1px solid #b9b5a7; border-radius: 10px; background: #fff; color: var(--text); }
.form input:focus, .form select:focus, .form textarea:focus { outline: 3px solid rgba(217,182,111,.7); border-color: var(--teal); }
.form .invalid input, .form .invalid select, .form .invalid textarea { border-color: #b3261e; }
.err { color: #b3261e; font-size: .9rem; margin: .3rem 0 0; font-weight: 600; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.hp { position: absolute; left: -5000px; height: 0; overflow: hidden; }
.alert { padding: 1rem 1.2rem; border-radius: 10px; margin-bottom: 1.2rem; }
.alert.ok { background: #e3f4ee; color: #0f5b45; border: 1px solid #b5e0d1; }
.alert.err { background: #fdecea; color: #8a1c14; border: 1px solid #f3c1bc; }
.side-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); position: sticky; top: 90px; }

/* CTA & footer */
.cta-band { background: var(--navy); color: #fff; padding: 3rem 0; }
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { color: #c9d4e0; margin: 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.site-footer { background: #0e1b2c; color: #e7edf4; padding: 3rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.footer-brand { font-family: var(--font-head); font-size: 1.4rem; margin-bottom: .3rem; }
.footer-brand b { color: var(--gold); font-weight: 600; }
.footer-h { font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; color: var(--gold); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .45rem; }
.site-footer a { color: #e7edf4; text-decoration: none; }
.site-footer a:hover { color: var(--gold); text-decoration: underline; }
.muted-on-dark { color: #b3c0cf; }
.footer-note { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2rem; padding-top: 1.2rem; }

/* Responsive */
@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .contact-grid, .split, .about-grid { grid-template-columns: 1fr; }
  .side-card { position: static; }
  .service { grid-template-columns: 1fr; }
  .service-side { border-left: 0; border-top: 1px solid var(--line); padding: 1rem 0 0; }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line); display: none; padding: .5rem 1rem 1rem; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav a { padding: .8rem .4rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .site-nav a.btn { margin-top: .8rem; text-align: center; border-radius: 999px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { order: 2; max-width: 460px; }
  .hero-photo::after, .about-photo::after { inset: 10px -8px -10px 8px; }
  .footer-grid { grid-template-columns: 1fr; }
  .timeline li { grid-template-columns: 1fr; gap: .3rem; }
}
@media (max-width: 600px) {
  .grid-3, .grid-4, .row2 { grid-template-columns: 1fr; }
  body { font-size: 1rem; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
