/* Mayura Technical Institute — Design System
   Pastel light palette (periwinkle + apricot), editorial serif headlines evoking
   the institute's 1985 typewriting heritage. Deliberately single-theme: no dark mode. */

:root, :root[data-theme="dark"], :root[data-theme="light"] {
  --bg: #fbf7f1;
  --surface: #ffffff;
  --surface-2: #f2eefa;
  --ink: #3d3a4d;
  --muted: #837e97;
  --navy: #7484c2;
  --navy-ink: #56629c;
  --navy-soft: #c3cdef;
  --navy-deep: #4f5c93;
  --brass: #eab06a;
  --brass-ink: #a9702f;
  --brass-soft: #f3cd97;
  --peacock: #3d3568;
  --line: #ece4f5;
  --good: #6bab86;
  --good-bg: #e6f4ea;
  --shadow-sm: 0 1px 2px rgba(116, 106, 160, 0.08);
  --shadow-md: 0 4px 14px rgba(116, 106, 160, 0.12), 0 1px 3px rgba(116, 106, 160, 0.08);
  --shadow-lg: 0 20px 48px rgba(101, 92, 148, 0.16), 0 4px 12px rgba(101, 92, 148, 0.1);
  --radius: 6px;
  --radius-lg: 14px;
  --display: "Fraunces", Georgia, "Iowan Old Style", serif;
  --sans: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Consolas, "Courier New", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--navy-ink); text-decoration-color: color-mix(in srgb, var(--navy-ink) 40%, transparent); }
a:hover { text-decoration-color: var(--navy-ink); }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 2px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }

/* Type scale */
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; color: var(--ink); text-wrap: balance; line-height: 1.12; margin: 0 0 0.5em; font-optical-sizing: auto; }
h1 { font-size: clamp(38px, 5.6vw, 64px); font-weight: 560; letter-spacing: -0.015em; }
h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 560; }
h3 { font-size: 23px; font-weight: 600; }
p { margin: 0 0 1em; max-width: 68ch; }
.lede { font-size: 19.5px; color: var(--muted); max-width: 56ch; line-height: 1.55; }
.eyebrow {
  font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--brass-ink); display: flex; align-items: center; gap: 10px; margin: 0 0 16px; font-weight: 500;
}
.eyebrow::before { content: ""; width: 28px; height: 1.5px; background: linear-gradient(90deg, var(--brass), transparent); }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s cubic-bezier(.2,.7,.3,1), transform 0.6s cubic-bezier(.2,.7,.3,1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > * { animation: none; }

/* Icons (stroke-based, replaces emoji) */
.icon-svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round; display: block; }

