/* Ternan — Rift Valley Retreat
   Shared site styles.
   Divi note: paste the contents of this file into Divi → Theme Options → Custom CSS,
   or load via Divi → Theme Customizer → Additional CSS.
*/

@import url('https://fonts.googleapis.com/css2?family=Tenor+Sans&family=Inter:wght@300;400;500&display=swap');

:root {
  --bg: #FFFFFF;
  --ivory: #F8F5EF;
  --sand: #D8C3A5;
  --stone: #A8957A;
  --charcoal: #1E1E1C;
  --olive: #6F735A;
  --gold: #B89B5E;
  --hairline: rgba(30, 30, 28, 0.12);
  --muted: rgba(30, 30, 28, 0.55);

  --serif: 'Tenor Sans', 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;

  --max: 1440px;
  --gutter: clamp(24px, 5vw, 80px);
  --section-y: clamp(80px, 12vw, 160px);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--charcoal);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: inherit; text-decoration: none; }

p { margin: 0 0 1em; }

/* ---------- Type ---------- */

.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--muted);
}

.serif {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: 0.005em;
}

.h-display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 6.4vw, 92px);
  line-height: 1.05;
  letter-spacing: -0.005em;
  margin: 0;
}

.h-section {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 4.2vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.005em;
  margin: 0;
}

.h-sub {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.25;
  margin: 0;
}

.lead {
  font-size: 16px;
  line-height: 1.7;
  max-width: 56ch;
  color: var(--charcoal);
}

.muted { color: var(--muted); }

.rule {
  display: block;
  width: 32px;
  height: 1px;
  background: var(--charcoal);
  border: 0;
  margin: 0;
}

/* ---------- Layout ---------- */

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section { padding-top: var(--section-y); padding-bottom: var(--section-y); }
.section--tight { padding-top: clamp(60px, 8vw, 100px); padding-bottom: clamp(60px, 8vw, 100px); }

.fullbleed { position: relative; width: 100%; }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}

@media (max-width: 820px) {
  .grid-2 { grid-template-columns: 1fr; gap: 40px; }
}

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

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px var(--gutter);
  background: rgba(255, 255, 255, 0);
  transition: background 0.4s ease, color 0.4s ease, border-color 0.4s ease;
  color: #FFFFFF;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(140%) blur(8px);
  color: var(--charcoal);
  border-bottom-color: var(--hairline);
}

.site-header.is-light { color: var(--charcoal); }

.brand {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.brand small {
  display: block;
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.32em;
  font-weight: 400;
  margin-top: 2px;
  opacity: 0.7;
}

.nav {
  display: flex;
  gap: clamp(20px, 3vw, 40px);
  align-items: center;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.nav a {
  position: relative;
  padding: 4px 0;
  opacity: 0.85;
  transition: opacity 0.2s;
}
.nav a:hover { opacity: 1; }
.nav a[aria-current="page"]::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: currentColor;
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: inherit;
  padding: 8px;
  cursor: pointer;
  font: inherit;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 11px;
}

@media (max-width: 880px) {
  .nav { display: none; }
  .nav-toggle { display: inline-block; }
  .nav.is-open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: #FFF;
    color: var(--charcoal);
    padding: 24px var(--gutter);
    gap: 18px;
    border-bottom: 1px solid var(--hairline);
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border: 1px solid currentColor;
  background: transparent;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: inherit;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
  text-decoration: none;
}

.btn:hover { background: var(--charcoal); color: #FFF; border-color: var(--charcoal); }
.site-header.is-scrolled .btn:hover,
.site-header.is-light .btn:hover { background: var(--charcoal); color: #FFF; }

.btn--solid {
  background: var(--charcoal);
  color: #FFF;
  border-color: var(--charcoal);
}
.btn--solid:hover { background: #000; border-color: #000; }

.btn--ghost { padding: 6px 0; border: 0; border-bottom: 1px solid currentColor; letter-spacing: 0.24em; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  width: 100%;
  overflow: hidden;
  color: #FFF;
}

.hero__media {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  animation: heroDrift 18s ease-out forwards;
}

@keyframes heroDrift {
  from { transform: scale(1.08); }
  to { transform: scale(1); }
}

.hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.32) 0%, rgba(0,0,0,0.05) 30%, rgba(0,0,0,0.0) 55%, rgba(0,0,0,0.45) 100%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 var(--gutter) clamp(60px, 8vw, 120px);
  max-width: var(--max);
  margin: 0 auto;
}

.hero__eyebrow {
  font-size: 11px;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  margin-bottom: 24px;
  opacity: 0.85;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(38px, 6vw, 88px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 28px;
  max-width: 18ch;
}

.hero__sub {
  max-width: 44ch;
  font-size: 15px;
  line-height: 1.65;
  opacity: 0.92;
  margin-bottom: 40px;
}

.hero__ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 3;
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  opacity: 0.7;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: #FFF;
}

.hero__scroll::after {
  content: '';
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,0.6);
  animation: scrollPulse 2.4s ease-in-out infinite;
  transform-origin: top;
}

@keyframes scrollPulse {
  0%, 100% { transform: scaleY(0.4); opacity: 0.3; }
  50% { transform: scaleY(1); opacity: 0.9; }
}

/* ---------- Sub-hero / page intro ---------- */

.page-intro {
  padding: clamp(160px, 18vw, 220px) var(--gutter) clamp(80px, 10vw, 120px);
  max-width: var(--max);
  margin: 0 auto;
}

.page-intro__eyebrow { margin-bottom: 18px; }

.page-intro h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 80px);
  line-height: 1.05;
  letter-spacing: -0.005em;
  margin: 0 0 32px;
  max-width: 16ch;
}

