/* styles.css */
:root {
  --bg: #f7f4ef;
  --ink: #121212;
  --muted: rgba(18, 18, 18, 0.68);
  --muted2: rgba(18, 18, 18, 0.56);

  --brand: #123026;
  --brand2: #1b3a2e;
  --gold: #b98c5c;

  --shadow-sm: 0 10px 22px rgba(18, 18, 18, 0.08);
  --shadow-md: 0 18px 44px rgba(18, 18, 18, 0.12);
  --shadow-lg: 0 30px 80px rgba(18, 18, 18, 0.14);

  --r-lg: 26px;
  --r-md: 18px;

  --max: 1120px;
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(900px 480px at 10% 0%, rgba(185, 140, 92, 0.16), transparent 60%),
    radial-gradient(820px 520px at 90% 10%, rgba(18, 48, 38, 0.10), transparent 62%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.0), rgba(18, 48, 38, 0.02)),
    var(--bg);
  min-height: 100vh;
}

a { color: inherit; }
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(14px, 4vw, 22px);
}

/* Topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(247, 244, 239, 0.72);
  border-bottom: 1px solid rgba(18, 18, 18, 0.06);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
}

.brandline { display: flex; align-items: center; gap: 12px; }
.brandtext { display: grid; gap: 2px; }

.monogram {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(18, 48, 38, 0.08);
  border: 1px solid rgba(18, 48, 38, 0.12);
  color: rgba(18, 48, 38, 0.92);
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 0.9rem;
}

.brandtext strong {
  font-family: "Playfair Display", serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 1rem;
}

.brandtext span { font-size: 0.86rem; color: var(--muted); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.pill {
  font-size: 0.92rem;
  color: var(--muted);
  padding: 8px 12px;
  border: 1px solid rgba(18, 18, 18, 0.10);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.pill i { color: rgba(18, 48, 38, 0.85); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.01em;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
  will-change: transform;
}

.btn i { font-size: 1.05em; line-height: 1; }

.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  color: #fff;
  box-shadow: 0 16px 34px rgba(18, 48, 38, 0.22);
  border-color: rgba(255, 255, 255, 0.08);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.74);
  border-color: rgba(18, 18, 18, 0.14);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid rgba(185, 140, 92, 0.35); outline-offset: 3px; }
.btn-lg { padding: 14px 18px; }
.btn-full { width: 100%; }

/* Hero */
.hero-wrap { padding: 34px 0 18px; }

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  grid-template-areas:
    "text portrait"
    "cta portrait";
  gap: 26px;
  padding: 0;
  width: 100%;
  border-radius: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.hero::before {
  content: none;
}

.hero > * { position: relative; z-index: 1; min-width: 0; }
.hero-text {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 0;
  min-width: 0;
  grid-area: text;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.86rem;
  letter-spacing: 0.18rem;
  text-transform: uppercase;
  color: rgba(185, 140, 92, 0.95);
}

h1, h2, h3 { font-family: "Playfair Display", serif; margin: 0; }

.hero-title {
  font-size: clamp(1.9rem, 2.8vw, 2.6rem);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.hero-sub {
  font-size: 1.06rem;
  line-height: 1.78;
  color: var(--muted);
  max-width: 72ch;
  margin: 0;
  overflow-wrap: anywhere;
}

/* Audience filter */
.audience-filter { padding-top: 6px; }

.filter-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 30px 26px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(248, 244, 238, 0.9));
  border: 1px solid rgba(185, 140, 92, 0.22);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  text-align: center;
}

.filter-card h2 { margin: 0 0 6px; font-size: 1.8rem; }
.filter-card p { margin: 0; color: var(--muted); font-size: 1.02rem; }

.filter-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 10px;
}

.seg-btn {
  appearance: none;
  border: 1px solid rgba(18, 18, 18, 0.14);
  background: rgba(255, 255, 255, 0.86);
  border-radius: 999px;
  padding: 14px 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  font-weight: 800;
  font-size: 1rem;
  width: 100%;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
  box-shadow: 0 10px 22px rgba(18, 18, 18, 0.06);
}

