/* ==========================================================================
   Stride Private Educational Center - site stylesheet
   One file, no build step. Sections:
   1. Design tokens   2. Fonts   3. Base   4. Layout   5. Header & nav
   6. Components      7. Page sections   8. Forms   9. Footer
   10. Utilities & motion
   ========================================================================== */

/* 1. Design tokens --------------------------------------------------------- */
:root {
  /* Brand colours, derived from the logo (#173D67 navy, #F79433 orange) */
  --navy-900: #0F2A47;
  --navy-700: #173D67;
  --navy-500: #2A5A8C;
  --sky-100: #E8F0F8;
  --sky-50: #F4F8FB;
  --orange-500: #F79433;
  --orange-400: #FFB466;
  --orange-50: #FDE4C8;
  --orange-800: #9E5208;
  --ink-900: #13213A;
  --ink-700: #3A4A60;
  --ink-500: #5C6B80;
  --line: #D6DEE8;
  --white: #FFFFFF;
  --success: #1E7B4F;
  --success-bg: #E6F4EC;
  --error: #B42318;
  --error-bg: #FBEAE8;

  /* Semantic aliases */
  --bg: var(--white);
  --bg-alt: var(--sky-50);
  --text: var(--ink-900);
  --text-2: var(--ink-700);
  --text-3: var(--ink-500);
  --heading: var(--navy-700);
  --link: var(--navy-500);
  --focus: var(--navy-500);

  /* Spacing scale, 4px base */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-10: 8rem;

  /* Type scale, fluid between 360px and 1280px viewports */
  --text-display: clamp(2.25rem, 1.4rem + 3.8vw, 3.5rem);
  --text-h1: clamp(2rem, 1.5rem + 2.2vw, 2.75rem);
  --text-h2: clamp(1.625rem, 1.3rem + 1.5vw, 2.125rem);
  --text-h3: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --text-h4: clamp(1.125rem, 1.05rem + 0.3vw, 1.25rem);
  --text-body: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-small: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
  --text-eyebrow: 0.8125rem;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(15, 42, 71, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 42, 71, 0.10);

  --container: 1200px;
  --gutter: 1rem;
  --header-h: 4.5rem;
  --ease: 160ms ease-out;
}

@media (min-width: 768px) { :root { --gutter: 1.5rem; } }
@media (min-width: 1280px) { :root { --gutter: 2rem; } }

/* 2. Fonts ------------------------------------------------------------------ */
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-800.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* 3. Base ------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--text-body);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  color: var(--heading);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 0 0 var(--space-4);
  text-wrap: balance;
}
h1 { font-size: var(--text-h1); }
h2 { font-size: var(--text-h2); line-height: 1.2; }
h3 { font-size: var(--text-h3); line-height: 1.3; letter-spacing: -0.01em; }
h4 { font-size: var(--text-h4); line-height: 1.35; letter-spacing: 0; }

p { margin: 0 0 var(--space-4); }
p:last-child { margin-bottom: 0; }

a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 2px;
}

img, svg, picture { display: block; max-width: 100%; height: auto; }

ul, ol { padding-left: 1.25rem; margin: 0 0 var(--space-4); }
li { margin-bottom: var(--space-2); }

strong { font-weight: 600; }
small { font-size: var(--text-small); }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--space-6) 0; }

address { font-style: normal; }

cite { font-style: normal; color: var(--text-3); }

figure { margin: 0; }
figcaption { font-size: var(--text-small); color: var(--text-3); margin-top: var(--space-2); }

::selection { background: var(--orange-50); color: var(--navy-900); }

