/* ==========================================================
   pages.css — supplemental styles for /rates, /rates-compared,
   /grewingk-hike-time, and the 6 destination landing pages.
   Inherits base tokens and typography from style.css.
   ========================================================== */

/* Force header to look scrolled on interior pages (no dark hero above nav) */
body.interior .header {
  background: color-mix(in oklab, var(--color-bg) 95%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--shadow-sm);
}
body.interior .header::after { opacity: 0; }
body.interior .header .logo-text-only { color: var(--color-text); text-shadow: none; }
body.interior .header .logo-img {
  border-color: color-mix(in oklab, var(--color-gold) 55%, transparent);
  box-shadow: var(--shadow-sm);
}
body.interior .nav a { color: var(--color-text-muted); }
body.interior .nav a:hover { color: var(--color-text); }
body.interior .nav a::after { background: var(--color-accent); }
body.interior .nav a + a { border-left-color: var(--color-border); }
body.interior .theme-toggle { color: var(--color-text-muted); }
body.interior .theme-toggle:hover { background: var(--color-surface-offset); color: var(--color-text); }
/* Give interior pages top padding so content clears the fixed header */
body.interior main { padding-top: 4.5rem; }

.skip-link {
  position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden;
}
.skip-link:focus {
  position: static; left: 0; width: auto; height: auto;
  padding: var(--space-3) var(--space-4);
  background: var(--color-primary); color: var(--color-text-inverse);
}

/* Page hero */
.page-hero {
  padding: clamp(4rem, 10vw, 7rem) 0 clamp(3rem, 6vw, 5rem);
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-divider);
}
.page-hero-tight { padding-block: clamp(3rem, 8vw, 5rem); }
.page-hero-image {
  position: relative;
  background: var(--color-primary);
  color: var(--color-text-inverse);
  isolation: isolate;
}
.page-hero-image::before {
  content: ""; position: absolute; inset: 0;
  background: var(--hero-bg) center/cover no-repeat;
  opacity: 0.35;
  z-index: -1;
}
.page-hero-image::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(7, 50, 66, 0.75), rgba(13, 92, 117, 0.35));
  z-index: -1;
}
.page-hero .hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.1;
  max-width: 22ch;
  margin: 0.75rem 0 1rem;
}
.page-hero .hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--color-text-muted);
  max-width: 60ch;
  line-height: 1.55;
}
.page-hero-image .hero-sub { color: rgba(255,255,255,0.9); }
.page-hero .eyebrow {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  font-weight: 600;
  color: var(--color-accent);
}
.page-hero-image .eyebrow { color: #ffd48a; }
.hero-ctas { display: flex; gap: var(--space-4); flex-wrap: wrap; margin-top: var(--space-6); }

/* Rates card */
.rates-card-section { padding-block: clamp(3rem, 6vw, 5rem); }
.rates-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  max-width: 900px;
  margin: 0 auto;
  box-shadow: 0 4px 12px rgba(30, 42, 48, 0.04);
}
.rates-card h2 { font-family: var(--font-display); margin-top: 0; }
.rates-lede { color: var(--color-text-muted); max-width: 60ch; }

.rates-table {
  width: 100%; border-collapse: collapse; margin: 1.5rem 0;
  font-size: 1rem;
}
.rates-table thead th {
  text-align: left; padding: 0.75rem 1rem;
  background: var(--color-surface-2);
  border-bottom: 2px solid var(--color-border);
  font-weight: 600; color: var(--color-text-muted);
  font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em;
}
.rates-table tbody th { text-align: left; padding: 0.9rem 1rem; font-weight: 500; }
.rates-table td { padding: 0.9rem 1rem; }
.rates-table tbody tr + tr { border-top: 1px solid var(--color-divider); }
.rates-table strong { color: var(--color-primary); font-size: 1.1rem; }
.rates-fine { color: var(--color-text-faint); font-size: 0.85rem; line-height: 1.5; }
.rates-cta { margin-top: var(--space-6); text-align: center; }

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare-table .row-highlight { background: var(--color-primary-highlight); }
.compare-table .row-highlight strong { color: var(--color-primary-active); }
.compare-table .tag {
  display: inline-block; padding: 0.15rem 0.5rem; border-radius: 999px;
  background: var(--color-accent); color: white; font-size: 0.65rem;
  text-transform: uppercase; letter-spacing: 0.08em; margin-left: 0.5rem; vertical-align: middle;
}