/* Header / Nav */
header.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px) saturate(1.1);
  border-bottom: 1px solid var(--line);
}
.nav-inner { max-width: 1160px; margin: 0 auto; padding: 17px 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; line-height: 1; }
.brand-mark { width: 34px; height: 34px; flex: 0 0 auto; color: var(--peacock); }
.brand-text { display: flex; flex-direction: column; }
.brand .wordmark { font-family: var(--display); font-size: 21px; font-weight: 600; color: var(--navy-ink); letter-spacing: 0.01em; }
.brand .tagline { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
nav.primary-nav { display: flex; align-items: center; gap: 30px; }
nav.primary-nav a { font-size: 15px; color: var(--ink); text-decoration: none; font-weight: 500; position: relative; }
nav.primary-nav a:not(.btn) { padding: 4px 0; }
nav.primary-nav a[aria-current="page"] { color: var(--brass-ink); }
nav.primary-nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 1.5px; background: var(--brass); transition: right 0.2s ease; }
nav.primary-nav a:not(.btn):hover::after { right: 0; }
nav.primary-nav a:hover { color: var(--brass-ink); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 10px; }
@media (max-width: 860px) {
  nav.primary-nav { position: fixed; inset: 65px 0 0 0; background: var(--bg); flex-direction: column; align-items: flex-start; padding: 28px 24px; gap: 20px; transform: translateX(100%); transition: transform 0.3s cubic-bezier(.2,.7,.3,1); border-top: 1px solid var(--line); overflow-y: auto; }
  nav.primary-nav.open { transform: translateX(0); }
  .nav-toggle { display: block; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 9px; font-family: var(--sans); font-weight: 600; font-size: 15px;
  padding: 15px 26px; border-radius: 8px; text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, filter 0.15s ease, border-color 0.15s ease;
  -webkit-user-drag: none; user-drag: none; user-select: none; -webkit-user-select: none;
}
.btn-primary { background: var(--navy-deep); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { filter: brightness(1.1); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-brass { background: var(--brass); color: #3d2405; box-shadow: var(--shadow-sm); }
.btn-brass:hover { background: var(--brass-ink); color: #fff; filter: brightness(1.04); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy); transform: translateY(-1px); }
.btn-sm { padding: 10px 20px; font-size: 13px; border-radius: 7px; }
.btn svg { width: 16px; height: 16px; }

/* Hero */
.hero { padding: 88px 0 72px; border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 50% at 82% 8%, color-mix(in srgb, var(--brass) 12%, transparent), transparent 70%),
    radial-gradient(45% 40% at 6% 90%, color-mix(in srgb, var(--navy) 8%, transparent), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-figure {
  aspect-ratio: 4/3.1; border-radius: var(--radius-lg); overflow: hidden; position: relative;
  background: linear-gradient(160deg, var(--navy-soft) 0%, var(--surface-2) 100%);
  box-shadow: var(--shadow-lg);
}
.hero-figure svg { width: 100%; height: 100%; }

/* Stat strip */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--line); gap: 1px; margin: 44px 0; box-shadow: var(--shadow-sm); }
.stat { background: var(--surface); padding: 24px 22px; transition: background-color 0.2s ease; }
.stat:hover { background: var(--surface-2); }
.stat .n { font-family: var(--mono); font-size: 30px; font-weight: 600; color: var(--brass-ink); font-variant-numeric: tabular-nums; }
.stat .l { font-size: 13px; color: var(--muted); margin-top: 5px; }

/* Section */
section.block { padding: 72px 0; }
section.block.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 640px; margin: 0 0 44px; }

/* Cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  display: flex; flex-direction: column; transition: transform 0.22s cubic-bezier(.2,.7,.3,1), box-shadow 0.22s ease, border-color 0.22s ease;
  position: relative;
}
.card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--brass), var(--navy)); transform: scaleX(0); transform-origin: left; transition: transform 0.3s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--brass) 40%, var(--line)); }
.card:hover::before { transform: scaleX(1); }
.card-media { aspect-ratio: 16/10; background: var(--surface-2); position: relative; }
.card-media svg { width: 100%; height: 100%; }
.card-body { padding: 24px; display: flex; flex-direction: column; gap: 11px; flex: 1; }
.card-body h3 { font-size: 20px; margin: 0; }
.card-body p { font-size: 14.5px; color: var(--muted); margin: 0; flex: 1; }
.tag-row { display: flex; flex-wrap: wrap; gap: 7px; }
.tag {
  font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.04em;
  padding: 5px 10px; border-radius: 999px; background: var(--good-bg); color: var(--good);
}
.card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.duration { font-family: var(--mono); font-size: 12.5px; color: var(--muted); }

/* Why choose / icon list */
.feature-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 36px; }
@media (max-width: 700px) { .feature-list { grid-template-columns: 1fr; } }
.feature { display: flex; gap: 18px; }
.feature .icon {
  flex: 0 0 auto; width: 46px; height: 46px; border-radius: 12px;
  background: linear-gradient(160deg, var(--good-bg), color-mix(in srgb, var(--good-bg) 60%, var(--surface)));
  color: var(--good); border: 1px solid color-mix(in srgb, var(--good) 20%, transparent);
  display: flex; align-items: center; justify-content: center;
}
.feature h4 { font-family: var(--sans); font-size: 16.5px; font-weight: 700; margin: 0 0 5px; color: var(--ink); }
.feature p { font-size: 14.5px; color: var(--muted); margin: 0; }

/* Process steps */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step { counter-increment: step; padding: 28px 24px; background: var(--surface); border-right: 1px solid var(--line); position: relative; transition: background-color 0.2s ease; }
.step:hover { background: var(--surface-2); }
.step:last-child { border-right: none; }
@media (max-width: 860px) { .step { border-right: none; border-bottom: 1px solid var(--line); } .step:last-child { border-bottom: none; } }
.step::before {
  content: counter(step, decimal-leading-zero); font-family: var(--mono); font-size: 13px; color: var(--brass-ink);
  display: block; margin-bottom: 12px;
}
.step h4 { font-size: 16px; margin: 0 0 6px; }
.step p { font-size: 13.5px; color: var(--muted); margin: 0; }

/* Testimonial — single featured quote (navy band) */
.testimonial { background: linear-gradient(155deg, var(--navy-deep) 0%, #414c7c 100%); color: #fff; border-radius: var(--radius-lg); padding: 52px; position: relative; box-shadow: var(--shadow-lg); }
.testimonial .quote-mark { font-family: var(--display); font-size: 72px; line-height: 1; color: var(--brass-soft); opacity: 0.55; margin-bottom: 4px; display: block; }
.testimonial blockquote { font-family: var(--display); font-weight: 500; font-size: 23px; line-height: 1.5; margin: 0 0 22px; text-wrap: balance; }
.testimonial cite { font-style: normal; font-family: var(--mono); font-size: 13px; opacity: 0.75; }

/* Testimonial grid — multiple reviews as light cards */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 900px) { .testimonial-grid { grid-template-columns: 1fr; } }
.testimonial-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow-sm);
}
.testimonial-card .stars { color: var(--brass); letter-spacing: 2px; font-size: 14px; }
.testimonial-card blockquote { font-family: var(--display); font-size: 16.5px; line-height: 1.55; margin: 0; color: var(--ink); text-wrap: pretty; }
.testimonial-card .who { display: flex; flex-direction: column; margin-top: auto; padding-top: 6px; border-top: 1px solid var(--line); }
.testimonial-card .who .name { font-weight: 700; font-size: 14px; color: var(--ink); }
.testimonial-card .who .source { font-family: var(--mono); font-size: 11.5px; color: var(--muted); margin-top: 2px; }

/* FAQ */
details.faq { border-bottom: 1px solid var(--line); padding: 18px 0; }
details.faq summary { cursor: pointer; font-weight: 600; font-size: 16px; list-style: none; display: flex; justify-content: space-between; align-items: center; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; font-family: var(--mono); font-size: 20px; color: var(--brass-ink); }
details.faq[open] summary::after { content: "\2212"; }
details.faq p { margin-top: 12px; color: var(--muted); font-size: 15px; }

/* Forms */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 15px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); color: var(--ink); transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--navy); box-shadow: 0 0 0 3px color-mix(in srgb, var(--navy) 15%, transparent); outline: none; }
.field textarea { resize: vertical; min-height: 112px; }

