/* ============================================================
   County pages — Starke · Fulton · Miami
   Builds on styles.css. Each page sets its own accent colour.
   ============================================================ */

.county-page { --accent: var(--green-mid); --accent-soft: #e8efe4; }
.county-page--starke { --accent: #2b7450; --accent-soft: #e6efe2; }
.county-page--fulton { --accent: #a5271f; --accent-soft: #f7e6e2; }
.county-page--miami  { --accent: #2e6f9e; --accent-soft: #e4edf4; }

.county-page .county-rule { border-color: var(--accent); }

/* ---------- Hero ---------- */

.chero {
  position: relative;
  min-height: min(74vh, 660px);
  display: flex;
  align-items: flex-end;
  padding: 140px 0 clamp(40px, 6vw, 64px);
  color: #fff;
  overflow: hidden;
  background: var(--green-deep);
}

.chero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
}

.chero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(10, 26, 18, 0.92) 0%, rgba(10, 26, 18, 0.55) 45%, rgba(10, 26, 18, 0.18) 100%),
    linear-gradient(to right, rgba(10, 26, 18, 0.45), rgba(10, 26, 18, 0) 65%);
}

.chero-inner { position: relative; z-index: 2; }

.crumb {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 22px;
}
.crumb a { color: rgba(255, 255, 255, 0.86); }
.crumb a:hover { color: #fff; }
.crumb span { margin: 0 8px; }

.chero .eyebrow { color: rgba(255, 255, 255, 0.82); }
.chero .eyebrow .dot { background: #fff; }

.chero h1 {
  color: #fff;
  font-size: clamp(2.5rem, 5.6vw, 4.4rem);
  max-width: 20ch;
  margin-bottom: 0.35em;
}
.chero h1 em {
  font-style: italic;
  color: #f6e7c8;
  display: block;
}

.chero .lede {
  color: rgba(255, 255, 255, 0.9);
  max-width: 56ch;
  font-size: clamp(1rem, 1.2vw, 1.1rem);
}

.chero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}
.chero .btn-outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}
.chero .btn-outline:hover {
  background: #fff;
  color: var(--green-deep);
  border-color: #fff;
}
.chero .btn-solid { background: #fff; color: var(--green-deep); border-color: #fff; }
.chero .btn-solid:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

.chero-meta {
  margin: 24px 0 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: 0.01em;
}

/* ---------- Photo band under hero ---------- */

.cfacts {
  background: var(--green-deep);
  color: #fff;
  padding: 0;
}
.cfacts-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.cfact {
  padding: 26px 22px;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}
.cfact:last-child { border-right: 0; }
.cfact-label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 6px;
}
.cfact-value {
  font-family: var(--font-display);
  font-size: 1.14rem;
  line-height: 1.3;
  color: #fff;
}

/* ---------- Split text / image ---------- */

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 68px);
  align-items: center;
}
.split--reverse .split-media { order: -1; }

.split-media img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.split-media figcaption,
.caption {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 10px;
  line-height: 1.5;
}

.split h2 { max-width: 22ch; }
.split p { max-width: 60ch; }

.petal-note {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 20px 22px;
  margin: 26px 0 0;
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  border-radius: 0 10px 10px 0;
}
.petal-note img { width: 26px; height: auto; flex: none; margin-top: 2px; }
.petal-note p { margin: 0; font-size: 0.93rem; }

/* ---------- Gallery ---------- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 44px;
}
.gallery-grid .shot--wide { grid-column: span 2; }

.shot {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  text-align: left;
  padding: 0;
  cursor: zoom-in;
  font: inherit;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.shot:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.shot:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.shot-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}
.shot--tall .shot-img { aspect-ratio: 3 / 4; }

.shot-body { padding: 18px 20px 20px; }
.shot-year {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 6px;
}
.shot-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  line-height: 1.25;
  color: var(--green-deep);
  margin: 0 0 6px;
}
.shot-text {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 48px);
  background: rgba(9, 20, 14, 0.93);
}
.lightbox[hidden] { display: none; }
.lightbox-figure {
  margin: 0;
  max-width: min(1100px, 100%);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.lightbox-figure img {
  max-width: 100%;
  max-height: 74vh;
  width: auto;
  margin: 0 auto;
  border-radius: 10px;
  object-fit: contain;
}
.lightbox-figure figcaption {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  line-height: 1.55;
  text-align: center;
}
.lightbox-figure figcaption strong { color: #fff; }
.lightbox-close {
  position: absolute;
  top: 18px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.22); }
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
}
.lightbox-nav:hover { background: rgba(255, 255, 255, 0.2); }
.lightbox-prev { left: clamp(8px, 2vw, 24px); }
.lightbox-next { right: clamp(8px, 2vw, 24px); }

/* ---------- Timeline ---------- */

