/* =====================================================================
   Shri Krishna Sr. Sec. School — style.css
   Single stylesheet. Edit :root tokens below to rebrand the whole site.
   Palette tuned to the school logo: deep navy + saffron gold + peacock green.
   ===================================================================== */

/* Self-hosted fonts (latin subset) — inlined for performance (no @import chain).
   Regenerate the woff2 files with _dev/fetch-fonts.mjs when rebranding. */
@font-face{font-family:'Inter';font-style:normal;font-weight:400;font-display:swap;src:url('../fonts/inter-400.woff2') format('woff2');}
@font-face{font-family:'Inter';font-style:normal;font-weight:500;font-display:swap;src:url('../fonts/inter-500.woff2') format('woff2');}
@font-face{font-family:'Inter';font-style:normal;font-weight:600;font-display:swap;src:url('../fonts/inter-600.woff2') format('woff2');}
@font-face{font-family:'Inter';font-style:normal;font-weight:700;font-display:swap;src:url('../fonts/inter-700.woff2') format('woff2');}
@font-face{font-family:'Plus Jakarta Sans';font-style:normal;font-weight:500;font-display:swap;src:url('../fonts/plus-jakarta-sans-500.woff2') format('woff2');}
@font-face{font-family:'Plus Jakarta Sans';font-style:normal;font-weight:600;font-display:swap;src:url('../fonts/plus-jakarta-sans-600.woff2') format('woff2');}
@font-face{font-family:'Plus Jakarta Sans';font-style:normal;font-weight:700;font-display:swap;src:url('../fonts/plus-jakarta-sans-700.woff2') format('woff2');}
@font-face{font-family:'Plus Jakarta Sans';font-style:normal;font-weight:800;font-display:swap;src:url('../fonts/plus-jakarta-sans-800.woff2') format('woff2');}

/* -------------------------------------------------- Design tokens */
:root {
  /* Brand (from logo) */
  --brand-900: #062240;
  --brand-800: #0a2c52;
  --brand-700: #0e3765;   /* primary dark */
  --brand:     #123a70;   /* primary */
  --brand-600: #164a8c;
  --brand-500: #1e58a8;   /* bright royal blue — links / interactive */
  --brand-400: #3d78c9;
  --brand-100: #e7eefaff;

  --gold:        #f5a623;  /* saffron accent */
  --gold-strong: #e08a06;
  --gold-soft:   #fff4e0;
  --green:       #1f9d6b;  /* peacock feather */
  --pink:        #c0327a;  /* peacock eye — rare highlight */

  /* Neutrals */
  --ink:     #0f1b2d;
  --body:    #33445c;
  --muted:   #556174;
  --line:    #e5ecf5;
  --line-2:  #eef2f8;
  --surface: #ffffff;
  --bg:      #f5f8fd;
  --bg-alt:  #eef4fc;

  /* Effects */
  --radius:    14px;
  --radius-lg: 22px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(11, 42, 82, .06), 0 1px 3px rgba(11, 42, 82, .08);
  --shadow:    0 6px 18px rgba(11, 42, 82, .08), 0 2px 6px rgba(11, 42, 82, .06);
  --shadow-md: 0 14px 34px rgba(11, 42, 82, .12);
  --shadow-lg: 0 26px 60px rgba(11, 42, 82, .18);
  --ring:      0 0 0 4px rgba(30, 88, 168, .28);

  /* Type */
  --font-display: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --font-body:    "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Layout */
  --container: 1180px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --header-h: 68px;
  --section-y: clamp(3.25rem, 7vw, 6rem);
}

/* -------------------------------------------------- Reset / base */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { overflow-x: hidden; }          /* safety net (root causes fixed too) */

