/* ==========================================================================
   EOA — Site styles (built on colors_and_type.css)
   ========================================================================== */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--fg); font-family: var(--font-sans); font-size: 16px; line-height: var(--lh-normal); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }

/* ---------------------------------------------------------------- LAYOUT */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 var(--gutter); }
.container-wide { max-width: var(--container-wide); margin: 0 auto; padding: 0 var(--gutter); }

.section { padding: 96px 0; position: relative; }
.section-sm { padding: 56px 0; }
.section-lg { padding: 128px 0; }
.section.bg-cream { background: var(--bg); }
.section.bg-cream-warm { background: var(--bg-alt); }
.section.bg-green { background: var(--eoa-hunter-green); color: var(--fg-on-dark); }
.section.bg-green-deep { background: var(--bg-deep); color: var(--fg-on-dark); }
.section.bg-green .eoa-eyebrow,
.section.bg-green-deep .eoa-eyebrow { color: var(--eoa-tan); }
.section.bg-green .eoa-sub,
.section.bg-green-deep .eoa-sub { color: rgba(251,247,242,0.78); }

@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .section-lg { padding: 80px 0; }
}

/* ---------------------------------------------------------------- TYPE */
.eoa-display { font-size: clamp(56px, 8vw, 96px); font-weight: 800; line-height: 0.96; letter-spacing: -0.025em; margin: 0; }
.eoa-h1      { font-size: clamp(40px, 5.4vw, 72px); font-weight: 800; line-height: 1.04; letter-spacing: -0.025em; margin: 0; }
.eoa-h2      { font-size: clamp(32px, 4vw, 50px); font-weight: 700; line-height: 1.08; letter-spacing: -0.02em; margin: 0; }
.eoa-h3      { font-size: clamp(24px, 2.6vw, 36px); font-weight: 600; line-height: 1.15; letter-spacing: -0.012em; margin: 0; }
.eoa-h4      { font-size: clamp(20px, 2vw, 28px); font-weight: 600; line-height: 1.2; margin: 0; }
.eoa-sub     { font-family: var(--font-serif); font-style: italic; font-weight: 400; font-size: clamp(18px, 2vw, 26px); line-height: 1.3; color: var(--fg-muted); margin: 0; }
.eoa-lead    { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.5; color: var(--fg-muted); font-weight: 400; margin: 0; }
.eoa-body    { font-size: 16px; line-height: 1.55; }
.eoa-small   { font-size: 14px; line-height: 1.5; color: var(--fg-muted); }
.eoa-eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 12px; font-weight: 700; line-height: 1;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); margin: 0;
}
.eoa-eyebrow::before { content: ""; width: 28px; height: 1.5px; background: currentColor; flex-shrink: 0; }
.eoa-eyebrow.no-rule::before { display: none; }

.text-on-dark { color: var(--fg-on-dark); }
.text-on-dark .eoa-lead,
.text-on-dark .eoa-body { color: rgba(251,247,242,0.82); }
.text-on-dark .eoa-small { color: rgba(251,247,242,0.66); }

.kicker {
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  font-size: clamp(16px, 1.3vw, 19px); color: var(--fg-muted);
}

mark.brand-mark { background: transparent; color: var(--accent); font-weight: 800; }

/* ---------------------------------------------------------------- NAV */
.nav {
  position: sticky; top: 0; z-index: 80;
  background: rgba(251, 247, 242, 0.86);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--border);
  transition: background var(--dur-base) var(--ease-standard), border-color var(--dur-base) var(--ease-standard);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 84px;
  transition: height var(--dur-base) var(--ease-standard);
}
.nav.is-scrolled .nav-inner { height: 64px; }
.nav.is-scrolled { background: rgba(251,247,242,0.94); box-shadow: 0 1px 0 var(--border); }

.nav-brand { display: flex; align-items: center; gap: 10px; }
.nav-brand img { height: 34px; transition: height var(--dur-base) var(--ease-standard); }
.nav.is-scrolled .nav-brand img { height: 28px; }

.nav-links { display: flex; gap: 32px; align-items: center; list-style: none; padding: 0; margin: 0; }
.nav-links a {
  font-size: 15px; font-weight: 500; color: var(--fg);
  padding: 6px 2px; position: relative;
  transition: color var(--dur-base) var(--ease-standard);
}
.nav-links a:hover { color: var(--accent); }
.nav-links a.active { color: var(--accent); }
.nav-links a.active::after {
  content: ""; position: absolute; bottom: -2px; left: 0; right: 0;
  height: 2px; background: var(--accent);
}

