/* Three Fours Ranch — design tokens from the Claude Design project */
:root {
  --cream: #F8F2EE;
  --ink: #2B2124;
  --maroon: #5E1F2E;
  --maroon-dark: #471623;
  --blush: #F2E3DC;
  --border: #E6D2CA;
  --muted: #75625F;
  --rose: #E7C6BC;
  --rose-muted: #BCA6A0;
  --footer-link: #DCCFC9;
  --footer-label: #98807B;
  --dark-border: #443430;
  --serif: 'Libre Caslon Display', serif;
  --sans: 'Figtree', sans-serif;
  /* Brand logo (from the logo design project) */
  --brand-serif: 'Cinzel', serif;
  --gold: #d4ad63;
  --gold-light: #f0debe;
  --gold-deep: #a8853f;
  --gold-grad: linear-gradient(100deg, #7a5c28 0%, #c9a25a 25%, #f0debe 48%, #d4ad63 70%, #8a6a30 100%);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--maroon); }
a:hover { color: var(--maroon-dark); }

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

.container {
  max-width: 1320px;
  margin: 0 auto;
  padding-left: 40px;
  padding-right: 40px;
}

.eyebrow {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--maroon);
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  margin: 0;
}

.btn {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 16px 30px;
  text-decoration: none;
  border-radius: 2px;
  transition: background 0.25s ease, color 0.25s ease;
}

.btn-cream { background: var(--cream); color: var(--ink); }
.btn-cream:hover { background: var(--rose); color: var(--ink); }

.btn-maroon { background: var(--maroon); color: var(--cream); }
.btn-maroon:hover { background: var(--maroon-dark); color: var(--cream); }

.link-underline {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 4px;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.link-underline:hover { color: var(--maroon); border-color: var(--maroon); }

/* ---------- Nav ---------- */
.site-nav {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(248, 242, 238, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
}

.site-nav.overlay { position: fixed; }

.site-nav.overlay.at-top {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid rgba(248, 242, 238, 0.16);
}

.nav-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 40px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

/* Stacked lockup: mark above the wordmark, like the brand comp */
.nav-brand {
  font-family: var(--brand-serif);
  font-weight: 500;
  font-size: 12.5px;
  letter-spacing: 0.3em;
  padding-left: 0.3em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.35s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}
.nav-mark {
  width: 58px;
  height: 31px;
  flex: none;
  background: currentColor;
  -webkit-mask: url('../img/brand/mark-gold.png') center / contain no-repeat;
  mask: url('../img/brand/mark-gold.png') center / contain no-repeat;
}
.site-nav.overlay.at-top .nav-brand { color: var(--gold); }
.nav-brand:hover { color: var(--maroon); }
.site-nav.overlay.at-top .nav-brand:hover { color: var(--gold-light); }
body.menu-open .nav-brand { color: var(--gold) !important; }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { white-space: nowrap; }

@media (min-width: 1024px) and (max-width: 1360px) {
  .nav-links { gap: 20px; }
  .nav-links a:not(.nav-book) { font-size: 12.5px; }
  .nav-brand { font-size: 11px; letter-spacing: 0.24em; padding-left: 0.24em; }
  .nav-mark { width: 50px; height: 27px; }
}

.nav-links a:not(.nav-book) {
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding-bottom: 4px;
  color: var(--ink);
  border-bottom: 1px solid transparent;
  transition: color 0.35s ease, border-color 0.35s ease;
}
.site-nav.overlay.at-top .nav-links a:not(.nav-book) { color: var(--cream); }
.nav-links a:not(.nav-book):hover { color: var(--rose); }

.nav-links a.active {
  color: var(--maroon);
  border-bottom: 1px solid var(--maroon);
}
.site-nav.overlay.at-top .nav-links a.active {
  color: var(--rose);
  border-bottom-color: var(--rose);
}

.nav-book {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream);
  background: var(--maroon);
  border: 1px solid var(--maroon);
  padding: 11px 21px;
  text-decoration: none;
  border-radius: 2px;
  transition: all 0.35s ease;
}
.nav-book:hover { opacity: 0.85; color: var(--cream); }
.site-nav.overlay.at-top .nav-book {
  color: var(--cream);
  background: transparent;
  border: 1px solid rgba(248, 242, 238, 0.7);
}

/* Mobile menu */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 60;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.35s ease;
}
.site-nav.overlay.at-top .nav-toggle span { background: var(--cream); }

body.menu-open .nav-toggle span { background: var(--cream); }
body.menu-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

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

  .nav-links {
    position: fixed;
    inset: 0;
    background: var(--ink);
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
  }
  body.menu-open .nav-links { opacity: 1; pointer-events: auto; }

  .nav-links a:not(.nav-book) {
    color: var(--cream) !important;
    font-size: 17px;
  }
  .nav-links a.active { color: var(--rose) !important; border-bottom-color: var(--rose); }
  .nav-links .nav-book {
    margin-top: 12px;
    background: var(--cream);
    border-color: var(--cream);
    color: var(--ink);
  }
  body.menu-open .site-nav { background: transparent; border-color: transparent; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
  background: var(--ink);
}

.hero-rotator {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 2.8s ease-in-out;
}

.hero-slide.is-active { opacity: 1; }

/* The Ken Burns drift is driven from main.js with the Web Animations API so an
   outgoing slide keeps zooming through its fade-out and only resets once it is
   fully invisible; a CSS class swap here would snap it back mid-fade. */

@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: opacity 0.8s ease; }
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(30, 20, 22, 0.72) 0%, rgba(30, 20, 22, 0.25) 45%, rgba(30, 20, 22, 0.35) 100%);
  pointer-events: none;
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
}