body {
  font-family: var(--font-body);
  color: var(--body);
  background: var(--bg);
  line-height: 1.65;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

img, svg, video { max-width: 100%; display: block; height: auto; }
a { color: var(--brand-500); text-decoration: none; }
a:hover { color: var(--brand-700); }
ul { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select, button { font-family: inherit; font-size: 1rem; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 5.2vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }
p  { overflow-wrap: anywhere; }

:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }
::selection { background: var(--brand-500); color: #fff; }

/* -------------------------------------------------- Layout helpers */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section--tint { background: var(--surface); }
.section--brand { background:
    radial-gradient(1200px 500px at 10% -10%, rgba(30,88,168,.12), transparent 60%),
    linear-gradient(160deg, var(--brand-800), var(--brand-900)); color: #dbe6f7; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.stack > * + * { margin-top: 1rem; }

.section-head { max-width: 680px; margin-inline: auto; text-align: center; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head.left { margin-inline: 0; text-align: left; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-display); font-weight: 700; font-size: .8rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--brand-500);
  background: var(--brand-100); padding: .4rem .8rem; border-radius: 100px; margin-bottom: 1rem;
}
.section--brand .eyebrow { color: var(--gold); background: rgba(245,166,35,.14); }
.section-head p { color: var(--muted); font-size: 1.05rem; margin-top: .75rem; }
.section--brand h2 { color: #fff; }

/* -------------------------------------------------- Buttons */
.btn {
  --btn-bg: var(--brand-700); --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--font-display); font-weight: 700; font-size: .98rem;
  line-height: 1; text-align: center; white-space: nowrap;
  padding: .95rem 1.5rem; border-radius: 100px; background: var(--btn-bg); color: var(--btn-fg);
  border: 2px solid transparent; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  box-shadow: var(--shadow-sm);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); color: var(--btn-fg); }
.btn:active { transform: translateY(0); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--primary { --btn-bg: linear-gradient(135deg, var(--gold), var(--gold-strong)); --btn-fg: #3a2500; }
.btn--primary:hover { --btn-fg: #3a2500; box-shadow: 0 12px 28px rgba(224,138,6,.4); }
.btn--brand { --btn-bg: linear-gradient(135deg, var(--brand-500), var(--brand-700)); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--brand-700); border-color: var(--line); box-shadow: none; }
.btn--ghost:hover { --btn-fg: var(--brand-700); border-color: var(--brand-400); background: var(--brand-100); }
.btn--white { --btn-bg: #fff; --btn-fg: var(--brand-700); }
.btn--wa { --btn-bg: #25d366; --btn-fg: #04340f; }
.btn--lg { padding: 1.05rem 1.9rem; font-size: 1.05rem; }
.btn--block { width: 100%; }

/* -------------------------------------------------- Header */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.88); backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 1rem; min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: .6rem; margin-right: auto; min-width: 0; }
.brand__mark { width: 42px; height: 42px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; min-width: 0; }
.brand__name { font-family: var(--font-display); font-weight: 800; color: var(--brand-700); font-size: 1.12rem; letter-spacing: -.01em; }
.brand__tag  { font-size: .72rem; font-weight: 700; color: #8a5a00; letter-spacing: .02em; text-transform: uppercase; }

.nav__list { display: flex; align-items: center; gap: .35rem; }
.nav__list a {
  display: block; padding: .55rem .85rem; border-radius: 100px;
  font-family: var(--font-display); font-weight: 600; font-size: .96rem; color: var(--ink);
  transition: background .15s ease, color .15s ease;
}
.nav__list a:hover { background: var(--brand-100); color: var(--brand-700); }
.nav__list a[aria-current="page"] { color: var(--brand-700); background: var(--brand-100); }

.header-actions { display: flex; align-items: center; gap: .5rem; }
.header-call { padding: .7rem; }
.header-call svg { width: 20px; height: 20px; }
.header-call span { display: none; }
.nav-toggle {
  display: none; width: 46px; height: 46px; border-radius: 12px;
  align-items: center; justify-content: center; color: var(--brand-700);
  border: 1px solid var(--line);
}
.nav-toggle svg { width: 24px; height: 24px; }
.nav-toggle .icon-close { display: none; }
.nav-overlay { display: none; }

/* desktop-ish */
@media (min-width: 641px) { .header-call span { display: inline; } .header-call { padding: .7rem 1rem; } }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; top: 0; right: 0; bottom: 0; height: 100vh; height: 100dvh;
    width: min(320px, 84vw);
    background: #fff; box-shadow: var(--shadow-lg);
    padding: calc(var(--header-h) + 1rem) 1.25rem 2rem;
    transform: translateX(100%); transition: transform .32s cubic-bezier(.4,0,.2,1);
    z-index: 70; overflow-y: auto;
  }
  .nav__list { flex-direction: column; align-items: stretch; gap: .25rem; }
  .nav__list a { padding: .85rem 1rem; border-radius: 12px; font-size: 1.05rem; }
  .nav-overlay {
    display: block; position: fixed; inset: 0; background: rgba(6,34,64,.5);
    opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s ease; z-index: 65;
  }
  body.nav-open { overflow: hidden; }
  body.nav-open .nav { transform: translateX(0); }
  body.nav-open .nav-overlay { opacity: 1; visibility: visible; }
  body.nav-open .nav-toggle .icon-open { display: none; }
  body.nav-open .nav-toggle .icon-close { display: block; }
}
@media (max-width: 640px) {
  .header-cta { display: none; }          /* hide big text CTA on small screens */
  .brand__name { font-size: 1rem; }
}
@media (max-width: 360px) {
  .brand__tag { display: none; }
}

/* -------------------------------------------------- Hero */
.hero { position: relative; background: linear-gradient(165deg, var(--brand-800), var(--brand-900)); color: #eaf1fb; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(720px 420px at 82% 12%, rgba(245,166,35,.20), transparent 60%),
              radial-gradient(600px 500px at 8% 90%, rgba(31,157,107,.18), transparent 60%);
  pointer-events: none;
}
.hero__inner {
  position: relative; display: grid; gap: clamp(2rem, 4vw, 3.5rem);
  grid-template-columns: 1fr; align-items: center;
  padding-block: clamp(2.75rem, 6vw, 5rem);
}
.hero__badges { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.25rem; }
.chip {
  display: inline-flex; align-items: center; gap: .4rem; font-size: .82rem; font-weight: 600;
  padding: .4rem .8rem; border-radius: 100px; background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.16); color: #eaf1fb;
}
.chip svg { width: 15px; height: 15px; color: var(--gold); }
.hero h1 { color: #fff; }
.hero h1 .accent { color: var(--gold); }
.hero__lead { font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: #cdddf3; margin-top: 1.1rem; max-width: 34ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.hero__rating { display: flex; align-items: center; gap: .8rem; margin-top: 1.8rem; }
.hero__rating .stars { color: var(--gold); font-size: 1.1rem; letter-spacing: 2px; }
.hero__rating strong { color: #fff; font-family: var(--font-display); }
.hero__rating span { font-size: .9rem; color: #b9cbe6; }

.hero__media { position: relative; }
.hero__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); aspect-ratio: 4/3.2; object-fit: cover; width: 100%; }
.hero__float {
  position: absolute; left: -8px; bottom: -18px; background: #fff; color: var(--ink);
  border-radius: 16px; padding: .85rem 1.1rem; box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: .7rem; max-width: 82%;
}
.hero__float .ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold-strong); flex: none; }
.hero__float .ico svg { width: 22px; height: 22px; }
.hero__float b { display: block; font-family: var(--font-display); font-size: 1.05rem; color: var(--ink); }
.hero__float small { color: var(--muted); }

@media (min-width: 900px) {
  .hero__inner { grid-template-columns: 1.05fr .95fr; }
}
@media (max-width: 480px) {
  .hero__cta .btn { width: 100%; }
  .hero__lead { max-width: none; }
}

/* -------------------------------------------------- Stats */
.stats { position: relative; margin-top: clamp(-2rem, -4vw, -3.5rem); z-index: 5; }
.stats__grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow);
}
.stat { background: #fff; padding: clamp(1.2rem, 3vw, 2rem) 1rem; text-align: center; }
.stat b { display: block; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.7rem, 4vw, 2.5rem); color: var(--brand-700); line-height: 1; }
.stat b .plus { color: var(--gold); }
.stat span { display: block; margin-top: .5rem; font-size: .9rem; color: var(--muted); font-weight: 600; }
@media (min-width: 700px) { .stats__grid { grid-template-columns: repeat(4, 1fr); } }