/* Two-column blocks */
.why-flat { padding-block: clamp(2.5rem, 5vw, 4rem); background: var(--color-surface-2); }
.two-col {
  display: grid; grid-template-columns: 1fr; gap: clamp(1.5rem, 3vw, 3rem);
}
@media (min-width: 768px) {
  .two-col { grid-template-columns: 1fr 1fr; }
}
.two-col h2 { font-family: var(--font-display); margin-top: 0; }
.feature-list { list-style: none; padding: 0; margin: 0; }
.feature-list li {
  padding: 0.4rem 0 0.4rem 1.5rem;
  position: relative;
}
.feature-list li::before {
  content: ""; position: absolute; left: 0; top: 1rem;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--color-accent);
}

/* Prose */
.prose { max-width: 65ch; margin: 0 auto; }
.prose h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.2;
  color: var(--color-text);
  margin-top: 0;
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}
.prose h3 {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  line-height: 1.3;
  color: var(--color-text);
  margin-top: 2rem;
  margin-bottom: 0.9rem;
  letter-spacing: -0.005em;
}
.prose h2 + p,
.prose h3 + p,
.prose h2 + ul,
.prose h3 + ul,
.prose h2 + ol,
.prose h3 + ol,
.prose h2 + figure,
.prose h3 + figure {
  margin-top: 0;
}
.prose p { line-height: 1.7; color: var(--color-text); }
.prose a { color: var(--color-primary); text-decoration: underline; text-underline-offset: 3px; }

/* Destinations grid strip */
.destinations-strip { padding-block: clamp(3rem, 5vw, 4rem); }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  text-align: center;
  margin-bottom: 2rem;
}
.dest-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-4);
}
.dest-tile {
  display: flex; flex-direction: column; text-decoration: none;
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: 12px; overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.dest-tile:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(30,42,48,0.1); }
.dest-tile img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.dest-tile span {
  display: block; padding: 0.75rem 1rem 0.25rem;
  font-family: var(--font-display); font-weight: 600; color: var(--color-text);
}
.dest-tile small {
  display: block; padding: 0 1rem 0.9rem;
  color: var(--color-text-muted); font-size: 0.85rem;
}

/* FAQ */
.faq-section { padding-block: clamp(3rem, 5vw, 4rem); background: var(--color-surface); }
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 0;
  margin-bottom: 0.75rem;
  overflow: hidden;
}
.faq-item summary {
  list-style: none; cursor: pointer;
  padding: 1rem 1.25rem;
  font-weight: 600;
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon {
  color: var(--color-accent); font-weight: 400; font-size: 1.5rem;
  transition: transform 0.2s ease;
}
.faq-item[open] .faq-icon { transform: rotate(45deg); }
.faq-answer { padding: 0 1.25rem 1.25rem; color: var(--color-text-muted); line-height: 1.65; }
.faq-answer p { margin: 0; }

/* CTA section */
.cta-section {
  padding-block: clamp(3rem, 6vw, 5rem);
  background: var(--color-primary);
  color: var(--color-text-inverse);
  text-align: center;
}
.cta-inner { max-width: 640px; margin: 0 auto; }
.cta-section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin: 0 0 1rem;
}
.cta-section p { color: rgba(255,255,255,0.85); font-size: 1.05rem; line-height: 1.6; }
.cta-alt { margin-top: 1rem; font-size: 0.9rem; }
.cta-alt a { color: #ffd48a; text-decoration: underline; }

/* Responsive tweaks */
@media (max-width: 640px) {
  .rates-table { font-size: 0.9rem; }
  .rates-table thead th, .rates-table tbody th, .rates-table td { padding: 0.6rem 0.5rem; }
}
