/* ============================================================
   THE JUNCTION RETREAT — shared design system
   West Seattle boutique short-term rental
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600&display=swap');

:root {
  /* Brand palette */
  --cream:      #FBF3E4;
  --surface:    #FFFCF6;
  --charcoal:   #3A3A3A;
  --terracotta: #C66B47;
  --teal:       #2A8C82;

  /* Derived tones */
  --charcoal-soft: #5C5752;
  --charcoal-faint:#8A847C;
  --terracotta-dk: #AE583A;
  --teal-dk:       #237268;
  --line:          #E7DDC8;
  --line-soft:     #EFE7D6;
  --cream-deep:    #F4E9D3;
  --shadow-sm: 0 1px 2px rgba(58,58,58,.05), 0 2px 8px rgba(58,58,58,.05);
  --shadow-md: 0 4px 14px rgba(58,58,58,.07), 0 14px 40px rgba(58,58,58,.07);
  --shadow-lg: 0 10px 30px rgba(58,58,58,.10), 0 30px 70px rgba(58,58,58,.10);

  --r-lg: 24px;
  --r:    16px;
  --r-sm: 10px;

  --ease: cubic-bezier(.22,.61,.36,1);
  --maxw: 1200px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--charcoal);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4, .display {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--charcoal);
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0 0 1em; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 820px; }

.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }

/* ---- Eyebrow / labels ---- */
.eyebrow {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin: 0 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1.5px;
  background: var(--terracotta);
  display: inline-block;
}
.eyebrow.teal { color: var(--teal); }
.eyebrow.teal::before { background: var(--teal); }
.eyebrow.center { justify-content: center; }

/* ---- Type scale ---- */
.display     { font-size: clamp(2.6rem, 7vw, 5rem); }
.h-xl        { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.h-lg        { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
.h-md        { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.lead        { font-size: clamp(1.1rem, 1.6vw, 1.32rem); color: var(--charcoal-soft); line-height: 1.6; }
.muted       { color: var(--charcoal-soft); }
.faint       { color: var(--charcoal-faint); }
.center      { text-align: center; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px; font-weight: 500; letter-spacing: 0.01em;
  padding: 15px 28px;
  border-radius: 100px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--terracotta); color: #fff; box-shadow: 0 6px 18px rgba(198,107,71,.28); }
.btn-primary:hover { background: var(--terracotta-dk); box-shadow: 0 10px 26px rgba(198,107,71,.34); transform: translateY(-2px); }
.btn-secondary { background: var(--teal); color: #fff; box-shadow: 0 6px 18px rgba(42,140,130,.24); }
.btn-secondary:hover { background: var(--teal-dk); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--charcoal); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--charcoal); background: var(--surface); }
.btn-light { background: var(--surface); color: var(--charcoal); }
.btn-light:hover { background: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-block { width: 100%; }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

.textlink {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500; color: var(--terracotta);
  display: inline-flex; align-items: center; gap: 8px;
  border-bottom: 1.5px solid transparent; padding-bottom: 2px;
  transition: border-color .25s var(--ease), gap .25s var(--ease);
}
.textlink:hover { border-color: var(--terracotta); gap: 12px; }
.textlink .arrow { transition: transform .25s var(--ease); }
.textlink:hover .arrow { transform: translateX(2px); }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,243,228,.82);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--line); background: rgba(251,243,228,.94); }
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px; font-weight: 500; color: var(--charcoal-soft);
  padding: 9px 15px; border-radius: 100px;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.nav-links a:hover { color: var(--charcoal); background: var(--cream-deep); }
.nav-links a.active { color: var(--terracotta); }
.nav-right { display: flex; align-items: center; gap: 16px; }

/* Logo */
.logo { display: inline-flex; align-items: center; gap: 11px; }
.logo .mark { width: 34px; height: 30px; flex: none; }
.logo .word {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600; font-size: 19px; letter-spacing: -0.02em; color: var(--charcoal);
  white-space: nowrap;
}
.logo .word .dot { color: var(--terracotta); }
.logo.lg .mark { width: 46px; height: 40px; }
.logo.lg .word { font-size: 25px; }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  width: 44px; height: 44px; align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--line); border-radius: 12px; cursor: pointer;
}
.hamburger span { width: 18px; height: 1.8px; background: var(--charcoal); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s var(--ease); }
.hamburger.open span:nth-child(1) { transform: translateY(6.8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.8px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 76px 0 0; z-index: 49;
  background: var(--cream);
  padding: 24px;
  transform: translateY(-12px); opacity: 0; pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
  display: flex; flex-direction: column;
}
.mobile-menu.open { opacity: 1; transform: none; pointer-events: auto; }
.mobile-menu a {
  font-family: 'Space Grotesk', sans-serif; font-size: 1.7rem; font-weight: 500;
  color: var(--charcoal); padding: 16px 4px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
}
.mobile-menu a .idx { font-size: .8rem; color: var(--charcoal-faint); font-family: 'Inter'; }
.mobile-menu a.active { color: var(--terracotta); }
.mobile-menu .menu-cta { margin-top: auto; padding-top: 24px; }
body.menu-open { overflow: hidden; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--charcoal); color: #E9E2D6; padding: 80px 0 40px; }
.site-footer .logo .word { color: #fff; }
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px;
  padding-bottom: 56px; border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer-grid h4 {
  color: #fff; font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  font-weight: 600; margin-bottom: 18px; opacity: .65;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.footer-grid a, .footer-grid li { color: #C9C1B4; font-size: 15px; transition: color .2s var(--ease); }
.footer-grid a:hover { color: #fff; }
.footer-blurb { color: #C9C1B4; font-size: 15px; line-height: 1.6; margin: 18px 0 0; max-width: 30ch; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding-top: 28px; color: #9A9387; font-size: 13.5px; flex-wrap: wrap;
}
.footer-bottom .dot-sep { color: var(--terracotta); }

/* ============================================================
   CARDS & SHARED PIECES
   ============================================================ */
.card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.card-pad { padding: 28px; }

/* Image slot styling baseline */
image-slot {
  --rounded-radius: 16px;
  background: var(--cream-deep);
}

/* Pill tag */
.tag {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: 'Space Grotesk', sans-serif; font-size: 13px; font-weight: 500;
  padding: 6px 13px; border-radius: 100px;
  background: var(--cream-deep); color: var(--charcoal-soft);
}
.tag.terra { background: rgba(198,107,71,.12); color: var(--terracotta-dk); }
.tag.teal  { background: rgba(42,140,130,.12); color: var(--teal-dk); }

/* Marker dot for lists */
.dot-mark { width: 7px; height: 7px; border-radius: 2px; background: var(--terracotta); transform: rotate(45deg); flex: none; }

/* Divider */
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   FORMS
   ============================================================ */
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.field label {
  font-family: 'Space Grotesk', sans-serif; font-size: 13.5px; font-weight: 500;
  color: var(--charcoal); letter-spacing: .01em;
}
.field label .req { color: var(--terracotta); }
.field input, .field select, .field textarea {
  font-family: 'Inter', sans-serif; font-size: 16px; color: var(--charcoal);
  background: var(--surface); border: 1.5px solid var(--line);
  border-radius: 12px; padding: 14px 16px; width: 100%;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: var(--charcoal-faint); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--terracotta); box-shadow: 0 0 0 4px rgba(198,107,71,.12);
}
.field textarea { resize: vertical; min-height: 120px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .nav-links, .nav-right .btn { display: none; }
  .hamburger { display: flex; }
  .section { padding: 72px 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px 24px; }
  .footer-grid .footer-about { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .container { padding: 0 20px; }
  .section { padding: 56px 0; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