/* -------------------------------------------------- Cards / grids */
.grid { display: grid; gap: clamp(1rem, 2.4vw, 1.6rem); }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 620px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 920px) { .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-lg);
  padding: clamp(1.3rem, 2.5vw, 1.8rem); box-shadow: var(--shadow-sm); min-width: 0;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--brand-100); }
.card__icon {
  width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand-100), #fff); color: var(--brand-600);
  box-shadow: inset 0 0 0 1px var(--line); margin-bottom: 1.1rem;
}
.card__icon svg { width: 27px; height: 27px; }
.card--gold .card__icon { background: linear-gradient(135deg, var(--gold-soft), #fff); color: var(--gold-strong); }
.card--green .card__icon { background: linear-gradient(135deg, #e4f7ee, #fff); color: var(--green); }
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--muted); font-size: .96rem; }

/* facility compact card */
.facility { display: flex; gap: 1rem; align-items: flex-start; }
.facility .card__icon { margin-bottom: 0; width: 48px; height: 48px; }
.facility .card__icon svg { width: 24px; height: 24px; }

/* -------------------------------------------------- Split (image + text) */
.split { display: grid; gap: clamp(1.8rem, 4vw, 3.5rem); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; } .split--reverse .split__media { order: 2; } }
.split__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.split h2 { margin-bottom: 1rem; }
.split .lead { font-size: 1.08rem; color: var(--body); }
.tick-list { margin-top: 1.3rem; display: grid; gap: .7rem; }
.tick-list li { display: flex; gap: .7rem; align-items: flex-start; color: var(--body); }
.tick-list svg { width: 22px; height: 22px; color: var(--green); flex: none; margin-top: 1px; }

/* -------------------------------------------------- Principal message */
.principal { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 820px) { .principal { grid-template-columns: 300px 1fr; } }
.principal__photo { position: relative; }
.principal__photo img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); width: 100%; max-width: 320px; margin-inline: auto; aspect-ratio: 1; object-fit: cover; }
.principal__quote { font-family: var(--font-display); font-size: clamp(1.15rem, 2.2vw, 1.5rem); line-height: 1.45; color: var(--ink); font-weight: 600; }
.principal__quote .mark { color: var(--gold); font-size: 1.4em; line-height: 0; }
.principal__who { margin-top: 1.2rem; }
.principal__who b { display: block; font-family: var(--font-display); color: var(--brand-700); font-size: 1.1rem; }
.principal__who span { color: var(--muted); font-size: .92rem; }