.seg-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.seg-btn:active { transform: translateY(0); }
.seg-btn:focus-visible { outline: 3px solid rgba(185, 140, 92, 0.35); outline-offset: 3px; }

.seg-btn[aria-selected="true"] {
  background: #f2e9dd;
  border-color: rgba(18, 48, 38, 0.8);
  color: var(--accent);
  box-shadow: 0 18px 32px rgba(18, 48, 38, 0.12);
}

.seg-btn[aria-selected="true"] i {
  color: var(--accent);
}

.seg-btn-ghost {
  background: rgba(255, 255, 255, 0.55);
  font-weight: 800;
  box-shadow: none;
}

/* Hero meta */
.hero-meta { display: grid; gap: 10px; margin-top: 4px; }
.meta-row { display: flex; flex-wrap: wrap; gap: 10px; }

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(18, 18, 18, 0.10);
  color: var(--muted);
  font-size: 0.96rem;
}

.meta-item i { color: rgba(18, 48, 38, 0.85); }

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(18, 48, 38, 0.75);
  box-shadow: 0 0 0 4px rgba(18, 48, 38, 0.10);
}


.mini-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(18, 18, 18, 0.10);
  background: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  color: rgba(18, 48, 38, 0.96);
  font-weight: 800;
  font-size: 0.92rem;
  white-space: nowrap;
}

.mini-link:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(18, 18, 18, 0.10); }

.meta-link-below {
  align-self: center;
  margin: 6px auto 0;
  padding: 16px 30px;
  font-size: 1.1rem;
  width: 100%;
  justify-content: center;
  grid-area: cta;
}

/* Portrait */
.hero-portrait {
  display: grid;
  gap: 12px;
  align-content: start;
  justify-items: center;
  padding: 0;
  min-width: 0;
  grid-area: portrait;
}

.portrait-card {
  width: min(390px, 100%);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(18, 18, 18, 0.12);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  box-sizing: border-box;
}

.portrait-media { aspect-ratio: 1 / 1.08; overflow: hidden; background: #fff; }

.portrait-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  filter: grayscale(0.15) contrast(1.04);
}

/* Mode-based CTA visibility */
.final-cta .cta-block { display: none; }
body[data-mode="choose"] .final-cta .cta-generic { display: grid; }
body[data-mode="pf"] .final-cta .cta-pf { display: grid; }
body[data-mode="pj"] .final-cta .cta-pj { display: grid; }

/* Sections */
.section { padding: 26px 0; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin-bottom: 14px;
}

.section-head h2 { font-size: 1.8rem; color: rgba(18, 48, 38, 0.98); }
.section-head p { margin: 0; max-width: 72ch; color: var(--muted); line-height: 1.7; }

.section-cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.audience-pf .section-cta-row { justify-content: center; }
.cta-row-center { justify-content: center; }

.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; }

.card {
  background: rgba(255, 255, 255, 0.90);
  border: 1px solid rgba(18, 18, 18, 0.10);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  padding: 18px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.card p { margin: 0; color: var(--muted); line-height: 1.72; }

.card .kicker {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: rgba(18, 48, 38, 0.86);
  font-weight: 900;
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}

.icon {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(18, 48, 38, 0.08);
  border: 1px solid rgba(18, 48, 38, 0.10);
  color: rgba(18, 48, 38, 0.92);
}

.icon i { font-size: 1.05rem; }
.span-4 { grid-column: span 4; }
.span-6 { grid-column: span 6; }

/* Audience details (PF/PJ collapsible) */
/* Highlights */
.highlights-grid .card { min-height: 170px; }

/* Show/hide by mode with transitions */
.audience {
  transition: opacity 0.28s ease, transform 0.28s ease, max-height 0.32s ease, padding 0.24s ease, margin 0.24s ease;
  max-height: 4000px;
  overflow: hidden;
}

body[data-mode="pf"] .audience-pj,
body[data-mode="pj"] .audience-pf,
body[data-mode="choose"] .audience {
  opacity: 0;
  transform: translateY(12px);
  max-height: 0;
  pointer-events: none;
  padding-top: 0;
  padding-bottom: 0;
  margin-top: 0;
  margin-bottom: 0;
}

/* Bullets */
.common-cases {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(18, 18, 18, 0.08);
  border-radius: var(--r-md);
  padding: 18px;
}

.bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 14px;
}

