/* Eastside Haven — shared stylesheet */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,500;0,600;0,700;0,900;1,500&family=Archivo:wght@400;500;600;700&display=swap');

:root {
  --sand: #D9C7B4;
  --charcoal: #2B2420;
  --offwhite: #F5EFE6;
  --rule: rgba(43,36,32,0.2);
  --max-width: 1320px;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--offwhite);
  color: var(--charcoal);
  font-family: 'Archivo', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; }

.eyebrow {
  font-family: 'Archivo', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--charcoal);
  opacity: 0.55;
  margin: 0 0 1rem;
}

h1, h2, h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.01em;
}

/* ---------- Directory motif ----------
   Repeating wayfinding device: a small-caps label breaking a hairline
   rule, like signage on the property. Used to head every zone/section
   so the whole site reads as one continuous "house directory". */

.zone-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 1.25rem;
  row-gap: 0.35rem;
  margin-bottom: 1.25rem;
}

.zone-name {
  font-family: 'Archivo', sans-serif;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
}

.zone-rule {
  flex: 1 1 40px;
  min-width: 32px;
  height: 1px;
  background: var(--rule);
  align-self: center;
}

.zone-caption {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 500;
  font-size: 0.95rem;
  opacity: 0.68;
  margin: 0;
  max-width: 34ch;
}

.zone-head--center { justify-content: center; text-align: center; }

/* ---------- Header ---------- */

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(1.25rem, 3vw, 2.25rem) var(--gutter);
}

.site-header.is-static {
  position: relative;
  background: var(--offwhite);
}

.logo-mark img {
  height: clamp(36px, 4.5vw, 48px);
  width: auto;
}

.rates-link {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--offwhite);
  padding-bottom: 3px;
  border-bottom: 1px solid rgba(245,239,230,0.55);
  transition: opacity 0.2s ease;
}

.rates-link:hover { opacity: 0.7; }

.site-header.is-static .rates-link {
  color: var(--charcoal);
  border-bottom-color: rgba(43,36,32,0.35);
}

/* ---------- Hero ----------
   Split screen: video on one side, a quiet sand panel carrying the
   wordmark and headline on the other, instead of full-bleed video with
   text overlaid on top of it. */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 58% 42%;
  height: 100svh;
  min-height: 480px;
  background: var(--charcoal);
  isolation: isolate;
}

.hero-media {
  position: relative;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: hero-zoom 22s ease-out forwards;
  animation-play-state: paused;
  will-change: transform;
  backface-visibility: hidden;
  transform-origin: center center;
}

.hero-video.is-playing {
  animation-play-state: running;
}

.hero-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

@keyframes hero-zoom {
  from { transform: scale(1); }
  to { transform: scale(1.09); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(20,16,14,0.6) 0%, rgba(20,16,14,0.18) 20%, transparent 34%),
    linear-gradient(to top, rgba(20,16,14,0.85) 0%, rgba(20,16,14,0.32) 42%, rgba(20,16,14,0.05) 66%, transparent 100%);
}

.hero-panel {
  position: relative;
  background: var(--sand);
  color: var(--charcoal);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(2rem, 5vw, 4rem) var(--gutter);
}

.hero-logo {
  height: clamp(48px, 6vw, 72px);
  width: auto;
  margin-bottom: 1.5rem;
}

.hero-headline {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  line-height: 1.1;
  margin: 0 0 1.25rem;
  max-width: 16ch;
  text-wrap: balance;
}

.hero-meta {
  font-family: 'Archivo', sans-serif;
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--charcoal);
  opacity: 0.6;
  margin: 0;
}

/* ---------- Intro ---------- */

.intro {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(4.5rem, 10vw, 7rem) var(--gutter) clamp(3.5rem, 8vw, 5.5rem);
  display: grid;
  grid-template-columns: minmax(160px, 220px) 1fr;
  gap: clamp(1rem, 4vw, 3rem);
  align-items: start;
}

.intro .eyebrow { margin: 0; }

.intro-text {
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  font-size: clamp(1.25rem, 2.6vw, 1.65rem);
  line-height: 1.5;
  margin: 0;
  max-width: 42ch;
  color: var(--charcoal);
}

/* ---------- Gallery ---------- */

.gallery {
  padding: 0 var(--gutter) clamp(2rem, 6vw, 3rem);
  max-width: var(--max-width);
  margin: 0 auto;
}

.gallery-group {
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}

.gallery-group figure {
  margin: 0;
  overflow: hidden;
  background: var(--sand);
}

.gallery-group img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.gallery-group figure:hover img {
  transform: scale(1.035);
}

.gallery-lead-figure {
  aspect-ratio: 16 / 9;
}

.gallery-row {
  display: grid;
  gap: clamp(0.6rem, 1.4vw, 1rem);
  margin-top: clamp(0.6rem, 1.4vw, 1rem);
}

.gallery-row.three-col { grid-template-columns: repeat(3, 1fr); }
.gallery-row.three-col figure { aspect-ratio: 4 / 5; }

.gallery-row.two-col { grid-template-columns: repeat(2, 1fr); }
.gallery-row.two-col figure { aspect-ratio: 4 / 3; }

.gallery-row.split-lead {
  grid-template-columns: 1.6fr 1fr;
}

.gallery-row.split-lead .lead { aspect-ratio: 4 / 3; }

.gallery-row.split-lead .stack {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: clamp(0.6rem, 1.4vw, 1rem);
}