/* -------------------------------------------------- Testimonials */
.quote-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.6rem; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 1rem; height: 100%; }
.quote-card .stars { color: var(--gold); letter-spacing: 2px; }
.quote-card p { color: var(--body); font-size: 1rem; }
.quote-card__who { display: flex; align-items: center; gap: .8rem; margin-top: auto; }
.quote-card__who img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; flex: none; }
.quote-card__who b { font-family: var(--font-display); color: var(--ink); display: block; font-size: .98rem; }
.quote-card__who span { color: var(--muted); font-size: .85rem; }

/* -------------------------------------------------- Notices (admin-managed) */
.notice-card { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--brand-400); border-radius: var(--radius); padding: 1.2rem 1.3rem; box-shadow: var(--shadow-sm); height: 100%; }
.notice-card.is-pinned { border-left-color: var(--gold); background: linear-gradient(180deg, var(--gold-soft), #fff); }
.notice-card__head { display: flex; align-items: center; gap: .6rem; margin-bottom: .5rem; flex-wrap: wrap; }
.notice-card__date { font-size: .82rem; color: var(--muted); font-weight: 600; }
.notice-pin { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--gold-strong); background: rgba(245,166,35,.16); padding: .15rem .5rem; border-radius: 100px; }
.notice-card h3 { font-size: 1.1rem; margin-bottom: .35rem; }
.notice-card p { color: var(--muted); font-size: .95rem; }

/* -------------------------------------------------- Achievements (admin-managed) */
.ach-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; min-width: 0; transition: transform .2s ease, box-shadow .2s ease; }
.ach-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.ach-card__img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.ach-card__badge { aspect-ratio: 16/7; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand-700), var(--brand-900)); color: var(--gold); }
.ach-card__badge svg { width: 46px; height: 46px; }
.ach-card__body { padding: 1.2rem 1.3rem; }
.ach-cat { display: inline-block; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--brand-500); background: var(--brand-100); padding: .2rem .6rem; border-radius: 100px; margin-bottom: .6rem; }
.ach-card__body h3 { font-size: 1.1rem; margin-bottom: .3rem; }
.ach-card__body p { color: var(--muted); font-size: .94rem; }