.hero-content .container {
  width: 100%;
  padding-bottom: 96px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.hero .eyebrow { color: var(--rose); }

.hero h1 {
  font-size: clamp(42px, 6.5vw, 72px);
  line-height: 1.06;
  letter-spacing: 0.01em;
  color: var(--cream);
  max-width: 14ch;
  text-wrap: pretty;
}

.hero p {
  margin: 0;
  font-size: 17.5px;
  line-height: 1.75;
  color: rgba(248, 242, 238, 0.85);
  max-width: 52ch;
}

.hero-actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }

.hero-link {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream);
  padding: 16px 8px;
  text-decoration: none;
  border-bottom: 1px solid rgba(248, 242, 238, 0.7);
  transition: color 0.25s ease;
}
.hero-link:hover { color: var(--rose); }

/* ---------- Panels ---------- */
.panel-blush {
  background: var(--blush);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.welcome {
  max-width: 780px;
  margin: 0 auto;
  padding: 104px 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
}

.welcome h2 {
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.25;
  text-wrap: pretty;
}

.welcome p {
  margin: 0;
  font-size: 16.5px;
  line-height: 1.8;
  color: var(--muted);
}

/* ---------- Stats ---------- */
.stats {
  padding-top: 72px;
  padding-bottom: 72px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
}

.stat { display: flex; flex-direction: column; gap: 8px; }

.stat-number {
  font-family: var(--serif);
  font-size: 44px;
  color: var(--maroon);
}

.stat-label {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (max-width: 860px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Venues ---------- */
.venues {
  padding-top: 40px;
  padding-bottom: 112px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
}

.section-head-titles { display: flex; flex-direction: column; gap: 14px; }

.section-head h2 {
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.2;
}

.section-head .link-underline { white-space: nowrap; }

.venue-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.venue-card {
  min-width: 0;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.venue-card:hover { color: var(--ink); }

.venue-card figure {
  margin: 0;
  height: 420px;
  min-width: 0;
  overflow: hidden;
  background: var(--blush);
}

.venue-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.venue-card:hover img { transform: scale(1.04); }

.venue-card-text { display: flex; flex-direction: column; gap: 6px; }

.venue-card h3 { font-size: 24px; }

.venue-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
}

@media (max-width: 1023px) {
  .venue-grid { grid-template-columns: 1fr; }
  .venue-card figure { height: 320px; }
  .section-head { flex-direction: column; align-items: flex-start; }
}

/* ---------- Packages ---------- */
.packages {
  max-width: 1100px;
  margin: 0 auto;
  padding: 96px 40px;
  display: flex;
  flex-direction: column;
  gap: 44px;
  text-align: center;
  align-items: center;
}

.packages-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}

.packages h2 { font-size: clamp(28px, 4vw, 38px); }

.packages p {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 56ch;
}

/* ---------- Story teaser ---------- */
.story-teaser {
  padding-top: 112px;
  padding-bottom: 112px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.story-teaser figure {
  margin: 0;
  height: 520px;
  min-width: 0;
  overflow: hidden;
  background: var(--blush);
}

.story-teaser img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-teaser-text { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }

.story-teaser h2 {
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.25;
  text-wrap: pretty;
}

.story-teaser p {
  margin: 0;
  font-size: 16.5px;
  line-height: 1.8;
  color: var(--muted);
}

@media (max-width: 1023px) {
  .story-teaser { grid-template-columns: 1fr; gap: 40px; }
  .story-teaser figure { height: 380px; }
}

/* ---------- CTA ---------- */
.cta { background: var(--ink); }

.cta-inner {
  max-width: 780px;
  margin: 0 auto;
  padding: 112px 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 26px;
  align-items: center;
}

.cta h2 {
  font-size: clamp(30px, 4.5vw, 42px);
  line-height: 1.25;
  color: var(--cream);
  text-wrap: pretty;
}

.cta p {
  margin: 0;
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--rose-muted);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--footer-link);
}

.footer-grid {
  padding-top: 72px;
  padding-bottom: 40px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 56px;
}

.footer-brand { display: flex; flex-direction: column; gap: 18px; }

.footer-lockup {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.footer-mark { width: 92px; }

.footer-wordmark {
  font-family: var(--brand-serif);
  font-weight: 500;
  font-size: 19px;
  letter-spacing: 0.24em;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.footer-444 {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--brand-serif);
  font-size: 12.5px;
  letter-spacing: 0.55em;
  padding-left: 0.55em;
  color: var(--gold);
}
.footer-444 .rule {
  width: 54px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-deep));
}
.footer-444 .rule:last-child {
  background: linear-gradient(270deg, transparent, var(--gold-deep));
}
.footer-444 .dot {
  width: 4px;
  height: 4px;
  flex: none;
  transform: rotate(45deg);
  background: var(--gold);
}

.footer-brand p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--rose-muted);
  max-width: 40ch;
}

.footer-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--rose) !important;
}

.footer-col { display: flex; flex-direction: column; gap: 12px; }

.footer-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--footer-label);
  margin-bottom: 6px;
}

.footer-col a {
  color: var(--footer-link);
  text-decoration: none;
  font-size: 14.5px;
  transition: color 0.25s ease;
}
.footer-col a:hover { color: var(--cream); }

.footer-bottom { border-top: 1px solid var(--dark-border); }

.footer-bottom-inner {
  padding-top: 20px;
  padding-bottom: 20px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  font-size: 12.5px;
  color: var(--footer-label);
}

@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-bottom-inner { flex-direction: column; gap: 6px; }
}

@media (max-width: 640px) {
  .container { padding-left: 24px; padding-right: 24px; }
  .nav-inner { padding: 0 24px; }
  .welcome, .packages, .cta-inner { padding-left: 24px; padding-right: 24px; }
  .hero-content .container { padding-bottom: 72px; }
}
