/* ==========================================================================
   TenLakesYosemite.com
   ========================================================================== */

:root {
  --pine: #1f3d2e;
  --pine-dark: #14291f;
  --pine-light: #2e5a44;
  --granite: #6b7280;
  --granite-light: #eef0ee;
  --sand: #f7f5f0;
  --sky: #2f6f9e;
  --sky-light: #e3eef6;
  --gold: #c8922a;
  --ink: #22302a;
  --ink-soft: #4c5a53;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 2px 24px rgba(20, 41, 31, 0.10);
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--sand);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.2; color: var(--pine-dark); }

h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 0.5rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.4rem; }

section { padding: 72px 0; }

.kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 0.6rem;
}

.lede { font-size: 1.12rem; color: var(--ink-soft); max-width: 720px; }

a { color: var(--sky); }

/* --------------------------------------------------------------------------
   Nav
   -------------------------------------------------------------------------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(20, 41, 31, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  white-space: nowrap;
}

.nav-logo span { color: #9fc4a8; }

.nav-links { display: flex; gap: 22px; list-style: none; }

.nav-links a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}

.nav-links a:hover { color: var(--white); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--white);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  padding: 8px;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  padding: 0;
  color: var(--white);
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-size: cover;
  background-position: center 35%;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 30, 22, 0.35) 0%, rgba(15, 30, 22, 0.05) 40%, rgba(15, 30, 22, 0.72) 100%);
}

.hero-content { padding-top: 120px; padding-bottom: 56px; width: 100%; }

.hero h1, .hero p { text-shadow: 0 1px 12px rgba(10, 22, 16, 0.55); }

.hero h1 {
  font-size: clamp(2.4rem, 6.5vw, 4.2rem);
  color: var(--white);
  max-width: 780px;
  margin-bottom: 0.8rem;
}

.hero p {
  font-size: clamp(1.02rem, 2vw, 1.25rem);
  max-width: 640px;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 1.8rem;
}

.hero-badge {
  display: inline-block;
  background: rgba(200, 146, 42, 0.92);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 1.2rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  background: rgba(20, 41, 31, 0.68);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 780px;
}

.hero-stat {
  flex: 1 1 150px;
  padding: 16px 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-stat:last-child { border-right: 0; }

.hero-stat .num {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.7vw, 1.4rem);
  font-weight: 600;
  display: block;
  white-space: nowrap;
}

.hero-stat .label {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.75);
}

/* --------------------------------------------------------------------------
   Stat cards / grids
   -------------------------------------------------------------------------- */
.grid { display: grid; gap: 24px; margin-top: 36px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}

.card h3 { display: flex; align-items: center; gap: 10px; }

.card .icon { font-size: 1.3rem; }

.card p { font-size: 0.97rem; color: var(--ink-soft); }

.card ul { padding-left: 20px; font-size: 0.97rem; color: var(--ink-soft); }

.card li { margin-bottom: 6px; }

/* --------------------------------------------------------------------------
   Trail: elevation profile + timeline
   -------------------------------------------------------------------------- */
.profile-box {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 24px 12px;
  margin-top: 36px;
  overflow-x: auto;
}

.profile-box svg { width: 100%; min-width: 560px; height: auto; }

.profile-caption {
  font-size: 0.85rem;
  color: var(--granite);
  text-align: center;
  padding: 8px 0 12px;
}

.timeline { margin-top: 44px; position: relative; }

.timeline::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(var(--pine-light), var(--gold));
}

.tl-item { position: relative; padding: 0 0 30px 44px; }

.tl-item:last-child { padding-bottom: 0; }

.tl-item::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--white);
  border: 4px solid var(--pine-light);
}

.tl-item.summit::before { border-color: var(--gold); }

.tl-mile {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
}

.tl-item h3 { margin: 2px 0 4px; }

.tl-item p { color: var(--ink-soft); font-size: 0.98rem; max-width: 680px; }

/* --------------------------------------------------------------------------
   Lakes
   -------------------------------------------------------------------------- */
.section-dark {
  background: var(--pine-dark);
  color: #dfe8e2;
}

