/* Langar Model Aircraft Club – site styles
   Mobile-first; breakpoints at 640px, 820px, 960px and 1025px. */

:root {
  --navy-950: #061233;
  --navy-900: #0a1b47;
  --navy: #0f2a6b;
  --blue: #1d4ed8;
  --sky: #eef4fd;
  --sky-2: #f6f9fe;
  --ink: #0f172a;
  --body: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --line-2: #cbd5e1;
  --accent: #f5a524;
  --white: #ffffff;

  --display: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --max: 1200px;
  --prose: 740px;
  --r-lg: 22px;
  --r: 16px;
  --r-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05), 0 2px 6px rgba(15, 23, 42, .06);
  --shadow: 0 18px 40px -18px rgba(15, 23, 42, .35);
  --header-h: 64px;
  --gutter: 1.25rem;
  --section: 3.25rem;
}
@media (min-width: 820px) { :root { --section: 5rem; --gutter: 1.5rem; } }
@media (min-width: 1025px) { :root { --header-h: 76px; --section: 6rem; } }

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}
@media (min-width: 820px) { body { font-size: 1.0625rem; } }

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

a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy); }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.18;
  letter-spacing: -.02em;
  margin: 2.25rem 0 .9rem;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 1.5rem + 2.6vw, 3.4rem); }
h2 { font-size: clamp(1.45rem, 1.2rem + 1.1vw, 2.1rem); }
h3 { font-size: clamp(1.15rem, 1.05rem + .45vw, 1.4rem); letter-spacing: -.01em; }
h1:first-child, h2:first-child, h3:first-child { margin-top: 0; }

p { margin: 0 0 1.1rem; }
strong { color: var(--ink); font-weight: 600; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
::selection { background: #cfe0ff; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--navy); color: var(--white); padding: .75rem 1rem; border-radius: 0 0 10px 10px;
}
.skip-link:focus { left: 1rem; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.prose { max-width: var(--prose); margin: 0 auto; }
.lead { font-size: clamp(1.1rem, 1.02rem + .35vw, 1.28rem); line-height: 1.6; color: var(--ink); }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
/* The frosted background sits on a pseudo-element. A backdrop-filter on the
   header itself would trap the full-screen mobile menu inside the header bar. */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px -12px rgba(15, 23, 42, .18); }

.header-bar {
  max-width: var(--max); margin: 0 auto;
  height: var(--header-h);
  padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}

.site-title {
  display: flex; align-items: center; gap: .65rem; min-width: 0;
  font-family: var(--display); font-weight: 800;
  font-size: clamp(.98rem, .9rem + .35vw, 1.15rem);
  letter-spacing: -.01em; line-height: 1.15;
  color: var(--ink); text-decoration: none;
}
.site-title:hover { color: var(--navy); }
.mark { width: 36px; height: 36px; flex: none; color: var(--navy); }
@media (min-width: 1025px) { .mark { width: 38px; height: 38px; } }

.nav-toggle, .nav-close {
  display: none; flex: none;
  background: var(--white); border: 1px solid var(--line); border-radius: 12px;
  width: 44px; height: 44px; cursor: pointer; color: var(--ink);
  align-items: center; justify-content: center;
}
.nav-toggle svg, .nav-close svg { width: 22px; height: 22px; }

.menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .15rem; }
.menu > li { position: relative; }

.menu a, .sub-toggle {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .5rem .8rem;
  font: inherit; font-size: .95rem; font-weight: 500;
  color: var(--ink); text-decoration: none; line-height: 1.3;
  background: none; border: 0; border-radius: 999px; cursor: pointer;
  transition: background .15s, color .15s;
}
.menu a:hover, .sub-toggle:hover, .menu li.open > .sub-toggle { color: var(--navy); background: var(--sky); }
.menu a[aria-current="page"], .menu li.is-current > .sub-toggle { color: var(--blue); }

.menu .nav-cta { background: var(--navy); color: var(--white); margin-left: .5rem; padding: .55rem 1.15rem; }
.menu .nav-cta:hover, .menu .nav-cta[aria-current="page"] { background: var(--blue); color: var(--white); }

.sub-toggle .chev { width: 12px; height: 12px; opacity: .7; transition: transform .2s; }
.menu li.open > .sub-toggle .chev { transform: rotate(180deg); }