.bullets li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(18, 18, 18, 0.08);
  box-shadow: 0 8px 18px rgba(18, 18, 18, 0.06);
}

.bullets li i {
  margin-top: 2px;
  color: rgba(18, 48, 38, 0.88);
  font-size: 1.05rem;
  width: 20px;
  text-align: center;
}

.bullets li strong { color: rgba(18, 48, 38, 0.98); }

/* Mini points */
.mini-points {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.mini-points li { display: flex; align-items: flex-start; gap: 10px; color: var(--muted); }
.mini-points i { margin-top: 3px; color: rgba(18, 48, 38, 0.82); }

/* About / Stats */
.about-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 14px;
  align-items: start;
}

.about-text {
  padding: 18px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(18, 18, 18, 0.08);
}

.prose p { margin: 0; color: var(--muted); line-height: 1.8; }
.prose p + p { margin-top: 14px; }

.stats { display: grid; gap: 12px; }

.stat {
  padding: 16px 18px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.90);
  border: 1px solid rgba(18, 18, 18, 0.10);
  box-shadow: var(--shadow-sm);
}

.stat strong {
  display: block;
  font-size: 1.25rem;
  color: rgba(18, 48, 38, 0.98);
  margin-bottom: 6px;
}

.stat span { color: var(--muted); }

/* Final CTA */
.final-cta {
  border-radius: var(--r-lg);
  padding: 22px;
  background:
    radial-gradient(820px 420px at 12% 18%, rgba(185, 140, 92, 0.18), transparent 60%),
    linear-gradient(135deg, rgba(18, 48, 38, 0.98), rgba(18, 48, 38, 0.88));
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-lg);
}

.final-cta-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 18px;
  align-items: start;
}

.final-cta-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.16rem;
  text-transform: uppercase;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 10px;
}

.final-cta h2 {
  color: #fff;
  font-size: clamp(1.7rem, 2.4vw, 2.15rem);
  line-height: 1.12;
  margin-bottom: 8px;
}

.final-cta p {
  margin: 0;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.82);
  max-width: 72ch;
}

.cta-block {
  gap: 12px;
  margin-top: 8px;
}

.cta-generic-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cta-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.cta-box {
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 14px;
}

.cta-box-alt {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
}

.cta-box-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.94);
}

.cta-checks {
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.cta-checks li { display: flex; align-items: flex-start; gap: 10px; color: rgba(255, 255, 255, 0.88); }
.cta-checks i { margin-top: 3px; color: rgba(185, 140, 92, 0.95); }

.final-cta .btn-primary {
  background: rgba(255, 255, 255, 0.92);
  color: var(--brand);
  border-color: rgba(255, 255, 255, 0.30);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18);
}

.final-cta .btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.92);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: none;
}

.final-cta-footnote {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.95rem;
}

/* Panel */
.final-cta-panel .panel-card {
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  padding: 16px;
}

.panel-card + .panel-card { margin-top: 12px; }
.panel-card-soft { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.16); }