/* 4. Layout ----------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 56rem; }
.prose { max-width: 65ch; }
.prose--center { margin-inline: auto; text-align: center; }

.section { padding-block: var(--space-7); }
.section--tint { background: var(--bg-alt); }
.section--dark { background: var(--navy-900); color: var(--white); }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: var(--white); }
.section--dark p { color: var(--sky-100); }
.section--dark a { color: var(--white); }
.section--dark .eyebrow { color: var(--orange-500); }

@media (min-width: 768px) { .section { padding-block: var(--space-8); } }
@media (min-width: 1280px) { .section { padding-block: var(--space-9); } }

.section__head { margin-bottom: var(--space-6); }
.section__head--center { text-align: center; }
.section__head--center .prose { margin-inline: auto; }
.section__head p { color: var(--text-2); font-size: var(--text-body); }
@media (min-width: 768px) { .section__head { margin-bottom: var(--space-7); } }

.grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

.split {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
  .split--media-first > :first-child { order: -1; }
}

.eyebrow {
  display: block;
  font-size: var(--text-eyebrow);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange-800);
  margin-bottom: var(--space-3);
}

.lead { font-size: calc(var(--text-body) * 1.15); color: var(--text-2); }

/* 5. Header & nav ----------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100%;
  z-index: 100;
  padding: var(--space-3) var(--space-4);
  background: var(--navy-900);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.skip-link:focus { top: var(--space-4); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; }
.brand img { width: 132px; height: auto; }
@media (min-width: 768px) { .brand img { width: 150px; } }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  cursor: pointer;
  color: var(--navy-700);
}
.nav-toggle__icon {
  position: relative;
  width: 20px;
  height: 2px;
  background: currentColor;
  transition: background var(--ease);
}
.nav-toggle__icon::before, .nav-toggle__icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: currentColor;
  transition: transform var(--ease), top var(--ease);
}
.nav-toggle__icon::before { top: -6px; }
.nav-toggle__icon::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon::after { top: 0; transform: rotate(-45deg); }

.site-nav {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  padding: var(--space-4) var(--gutter) var(--space-5);
}
.site-nav[data-open="true"] { display: block; }
.site-nav__list {
  list-style: none;
  margin: 0 0 var(--space-4);
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.site-nav__list a {
  display: block;
  padding: var(--space-3) var(--space-2);
  color: var(--navy-700);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-sm);
}
.site-nav__list a:hover { background: var(--sky-50); }
.site-nav__list a[aria-current="page"] { color: var(--navy-900); box-shadow: inset 3px 0 0 var(--orange-500); }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav {
    display: flex;
    position: static;
    align-items: center;
    gap: var(--space-5);
    background: none;
    border: 0;
    box-shadow: none;
    padding: 0;
  }
  .site-nav__list { flex-direction: row; gap: var(--space-1); margin: 0; }
  .site-nav__list a { padding: var(--space-2) var(--space-3); position: relative; }
  .site-nav__list a::after {
    content: "";
    position: absolute;
    left: var(--space-3);
    right: var(--space-3);
    bottom: 2px;
    height: 2px;
    background: var(--orange-500);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--ease);
  }
  .site-nav__list a:hover::after, .site-nav__list a[aria-current="page"]::after { transform: scaleX(1); }
  .site-nav__list a[aria-current="page"] { box-shadow: none; }
}

/* 6. Components ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: 0.7rem 1.25rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--ease), color var(--ease), transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--orange-500); color: var(--navy-900); }
.btn--primary:hover { background: var(--orange-400); box-shadow: var(--shadow-sm); }
.btn--secondary { background: var(--navy-700); color: var(--white); }
.btn--secondary:hover { background: var(--navy-900); }
.btn--outline { background: transparent; border-color: var(--navy-700); color: var(--navy-700); }
.btn--outline:hover { background: var(--sky-100); }
.section--dark .btn--outline { border-color: var(--white); color: var(--white); }
.section--dark .btn--outline:hover { background: rgba(255, 255, 255, 0.12); }
.btn--sm { min-height: 40px; padding: 0.5rem 1rem; font-size: var(--text-small); }
.btn--block { width: 100%; }
.btn[aria-disabled="true"], .btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.btn .icon { width: 1.1em; height: 1.1em; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 600;
  text-decoration: none;
}
.link-arrow:hover { text-decoration: underline; }
.link-arrow .icon { width: 1em; height: 1em; transition: transform var(--ease); }
.link-arrow:hover .icon { transform: translateX(3px); }

.icon { display: inline-block; width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

.badge {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-pill);
  background: var(--orange-50);
  color: var(--navy-900);
  font-size: var(--text-small);
  font-weight: 600;
  line-height: 1.4;
}
.badge--navy { background: var(--sky-100); color: var(--navy-700); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.card:hover { border-color: var(--navy-500); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card h3, .card h4 { margin-bottom: 0; }
.card p { color: var(--text-2); }
.card--static:hover { transform: none; box-shadow: none; border-color: var(--line); }
.card__media {
  margin: calc(-1 * var(--space-5)) calc(-1 * var(--space-5)) var(--space-2);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--sky-100);
}
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__media--square { aspect-ratio: 1 / 1; }
.card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--sky-100);
  color: var(--navy-700);
  display: grid;
  place-items: center;
}
.card__icon .icon { width: 24px; height: 24px; }

.tile {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  padding: var(--space-4);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}
.tile__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--sky-100);
  color: var(--navy-700);
  display: grid;
  place-items: center;
}
.tile__icon .icon { width: 22px; height: 22px; }
.tile strong { display: block; color: var(--navy-900); font-weight: 800; letter-spacing: -0.01em; }
.tile span { color: var(--text-2); font-size: var(--text-small); }

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  padding: 0;
  margin: 0;
  list-style: none;
  color: var(--text-3);
  font-size: var(--text-small);
}
.meta li { margin: 0; display: inline-flex; align-items: center; gap: var(--space-1); }
.meta .icon { width: 1rem; height: 1rem; }

.checklist { list-style: none; padding: 0; }
.checklist li { position: relative; padding-left: 2rem; }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: var(--orange-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%230F2A47' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.steps { list-style: none; padding: 0; counter-reset: step; display: grid; gap: var(--space-4); }
.steps li { counter-increment: step; display: flex; gap: var(--space-4); align-items: flex-start; }
.steps li::before {
  content: counter(step);
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--navy-700);
  color: var(--white);
  font-weight: 800;
  display: grid;
  place-items: center;
}
.steps h3 { font-size: var(--text-h4); margin-bottom: var(--space-1); }
.steps p { color: var(--text-2); }
@media (min-width: 900px) { .steps--row { grid-template-columns: repeat(4, 1fr); } .steps--row li { flex-direction: column; } }

details.faq {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  padding: 0 var(--space-5);
  transition: border-color var(--ease);
}
details.faq + details.faq { margin-top: var(--space-3); }
details.faq[open] { border-color: var(--navy-500); }
details.faq summary {
  list-style: none;
  cursor: pointer;
  padding: var(--space-4) 0;
  font-weight: 600;
  color: var(--navy-700);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "";
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--sky-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5v14M5 12h14' stroke='%23173D67' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform var(--ease);
}
details.faq[open] summary::after { transform: rotate(45deg); }
details.faq .faq__body { padding: 0 0 var(--space-5); color: var(--text-2); max-width: 65ch; }

.gallery { display: grid; gap: var(--space-4); grid-template-columns: repeat(2, 1fr); }
.gallery figure { border-radius: var(--radius-md); overflow: hidden; background: var(--sky-100); }
.gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 2; }
.gallery figcaption { margin: 0; padding: var(--space-3) var(--space-4); background: var(--white); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--radius-md) var(--radius-md); }
.gallery figure { background: none; border-radius: var(--radius-md); }
.gallery img { border-radius: var(--radius-md); }
.gallery figure:has(figcaption) img { border-radius: var(--radius-md) var(--radius-md) 0 0; }
@media (min-width: 768px) { .gallery { grid-template-columns: repeat(3, 1fr); } .gallery--2 { grid-template-columns: repeat(2, 1fr); } }

.logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-6) var(--space-8);
}
.logos img { max-height: 56px; width: auto; }
.logos__note { text-align: center; color: var(--text-3); font-size: var(--text-small); margin-top: var(--space-5); }

.media { border-radius: var(--radius-md); overflow: hidden; background: var(--sky-100); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media--3x2 { aspect-ratio: 3 / 2; }
.media--4x5 { aspect-ratio: 4 / 5; }

.notice {
  border-left: 4px solid var(--orange-500);
  background: var(--orange-50);
  color: var(--navy-900);
  padding: var(--space-4) var(--space-5);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.placeholder {
  display: inline-block;
  background: #FFF4C2;
  color: #5A4300;
  border: 1px dashed #C9A227;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-size: 0.9em;
}

/* 7. Page sections ---------------------------------------------------------- */
.hero { padding-block: var(--space-7) var(--space-6); background: linear-gradient(180deg, var(--sky-50) 0%, var(--white) 100%); }
.hero h1 { font-size: var(--text-display); color: var(--navy-900); }
.hero--page h1 { font-size: var(--text-h1); }
.hero .lead { max-width: 36rem; }
.hero__media { border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-md); background: var(--sky-100); }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__grid { display: grid; gap: var(--space-6); align-items: center; }
@media (min-width: 900px) {
  .hero { padding-block: var(--space-8); }
  .hero__grid { grid-template-columns: 1.05fr 1fr; gap: var(--space-8); }
}