.section-dark h2, .section-dark h3 { color: var(--white); }

.section-dark .lede { color: #b9c9bf; }

.lake-feature {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 36px;
  align-items: center;
  margin-top: 48px;
}

.lake-feature:nth-child(even) .lake-photo { order: 2; }

.lake-photo img {
  border-radius: var(--radius);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.35);
  width: 100%;
  height: auto;
}

.lake-photo figcaption {
  font-size: 0.8rem;
  color: #93a89a;
  margin-top: 10px;
}

.lake-info .kicker { color: #e0b45c; }

.lake-info p { color: #c4d2c9; font-size: 1rem; }

.lake-info p + p { margin-top: 0.8rem; }

/* --------------------------------------------------------------------------
   Permit steps
   -------------------------------------------------------------------------- */
.steps { counter-reset: step; margin-top: 36px; display: grid; gap: 18px; }

.step {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 24px 22px 74px;
  position: relative;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 22px;
  top: 22px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--pine);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step h3 { margin-bottom: 4px; }

.step p { font-size: 0.97rem; color: var(--ink-soft); }

.callout {
  border-left: 4px solid var(--gold);
  background: #fdf6e9;
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 18px 22px;
  margin-top: 28px;
  font-size: 0.97rem;
  color: #5c4a22;
}

.callout.blue {
  border-color: var(--sky);
  background: var(--sky-light);
  color: #274b63;
}

.callout strong { color: inherit; }

/* --------------------------------------------------------------------------
   Table
   -------------------------------------------------------------------------- */
.table-scroll { overflow-x: auto; margin-top: 30px; border-radius: var(--radius); box-shadow: var(--shadow); }

table { width: 100%; border-collapse: collapse; background: var(--white); font-size: 0.95rem; min-width: 520px; }

th {
  background: var(--pine);
  color: var(--white);
  text-align: left;
  padding: 12px 18px;
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.03em;
}

td { padding: 12px 18px; border-top: 1px solid var(--granite-light); color: var(--ink-soft); vertical-align: top; }

td:first-child { font-weight: 600; color: var(--ink); white-space: nowrap; }

/* --------------------------------------------------------------------------
   Gallery
   -------------------------------------------------------------------------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 36px;
}

.gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }

.gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; transition: transform 0.4s ease; }

.gallery figure:hover img { transform: scale(1.04); }

.gallery .tall { grid-row: span 2; }

.gallery .tall img { aspect-ratio: auto; height: 100%; }

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */
.faq { max-width: 800px; margin-top: 30px; }

.faq details {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq summary {
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 600;
  font-size: 1.02rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--gold); flex-shrink: 0; }

.faq details[open] summary::after { content: "–"; }

.faq details p { padding: 0 22px 18px; color: var(--ink-soft); font-size: 0.97rem; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
footer {
  background: var(--pine-dark);
  color: #9db3a5;
  padding: 56px 0 40px;
  font-size: 0.9rem;
}

footer h3 { color: var(--white); font-size: 1rem; margin-bottom: 10px; }

.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }

footer ul { list-style: none; }

footer li { margin-bottom: 8px; }

footer a { color: #c3d4c9; text-decoration: none; }

footer a:hover { color: var(--white); text-decoration: underline; }

.footer-note {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 40px;
  padding-top: 24px;
  font-size: 0.82rem;
  color: #7d9486;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 860px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .lake-feature { grid-template-columns: 1fr; gap: 20px; }
  .lake-feature:nth-child(even) .lake-photo { order: 0; }
}

@media (max-width: 640px) {
  section { padding: 56px 0; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery .tall { grid-row: auto; }
  .gallery .tall img { aspect-ratio: 4 / 3; }
  .hero { min-height: 78vh; }
  .hero-stat { flex: 1 1 40%; border-bottom: 1px solid rgba(255,255,255,0.12); }

  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 60px;
    left: 0; right: 0;
    background: var(--pine-dark);
    flex-direction: column;
    gap: 0;
    padding: 8px 0 16px;
  }
  .nav-links.open { display: flex; }
  .nav-links li { padding: 10px 24px; }
}
