/* Adaptive Kung-Fu — Kenneth Brown & Co. LLC */

:root {
  --teal: #16505E;
  --teal-deep: #0E3A45;
  --teal-soft: #2A6B7A;
  --gold: #E8A33D;
  --gold-deep: #B87B1E;
  --ink: #14262C;
  --body: #33484F;
  --cream: #FAF7F2;
  --sand: #F1EAE0;
  --white: #FFFFFF;
  --maxw: 1120px;
  --radius: 14px;
  --shadow: 0 2px 4px rgba(20,38,44,.06), 0 12px 28px rgba(20,38,44,.10);
}

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

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--body);
  font-family: "Poppins", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  color: var(--ink);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2.1rem, 5.2vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: clamp(1.15rem, 2.2vw, 1.4rem); }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--gold-deep); }

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

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

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: 20px; }

/* ---------- Skip link ---------- */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--gold); color: var(--ink);
  padding: 12px 20px; font-weight: 600; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

/* ---------- Header ---------- */
.site-header {
  background: var(--teal);
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 1px 0 rgba(255,255,255,.12);
}
.bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 72px; flex-wrap: wrap;
}
.brand {
  display: inline-flex; align-items: baseline; gap: .5ch;
  color: var(--white); font-weight: 700; font-size: 1.32rem;
  text-decoration: none; letter-spacing: -.02em; padding-block: 14px;
}
.brand .ak-dot { color: var(--gold); }
.brand:hover { color: var(--white); }

.nav { display: flex; flex-wrap: wrap; gap: 2px; padding-bottom: 8px; }
.nav a {
  color: #DCEAEE; text-decoration: none; font-size: .96rem; font-weight: 500;
  padding: 9px 14px; border-radius: 999px; white-space: nowrap;
}
.nav a:hover { background: rgba(255,255,255,.12); color: var(--white); }
.nav a[aria-current="page"] { background: var(--gold); color: #3A2606; font-weight: 600; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font-weight: 600; font-size: 1rem;
  padding: 14px 26px; border-radius: 999px; text-decoration: none;
  transition: transform .15s ease, background .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold); color: #3A2606; box-shadow: var(--shadow); }
.btn-gold:hover { background: #F2B558; color: #3A2606; }
.btn-ghost { border: 2px solid rgba(255,255,255,.55); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,.1); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

/* ---------- Hero ---------- */
.hero { background: var(--teal); color: #E8F1F3; }
.hero .grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center;
  padding-block: clamp(48px, 7vw, 88px);
}
.hero h1 { color: var(--white); }
.hero .kicker {
  display: inline-block; color: var(--gold); font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; font-size: .8rem; margin-bottom: 18px;
}
.hero p { color: #CFE2E6; font-size: 1.08rem; }
.hero-photo {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  aspect-ratio: 4 / 5; max-width: 100%;
}
.hero-photo.wide, .hero-photo.wide img {
  aspect-ratio: 4 / 3;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(48px, 6.5vw, 84px); }
.section-sand { background: var(--sand); }
.section-white { background: var(--white); }
.lede { font-size: 1.12rem; max-width: 62ch; }
.center { text-align: center; margin-inline: auto; }

.eyebrow {
  color: var(--teal-soft); font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; font-size: .78rem; margin-bottom: 10px;
}

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; margin-top: 34px; }
.card {
  background: var(--white); border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow); border-top: 4px solid var(--gold);
}
.cards.cards-4 { grid-template-columns: repeat(2, 1fr); }
.card > img { width: 100%; height: auto; aspect-ratio: 16/10; object-fit: cover; border-radius: 10px; margin: -4px 0 18px; display: block; }
.card h3 { margin-bottom: .4em; }
.card p { font-size: .98rem; }

/* ---------- Split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; }
.split.portrait img { aspect-ratio: 3/4; }
.split.square img { aspect-ratio: 1/1; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 34px; }
.gallery img { border-radius: 10px; width: 100%; height: auto; aspect-ratio: 1/1; object-fit: cover; box-shadow: var(--shadow); }

/* ---------- FAQ ---------- */
.faq { max-width: 800px; margin-top: 30px; }
.faq details {
  background: var(--white); border-radius: 12px; margin-bottom: 12px;
  box-shadow: var(--shadow); overflow: hidden;
}
.faq summary {
  cursor: pointer; padding: 20px 24px; font-weight: 600; color: var(--ink);
  font-size: 1.03rem; list-style: none; display: flex; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold-deep); font-size: 1.5rem; line-height: 1; font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq .answer { padding: 0 24px 22px; font-size: .99rem; }