.page-intro__lede {
  max-width: 56ch;
  font-size: 16px;
  line-height: 1.7;
  color: var(--charcoal);
}

/* ---------- Editorial blocks ---------- */

.editorial {
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
}

.editorial .eyebrow { display: block; margin-bottom: 24px; }
.editorial .h-section { margin-bottom: 32px; }
.editorial p { font-size: 17px; line-height: 1.75; max-width: 60ch; margin: 0 auto 1em; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 8vw, 120px);
  align-items: center;
}

.split--reverse > :first-child { order: 2; }
.split--reverse > :last-child { order: 1; }

@media (max-width: 820px) {
  .split, .split--reverse { grid-template-columns: 1fr; gap: 40px; }
  .split--reverse > :first-child { order: unset; }
  .split--reverse > :last-child { order: unset; }
}

.split__text { padding: clamp(0px, 2vw, 32px) 0; }
.split__text .eyebrow { margin-bottom: 20px; display: block; }
.split__text h2 { margin-bottom: 24px; }
.split__text p { max-width: 44ch; }
.split__text .btn { margin-top: 24px; }

.split__media img { width: 100%; height: auto; display: block; }
.split__media figcaption {
  margin-top: 14px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Highlights ---------- */

.highlights {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(24px, 4vw, 56px);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: clamp(48px, 7vw, 80px) 0;
}

.highlights__item {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.highlights__num {
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--muted);
}

.highlights__title {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.2;
  font-weight: 400;
  margin: 0;
}

.highlights__body {
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0;
}

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

/* ---------- Overlay band ---------- */

.overlay-band {
  position: relative;
  height: clamp(420px, 70vh, 720px);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFF;
  text-align: center;
  padding: 0 var(--gutter);
  overflow: hidden;
}

.overlay-band::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.25), rgba(0,0,0,0.45));
}

.overlay-band__inner { position: relative; z-index: 2; max-width: 720px; }
.overlay-band__inner .eyebrow { color: rgba(255,255,255,0.78); display: block; margin-bottom: 22px; }
.overlay-band__inner h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 5vw, 64px);
  line-height: 1.1;
  margin: 0 0 28px;
}
.overlay-band__inner p { max-width: 50ch; margin: 0 auto 32px; opacity: 0.92; }

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

.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(8px, 1.2vw, 16px);
}

.gallery a, .gallery .cell {
  position: relative;
  overflow: hidden;
  display: block;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s ease;
}
.gallery a:hover img { transform: scale(1.03); }

.cell--6 { grid-column: span 6; aspect-ratio: 4/3; }
.cell--4 { grid-column: span 4; aspect-ratio: 4/5; }
.cell--8 { grid-column: span 8; aspect-ratio: 16/9; }
.cell--12 { grid-column: span 12; aspect-ratio: 21/9; }
.cell--3 { grid-column: span 3; aspect-ratio: 3/4; }

@media (max-width: 820px) {
  .cell--6, .cell--4, .cell--8, .cell--3 { grid-column: span 12; aspect-ratio: 4/3; }
}

/* ---------- CTA section ---------- */

.cta {
  text-align: center;
  padding: clamp(120px, 16vw, 200px) var(--gutter);
  background: var(--ivory);
}

.cta .eyebrow { display: block; margin-bottom: 24px; }
.cta h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 5.5vw, 72px);
  line-height: 1.05;
  margin: 0 auto 28px;
  max-width: 14ch;
}
.cta p { max-width: 48ch; margin: 0 auto 36px; color: var(--charcoal); }
.cta__rates { font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); margin-top: 36px; }

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

.site-footer {
  background: var(--charcoal);
  color: rgba(255, 255, 255, 0.72);
  padding: clamp(60px, 9vw, 120px) var(--gutter) 36px;
  font-size: 13px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  max-width: var(--max);
  margin: 0 auto;
  padding-bottom: clamp(48px, 7vw, 80px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-grid h4 {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #FFF;
  margin: 0 0 18px;
}

.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-grid a { transition: color 0.2s; }
.footer-grid a:hover { color: #FFF; }

.footer-brand {
  font-family: var(--serif);
  font-size: 26px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #FFF;
  margin-bottom: 14px;
}

.footer-tag { max-width: 32ch; line-height: 1.7; }

.footer-meta {
  max-width: var(--max);
  margin: 28px auto 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}

/* ---------- Sticky book pill ---------- */

.book-pill {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  background: var(--charcoal);
  color: #FFF;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.18);
  transition: transform 0.25s ease, opacity 0.25s ease;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}

.book-pill.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.book-pill:hover { background: #000; }

/* ---------- Reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.reveal.is-in { opacity: 1; transform: translateY(0); }

/* ---------- Quote ---------- */

.quote {
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
  font-family: var(--serif);
  font-size: clamp(26px, 3.4vw, 44px);
  line-height: 1.3;
  color: var(--charcoal);
}
.quote cite {
  display: block;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-style: normal;
  color: var(--muted);
  margin-top: 28px;
}

/* ---------- Misc ---------- */

.placeholder-img {
  background: var(--ivory);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  background-image: repeating-linear-gradient(45deg, var(--ivory) 0 12px, #efeae0 12px 13px);
}

/* Page transition */
body { animation: pageIn 0.6s ease both; }
@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }

/* Spec lines for room cards etc */
.spec-row {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 18px;
  border-top: 1px solid var(--hairline);
  margin-top: 24px;
}
.spec-row span strong {
  display: block;
  font-weight: 400;
  color: var(--charcoal);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: none;
  margin-top: 4px;
  font-family: var(--serif);
}