/* -------------------------------------------------- CTA banner */
.cta {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  background: radial-gradient(700px 300px at 90% -20%, rgba(245,166,35,.25), transparent 60%),
              linear-gradient(135deg, var(--brand-600), var(--brand-900));
  color: #fff; padding: clamp(2.2rem, 5vw, 3.6rem); text-align: center;
}
.cta h2 { color: #fff; }
.cta p { color: #cdddf3; max-width: 52ch; margin-inline: auto; margin-top: .8rem; }
.cta__btns { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; margin-top: 1.8rem; }
@media (max-width: 460px) { .cta__btns .btn { width: 100%; } }

/* -------------------------------------------------- Page hero (inner pages) */
.page-hero { background: linear-gradient(160deg, var(--brand-800), var(--brand-900)); color: #eaf1fb; position: relative; overflow: hidden; }
.page-hero::before { content:""; position:absolute; inset:0; background: radial-gradient(600px 300px at 85% 0%, rgba(245,166,35,.16), transparent 60%); }
.page-hero__inner { position: relative; padding-block: clamp(2.5rem, 6vw, 4.5rem); text-align: center; }
.page-hero h1 { color: #fff; }
.page-hero p { color: #cdddf3; max-width: 60ch; margin: 1rem auto 0; }
.breadcrumb { display: flex; gap: .4rem; justify-content: center; flex-wrap: wrap; font-size: .88rem; color: #b9cbe6; margin-top: 1rem; }
.breadcrumb a { color: #eaf1fb; }
.breadcrumb span { color: var(--gold); }

/* -------------------------------------------------- Steps (admissions) */
.steps { display: grid; gap: 1.2rem; grid-template-columns: 1fr; counter-reset: step; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .steps { grid-template-columns: repeat(5, 1fr); } }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.2rem 1.3rem; box-shadow: var(--shadow-sm); }
.step__num { position: absolute; top: -18px; left: 1.2rem; width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(135deg, var(--gold), var(--gold-strong)); color: #3a2500; font-family: var(--font-display); font-weight: 800; display: grid; place-items: center; box-shadow: var(--shadow-sm); }
.step h3 { font-size: 1.08rem; margin: .8rem 0 .35rem; }
.step p { color: var(--muted); font-size: .92rem; }

/* -------------------------------------------------- Table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
table.info { width: 100%; border-collapse: collapse; min-width: 420px; background: #fff; }
table.info th, table.info td { padding: .95rem 1.1rem; text-align: left; border-bottom: 1px solid var(--line-2); }
table.info thead th { background: var(--brand-700); color: #fff; font-family: var(--font-display); font-weight: 700; }
table.info tbody tr:last-child td { border-bottom: none; }
table.info tbody tr:nth-child(even) { background: var(--bg); }

/* -------------------------------------------------- Forms */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2.4rem); box-shadow: var(--shadow); }
.form-grid { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
@media (min-width: 560px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.field { display: flex; flex-direction: column; gap: .4rem; min-width: 0; }
.field label { font-weight: 600; color: var(--ink); font-size: .92rem; }
.field label .req { color: var(--pink); }
.field input, .field select, .field textarea {
  width: 100%; padding: .85rem 1rem; border: 1.5px solid var(--line); border-radius: 12px;
  background: var(--bg); color: var(--ink); transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand-400); background: #fff; box-shadow: var(--ring); }
.field textarea { resize: vertical; min-height: 118px; }
.field input:user-invalid, .field textarea:user-invalid { border-color: var(--pink); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .85rem; color: var(--muted); display: flex; gap: .5rem; align-items: flex-start; margin-top: .3rem; }
.form-note svg { width: 18px; height: 18px; color: var(--green); flex: none; margin-top: 1px; }
.form-error { color: var(--pink); font-size: .82rem; display: none; }
.field.invalid .form-error { display: block; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--pink); }

/* -------------------------------------------------- Contact info */
.info-card { display: flex; gap: 1rem; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; box-shadow: var(--shadow-sm); }
.info-card .ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-100); color: var(--brand-600); flex: none; }
.info-card .ico svg { width: 22px; height: 22px; }
.info-card b { font-family: var(--font-display); color: var(--ink); display: block; margin-bottom: .2rem; }
.info-card a, .info-card p { color: var(--body); }
.info-card a:hover { color: var(--brand-700); }
.map-frame { border: 0; width: 100%; height: 100%; min-height: 320px; border-radius: var(--radius-lg); box-shadow: var(--shadow); }

/* -------------------------------------------------- Gallery */
.gallery { columns: 1; column-gap: 1rem; }
@media (min-width: 560px) { .gallery { columns: 2; } }
@media (min-width: 900px) { .gallery { columns: 3; } }
.gallery__item {
  break-inside: avoid; margin-bottom: 1rem; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); position: relative; cursor: zoom-in; display: block; width: 100%;
}
.gallery__item img { width: 100%; transition: transform .4s ease; }
.gallery__item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(6,34,64,.35), transparent 55%); opacity: 0; transition: opacity .3s ease; }
.gallery__item:hover img { transform: scale(1.06); }
.gallery__item:hover::after { opacity: 1; }
.gallery__cap { position: absolute; left: 12px; bottom: 10px; color: #fff; font-weight: 600; font-size: .9rem; opacity: 0; transform: translateY(6px); transition: .3s ease; z-index: 1; }
.gallery__item:hover .gallery__cap { opacity: 1; transform: none; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(6,20,40,.92); display: none; align-items: center; justify-content: center; z-index: 120; padding: 1rem; }
.lightbox.open { display: flex; }
.lightbox img { max-width: min(94vw, 1100px); max-height: 86vh; border-radius: 10px; box-shadow: var(--shadow-lg); }
.lightbox__btn { position: absolute; top: 1rem; right: 1rem; width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; display: grid; place-items: center; }
.lightbox__btn:hover { background: rgba(255,255,255,.28); }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 50px; height: 50px; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; display: grid; place-items: center; }
.lightbox__nav:hover { background: rgba(255,255,255,.28); }
.lightbox__nav.prev { left: 1rem; } .lightbox__nav.next { right: 1rem; }
.lightbox__btn svg, .lightbox__nav svg { width: 24px; height: 24px; }

/* -------------------------------------------------- Footer */
.site-footer { background: linear-gradient(180deg, var(--brand-800), var(--brand-900)); color: #b9cbe6; padding-top: clamp(3rem, 6vw, 4.5rem); }
.footer-grid { display: grid; gap: 2.2rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 940px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; } }
.footer-brand img { background: #fff; padding: .7rem 1rem; border-radius: 14px; max-width: 260px; margin-bottom: 1.1rem; }
.footer-brand p { color: #9fb6d6; font-size: .95rem; max-width: 34ch; }
.footer h2 { color: #fff; font-size: 1.05rem; margin-bottom: 1.1rem; font-family: var(--font-display); font-weight: 700; letter-spacing: 0; }
.footer-links a, .footer-contact li { color: #b9cbe6; }
.footer-links li + li { margin-top: .6rem; }
.footer-links a:hover { color: var(--gold); }
.footer-contact li { display: flex; gap: .7rem; align-items: flex-start; margin-bottom: .8rem; font-size: .95rem; }
.footer-contact svg { width: 19px; height: 19px; color: var(--gold); flex: none; margin-top: 3px; }
.footer-contact a { color: #b9cbe6; }
.footer-contact a:hover { color: #fff; }
.social { display: flex; gap: .6rem; margin-top: 1rem; }
.social a { width: 40px; height: 40px; border-radius: 11px; background: rgba(255,255,255,.08); display: grid; place-items: center; color: #eaf1fb; transition: background .18s ease, transform .18s ease; }
.social a:hover { background: var(--gold); color: #3a2500; transform: translateY(-2px); }
.social svg { width: 20px; height: 20px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 2.5rem; padding-block: 1.5rem; display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; justify-content: space-between; align-items: center; font-size: .88rem; color: #8ca6c9; }
.footer-bottom a { color: #8ca6c9; } .footer-bottom a:hover { color: #fff; }

/* -------------------------------------------------- Floating action buttons */
.fab { position: fixed; right: clamp(.9rem, 3vw, 1.4rem); bottom: clamp(.9rem, 3vw, 1.4rem); z-index: 55; display: flex; flex-direction: column; gap: .7rem; }
.fab a { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; color: #fff; box-shadow: var(--shadow-md); transition: transform .18s ease; position: relative; }
.fab a:hover { transform: scale(1.08); color: #fff; }
.fab a svg { width: 27px; height: 27px; }
.fab .fab-wa { background: #25d366; }
.fab .fab-call { background: linear-gradient(135deg, var(--brand-500), var(--brand-700)); }
.fab a::after {
  content: attr(data-label); position: absolute; right: 64px; top: 50%; transform: translateY(-50%);
  background: var(--ink); color: #fff; font-size: .78rem; font-weight: 600; white-space: nowrap;
  padding: .35rem .6rem; border-radius: 8px; opacity: 0; pointer-events: none; transition: opacity .2s ease;
}
.fab a:hover::after { opacity: 1; }
.fab-wa { animation: fab-pulse 2.6s infinite; }
@keyframes fab-pulse { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,.5); } 70% { box-shadow: 0 0 0 14px rgba(37,211,102,0); } 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); } }
@media (max-width: 640px) { .fab a::after { display: none; } .fab a { width: 50px; height: 50px; } }

/* -------------------------------------------------- Scroll reveal
   Hidden state is gated behind `.js` (added by an inline head script) so that
   with JavaScript disabled ALL content stays fully visible (no-JS / crawlers). */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; will-change: opacity, transform; }
.js .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; }

/* -------------------------------------------------- A11y utilities */
.skip-link { position: absolute; left: 1rem; top: -60px; background: #fff; color: var(--brand-700); padding: .7rem 1rem; border-radius: 10px; z-index: 200; font-weight: 700; box-shadow: var(--shadow-md); transition: top .2s ease; }
.skip-link:focus { top: 1rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* -------------------------------------------------- Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