.submenu {
  list-style: none; margin: 0; padding: .5rem;
  position: absolute; top: calc(100% + .5rem); left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 260px;
  background: var(--white);
  border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden;
  transition: opacity .18s, transform .18s, visibility .18s;
}
.submenu a { display: flex; width: 100%; border-radius: var(--r-sm); padding: .6rem .85rem; }
.menu li.open > .submenu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
@media (hover: hover) and (min-width: 1025px) {
  .menu li.has-sub:hover > .submenu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
  .menu li.has-sub::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: .6rem; }
}

@media (max-width: 1024px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed; inset: 0; z-index: 60;
    background: var(--white);
    padding: .6rem var(--gutter) 3rem;
    overflow-y: auto; overscroll-behavior: contain;
    display: none;
  }
  body.nav-open { overflow: hidden; }
  body.nav-open .site-nav { display: block; animation: navIn .2s ease-out; }
  .nav-close { display: inline-flex; margin: 0 0 1rem auto; }
  .menu { flex-direction: column; align-items: stretch; gap: .15rem; max-width: 560px; margin: 0 auto; }
  .menu a, .sub-toggle { width: 100%; justify-content: space-between; font-size: 1.12rem; font-weight: 600; padding: .9rem 1rem; border-radius: 14px; min-height: 52px; }
  .menu .nav-cta { margin: 1.25rem 0 0; justify-content: center; }
  .submenu {
    position: static; transform: none; min-width: 0;
    border: 0; box-shadow: none; padding: 0 0 .5rem .75rem;
    opacity: 1; visibility: visible; display: none;
  }
  .menu li.open > .submenu { display: block; transform: none; }
  .submenu a { font-size: 1.02rem; font-weight: 500; color: var(--body); min-height: 46px; }
}
/* Slide only, no fade: the menu must never be left invisible if an animation doesn't run. */
@keyframes navIn { from { transform: translateY(-8px); } to { transform: none; } }

/* ---------- Page banners (one template for every page) ---------- */

.hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: flex-end;
  min-height: 300px;
  padding: 4.5rem 0 2rem;
  background: var(--navy-950);
  color: var(--white);
}
@media (min-width: 820px) { .hero { min-height: 340px; padding: 6rem 0 3rem; } }
@media (min-width: 1025px) { .hero { min-height: 380px; } }

.hero-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(0deg, rgba(6, 18, 51, .9) 0%, rgba(6, 18, 51, .45) 55%, rgba(6, 18, 51, .25) 100%);
}
@media (min-width: 820px) {
  .hero::before {
    background:
      linear-gradient(90deg, rgba(6, 18, 51, .88) 0%, rgba(6, 18, 51, .6) 45%, rgba(6, 18, 51, .15) 100%),
      linear-gradient(0deg, rgba(6, 18, 51, .5) 0%, rgba(6, 18, 51, 0) 50%);
  }
}
.hero--plain::before { background: linear-gradient(135deg, var(--navy-950) 0%, var(--navy-900) 55%, var(--navy) 100%); }

.hero-inner { width: 100%; }
.hero h1 { color: var(--white); margin: 0; max-width: 22ch; font-size: clamp(2rem, 1.45rem + 2.6vw, 3.4rem); line-height: 1.08; letter-spacing: -.03em; }
.hero-lead { margin: .8rem 0 0; font-size: clamp(1rem, .96rem + .3vw, 1.2rem); color: rgba(255, 255, 255, .85); max-width: 52ch; }

.breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem;
  margin: 0 0 .9rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255, 255, 255, .78);
}
.breadcrumb::before { content: ""; width: 24px; height: 2px; border-radius: 2px; background: var(--accent); }
.breadcrumb a { color: rgba(255, 255, 255, .78); text-decoration: none; }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb .sep { opacity: .5; }

/* Home: full-screen hero */
.hero--home {
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  padding: 3rem 0 2.5rem;
}
.hero--home h1 { font-size: clamp(2.6rem, 1.6rem + 4.6vw, 5.4rem); max-width: 15ch; }
@media (min-width: 820px) { .hero--home { align-items: center; padding: 4rem 0 6rem; } }
@media (max-height: 520px) { .hero--home { min-height: 520px; } }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
@media (max-width: 639px) { .hero-actions .btn { flex: 1 1 100%; } }
@media (min-width: 820px) { .hero-actions { margin-top: 2.5rem; } }