.panel-title { display: flex; align-items: center; gap: 10px; color: #fff; margin-bottom: 6px; }
.panel-title i { color: rgba(185, 140, 92, 0.95); }

.panel-sub { margin: 0 0 10px; color: rgba(255, 255, 255, 0.80); line-height: 1.6; }

.address-block {
  display: grid;
  gap: 8px;
  padding: 12px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.address-line { display: flex; align-items: flex-start; gap: 10px; color: rgba(255, 255, 255, 0.88); }
.address-line i { margin-top: 2px; color: rgba(255, 255, 255, 0.70); }

.panel-actions { margin-top: 12px; display: grid; gap: 10px; }
.panel-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.panel-list li { display: flex; gap: 10px; align-items: center; color: rgba(255, 255, 255, 0.88); }
.panel-list i { color: rgba(255, 255, 255, 0.70); }

.panel-highlight {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 12px 12px;
  border-radius: 14px;
  background: rgba(185, 140, 92, 0.14);
  border: 1px solid rgba(185, 140, 92, 0.22);
  color: rgba(255, 255, 255, 0.90);
}

/* Footer */
.footer { padding: 22px 0 36px; color: var(--muted2); font-size: 0.92rem; }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid rgba(18, 18, 18, 0.08);
  padding-top: 18px;
}

.footer-credit {
  flex-basis: 100%;
  line-height: 1.6;
  text-align: center;
}

/* Mobile gate: show only topbar + selector + footer until selection */
body.lock-mobile .hero-wrap,
body.lock-mobile main > section:not(.audience-filter) {
  display: none;
}

body.lock-mobile .audience-filter {
  margin-top: 10px;
}

body.hide-topbar-mobile .topbar {
  display: none;
}

/* Responsive */
@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    grid-template-areas:
      "text"
      "portrait"
      "cta";
  }
  .portrait-card, .quick-cta { width: min(520px, 100%); }
  .section-head { flex-direction: column; align-items: flex-start; }
  .span-4 { grid-column: span 6; }
  .span-6 { grid-column: span 12; }
  .bullets { grid-template-columns: 1fr; }
  .final-cta-grid { grid-template-columns: 1fr; }
  .cta-split { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .hero {
    padding: 0;
    gap: 18px;
    grid-template-columns: 1fr;
    grid-template-areas:
      "text"
      "portrait"
      "cta";
  }
  .hero-text,
  .hero-portrait {
    width: 100%;
    padding: 0;
    border-radius: 0;
    border: none;
    background: transparent;
    box-shadow: none;
  }
  .portrait-card { width: 100%; max-width: 100%; box-shadow: none; border: none; background: transparent; }
}

@media (max-width: 620px) {
  .topbar-inner { flex-direction: column; align-items: flex-start; }
  .nav-actions { width: 100%; }
  .pill { display: none; }
  .nav-actions { display: grid; gap: 10px; }
  .nav-actions .btn { width: 100%; justify-content: center; }
  .hero-wrap { padding: 24px 0 10px; }
  .hero {
    grid-template-columns: 1fr;
    grid-template-areas:
      "text"
      "portrait"
      "cta";
    gap: 16px;
    overflow: visible;
  }
  .hero-text, .hero-portrait, .meta-link-below { width: 100%; }
  .hero-text { padding: 0; }
  .hero-title { font-size: 1.6rem; letter-spacing: 0.02em; }
  .hero-sub { font-size: 1rem; }
  .meta-row { flex-direction: column; align-items: flex-start; }
.meta-item { width: 100%; flex-wrap: wrap; overflow-wrap: anywhere; }
  .meta-link-below { width: 100%; }
  .hero-portrait { padding: 0; }
  .portrait-card { width: 100%; max-width: 100%; overflow: hidden; border-radius: 16px; margin: 0; }
  .portrait-media { aspect-ratio: auto; overflow: hidden; border-radius: 16px; }
  .portrait-media img {
    height: auto;
    object-fit: contain;
    width: 100%;
    transform: none;
    border-radius: 16px;
    display: block;
  }
  .hero-portrait { width: 100%; }
  .highlights-grid .card { grid-column: span 12; }
  .filter-card { padding: 24px 18px; }
  .filter-actions { grid-template-columns: 1fr; }
  .seg-btn { font-size: 1rem; padding: 14px 18px; }
  .section-cta-row .btn { width: 100%; }
  .cta-generic-actions { flex-direction: column; }
  .cta-generic-actions .btn { width: 100%; }
  .grid { gap: 12px; }
  .span-4 { grid-column: span 12; }
  .about-wrap { grid-template-columns: 1fr; }
  .about-text { padding: 16px; }
  .stats { grid-template-columns: 1fr; }
  .stat strong { font-size: 1.1rem; }
  .final-cta-panel { gap: 14px; }
  .panel-list li { align-items: flex-start; }
  .panel-list a { word-break: break-word; }
  .mini-link { margin-left: 0; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