.nav-right { display: flex; align-items: center; gap: 24px; }
.nav-lang { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; color: var(--fg-muted); display: flex; gap: 4px; }
.nav-lang .on { color: var(--accent); }
.nav-lang span { padding: 0 2px; }

.nav-burger { display: none; background: transparent; border: 0; padding: 8px; color: var(--fg); }

@media (max-width: 920px) {
  .nav-links, .nav-right .nav-lang { display: none; }
  .nav-burger { display: inline-flex; }
}

.mobile-menu {
  position: fixed; inset: 84px 0 0 0; z-index: 70;
  background: var(--bg); padding: 24px var(--gutter) 48px;
  display: none; flex-direction: column; gap: 4px;
  overflow-y: auto;
  border-top: 1px solid var(--border);
}
.mobile-menu.is-open { display: flex; }
.mobile-menu a {
  font-size: 22px; font-weight: 600; padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.mobile-menu a.active { color: var(--accent); }
.mobile-menu .btn { margin-top: 24px; align-self: flex-start; }

/* ---------------------------------------------------------------- BUTTONS */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-sans); font-weight: 600; font-size: 16px;
  padding: 14px 26px; border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  transition: background var(--dur-base) var(--ease-standard), color var(--dur-base) var(--ease-standard), border-color var(--dur-base) var(--ease-standard);
  white-space: nowrap;
  letter-spacing: 0.005em;
}
.btn-primary { background: var(--accent); color: var(--fg-on-dark); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:active { background: var(--accent-press); box-shadow: var(--shadow-press); }

.btn-secondary { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn-secondary:hover { background: var(--eoa-green-50); }

.btn-ghost { background: transparent; color: var(--accent); padding-left: 0; padding-right: 0; border-radius: 0; }
.btn-ghost:hover { color: var(--accent-hover); }
.btn-ghost .arrow { transition: transform var(--dur-base) var(--ease-standard); }
.btn-ghost:hover .arrow { transform: translateX(4px); }

.btn-on-dark.btn-primary { background: var(--eoa-isabelline); color: var(--accent); }
.btn-on-dark.btn-primary:hover { background: var(--eoa-cream-100); }
.btn-on-dark.btn-secondary { color: var(--fg-on-dark); border-color: rgba(251,247,242,0.5); }
.btn-on-dark.btn-secondary:hover { background: rgba(251,247,242,0.1); border-color: var(--fg-on-dark); }

.btn-lg { padding: 16px 30px; font-size: 17px; }
.btn-sm { padding: 10px 18px; font-size: 14px; }

.btn-row { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.btn-help { font-size: 14px; color: var(--fg-muted); max-width: 320px; line-height: 1.4; }

/* ---------------------------------------------------------------- LISTS, CHIPS, RULES */
.tag-row { display: flex; gap: 8px; flex-wrap: wrap; }
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--eoa-cream-100); color: var(--fg);
  border: 1px solid var(--border);
  padding: 6px 12px; border-radius: var(--radius-pill);
  font-size: 13px; font-weight: 500;
}
.tag.tag-green { background: var(--eoa-green-100); border-color: rgba(41,93,63,0.18); color: var(--accent); }
.tag.tag-tan { background: var(--eoa-tan-300); border-color: var(--eoa-tan); }
.tag.tag-on-dark { background: rgba(251,247,242,0.1); border-color: rgba(251,247,242,0.22); color: var(--fg-on-dark); }

.check-list, .x-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.check-list li, .x-list li { display: grid; grid-template-columns: 24px 1fr; gap: 14px; align-items: flex-start; line-height: 1.5; }
.check-list li::before, .x-list li::before {
  content: ""; width: 22px; height: 22px; border-radius: 50%;
  display: inline-block; margin-top: 2px;
  background-repeat: no-repeat; background-position: center; background-size: 12px 12px;
}
.check-list li::before {
  background-color: var(--eoa-green-100);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23295D3F' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
}
.x-list li::before {
  background-color: #F6E2DF;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23BD7B6F' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><line x1='18' y1='6' x2='6' y2='18'/><line x1='6' y1='6' x2='18' y2='18'/></svg>");
}
.text-on-dark .check-list li::before { background-color: rgba(251,247,242,0.12); background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FBF7F2' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>"); }

/* numbered list — used heavily for processes */
.num-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; counter-reset: numlist; }
.num-list li { display: grid; grid-template-columns: 40px 1fr; gap: 16px; align-items: start; counter-increment: numlist; line-height: 1.55; }
.num-list li::before {
  content: counter(numlist, decimal-leading-zero);
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  font-size: 28px; line-height: 1; color: var(--accent);
}
.text-on-dark .num-list li::before { color: var(--eoa-tan); }

/* simple bullet — for tighter copy */
.bullet-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.bullet-list li { padding-left: 22px; position: relative; line-height: 1.5; }
.bullet-list li::before {
  content: ""; width: 6px; height: 6px; background: var(--accent); border-radius: 50%;
  position: absolute; left: 0; top: 10px;
}
.text-on-dark .bullet-list li::before { background: var(--eoa-tan); }

hr.rule { border: 0; border-top: 1px solid var(--border); margin: 0; }
hr.rule.on-dark { border-color: var(--border-on-dark); }

/* wavy underline decoration — uses brand book wavy line accessory */
.wavy {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 8' preserveAspectRatio='none'><path d='M0 4 Q15 -2, 30 4 T60 4 T90 4 T120 4' fill='none' stroke='%23D3B89D' stroke-width='2.2' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat; background-position: 0 100%; background-size: 100% 8px;
  padding-bottom: 12px;
}

/* ---------------------------------------------------------------- CARDS */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px;
  display: flex; flex-direction: column; gap: 16px;
}
.card.card-warm { background: var(--surface-warm); }
.card.card-green { background: var(--eoa-hunter-green); color: var(--fg-on-dark); border-color: transparent; }
.card.card-green-deep { background: var(--bg-deep); color: var(--fg-on-dark); border-color: transparent; }
.card.card-elevated { border-color: transparent; box-shadow: var(--shadow-md); }
.card.card-hero { border-radius: var(--radius-xl); padding: 40px; box-shadow: var(--shadow-xl); }
.card .card-eyebrow { font-family: var(--font-serif); font-style: italic; color: var(--fg-muted); font-size: 16px; margin: 0; }
.card.card-green .card-eyebrow, .card.card-green-deep .card-eyebrow { color: rgba(251,247,242,0.7); }