.scroll-cue {
  display: none;
  position: absolute; left: 50%; bottom: 1.5rem; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid rgba(255, 255, 255, .6); border-radius: 14px;
}
.scroll-cue::after {
  content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px;
  border-radius: 2px; background: var(--white); animation: cue 1.8s infinite;
}
@media (min-width: 820px) and (min-height: 700px) { .scroll-cue { display: block; } }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .8rem 1.45rem;
  border: 1px solid transparent; border-radius: 999px;
  background: var(--navy); color: var(--white);
  font: inherit; font-size: .98rem; font-weight: 600; line-height: 1.15;
  text-decoration: none; text-align: center; cursor: pointer;
  transition: background .18s, color .18s, border-color .18s, transform .18s, box-shadow .18s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover, .btn:focus-visible { background: var(--blue); color: var(--white); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn--solid { background: var(--navy); }
.btn--accent { background: var(--accent); color: #1c1300; }
.btn--accent:hover, .btn--accent:focus-visible { background: #ffb938; color: #1c1300; }
.btn--light { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .55); color: var(--white); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.btn--light:hover, .btn--light:focus-visible { background: var(--white); border-color: var(--white); color: var(--navy); }
.btn--outline { background: var(--white); border-color: var(--line-2); color: var(--ink); }
.btn--outline:hover, .btn--outline:focus-visible { background: var(--sky); border-color: var(--navy); color: var(--navy); }
.btn--small { min-height: 44px; padding: .65rem 1.15rem; font-size: .92rem; }
.btn:disabled { opacity: .6; cursor: progress; transform: none; }

/* ---------- Sections & layout ---------- */

.section { padding: var(--section) 0; }
.section--sky { background: var(--sky-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section + .section--sky, .section--sky + .section { border-top-color: var(--line); }

.section-head { max-width: var(--prose); margin: 0 auto 2rem; text-align: center; }
.section-head h2 { margin-bottom: .5rem; }

/* image + text side by side (stacks on phones) */
.media { display: grid; gap: 1.75rem; align-items: center; }
.media > figure, .media > .media-fig { margin: 0; }
.media figure img, .media .media-fig img { width: 100%; border-radius: var(--r-lg); box-shadow: var(--shadow); }
.media .cover-img img { aspect-ratio: 4 / 3; object-fit: cover; }
.media-text > :last-child { margin-bottom: 0; }
@media (min-width: 900px) {
  .media { grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 1rem + 4vw, 5rem); }
  .media--reverse > :first-child { order: 2; }
  .media--wide-text { grid-template-columns: 5fr 6fr; }
}

.split { display: grid; gap: 2rem; align-items: center; }
.split figure { margin: 0; }
@media (min-width: 820px) { .split { grid-template-columns: 1fr 1fr; gap: clamp(2rem, 1rem + 4vw, 4.5rem); } }

.rounded { border-radius: var(--r-lg); }

.media--top { align-items: start; }
.media .media-fig--natural { display: grid; place-items: center; padding: 1.5rem; background: #f1f1ef; border-radius: var(--r-lg); }
.media .media-fig--natural img { width: auto; max-width: 100%; box-shadow: var(--shadow-sm); }
.media .media-text > img:first-child { margin-bottom: 1.25rem; }

.article { max-width: var(--prose); margin: 0 auto; }
@media (min-width: 820px) { .article { padding: 3rem 3.25rem; } }
.article .byline { margin-top: .5rem; }

.timeline-card { max-width: var(--prose); margin: 0 auto; }
.cert { max-width: 520px; margin: 3rem auto 0; }

.section .container > figure:first-child { margin-top: 0; }
.section .container > figure:last-child { margin-bottom: 0; }
main:has(> .section--sky:last-child) + .cta-section { padding-top: var(--section); }

/* Long pages: sticky "On this page" menu */
.with-toc { display: grid; gap: 0; max-width: 1080px; margin: 0 auto; }
.toc { min-width: 0; }
.toc-title { display: none; margin: 0 0 .75rem; font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.toc ul { list-style: none; margin: 0; padding: 0; }
.toc a { text-decoration: none; color: var(--body); }
.toc-body { min-width: 0; max-width: var(--prose); }
.toc-body h2[id], .toc-body h3[id] { scroll-margin-top: calc(var(--header-h) + 4.5rem); }

@media (max-width: 959px) {
  .toc {
    position: sticky; top: var(--header-h); z-index: 20;
    margin: calc(var(--section) * -1) calc(var(--gutter) * -1) 2rem;
    padding: .7rem var(--gutter);
    background: rgba(255, 255, 255, .96);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
  }
  .toc ul {
    display: flex; gap: .5rem;
    overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
  }
  .toc ul::-webkit-scrollbar { display: none; }
  .toc li { flex: none; scroll-snap-align: start; }
  .toc a {
    display: inline-flex; align-items: center; min-height: 38px; padding: .4rem .9rem;
    border: 1px solid var(--line-2); border-radius: 999px;
    font-size: .88rem; font-weight: 500; white-space: nowrap; background: var(--white);
  }
  .toc a.is-active { background: var(--navy); border-color: var(--navy); color: var(--white); }
}
@media (min-width: 960px) {
  .with-toc { grid-template-columns: 230px minmax(0, 1fr); gap: 4rem; }
  .toc { position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; max-height: calc(100vh - var(--header-h) - 4rem); overflow-y: auto; }
  .toc-title { display: block; }
  .toc ul { border-left: 2px solid var(--line); }
  .toc a { display: block; margin-left: -2px; padding: .4rem 0 .4rem 1rem; border-left: 2px solid transparent; font-size: .92rem; line-height: 1.4; transition: color .15s, border-color .15s; }
  .toc a:hover { color: var(--navy); }
  .toc a.is-active { color: var(--navy); font-weight: 600; border-left-color: var(--navy); }
}

/* Home intro */
.intro { display: grid; gap: 2.5rem; align-items: center; }
.intro-media { position: relative; }
.intro-media > img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-lg); box-shadow: var(--shadow); }
.intro-badge { position: absolute; right: 1rem; bottom: -1.25rem; background: var(--white); border-radius: 18px; padding: .7rem; box-shadow: var(--shadow); }
.intro-badge img { width: 64px; }
.intro-text .lead { font-family: var(--display); font-weight: 700; letter-spacing: -.015em; font-size: clamp(1.3rem, 1.1rem + 1vw, 1.85rem); line-height: 1.3; }
.intro-text .btn { margin-top: .75rem; }
@media (min-width: 860px) {
  .intro { grid-template-columns: 1.05fr 1fr; gap: clamp(2.5rem, 1rem + 5vw, 5.5rem); }
  .intro-badge { right: -1.25rem; bottom: -1.5rem; padding: .85rem; }
  .intro-badge img { width: 76px; }
}

/* Home tiles */
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
.tile {
  position: relative; isolation: isolate; overflow: hidden;
  display: block; aspect-ratio: 1 / 1;
  border-radius: var(--r);
  color: var(--white); text-decoration: none;
  box-shadow: var(--shadow-sm);
}
.tile img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(6, 18, 51, .9) 0%, rgba(6, 18, 51, .1) 65%); }
.tile span {
  position: absolute; left: .9rem; right: .9rem; bottom: .85rem;
  display: flex; align-items: flex-end; justify-content: space-between; gap: .5rem;
  font-family: var(--display); font-weight: 700; font-size: .98rem; line-height: 1.2; letter-spacing: -.01em;
}
.tile span::after {
  content: ""; flex: none; width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255, 255, 255, .16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / 16px no-repeat;
  transition: background-color .2s, transform .2s;
}
.tile:hover { color: var(--white); }
.tile:hover img { transform: scale(1.06); }
.tile:hover span::after { background-color: var(--accent); transform: translateX(3px); }
@media (min-width: 900px) {
  .tiles { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
  .tile { aspect-ratio: 4 / 3; border-radius: var(--r-lg); }
  .tile span { left: 1.35rem; right: 1.35rem; bottom: 1.2rem; font-size: 1.2rem; align-items: center; }
  .tile span::after { width: 36px; height: 36px; background-size: 18px; }
}

/* Call to action */
.cta-section { padding: 0 0 var(--section); }
.cta-card {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; align-items: flex-start; gap: 1.5rem;
  padding: 2rem 1.5rem;
  border-radius: var(--r-lg);
  background: var(--navy-950); color: var(--white);
}
.cta-card > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; opacity: .55; }
.cta-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(6, 18, 51, .95) 0%, rgba(6, 18, 51, .72) 60%, rgba(6, 18, 51, .4) 100%); }
.cta-card h2 { color: var(--white); margin: 0 0 .5rem; }
.cta-card p { margin: 0; color: rgba(255, 255, 255, .82); max-width: 46ch; }
@media (max-width: 639px) { .cta-card .btn { width: 100%; } }
@media (min-width: 820px) {
  .cta-card { flex-direction: row; align-items: center; justify-content: space-between; gap: 2rem; padding: clamp(2.5rem, 1.5rem + 3vw, 4rem); border-radius: 28px; }
}