.trust { padding-block: var(--space-5); }
.trust .grid { gap: var(--space-4); }

.age-band { border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--white); padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-3); }
.age-band__ages { font-size: var(--text-h2); font-weight: 800; color: var(--navy-700); letter-spacing: -0.02em; line-height: 1; }
.age-band ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.age-band li { margin: 0; padding-left: 1.25rem; position: relative; color: var(--text-2); }
.age-band li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--orange-500); }

.cycle { display: grid; gap: var(--space-6); align-items: center; }
.cycle svg { width: 100%; max-width: 440px; margin-inline: auto; }
@media (min-width: 900px) { .cycle { grid-template-columns: 1fr 1.2fr; gap: var(--space-8); } }


.cta-band { background: var(--navy-900); color: var(--white); }
.cta-band__inner { display: grid; gap: var(--space-5); align-items: center; }
.cta-band h2 { color: var(--white); margin-bottom: var(--space-2); }
.cta-band p { color: var(--sky-100); }
.cta-band .phone { font-size: var(--text-h3); font-weight: 800; color: var(--orange-500); text-decoration: none; letter-spacing: -0.01em; }
.cta-band .phone:hover { text-decoration: underline; }
@media (min-width: 900px) { .cta-band__inner { grid-template-columns: 1.4fr 1fr; } }