/* ---------------------------------------------------------------- ACCORDION */
.faq { display: grid; gap: 0; border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); padding: 24px 0; }
.faq summary {
  list-style: none;
  display: grid; grid-template-columns: 1fr 32px; gap: 16px; align-items: center;
  cursor: pointer;
  font-size: clamp(18px, 1.6vw, 22px); font-weight: 600; line-height: 1.3;
  color: var(--fg);
  transition: color var(--dur-base) var(--ease-standard);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent); }
.faq summary .plus {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1.5px solid var(--accent); color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 400; line-height: 1;
  transition: transform var(--dur-base) var(--ease-standard), background var(--dur-base) var(--ease-standard), color var(--dur-base) var(--ease-standard);
  flex-shrink: 0;
}
.faq summary .plus::before { content: "+"; }
.faq details[open] summary .plus { background: var(--accent); color: var(--fg-on-dark); transform: rotate(45deg); }
.faq .answer { margin-top: 16px; font-size: 17px; line-height: 1.6; color: var(--fg-muted); max-width: 820px; }
.faq .answer p { margin: 0 0 12px; }
.faq .answer p:last-child { margin-bottom: 0; }

/* ---------------------------------------------------------------- FOOTER */
.footer { background: var(--eoa-hunter-green); color: var(--fg-on-dark); padding: 96px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 64px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }
.footer-brand img { height: 52px; margin-bottom: 24px; }
.footer-brand p { font-size: 16px; line-height: 1.55; color: rgba(251,247,242,0.78); max-width: 360px; }
.footer h6 { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--eoa-tan); margin: 0 0 18px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.footer a { font-size: 15px; color: rgba(251,247,242,0.85); transition: color var(--dur-base) var(--ease-standard); }
.footer a:hover { color: var(--eoa-isabelline); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding-top: 24px; border-top: 1px solid rgba(251,247,242,0.18);
  font-size: 13px; color: rgba(251,247,242,0.6); flex-wrap: wrap;
}
.footer-bottom .legal { display: flex; gap: 24px; flex-wrap: wrap; }