/* ---------- Content blocks ---------- */

figure { margin: 2rem 0; }
figure img { width: 100%; border-radius: var(--r); }
figure a { display: block; border-radius: var(--r); }
figcaption { font-size: .86rem; color: var(--muted); margin-top: .7rem; text-align: center; line-height: 1.5; }
figure.is-missing, .is-missing { display: none !important; }

.feature { display: grid; gap: 1.5rem; align-items: center; margin: 0 0 3.5rem; }
.feature:last-child { margin-bottom: 0; }
.feature figure { margin: 0; }
.feature figure img { aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-lg); box-shadow: var(--shadow); }
.feature h2 { margin-bottom: .8rem; }
.feature-logo { background: var(--sky); border-radius: var(--r-lg); padding: 2.5rem; display: grid; place-items: center; }
.feature .feature-logo img, .feature-logo img { width: min(200px, 60%); aspect-ratio: auto; object-fit: contain; box-shadow: none; border-radius: 0; }
@media (min-width: 820px) {
  .feature { grid-template-columns: 1fr 1fr; gap: clamp(1.75rem, 1rem + 4vw, 4.5rem); margin-bottom: clamp(3.5rem, 2rem + 4vw, 5.5rem); }
  .feature:nth-of-type(even) figure { order: 2; }
  .feature.no-image { grid-template-columns: 1fr; }
}