/* Info blocks (about/contact) */
.info-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-sm); }
.info-card h3 { font-size: 17px; margin: 0 0 10px; display: flex; align-items: center; gap: 10px; }
.branch-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.branch { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; background: var(--surface); display: flex; align-items: center; gap: 14px; transition: border-color 0.2s ease, transform 0.2s ease; }
.branch:hover { border-color: var(--brass); transform: translateX(2px); }
.branch .icon-svg { color: var(--brass-ink); flex: 0 0 auto; }
.map-link { color: var(--muted); text-decoration: none; border-bottom: 1px dashed var(--muted); }
.map-link:hover { color: var(--navy-ink); border-bottom-color: var(--navy-ink); }
.map-link::after { content: " ↗"; font-size: 0.9em; }
.branch .name { font-weight: 700; margin-bottom: 3px; }
.branch .meta { font-family: var(--mono); font-size: 13px; color: var(--muted); }

/* Placeholder notice (for unverified/missing info) */
.placeholder-note {
  border: 1px dashed var(--brass); border-radius: var(--radius); background: color-mix(in srgb, var(--brass) 8%, var(--surface));
  padding: 12px 16px; font-size: 13px; color: var(--brass-ink); font-family: var(--mono); display: flex; gap: 10px; align-items: flex-start;
}
.placeholder-note .icon-svg { flex: 0 0 auto; width: 16px; height: 16px; margin-top: 2px; }

/* Final CTA band */
.cta-band { background: linear-gradient(155deg, var(--navy-deep) 0%, #414c7c 100%); color: #fff; border-radius: var(--radius-lg); padding: 60px; text-align: center; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 60% at 85% 0%, color-mix(in srgb, var(--brass) 22%, transparent), transparent 70%); pointer-events: none; }
.cta-band h2 { color: #fff; }
.cta-band p { color: color-mix(in srgb, #fff 78%, transparent); margin: 0 auto 30px; }
.cta-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; position: relative; }

/* Breadcrumb */
.breadcrumb { font-family: var(--mono); font-size: 12.5px; color: var(--muted); margin-bottom: 22px; }
.breadcrumb a { color: var(--muted); }

/* Footer */
footer.site-footer { border-top: 1px solid var(--line); background: var(--surface); margin-top: 88px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding: 60px 0 36px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid h5 { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin: 0 0 16px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-grid a { color: var(--ink); font-size: 14.5px; text-decoration: none; }
.footer-grid a:hover { color: var(--brass-ink); }
.contact-list li { display: flex; align-items: center; gap: 9px; color: var(--ink); font-size: 14.5px; }
.contact-list .icon-svg { width: 15px; height: 15px; color: var(--brass-ink); flex: 0 0 auto; stroke-width: 2; }
.contact-list a { padding: 0; }
.footer-brand { display: flex; flex-direction: column; }
.footer-brand .brand-row { display: flex; align-items: center; gap: 10px; }
.footer-brand .brand-mark { width: 28px; height: 28px; }
.footer-brand .wordmark { font-family: var(--display); font-size: 20px; font-weight: 600; color: var(--navy-ink); }
.footer-brand p { font-size: 14px; color: var(--muted); margin-top: 12px; max-width: 32ch; }
.footer-bottom { border-top: 1px solid var(--line); padding: 22px 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 13px; color: var(--muted); font-family: var(--mono); }

/* Floating actions */
.floating-actions { position: fixed; right: 22px; bottom: 22px; display: flex; flex-direction: column; gap: 12px; z-index: 30; }
.fab { width: 54px; height: 54px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-lg); text-decoration: none; transition: transform 0.2s cubic-bezier(.2,.7,.3,1); }
.fab:hover { transform: scale(1.08); }
.fab .icon-svg { width: 24px; height: 24px; }
.fab.whatsapp { background: #25d366; color: #fff; }
.fab.call { background: var(--navy-deep); color: #fff; }

.overflow-x { overflow-x: auto; }
