/* ============================================================
   Rangeley's Edge Cabin — shared design system
   Used by index.html and availability.html
   ============================================================ */

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

:root {
  --forest:      #1a3d25;
  --forest-deep: #0d2418;
  --gold:        #c9a96e;
  --lake:        #3f7896;
  --cream:       #faf7f0;
  --text:        #2c1f14;
  --muted:       #8a7a68;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Lato', sans-serif;
  background: var(--cream);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: 'Playfair Display', serif; }

a { color: inherit; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ── Nav ─────────────────────────────────────────────────── */

.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px clamp(20px, 5vw, 56px);
  background: transparent;
  transition: background 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}

.site-nav.solid {
  background: var(--forest-deep);
  padding: 12px clamp(20px, 5vw, 56px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.25);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.nav-brand svg { flex-shrink: 0; }

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.5vw, 34px);
}

.nav-links a {
  text-decoration: none;
  color: rgba(255,255,255,0.82);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.15s;
}

.nav-links a:hover { color: #fff; }

.nav-links .nav-cta {
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 9px 20px;
  border-radius: 3px;
}

.nav-links .nav-cta:hover {
  background: var(--gold);
  color: var(--forest-deep);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
  padding: 4px 8px;
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }

  .nav-links {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(78vw, 320px);
    background: var(--forest-deep);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 28px;
    padding: 40px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -8px 0 32px rgba(0,0,0,0.3);
  }

  .nav-links.open { transform: translateX(0); }

  .nav-links a { font-size: 1rem; }

  .nav-links .nav-cta { padding: 12px 22px; }

  .nav-scrim {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 290;
  }

  .nav-scrim.open { display: block; }
}

/* ── Buttons ─────────────────────────────────────────────── */

.btn {
  display: inline-block;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 15px 38px;
  border-radius: 3px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn-solid {
  background: var(--gold);
  color: var(--forest-deep);
}
.btn-solid:hover { background: #dbc08c; }

.btn-ghost {
  background: transparent;
  border-color: rgba(255,255,255,0.55);
  color: #fff;
}
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,0.08); }

.btn-outline-forest {
  background: transparent;
  border-color: var(--forest);
  color: var(--forest);
}
.btn-outline-forest:hover { background: var(--forest); color: #fff; }

/* ── Ridge divider (signature element) ──────────────────── */
/* A mountain / treeline horizon — the site's recurring "edge" motif. */

.ridge {
  line-height: 0;
  position: relative;
}

.ridge svg { width: 100%; height: auto; display: block; }

/* ── Section rhythm ──────────────────────────────────────── */

.section {
  padding: clamp(56px, 9vw, 108px) clamp(20px, 6vw, 0px) clamp(56px, 9vw, 100px);
}

.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 40px);
}

.wrap-narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 40px);
}

.eyebrow {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
  display: block;
}

.section-title {
  font-weight: 600;
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  line-height: 1.2;
  margin-bottom: 18px;
}

/* ── Footer ──────────────────────────────────────────────── */

.site-footer {
  background: var(--forest);
  color: rgba(255,255,255,0.65);
  padding: 64px clamp(20px, 6vw, 40px) 28px;
  text-align: center;
}

.footer-inner {
  max-width: 440px;
  margin: 0 auto;
  padding-bottom: 40px;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #fff;
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  margin-bottom: 16px;
}

.footer-tagline {
  font-size: 0.92rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.6);
  margin-bottom: 28px;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 14px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #fff;
  transition: transform 0.2s, filter 0.2s;
}

.footer-social a:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.footer-social a.icon-instagram {
  background: radial-gradient(circle at 30% 110%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
}

.footer-social a.icon-facebook {
  background: #1877f2;
}

.footer-bottom {
  max-width: 1160px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.12);
  text-align: center;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
}