.notice {
  background: var(--sky);
  border: 1px solid #d6e3f7; border-radius: var(--r);
  padding: 1.05rem 1.25rem;
  margin: 1.5rem 0;
  box-shadow: inset 4px 0 0 var(--navy);
}
.notice p:last-child { margin-bottom: 0; }
.notice--strong { background: #fff7e8; border-color: #f7dfae; box-shadow: inset 4px 0 0 var(--accent); }

.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.5rem; box-shadow: var(--shadow-sm); }
.card > :last-child { margin-bottom: 0; }
.card h2, .card h3 { margin-top: 0; }
@media (min-width: 820px) { .card { padding: 2rem; } }

.cards-2 { display: grid; gap: 1rem; margin: 1.5rem 0 2rem; }
.cards-2 .card { padding: 1.35rem 1.4rem; }
.cards-2 .card h3 { font-size: 1.05rem; margin-bottom: .5rem; }
.cards-2 .card p { font-size: .96rem; }
@media (min-width: 700px) { .cards-2 { grid-template-columns: 1fr 1fr; } }

.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: .6rem; bottom: .6rem; width: 2px; background: linear-gradient(var(--navy), var(--line-2)); }
.timeline li { position: relative; padding: 0 0 1.5rem 2.25rem; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: 0; top: .4rem; width: 16px; height: 16px; border-radius: 50%; background: var(--white); border: 3px solid var(--navy); }
.timeline strong { display: block; font-family: var(--display); font-weight: 700; color: var(--navy); font-size: 1.02rem; margin-bottom: .15rem; }

.letter {
  position: relative;
  max-width: var(--prose); margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 1.5rem 1.35rem;
  box-shadow: var(--shadow-sm);
}
.letter::before { content: "“"; position: absolute; top: -.1rem; right: 1.25rem; font-family: Georgia, serif; font-size: 6rem; line-height: 1; color: var(--accent); opacity: .35; }
.letter blockquote { margin: 1.5rem 0; padding: 1rem 1.1rem; background: var(--sky-2); border-left: 3px solid var(--navy); border-radius: 0 var(--r-sm) var(--r-sm) 0; color: var(--ink); }
.letter blockquote p:last-child { margin-bottom: 0; }
.letter .signoff { font-weight: 600; color: var(--ink); margin-bottom: 0; }
@media (min-width: 820px) { .letter { padding: 2.75rem 3rem; } .letter blockquote { padding: 1.25rem 1.5rem; } }