/* ---------------------------------------------------------------- IMAGE PLACEHOLDER */
.img-ph {
  background: linear-gradient(135deg, var(--eoa-cream-100) 0%, var(--eoa-cream-200) 100%);
  border: 1px dashed var(--eoa-tan);
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  padding: 32px; color: var(--eoa-tan-700);
  font-family: var(--font-serif); font-style: italic; font-size: 17px;
  text-align: center; line-height: 1.4;
  aspect-ratio: 4 / 3;
  position: relative;
}
.img-ph.portrait { aspect-ratio: 4 / 5; }
.img-ph.square { aspect-ratio: 1 / 1; }
.img-ph.wide { aspect-ratio: 16 / 9; }
.img-ph.tall { aspect-ratio: 3 / 4; }
.img-ph::before {
  content: "";
  position: absolute; inset: 12px;
  border: 1px dashed rgba(168,139,114,0.4);
  border-radius: calc(var(--radius-lg) - 8px);
  pointer-events: none;
}
.img-ph .ph-label {
  position: relative;
  display: inline-flex; flex-direction: column; align-items: center; gap: 6px;
  max-width: 260px;
}
.img-ph .ph-icon {
  width: 40px; height: 40px; opacity: 0.55;
}
.img-ph.on-green { background: rgba(251,247,242,0.06); border-color: rgba(251,247,242,0.32); color: rgba(251,247,242,0.7); }
.img-ph.on-green::before { border-color: rgba(251,247,242,0.18); }

/* ---------------------------------------------------------------- ANNOTATION (used in About) */
.handwritten {
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  color: var(--eoa-tan-700);
}

/* ---------------------------------------------------------------- GRIDS */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-12 { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
@media (max-width: 920px) {
  .grid-2 { grid-template-columns: 1fr; gap: 40px; }
  .grid-3 { grid-template-columns: 1fr; gap: 24px; }
  .grid-4 { grid-template-columns: 1fr 1fr; gap: 24px; }
  .grid-12 { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  .grid-4 { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------- STAT ROW */
.stat-strip {
  display: flex; gap: 0; flex-wrap: wrap;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.stat-strip .stat { flex: 1; padding: 28px 24px; border-right: 1px solid var(--border); min-width: 180px; }
.stat-strip .stat:last-child { border-right: 0; }
.stat-strip .n { font-family: var(--font-sans); font-weight: 800; font-size: clamp(28px, 3vw, 40px); line-height: 1; color: var(--fg); letter-spacing: -0.02em; }
.stat-strip .l { font-size: 13px; color: var(--fg-muted); margin-top: 8px; }
.stat-strip.on-dark { border-color: rgba(251,247,242,0.18); }
.stat-strip.on-dark .stat { border-right-color: rgba(251,247,242,0.18); }
.stat-strip.on-dark .n { color: var(--fg-on-dark); }
.stat-strip.on-dark .l { color: rgba(251,247,242,0.7); }
@media (max-width: 720px) {
  .stat-strip { flex-direction: column; }
  .stat-strip .stat { border-right: 0; border-bottom: 1px solid var(--border); }
  .stat-strip.on-dark .stat { border-bottom-color: rgba(251,247,242,0.18); }
  .stat-strip .stat:last-child { border-bottom: 0; }
}

/* ---------------------------------------------------------------- UTIL */
.center { text-align: center; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; } .mt-5 { margin-top: 48px; } .mt-6 { margin-top: 64px; } .mt-7 { margin-top: 96px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; } .mb-4 { margin-bottom: 32px; } .mb-5 { margin-bottom: 48px; } .mb-6 { margin-bottom: 64px; } .mb-7 { margin-bottom: 96px; }
.max-680 { max-width: 680px; }
.max-820 { max-width: 820px; }
.max-920 { max-width: 920px; }

/* dot divider */
.dot-row { display: inline-flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 14px; color: var(--fg-muted); }
.dot-row .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--fg-muted); opacity: 0.5; }
.text-on-dark .dot-row { color: rgba(251,247,242,0.78); }
.text-on-dark .dot-row .dot { background: rgba(251,247,242,0.5); }

/* section heading block */
.section-head { display: grid; gap: 16px; max-width: 820px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eoa-eyebrow { justify-self: center; }

/* anchor link helper */
.anchor-offset { scroll-margin-top: 96px; }
