/*
 * Oregon Soaks — shared visual refinement
 * Loaded after the existing page styles so content and behavior stay intact.
 */

:root {
  --os-forest-950: #0d2b28;
  --os-forest-900: #123a35;
  --os-forest-800: #184a43;
  --os-water-700: #226f66;
  --os-water-600: #2b8177;
  --os-water-100: #dcebe7;
  --os-water-050: #edf5f2;
  --os-rust-600: #c95f32;
  --os-rust-500: #e17845;
  --os-rust-100: #f8e4d8;
  --os-sand-100: #f5f0e7;
  --os-sand-050: #fbf9f5;
  --os-paper: #ffffff;
  --os-ink: #173531;
  --os-copy: #38534f;
  --os-muted: #61736f;
  --os-line: #cfddd9;
  --os-line-dark: #adc3bd;
  --os-radius: 3px;
  --os-shadow: 0 12px 30px rgba(13, 43, 40, .09);
  --os-shadow-soft: 0 3px 12px rgba(13, 43, 40, .07);
  --os-max: 1240px;
  --header-h: 66px;
}

html { scroll-padding-top: calc(var(--header-h) + 20px); }

body {
  background: var(--os-sand-100);
  color: var(--os-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
}

body,
.home-section-head > p,
.guide-section-head > p,
.gl-section-head > p,
.gl-prose,
.loc-section-intro { color: var(--os-copy); }

h1, h2, h3, h4 { color: var(--os-ink); text-wrap: balance; }
p { text-wrap: pretty; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--os-rust-500);
  outline-offset: 3px;
}

/* Shared header ---------------------------------------------------------- */
.site-header {
  height: var(--header-h);
  background: rgba(13, 43, 40, .98) !important;
  border-bottom: 2px solid var(--os-rust-500) !important;
  box-shadow: 0 6px 22px rgba(4, 22, 20, .16) !important;
}

.site-header.scrolled {
  background: rgba(13, 43, 40, .96) !important;
  box-shadow: 0 10px 28px rgba(4, 22, 20, .22) !important;
}

.header-inner {
  width: min(var(--os-max), calc(100% - 40px));
  max-width: none;
  padding: 0;
}

.site-logo.is-logo-only {
  gap: .72rem;
  min-width: 220px;
}

.site-logo.is-logo-only .site-logo-img {
  width: 48px;
  height: 46px;
  max-width: 48px;
  flex-basis: 48px;
  object-fit: cover;
  object-position: left center;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .15));
}

.site-logo.is-logo-only::after {
  content: "OREGON SOAKS";
  color: #fffaf1;
  font-size: .95rem;
  font-weight: 850;
  letter-spacing: .12em;
  text-shadow: none;
}

.site-nav { height: 100%; gap: .05rem; }

.site-nav .nav-link,
.site-nav .nav-link:visited {
  position: relative;
  display: inline-flex;
  height: 100%;
  align-items: center;
  padding: 0 .82rem;
  border-radius: 0;
  color: rgba(255, 255, 255, .82) !important;
  font-size: .82rem;
  font-weight: 750;
  letter-spacing: .015em;
}

.site-nav .nav-link::after {
  content: "";
  position: absolute;
  right: .82rem;
  bottom: -2px;
  left: .82rem;
  height: 3px;
  background: var(--os-rust-500);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .18s ease;
}

.site-nav .nav-link:hover,
.site-nav .nav-link:focus-visible,
.site-nav .nav-link[aria-current="page"] {
  background: rgba(255, 255, 255, .07) !important;
  color: #fff !important;
}

.site-nav .nav-link:hover::after,
.site-nav .nav-link:focus-visible::after,
.site-nav .nav-link[aria-current="page"]::after { transform: scaleX(1); }

.nav-toggle { border: 1px solid rgba(255, 255, 255, .18); border-radius: var(--os-radius); }