.byline { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--display); font-weight: 700; color: var(--navy); font-size: 1rem; }
.byline::before { content: ""; width: 18px; height: 2px; background: var(--accent); border-radius: 2px; }

.article-body > p:first-of-type::first-letter {
  float: left; margin: .35rem .6rem 0 0;
  font-family: var(--display); font-weight: 800; font-size: 3.6rem; line-height: .8; color: var(--navy);
}

.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; margin: 0; }
.gallery figure { margin: 0; overflow: hidden; border-radius: var(--r-sm); background: var(--sky); }
.gallery img { aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-sm); transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.gallery figure:hover img { transform: scale(1.04); }
.gallery--portraits { grid-template-columns: repeat(3, 1fr); }
.gallery--portraits figure { background: #f1f1ef; }
.gallery--portraits img { aspect-ratio: 3 / 4; object-fit: cover; }
@media (min-width: 820px) {
  .gallery { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; }
  .gallery figure, .gallery img { border-radius: var(--r); }
  .gallery--portraits { grid-template-columns: repeat(7, 1fr); }
}

/* Rules */
.rules h2 { margin: 3rem 0 .25rem; }
.rules h2:first-child { margin-top: 0; }
.rules h3 { margin: 2.5rem 0 .75rem; font-size: 1.1rem; }
.rules .rule { display: grid; grid-template-columns: auto 1fr; gap: .85rem; padding: 1.1rem 0; margin: 0; border-bottom: 1px solid var(--line); }
.rules .rule:last-of-type { border-bottom: 0; }
.rules .rule > b {
  display: inline-grid; place-items: center;
  min-width: 2.7rem; height: 1.85rem; padding: 0 .5rem; margin-top: .1rem;
  border-radius: 999px; background: var(--sky); color: var(--navy);
  font-size: .8rem; font-weight: 700; font-variant-numeric: tabular-nums;
}
.rules .rule > div > p:last-child, .rules .rule > div > figure:last-child { margin-bottom: 0; }

.constitution ol, .constitution ul { padding-left: 1.3rem; }
.constitution li { margin-bottom: .8rem; padding-left: .3rem; }
.constitution li::marker { color: var(--navy); font-weight: 600; }
.constitution li > ol { list-style: lower-alpha; margin-top: .8rem; padding: 1rem 1rem 1rem 2.2rem; background: var(--sky-2); border: 1px solid var(--line); border-radius: var(--r); }
.constitution h2 { margin-top: 2.75rem; padding-top: 2rem; border-top: 1px solid var(--line); font-size: clamp(1.25rem, 1.1rem + .6vw, 1.55rem); }
.constitution h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }

.doc-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
.doc-list a {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.15rem;
  background: var(--white);
  border: 1px solid var(--line); border-radius: var(--r);
  font-weight: 600; line-height: 1.35; text-decoration: none; color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.doc-list a::after { content: "↗"; margin-left: auto; color: var(--muted); }
.doc-list a:hover { border-color: var(--navy); transform: translateY(-1px); box-shadow: var(--shadow); }
.doc-list svg { width: 40px; height: 40px; padding: 8px; flex: none; color: var(--navy); background: var(--sky); border-radius: 10px; }

/* ---------- News ---------- */

.news { display: grid; gap: 1rem; }
.news article { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.4rem 1.4rem; box-shadow: var(--shadow-sm); }
.news time { display: inline-block; margin-bottom: .8rem; padding: .3rem .75rem; border-radius: 999px; background: var(--sky); color: var(--navy); font-size: .8rem; font-weight: 600; }
.news p:last-child { margin-bottom: 0; }
@media (min-width: 820px) { .news article { padding: 1.75rem 2rem; } }

/* ---------- Pricing ---------- */

.prices { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; margin: 2.25rem 0 2.75rem; }
.price-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: .2rem;
  padding: 1.15rem 1rem;
  background: var(--white);
  border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow-sm);
  transition: transform .18s, box-shadow .18s;
}
.price-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.price-card h3 { margin: 0; font-family: var(--sans); font-size: .88rem; font-weight: 600; letter-spacing: 0; color: var(--muted); line-height: 1.3; }
.price-card .amount { font-family: var(--display); font-weight: 800; font-size: 2rem; letter-spacing: -.03em; color: var(--ink); line-height: 1.1; margin: .2rem 0 .9rem; }
.price-card .btn { margin-top: auto; width: 100%; padding-left: .5rem; padding-right: .5rem; }
.price-card:first-child { grid-column: 1 / -1; background: linear-gradient(160deg, var(--navy) 0%, var(--navy-950) 100%); border-color: transparent; }
.price-card:first-child h3 { color: rgba(255, 255, 255, .75); }
.price-card:first-child .amount { color: var(--white); }
.price-card:first-child .btn { background: var(--accent); color: #1c1300; }
.price-card:first-child .btn:hover { background: #ffb938; }
@media (min-width: 820px) {
  .prices { grid-template-columns: repeat(5, 1fr); gap: 1rem; }
  .price-card { padding: 1.6rem 1.4rem; border-radius: var(--r-lg); }
  .price-card:first-child { grid-column: auto; }
  .price-card .amount { font-size: 2.5rem; margin-bottom: 1.25rem; }
}

.bank {
  display: grid; grid-template-columns: 1fr; gap: .1rem;
  margin: 1.25rem 0 1.5rem; padding: 1.3rem 1.4rem;
  background: var(--sky-2); border: 1px solid var(--line); border-radius: var(--r-lg);
}
.bank dt { color: var(--muted); font-size: .9rem; }
.bank dd { margin: 0 0 .7rem; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.bank dd:last-child { margin-bottom: 0; }
@media (min-width: 560px) { .bank { grid-template-columns: max-content 1fr; gap: .6rem 2rem; } .bank dd { margin: 0; } }

/* ---------- Forms ---------- */

.form {
  display: grid; gap: 1.4rem;
  padding: 1.35rem 1.15rem;
  background: var(--white);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow);
}
@media (min-width: 640px) { .form { padding: clamp(1.75rem, 1rem + 2vw, 2.5rem); } }
.form .field { display: grid; gap: .45rem; }
.form .two { display: grid; grid-template-columns: 1fr; gap: 1.4rem; }
@media (min-width: 560px) { .form .two { grid-template-columns: 1fr 1fr; gap: 1rem; } }
.form label, .form legend { font-weight: 600; font-size: .95rem; color: var(--ink); }
.form legend { padding: 0; margin-bottom: .6rem; }
.form .req { color: #c2410c; margin-left: .15rem; }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form textarea, .form select {
  width: 100%; min-height: 50px;
  font: inherit; font-size: 1rem; color: var(--ink);
  padding: .75rem 1rem;
  background: var(--sky-2);
  border: 1px solid var(--line-2); border-radius: 12px;
  transition: border-color .15s, background .15s, box-shadow .15s;
  -webkit-appearance: none; appearance: none;
}
.form textarea { min-height: 150px; resize: vertical; }
.form input:hover, .form textarea:hover { border-color: #94a3b8; }
.form input:focus, .form textarea:focus { background: var(--white); border-color: var(--blue); outline: none; box-shadow: 0 0 0 4px rgba(29, 78, 216, .15); }
.form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .5rem; }
.form .choice {
  display: flex; align-items: flex-start; gap: .65rem;
  min-height: 50px; padding: .8rem .9rem;
  border: 1px solid var(--line-2); border-radius: 12px;
  font-weight: 500; font-size: .95rem; color: var(--body); line-height: 1.45;
  cursor: pointer; background: var(--white);
  transition: border-color .15s, background .15s;
  -webkit-tap-highlight-color: transparent;
}
.form .choice:hover { border-color: #94a3b8; }
.form .choice:has(input:checked) { border-color: var(--navy); background: var(--sky); color: var(--ink); }
.form .choice input { margin: .15rem 0 0; width: 1.1rem; height: 1.1rem; accent-color: var(--navy); flex: none; }
.form .error { grid-column: 1 / -1; color: #b91c1c; font-size: .9rem; }
.form .hp { position: absolute; left: -9999px; }
.form button[type="submit"] { width: 100%; }
@media (min-width: 640px) { .form button[type="submit"] { width: auto; padding: .95rem 2.4rem; } }
.form-status { padding: 1rem 1.2rem; border-radius: 12px; display: none; }
.form-status.show { display: block; }
.form-status.ok { background: #ecfdf3; border: 1px solid #abefc6; color: #05603a; }
.form-status.err { background: #fef3f2; border: 1px solid #fecdca; color: #912018; }

/* Form + information panel */
.form-layout { display: grid; gap: 2rem; align-items: start; max-width: 1100px; margin: 0 auto; }
.info-panel { background: var(--sky-2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.4rem 1.35rem; }
.info-panel > :last-child { margin-bottom: 0; }
.info-panel .notice { margin-top: 0; background: var(--white); }
@media (min-width: 960px) {
  .form-layout { grid-template-columns: 340px minmax(0, 1fr); gap: 3rem; }
  .info-panel { position: sticky; top: calc(var(--header-h) + 1.5rem); padding: 1.75rem; }
}

/* ---------- Contact & Find Us ---------- */

.contact-layout { display: grid; gap: 2rem; align-items: start; }
.contact-layout .form { margin-top: 1.5rem; }
.contact-aside { background: var(--sky-2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.5rem 1.35rem; }
.contact-aside h2 { font-size: 1.4rem; }
.contact-list { display: grid; gap: 1.5rem; margin-top: 1.25rem; }
.contact-item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-item .icon { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--navy); color: var(--white); }
.contact-item .icon svg { width: 22px; height: 22px; }
.contact-item h3 { font-family: var(--sans); font-weight: 600; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: .1rem 0 .3rem; }
.contact-item p { margin: 0; color: var(--ink); }
@media (min-width: 900px) {
  .contact-layout { grid-template-columns: 1.45fr 1fr; gap: clamp(2rem, 1rem + 4vw, 4rem); }
  .contact-aside { position: sticky; top: calc(var(--header-h) + 1.5rem); padding: 2.25rem; }
}

.location { display: grid; gap: 1.5rem; align-items: stretch; }
.location .map { margin: 0; height: 100%; min-height: 300px; aspect-ratio: auto; }
.address-card { display: grid; gap: 1.1rem; }
.address-card .btn { justify-self: start; }
@media (min-width: 900px) { .location { grid-template-columns: 1fr 1.2fr; gap: 2.5rem; } .location .map { min-height: 420px; } }

.map { display: block; width: 100%; aspect-ratio: 4 / 3; border: 0; border-radius: var(--r-lg); background: var(--sky); box-shadow: var(--shadow-sm); }

/* ---------- Footer ---------- */

.site-footer { background: var(--navy-950); color: rgba(255, 255, 255, .72); font-size: .95rem; padding-top: 3rem; }
.footer-top { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 1.5rem; }
.footer-brand { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.footer-title { display: flex; align-items: center; gap: .7rem; max-width: 16rem; color: var(--white); font-family: var(--display); font-weight: 800; font-size: 1.1rem; line-height: 1.2; text-decoration: none; }
.footer-title:hover { color: var(--white); }
.footer-title .mark { color: var(--blue); }
.footer-bmfa { display: inline-block; padding: .5rem; background: var(--white); border-radius: 14px; flex: none; }
.footer-bmfa img { width: 52px; }
.footer-col h2 { margin: 0 0 .9rem; font-family: var(--sans); font-size: .74rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--white); }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .2rem; }
.footer-col a { display: inline-block; padding: .3rem 0; color: rgba(255, 255, 255, .72); text-decoration: none; line-height: 1.4; }
.footer-col a:hover { color: var(--white); }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.5rem; padding-bottom: calc(1.75rem + env(safe-area-inset-bottom)); border-top: 1px solid rgba(255, 255, 255, .12); }
.footer-text { margin: 0; font-size: .85rem; color: rgba(255, 255, 255, .58); }
.footer-text a { color: rgba(255, 255, 255, .82); }
.footer-text a:hover { color: var(--white); }
@media (min-width: 960px) {
  .site-footer { padding-top: 4.5rem; }
  .footer-top { grid-template-columns: 1.5fr repeat(4, 1fr); gap: 2rem 2.5rem; }
  .footer-brand { grid-column: auto; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 1.5rem; }
  .footer-col--plain { padding-top: 1.9rem; }
  .footer-bottom { margin-top: 3.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media print {
  .site-header, .site-footer, .hero, .cta-section, .toc { display: none; }
}