.activities { display: grid; gap: var(--space-5); grid-template-columns: 1fr; }
@media (min-width: 768px) { .activities { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .activities { grid-template-columns: repeat(3, 1fr); } }
.activity { padding: 0; overflow: hidden; }
.activity .card__media { margin: 0; border-radius: 0; aspect-ratio: 16 / 10; }
.activity__body { padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-3); flex: 1; }
.activity__head { display: flex; justify-content: space-between; gap: var(--space-3); align-items: flex-start; }
.activity details { border-top: 1px solid var(--line); padding-top: var(--space-3); margin-top: auto; }
.activity summary { cursor: pointer; font-weight: 600; color: var(--navy-500); list-style: none; display: inline-flex; align-items: center; gap: var(--space-2); }
.activity summary::-webkit-details-marker { display: none; }
.activity summary::after { content: "+"; font-weight: 800; }
.activity details[open] summary::after { content: "\2212"; }
.activity details > div { padding-top: var(--space-3); color: var(--text-2); font-size: var(--text-small); }
.activity details ol { padding-left: 1.1rem; }
.activity details li { margin-bottom: var(--space-2); }

.contact-cards .card { gap: var(--space-2); }
.contact-cards a { word-break: break-word; }

.map { border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; background: var(--sky-100); }
.map__placeholder { padding: var(--space-6); text-align: center; display: flex; flex-direction: column; gap: var(--space-4); align-items: center; min-height: 320px; justify-content: center; }
.map__placeholder p { color: var(--text-2); max-width: 36rem; }
.map iframe { display: block; width: 100%; height: 420px; border: 0; }