.gallery-row.split-lead .stack figure { aspect-ratio: 16 / 10; }

.gallery-wide {
  aspect-ratio: 21 / 9;
}

/* ---------- Amenities / house manual ---------- */

.amenities {
  background: var(--sand);
  padding: clamp(3.5rem, 8vw, 6rem) var(--gutter);
}

.amenities-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.amenities .zone-head--center { margin-bottom: clamp(2.5rem, 6vw, 3.5rem); }
.amenities .zone-name { opacity: 0.6; }
.amenities .zone-rule { max-width: 120px; background: rgba(43,36,32,0.3); }

.manual-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2rem, 4vw, 3rem);
}

.manual-label {
  font-family: 'Archivo', sans-serif;
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.6;
  margin: 0 0 0.85rem;
}

.manual-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.manual-list li {
  padding: 0.6rem 0;
  border-top: 1px solid rgba(43,36,32,0.16);
  font-size: 0.95rem;
}

.manual-list li:first-child { border-top: none; }

/* ---------- Footer ---------- */

.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  padding: clamp(3rem, 7vw, 4.5rem) var(--gutter) clamp(3rem, 6vw, 3.5rem);
  text-align: center;
}

.footer-logo {
  height: 40px;
  width: auto;
  opacity: 0.9;
}

.footer-location {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 0.95rem;
  opacity: 0.65;
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.75rem;
}

.footer-link {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid rgba(43,36,32,0.35);
  padding-bottom: 2px;
}

/* ---------- Pricing page ---------- */

.pricing-hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 4.5rem) var(--gutter) clamp(2.5rem, 6vw, 3.5rem);
  display: grid;
  grid-template-columns: minmax(160px, 220px) 1fr;
  gap: clamp(1rem, 4vw, 3rem);
  align-items: start;
}

.pricing-hero .eyebrow { margin: 0; }

.pricing-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
}

.pricing-sub {
  margin: 1rem 0 0;
  opacity: 0.7;
  font-size: 0.98rem;
  max-width: 56ch;
}

.rate-section {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(3rem, 7vw, 4rem);
}

.rate-section h2 {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  margin-bottom: 0.35rem;
}

.rate-section h2::after {
  content: '';
  flex: 1 1 40px;
  height: 1px;
  background: var(--rule);
  transform: translateY(-0.3em);
}

.rate-meta {
  font-size: 0.85rem;
  opacity: 0.6;
  margin: 0 0 1.75rem;
}

.rate-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.75rem, 4vw, 3rem);
  margin-bottom: 1.5rem;
}

.rate-card {
  border-top: 1px solid var(--rule);
  padding-top: 1.5rem;
}

.rate-card h3 {
  font-family: 'Archivo', sans-serif;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.55;
  margin-bottom: 1.15rem;
}

.rate-rows {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.rate-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-variant-numeric: tabular-nums;
}

.rate-row-label {
  font-size: 0.92rem;
  white-space: nowrap;
}

.rate-row-leader {
  flex: 1 1 auto;
  border-bottom: 1px dotted rgba(43,36,32,0.4);
  transform: translateY(-0.35em);
  min-width: 12px;
}

.rate-row-price {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: 1.05rem;
  white-space: nowrap;
}

.rate-note {
  font-size: 0.85rem;
  opacity: 0.65;
  margin-top: 0.75rem;
}

.rate-card .rate-note { margin-top: 1.1rem; }

.rate-callout {
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 3.5rem) var(--gutter);
}

.rate-callout-inner {
  border: 1px solid var(--rule);
  padding: clamp(1.75rem, 4vw, 2.5rem);
}

.rate-callout h3 {
  font-family: 'Archivo', sans-serif;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  opacity: 0.65;
}

.rate-callout .manual-list li { border-top-color: rgba(43,36,32,0.22); }

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
  .hero-poster { display: block; }
  .gallery-group figure:hover img { transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .manual-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-row.three-col { grid-template-columns: 1fr 1fr; }
  .gallery-row.three-col figure:first-child { grid-column: 1 / -1; aspect-ratio: 16/9; }
  .intro, .pricing-hero { grid-template-columns: 1fr; gap: 0.75rem; }
  .hero { grid-template-columns: 1fr; grid-template-rows: 58vh auto; height: auto; min-height: 0; }
  .hero-logo { height: clamp(44px, 12vw, 60px); }
}

@media (max-width: 640px) {
  .gallery-row.two-col { grid-template-columns: 1fr; }
  .gallery-row.two-col figure { aspect-ratio: 4/3; }
  .gallery-row.split-lead { grid-template-columns: 1fr; }
  .gallery-row.split-lead .stack { grid-template-rows: none; grid-template-columns: 1fr 1fr; }
  .manual-grid { grid-template-columns: 1fr; }
  .gallery-wide { aspect-ratio: 4/3; }
  .rate-cards { grid-template-columns: 1fr; gap: 1.75rem; }
  .rate-row-label, .rate-row-price { font-size: 0.88rem; }
  .rate-section h2::after { display: none; }
}

@media (min-width: 901px) {
  /* The homepage header sits with "Rates" over the sand hero panel at
     this width (not the video side), so it needs dark text like the
     pricing page's static header, not the light text used over video. */
  .site-header:not(.is-static) .rates-link {
    color: var(--charcoal);
    border-bottom-color: rgba(43,36,32,0.35);
  }
}