/* ---------- Contact ---------- */
.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; margin-top: 32px; }
.contact-card {
  background: var(--white); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); text-align: center;
}
.contact-card .label { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-soft); font-weight: 600; }
.contact-card a { font-size: 1.24rem; font-weight: 600; display: inline-block; margin-top: 8px; word-break: break-word; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--teal-deep); color: #E8F1F3; text-align: center; }
.cta-band h2 { color: var(--white); }
.cta-band p { color: #CFE2E6; max-width: 55ch; margin-inline: auto; }
.cta-band .btn-row { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--teal-deep); color: #BCD4DA; padding-block: 44px; font-size: .93rem; }
.site-footer a { color: #EAF3F5; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer .brand { font-size: 1.15rem; padding-block: 0; margin-bottom: 10px; }
.foot-h { color: var(--white); font-weight: 600; margin-bottom: 8px; font-size: .95rem; }
.foot-list { list-style: none; margin: 0; padding: 0; }
.foot-list li { margin-bottom: 6px; }
.legal { margin-top: 34px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.16); font-size: .86rem; color: #9FBCC4; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .cards.cards-4 { grid-template-columns: 1fr; }
  .hero .grid, .split { grid-template-columns: 1fr; gap: 32px; }
  .hero-photo { order: -1; aspect-ratio: 16/11; }
  .split.portrait img, .split.square img, .split img { aspect-ratio: 16/11; }
  .foot-grid { grid-template-columns: 1fr; gap: 24px; }
  .bar { min-height: 0; padding-top: 6px; }
}
@media (max-width: 500px) {
  body { font-size: 17px; }
  .card, .contact-card { padding: 22px; }
}

/* =========================================================
   Visitor preferences
   ========================================================= */
.pref-big-text { font-size: 118%; }
.pref-contrast { --body: #1B2F35; --teal-soft: #17505E; }
.pref-contrast .hero p, .pref-contrast .cta-band p { color: #EAF5F7; }
.pref-contrast .nav a { color: #F2F9FA; }
.pref-contrast .site-footer { color: #D8E8EC; }
.pref-contrast .card, .pref-contrast .contact-card, .pref-contrast .faq details {
  border: 1px solid rgba(20,38,44,.22);
}
.pref-no-motion *, .pref-no-motion *::before, .pref-no-motion *::after {
  animation-duration: .001ms !important; transition-duration: .001ms !important;
  scroll-behavior: auto !important;
}

/* =========================================================
   Reading progress
   ========================================================= */
.progress-bar {
  position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60;
  background: var(--gold); transform: scaleX(0); transform-origin: 0 50%;
  transition: transform .08s linear; pointer-events: none;
}

/* =========================================================
   Header: condense on scroll, utilities, mobile menu
   ========================================================= */
.site-header { transition: box-shadow .25s ease, background .25s ease; }
.site-header.is-scrolled {
  background: rgba(14,58,69,.94);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  box-shadow: 0 6px 24px rgba(10,30,36,.28);
}
.bar { flex-wrap: nowrap; }
.nav-tools { display: flex; align-items: center; gap: 8px; }

.a11y {  position: relative; }
.a11y-toggle, .nav-toggle {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  background: rgba(255,255,255,.1); color: #EAF3F5;
  border: 1px solid rgba(255,255,255,.28); border-radius: 999px;
  font: inherit; font-size: .9rem; font-weight: 600;
  padding: 9px 15px; cursor: pointer; min-height: 42px;
}
.a11y-toggle:hover, .nav-toggle:hover { background: rgba(255,255,255,.2); color: #fff; }
.a11y-toggle .aa { font-size: 1.02rem; letter-spacing: -.02em; }

#a11y-panel {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 70;
  width: min(19rem, calc(100vw - 32px));
  background: var(--white); color: var(--ink);
  border-radius: 14px; box-shadow: 0 18px 44px rgba(10,30,36,.3);
  padding: 18px 18px 14px; text-align: left;
}
#a11y-panel .panel-h {
  font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--teal-soft); font-weight: 700; margin: 0 0 10px;
}
#a11y-panel label {
  display: flex; gap: 11px; align-items: flex-start;
  padding: 9px 6px; border-radius: 9px; cursor: pointer; font-size: .95rem;
}
#a11y-panel label:hover { background: var(--sand); }
#a11y-panel input { margin-top: .28em; width: 18px; height: 18px; accent-color: var(--teal); flex: none; }
#a11y-panel .hint { display: block; font-size: .82rem; color: var(--teal-soft); }
#a11y-panel .panel-note {
  margin: 10px 2px 0; font-size: .78rem; color: var(--teal-soft); line-height: 1.5;
}

.nav-toggle { display: none; }
.nav-toggle .bars { position: relative; width: 17px; height: 2px; background: currentColor; border-radius: 2px; }
.nav-toggle .bars::before, .nav-toggle .bars::after {
  content: ""; position: absolute; left: 0; width: 17px; height: 2px;
  background: currentColor; border-radius: 2px; transition: transform .2s ease, top .2s ease;
}
.nav-toggle .bars::before { top: -6px; }
.nav-toggle .bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { top: 0; transform: rotate(-45deg); }

/* =========================================================
   Reveal on scroll
   ========================================================= */
.reveal { opacity: 0; transform: translateY(18px); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s cubic-bezier(.22,.7,.3,1); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* =========================================================
   Format Finder
   ========================================================= */
.finder {
  background: var(--white); border-radius: 18px; box-shadow: var(--shadow);
  padding: clamp(24px, 3.6vw, 40px); max-width: 760px; margin-top: 34px;
  border-top: 4px solid var(--gold);
}
.finder-progress {
  font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--teal-soft); font-weight: 700; margin: 0 0 14px;
}
.finder h3 { font-size: clamp(1.25rem, 2.6vw, 1.6rem); margin-bottom: .6em; outline: none; }
.finder-options { display: grid; gap: 12px; margin-top: 22px; }
.finder-options button {
  display: flex; flex-direction: column; gap: 3px; text-align: left;
  background: var(--cream); border: 2px solid transparent; border-radius: 12px;
  padding: 16px 18px; font: inherit; color: var(--ink); cursor: pointer;
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}
.finder-options button:hover { border-color: var(--gold); background: #fff; transform: translateX(3px); }
.finder-options .opt-label { font-weight: 600; }
.finder-options .opt-sub { font-size: .88rem; color: var(--teal-soft); }
.finder-back, .finder-restart {
  background: none; border: none; font: inherit; font-size: .9rem; font-weight: 600;
  color: var(--teal-soft); cursor: pointer; padding: 8px 2px; margin-top: 16px;
  text-decoration: underline; text-underline-offset: 3px;
}
.finder-back:hover, .finder-restart:hover { color: var(--gold-deep); }
.finder-result .finder-name {
  font-size: clamp(1.5rem, 3.4vw, 2rem); color: var(--ink); font-weight: 700;
  margin: 4px 0 .4em; line-height: 1.2;
}
.finder-result .eyebrow { margin-bottom: 0; }
.finder-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; align-items: center; }

/* =========================================================
   Small stuff
   ========================================================= */
.card { transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-3px); box-shadow: 0 4px 8px rgba(20,38,44,.07), 0 18px 38px rgba(20,38,44,.14); }
.split img, .hero-photo img { transition: transform .5s cubic-bezier(.22,.7,.3,1); }
.split:hover img { transform: scale(1.02); }

/* =========================================================
   Responsive: the mobile menu
   ========================================================= */
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .bar { min-height: 64px; padding-block: 8px; }
  .nav {
    position: fixed; inset: 64px 0 auto 0; z-index: 55;
    display: none; flex-direction: column; gap: 2px; padding: 12px 16px 20px;
    background: var(--teal-deep); box-shadow: 0 18px 36px rgba(10,30,36,.36);
    max-height: calc(100dvh - 64px); overflow-y: auto;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 16px; border-radius: 10px; font-size: 1.04rem; }
  body.nav-locked { overflow: hidden; }
  .finder-options button:hover { transform: none; }
}
@media (min-width: 861px) {
  .nav { display: flex !important; }
}

/* =========================================================
   Cross-page transitions (progressive enhancement)
   ========================================================= */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