.error-page { text-align: center; padding-block: var(--space-9); }
.error-page h1 { font-size: var(--text-display); }

.coming-soon { min-height: 100vh; display: grid; place-items: center; text-align: center; background: linear-gradient(180deg, var(--sky-50), var(--white)); }
.coming-soon__inner { display: flex; flex-direction: column; align-items: center; gap: var(--space-5); padding: var(--space-7) var(--gutter); max-width: 36rem; }
.coming-soon img { width: min(100%, 320px); }

/* 8. Forms ------------------------------------------------------------------ */
.form { display: grid; gap: var(--space-4); }
.form__row { display: grid; gap: var(--space-4); }
@media (min-width: 640px) { .form__row--2 { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: var(--space-2); }
.field label, .fieldset legend { font-weight: 600; color: var(--navy-900); font-size: var(--text-small); }
.field .hint { color: var(--text-3); font-size: var(--text-small); }
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: var(--white);
  border: 1.5px solid var(--ink-500);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.9rem;
  min-height: 48px;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy-500); box-shadow: 0 0 0 3px rgba(42, 90, 140, 0.25); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--error); }
.field__error { color: var(--error); font-size: var(--text-small); display: none; }
.field[data-invalid="true"] .field__error { display: block; }
.fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.fieldset legend { padding: 0; margin-bottom: var(--space-2); }
.check { display: flex; gap: var(--space-3); align-items: flex-start; font-size: var(--text-body); }
.check input { width: 1.25rem; height: 1.25rem; margin-top: 0.2rem; accent-color: var(--navy-700); flex-shrink: 0; }
.check--row { display: grid; gap: var(--space-2); }
@media (min-width: 640px) { .check--row { grid-template-columns: 1fr 1fr; } }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form__status { display: none; padding: var(--space-4) var(--space-5); border-radius: var(--radius-sm); font-weight: 600; }
.form__status[data-state="success"] { display: block; background: var(--success-bg); color: var(--success); }
.form__status[data-state="error"] { display: block; background: var(--error-bg); color: var(--error); }
.form__status[data-state="sending"] { display: block; background: var(--sky-100); color: var(--navy-700); }
.form-aside { display: grid; gap: var(--space-4); align-content: start; }

/* 9. Footer ----------------------------------------------------------------- */
.site-footer { background: var(--navy-900); color: var(--sky-100); padding-block: var(--space-8) var(--space-5); margin-top: auto; }
.footer-grid { display: grid; gap: var(--space-6); }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.site-footer h2 { color: var(--white); font-size: var(--text-small); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: var(--space-3); }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.site-footer li { margin: 0; }
.site-footer p { color: var(--sky-100); }
.footer-brand img { width: 160px; }
.footer-brand__tag { color: var(--white); font-weight: 600; margin: var(--space-2) 0 var(--space-3); font-size: var(--text-small); letter-spacing: 0.02em; }
.footer-contact li { display: flex; gap: var(--space-2); align-items: flex-start; }
.footer-contact .icon { margin-top: 0.25rem; color: var(--orange-500); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.15); margin-top: var(--space-7); padding-top: var(--space-5); display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-5); justify-content: space-between; font-size: var(--text-small); color: var(--sky-100); }
.footer-bottom ul { flex-direction: row; gap: var(--space-4); }

/* 10. Utilities & motion ---------------------------------------------------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap; border: 0;
}
.text-center { text-align: center; }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mb-0 { margin-bottom: 0; }
.muted { color: var(--text-3); }

.page { min-height: 100vh; display: flex; flex-direction: column; }
.page main { flex: 1; }

.reveal { opacity: 0; transform: translateY(12px); transition: opacity 500ms ease-out, transform 500ms ease-out; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .btn:hover, .card:hover { transform: none; }
}

@media print {
  .site-header, .site-footer, .cta-band, .nav-toggle, .btn { display: none !important; }
  body { color: #000; }
  a::after { content: " (" attr(href) ")"; font-size: 0.9em; }
}