.timeline {
  margin: 44px 0 0;
  padding: 0 0 0 30px;
  list-style: none;
  border-left: 2px solid var(--line);
  max-width: 780px;
}
.timeline li {
  position: relative;
  padding: 0 0 30px 4px;
}
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -37px;
  top: 7px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--cream);
}
.tl-year {
  display: block;
  font-family: var(--font-display);
  font-size: 0.98rem;
  letter-spacing: 0.02em;
  color: var(--accent);
  margin-bottom: 2px;
}
.timeline p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink);
  max-width: 62ch;
}

/* ---------- Success stories ---------- */

.stories-block {
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 34px 0 30px;
}
.stab {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--green-deep);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.stab:hover { border-color: var(--accent); color: var(--accent); }
.stab[aria-selected="true"] {
  background: var(--green-deep);
  border-color: var(--green-deep);
  color: #fff;
}

.spanel {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(26px, 4vw, 54px);
  align-items: start;
}
.spanel[hidden] { display: none; }
.spanel h3 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  margin-bottom: 0.4em;
}
.spanel p { max-width: 58ch; }

.squote {
  background: var(--accent-soft);
  border-radius: var(--radius);
  padding: 28px 30px;
  border: 1px solid rgba(21, 33, 26, 0.06);
}
.squote p {
  font-family: var(--font-display);
  font-size: 1.16rem;
  line-height: 1.5;
  color: var(--green-deep);
  margin: 0 0 14px;
}
.squote cite {
  font-style: normal;
  font-size: 0.83rem;
  color: var(--muted);
  display: block;
}
.squote-meta {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(21, 33, 26, 0.12);
  font-size: 0.8rem;
  color: var(--muted);
}

/* ---------- Contact ---------- */

.ccontact {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: clamp(26px, 4vw, 56px);
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 34px);
  box-shadow: var(--shadow);
}
.ccontact-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 22%;
  border-radius: 10px;
  background: var(--accent-soft);
}
.ccontact h3 { font-size: 1.7rem; margin-bottom: 2px; }
.ccontact-role {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 16px;
}
.ccontact-list {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  font-size: 0.95rem;
}
.ccontact-list li { margin-bottom: 8px; color: var(--ink); }
.ccontact-list span {
  display: inline-block;
  min-width: 66px;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.ccontact-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Other counties ---------- */

.next-counties {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 34px;
}
.ncounty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.ncounty:hover { transform: translateY(-2px); border-color: var(--green); }
.ncounty strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--green-deep);
  font-weight: 500;
}
.ncounty span { font-size: 0.82rem; color: var(--muted); }
.ncounty .arrow { font-size: 1.2rem; color: var(--accent); }

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

.credits {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.6;
  max-width: 78ch;
  margin: 18px 0 0;
}
.credits a { color: rgba(255, 255, 255, 0.68); }

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
  .cfacts-inner { grid-template-columns: repeat(2, 1fr); }
  .cfact:nth-child(2) { border-right: 0; }
  .cfact:nth-child(1), .cfact:nth-child(2) { border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid .shot--wide { grid-column: span 2; }
  .spanel { grid-template-columns: 1fr; }
  .ccontact { grid-template-columns: 240px 1fr; }
}

@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse .split-media { order: 0; }
  .ccontact { grid-template-columns: 1fr; }
  .ccontact-photo { max-width: 260px; }
  .next-counties { grid-template-columns: 1fr; }
  .chero { min-height: 0; padding-top: 118px; }
}

@media (max-width: 560px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-grid .shot--wide { grid-column: auto; }
  .cfacts-inner { grid-template-columns: 1fr; }
  .cfact { border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
  .cfact:last-child { border-bottom: 0; }
  .ccontact-photo { max-width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .shot, .ncounty { transition: none; }
}

/* ---------- Small fixes ---------- */

.shot-body { display: block; }
.shot-title, .shot-text { display: block; }
.credit {
  display: block;
  margin-top: 4px;
  font-size: 0.7rem;
  color: rgba(91, 104, 96, 0.85);
}
.caption .credit { margin-top: 2px; }

@media (max-width: 820px) {
  .chero { padding-bottom: 40px; }
  .chero h1 em { font-size: 0.62em; line-height: 1.15; }
}

.county-page .section:last-of-type { padding-bottom: clamp(56px, 7vw, 90px); }