/* Shared footer ---------------------------------------------------------- */
.footer-wave { display: none; }
.site-footer { border-top: 4px solid var(--os-rust-500); }
.footer-body { padding-top: 0 !important; }
.footer-inner {
  width: min(var(--os-max), calc(100% - 40px));
  max-width: none;
  padding-top: 3rem !important;
  padding-bottom: 2.25rem !important;
}
.footer-heading { color: #fff !important; letter-spacing: .09em; text-transform: uppercase; }
.footer-nav { gap: .48rem !important; }
.footer-nav a { font-size: .86rem; }
.footer-nav a:hover { color: #ffb08d !important; }
.footer-bottom { padding-block: 1rem !important; }

/* Shared editorial rhythm ------------------------------------------------ */
.home-shell,
.guide-shell,
.gl-shell,
.t1-shell { width: min(var(--os-max), calc(100% - 48px)); }

.home-kicker,
.home-eyebrow,
.guide-kicker,
.guide-eyebrow,
.gl-kicker,
.gl-eyebrow,
.t1-eyebrow,
.loc-eyebrow {
  color: var(--os-rust-500);
  letter-spacing: .12em;
}

.home-kicker::before,
.home-eyebrow::before,
.guide-kicker::before,
.guide-eyebrow::before,
.gl-kicker::before,
.gl-eyebrow::before,
.loc-eyebrow::before { width: 28px; border-radius: 0; }

.dc-ad-zone {
  background: rgba(255, 255, 255, .56);
  border: 1px solid var(--os-line);
  border-radius: 0;
}

.dc-ad-label { color: var(--os-muted); letter-spacing: .09em; }

/* Home ------------------------------------------------------------------ */
.home-hero {
  background:
    linear-gradient(90deg, rgba(5, 25, 23, .94) 0%, rgba(7, 34, 31, .78) 44%, rgba(7, 34, 31, .28) 76%, rgba(7, 34, 31, .10) 100%),
    linear-gradient(180deg, rgba(4, 20, 19, .08) 52%, rgba(4, 20, 19, .42) 100%),
    url("../img/oregonsoaks-header-hero.webp") center center / cover no-repeat;
  background-color: #0b2926;
  border-bottom: 0;
}

.home-hero::before {
  opacity: 1;
  background: linear-gradient(180deg, transparent 60%, rgba(5, 25, 23, .34) 100%);
  mask-image: none;
}

.home-hero-grid {
  grid-template-columns: minmax(0, 1.28fr) minmax(300px, .72fr);
  min-height: 550px;
  padding-block: 3.5rem 4.5rem;
}

.home-hero h1 {
  max-width: 700px;
  font-size: clamp(2rem, 4.1vw, 3rem);
  line-height: 1.04;
  letter-spacing: -.045em;
}

.home-lead { max-width: 720px; color: rgba(255,255,255,.8); }

.home-search-row {
  padding: 5px;
  border: 1px solid rgba(255,255,255,.6);
  border-radius: var(--os-radius);
  box-shadow: 0 14px 34px rgba(0,0,0,.2);
}

.home-search button,
.home-btn,
.home-filter,
.home-filter-clear { border-radius: var(--os-radius); }

.home-search button { background: var(--os-rust-500); border-color: var(--os-rust-500); color: var(--os-forest-950); }
.home-search button:hover { background: #ef8b5a; border-color: #ef8b5a; }

.home-btn-primary { background: var(--os-rust-500); border-color: var(--os-rust-500); }
.home-btn-quiet { border-color: rgba(255,255,255,.42); }

.home-trip-card {
  border: 1px solid rgba(255,255,255,.55);
  border-top: 4px solid var(--os-rust-500);
  border-radius: var(--os-radius);
  box-shadow: 14px 16px 0 rgba(5, 27, 24, .26);
}

.home-trip-card li > span { background: var(--os-water-100); border-radius: 0; }

.home-stats {
  margin-top: -26px;
  border: 1px solid var(--os-line);
  border-top: 3px solid var(--os-water-600);
  border-radius: 0;
  background: var(--os-line);
  box-shadow: var(--os-shadow);
}

.home-stat { background: var(--os-paper); }

.home-section { padding-block: clamp(3.2rem, 6vw, 5rem); }
.home-soft { background: #eaf2ef; }
.home-natural { background: var(--os-paper); }

.home-section h2 { font-size: clamp(1.65rem, 2.8vw, 2.25rem); }

.home-map-layout,
.home-compare-grid,
.home-source-grid,
.home-area-grid,
.home-safety-grid { gap: .85rem; }

.home-map-card,
.home-list-panel,
.home-compare-card,
.home-source-card,
.home-area-card,
.home-safety-card,
.home-answer-card {
  border-color: var(--os-line);
  border-radius: var(--os-radius);
  box-shadow: none;
}

.home-compare-card:hover,
.home-area-card:hover,
.home-source-card:hover { border-color: var(--os-water-600); box-shadow: var(--os-shadow-soft); }

.home-verification,
.home-final-cta { background: var(--os-forest-900); }

/* Locations -------------------------------------------------------------- */
.loc-hero {
  min-height: 330px;
  padding: 2.4rem 1.25rem 4.2rem;
  background:
    linear-gradient(90deg, rgba(5, 25, 23, .94) 0%, rgba(7, 34, 31, .76) 44%, rgba(7, 34, 31, .24) 76%, rgba(7, 34, 31, .08) 100%),
    linear-gradient(180deg, rgba(4, 20, 19, .06) 52%, rgba(4, 20, 19, .38) 100%),
    url("../img/oregonsoaks-header-hero.webp") center center / cover no-repeat;
  background-color: #0b2926;
}

.loc-hero::before {
  background: linear-gradient(180deg, transparent 60%, rgba(5, 25, 23, .34) 100%);
  mask-image: none;
}

.loc-hero::after { height: 24px; clip-path: polygon(0 65%, 100% 0, 100% 100%, 0 100%); }
.loc-h1 { color: #fff; font-size: clamp(2rem, 4vw, 2.85rem); }
.loc-stats { max-width: 760px; }

.loc-intro-band {
  margin-top: -22px;
  border: 1px solid var(--os-line);
  border-left: 4px solid var(--os-rust-500);
  border-radius: 0;
  box-shadow: var(--os-shadow-soft);
}

.loc-chip,
.loc-search,
.loc-search button,
.loc-map-section,
.loc-map-panel,
#loc-map,
.loc-prov-card,
.loc-muni-card,
.loc-context-note,
.loc-context-note a { border-radius: var(--os-radius); }

.loc-chip { background: var(--os-sand-050); }
.loc-search { border-color: var(--os-line-dark); box-shadow: none; }
.loc-search button { background: var(--os-water-700); border-color: var(--os-water-700); }

.loc-map-section {
  border-color: var(--os-line-dark);
  border-top: 3px solid var(--os-water-600);
  box-shadow: var(--os-shadow);
}

.loc-map-panel { border-color: var(--os-line); }
.loc-map-item { min-height: 62px; }
.loc-map-item:hover,
.loc-map-item.active { background: var(--os-water-050); }

.loc-prov-card,
.loc-muni-card { border-color: var(--os-line); box-shadow: none; }
.loc-prov-card { border-left-color: var(--os-water-600); }
.loc-prov-card:hover,
.loc-muni-card:hover { border-color: var(--os-water-600); box-shadow: var(--os-shadow-soft); }
.loc-context-note { background: var(--os-forest-900); border-left-color: var(--os-rust-500); }

/* Leaders hub and ranking pages ----------------------------------------- */
.t1-page { background: var(--os-sand-100); color: var(--os-ink); padding-bottom: 4.5rem; }
.t1-page a { text-decoration: none; }

.t1-hub-hero,
.t1-matrix-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 0;
}

.t1-hub-hero {
  background:
    linear-gradient(90deg, rgba(5, 25, 23, .94) 0%, rgba(7, 34, 31, .76) 44%, rgba(7, 34, 31, .24) 76%, rgba(7, 34, 31, .08) 100%),
    linear-gradient(180deg, rgba(4, 20, 19, .06) 52%, rgba(4, 20, 19, .38) 100%),
    url("../img/oregonsoaks-header-hero.webp") center center / cover no-repeat;
  background-color: #0b2926;
}

.t1-matrix-hero {
  background:
    radial-gradient(circle at 82% 22%, rgba(225,120,69,.24), transparent 25%),
    linear-gradient(126deg, #0b2926 0%, var(--os-forest-900) 58%, #1e5b52 100%);
}

.t1-hub-hero::before,
.t1-matrix-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.t1-hub-hero::before {
  background: linear-gradient(180deg, transparent 60%, rgba(5, 25, 23, .34) 100%);
}

.t1-matrix-hero::before {
  background: radial-gradient(ellipse at 78% 24%, transparent 0 16%, rgba(255,255,255,.07) 16.2% 16.5%, transparent 16.7% 23%, rgba(255,255,255,.045) 23.2% 23.5%, transparent 23.7%);
}

.t1-hub-hero-inner,
.t1-matrix-hero-inner { position: relative; padding: 3rem 0 3.4rem; }

.t1-hub-hero h1,
.t1-matrix-hero h1 {
  max-width: 800px;
  color: #fff;
  font-size: clamp(2rem, 4vw, 2.9rem);
  line-height: 1.04;
  letter-spacing: -.045em;
}

.t1-ad-shell .dc-ad-zone--after-h1 { margin: 1.25rem 0 0; }

.t1-hub-hero p,
.t1-matrix-hero p { color: rgba(255,255,255,.79); }

.t1-selector-card {
  max-width: 680px;
  padding: 1rem;
  border: 1px solid rgba(255,255,255,.65);
  border-top: 4px solid var(--os-rust-500);
  border-radius: var(--os-radius);
  box-shadow: 12px 13px 0 rgba(5,27,24,.24);
}

.t1-select,
.t1-input,
.t1-selector-btn { border-radius: var(--os-radius); }
.t1-selector-btn { background: var(--os-water-700); border-color: var(--os-water-700); }

.t1-section { padding: 2.7rem 0 3.4rem; }
.t1-section-head h2 { font-size: clamp(1.55rem, 2.6vw, 2rem); }

.t1-prov-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .85rem; }
.t1-prov-card {
  min-height: 102px;
  border-color: var(--os-line);
  border-left: 4px solid var(--os-water-600);
  border-radius: var(--os-radius);
  padding: 1.15rem;
  box-shadow: none;
}
.t1-prov-card:hover { border-left-color: var(--os-rust-500); box-shadow: var(--os-shadow-soft); transform: translateY(-2px); }

.t1-matrix-badge { border-left-color: var(--os-rust-500); }
.t1-matrix-card {
  margin-top: -28px;
  border: 1px solid var(--os-line-dark);
  border-top: 3px solid var(--os-water-600);
  border-radius: var(--os-radius);
  box-shadow: var(--os-shadow);
}

.t1-rank-table {
  min-width: 720px;
  border-color: var(--os-line);
  border-radius: var(--os-radius);
  box-shadow: var(--os-shadow-soft);
}
.t1-rank-table th { position: sticky; top: var(--header-h); background: var(--os-forest-900); }
.t1-rank-table td { border-color: #e3ece9; }
.t1-rank-table tbody tr:nth-child(even) td { background: var(--os-sand-050); }
.t1-rank-table tr:hover td { background: var(--os-water-050); }
.t1-rank-rating { color: #8b5a13; }

.t1-cta { background: var(--os-forest-900); border-left-color: var(--os-rust-500); }
.t1-btn-primary { background: var(--os-rust-500); color: var(--os-forest-950); }

/* Guide hub -------------------------------------------------------------- */
.guide-hero {
  background:
    linear-gradient(90deg, rgba(5, 25, 23, .94) 0%, rgba(7, 34, 31, .76) 44%, rgba(7, 34, 31, .24) 76%, rgba(7, 34, 31, .08) 100%),
    linear-gradient(180deg, rgba(4, 20, 19, .06) 52%, rgba(4, 20, 19, .38) 100%),
    url("../img/oregonsoaks-header-hero.webp") center center / cover no-repeat;
  background-color: #0b2926;
}
.guide-hero::before {
  background: linear-gradient(180deg, transparent 60%, rgba(5, 25, 23, .34) 100%);
  mask-image: none;
}
.guide-hero-grid { min-height: 500px; padding-block: 3.2rem 4.1rem; }
.guide-hero h1 { font-size: clamp(2rem, 4vw, 2.9rem); }
.guide-decision-card { border-radius: var(--os-radius); box-shadow: 12px 13px 0 rgba(5,27,24,.24); }
.guide-decision-list span { border-radius: 0; }

.guide-nav-strip {
  margin-top: -24px;
  border-color: var(--os-line);
  border-top: 3px solid var(--os-water-600);
  border-radius: 0;
  box-shadow: var(--os-shadow);
}

.guide-section { padding-block: clamp(3.3rem, 6vw, 5.1rem); }
.guide-section-mist { background: #eaf2ef; }
.guide-section h2 { font-size: clamp(1.65rem, 2.8vw, 2.25rem); }

.guide-btn,
.guide-card,
.guide-compare,
.guide-checklist,
.guide-callout,
.guide-place,
.guide-source-card,
.guide-final-cta { border-radius: var(--os-radius); }

.guide-card,
.guide-place,
.guide-source-card { border-color: var(--os-line); box-shadow: none; }
.guide-card:hover,
.guide-place:hover,
.guide-source-card:hover { border-color: var(--os-water-600); box-shadow: var(--os-shadow-soft); }

/* Individual guides ------------------------------------------------------ */
.gl-hero {
  background:
    radial-gradient(circle at 82% 22%, rgba(225,120,69,.24), transparent 25%),
    linear-gradient(126deg, #0b2926 0%, var(--os-forest-900) 58%, #1e5b52 100%);
}
.gl-hero::before {
  background-image: radial-gradient(ellipse at 78% 24%, transparent 0 16%, rgba(255,255,255,.07) 16.2% 16.5%, transparent 16.7% 23%, rgba(255,255,255,.045) 23.2% 23.5%, transparent 23.7%);
  background-size: auto;
  mask-image: none;
}
.gl-hero-grid { min-height: 500px; padding-block: 3rem 4rem; }
.gl-hero h1 { font-size: clamp(1.95rem, 3.8vw, 2.8rem); }
.gl-answer-card { border-radius: var(--os-radius); box-shadow: 12px 13px 0 rgba(5,27,24,.24); }

.gl-jumpbar {
  margin-top: -24px;
  border-color: var(--os-line);
  border-top: 3px solid var(--os-water-600);
  border-radius: 0;
  box-shadow: var(--os-shadow);
}
.gl-section { padding-block: clamp(3.3rem, 6vw, 5rem); }
.gl-section-mist { background: #eaf2ef; }
.gl-section h2 { font-size: clamp(1.65rem, 2.8vw, 2.25rem); }

.gl-btn,
.gl-method-note,
.gl-tool,
.gl-search,
.gl-filter,
.gl-place-card,
.gl-map,
.gl-compare,
.gl-content-card,
.gl-aside-card,
.gl-source-card,
.gl-faq details,
.gl-related-card,
.gl-final-cta { border-radius: var(--os-radius); }

.gl-tool {
  border-color: var(--os-line-dark);
  border-top: 3px solid var(--os-water-600);
  box-shadow: var(--os-shadow);
}
.gl-place-card,
.gl-content-card,
.gl-aside-card,
.gl-source-card,
.gl-faq details,
.gl-related-card { border-color: var(--os-line); box-shadow: none; }
.gl-place-card:hover,
.gl-related-card:hover { border-color: var(--os-water-600); box-shadow: var(--os-shadow-soft); }
.gl-filter.is-active { background: var(--os-water-700); border-color: var(--os-water-700); }

/* Mobile navigation and layouts ----------------------------------------- */
@media (max-width: 900px) {
  .site-logo.is-logo-only { min-width: 0; }
  .site-nav .nav-link { padding-inline: .62rem; }
  .home-hero-grid,
  .guide-hero-grid,
  .gl-hero-grid { grid-template-columns: 1fr; min-height: 0; }
}

@media (max-width: 720px) {
  :root { --header-h: 62px; }
  .header-inner { width: min(100% - 28px, var(--os-max)); }
  .site-logo.is-logo-only .site-logo-img { width: 43px; height: 41px; max-width: 43px; flex-basis: 43px; }
  .site-logo.is-logo-only::after { font-size: .8rem; letter-spacing: .08em; }

  .site-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    height: auto;
    padding: .55rem 14px .8rem;
    background: var(--os-forest-950) !important;
    border-top: 1px solid rgba(255,255,255,.12) !important;
    border-bottom: 2px solid var(--os-rust-500);
  }

  .site-nav .nav-link,
  .site-nav .nav-link:visited {
    width: 100%;
    min-height: 43px;
    padding: .65rem .75rem;
    border-left: 3px solid transparent;
  }
  .site-nav .nav-link::after { display: none; }
  .site-nav .nav-link[aria-current="page"] { border-left-color: var(--os-rust-500); }

  .home-shell,
  .guide-shell,
  .gl-shell,
  .t1-shell { width: min(100% - 28px, var(--os-max)); }

  .home-hero-grid { padding-block: 2.5rem 4rem; }
  .home-hero,
  .loc-hero,
  .t1-hub-hero,
  .guide-hero { background-position: 62% center; }

  .home-hero::before,
  .loc-hero::before,
  .t1-hub-hero::before,
  .guide-hero::before {
    background: linear-gradient(90deg, rgba(5, 25, 23, .78), rgba(5, 25, 23, .58));
  }

  .home-hero h1,
  .guide-hero h1,
  .gl-hero h1,
  .loc-h1,
  .t1-hub-hero h1,
  .t1-matrix-hero h1 { font-size: 2.05rem; }

  .home-trip-card,
  .guide-decision-card,
  .gl-answer-card,
  .t1-selector-card { box-shadow: 7px 8px 0 rgba(5,27,24,.22); }

  .home-stats { grid-template-columns: 1fr; margin-top: -20px; }
  .home-stat + .home-stat { border-left: 0; border-top: 1px solid var(--os-line); }

  .loc-intro-band { margin-top: -18px; }
  .loc-map-section { border-top-width: 3px; }

  .t1-selector-row { flex-direction: column; }
  .t1-selector-btn { width: 100%; }
  .t1-section { overflow-x: auto; }
  .t1-rank-table th { top: 0; }

  .footer-inner { width: min(100% - 28px, var(--os-max)); }
}

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