/* ========================================
   Upcote CMS — site styles
   Extracted from original site + block styles
   ======================================== */

:root {
  --cream: #faf7f2;
  --warm-white: #f5f0e8;
  --stone: #c8b89a;
  --bark: #8b6f47;
  --earth: #5c4a2a;
  --charcoal: #2d2926;
  --sage: #7a8c6e;
  --muted: #9c8f7e;
  --border: rgba(139,111,71,0.2);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Jost', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--charcoal);
  font-weight: 300;
  line-height: 1.7;
}

/* ── NAV ── */
nav.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3rem;
  height: 72px;
  background: rgba(250,247,242,0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
  transition: box-shadow 0.3s;
}
nav.site-nav.scrolled { box-shadow: 0 2px 24px rgba(44,41,38,0.07); }
.nav-logo { display: flex; align-items: center; gap: 12px; cursor: pointer; text-decoration: none; }
.nav-logo img { height: 44px; width: auto; }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--charcoal);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--bark);
  transition: width 0.3s;
}
.nav-links a:hover { color: var(--bark); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--bark); }
.nav-cta {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 9px 22px;
  border: 1px solid var(--bark);
  color: var(--bark);
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.nav-cta:hover { background: var(--bark); color: #fff; }

main { padding-top: 72px; }

/* ── HERO BLOCK ── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  transition: transform 8s ease-out;
}
.hero-bg.loaded { transform: scale(1); }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(44,41,38,0.28) 0%, rgba(44,41,38,0.5) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 700px;
  padding: 0 2rem;
}
.hero-eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 1.2rem;
  display: block;
}
.hero-title {
  font-family: var(--serif);
  font-size: clamp(3.2rem, 7vw, 5.5rem);
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: 0.01em;
}
.hero-title em { font-style: italic; font-weight: 300; }
.hero-subtitle {
  font-size: 15px;
  font-weight: 300;
  opacity: 0.88;
  max-width: 480px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
}
.hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 14px 36px;
  background: #fff;
  color: var(--charcoal);
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
  display: inline-block;
}
.btn-primary:hover { background: var(--cream); }
.btn-outline-white {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 13px 36px;
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.7);
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
  display: inline-block;
}
.btn-outline-white:hover { background: rgba(255,255,255,0.1); }
.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.7);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.5);
  animation: scrollpulse 2s ease-in-out infinite;
}
@keyframes scrollpulse { 0%,100%{opacity:0.3;transform:scaleY(1)} 50%{opacity:1;transform:scaleY(0.7)} }

/* ── PAGE HERO BLOCK ── */
.page-hero {
  position: relative;
  height: 60vh;
  min-height: 420px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(44,41,38,0.32) 0%, rgba(44,41,38,0.55) 100%);
}
.page-hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 700px;
  padding: 0 2rem;
}
.page-hero-content span {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 1rem;
  display: block;
}
.page-hero-content h1 {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 5.5vw, 4.5rem);
  font-weight: 300;
  line-height: 1.1;
}
.page-hero-content h1 em { font-style: italic; font-weight: 300; }

/* ── SECTIONS ── */
.section { padding: 6rem 0; }
.section-inner { max-width: 1100px; margin: 0 auto; padding: 0 3rem; }

.section-eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bark);
  display: block;
  margin-bottom: 1.2rem;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  font-weight: 300;
  line-height: 1.15;
  margin-bottom: 1.6rem;
  color: var(--charcoal);
  letter-spacing: 0.01em;
}
.section-title em { font-style: italic; font-weight: 300; color: var(--earth); }
.section-body {
  font-size: 16px;
  font-weight: 300;
  color: var(--charcoal);
  max-width: 640px;
  line-height: 1.85;
}

.section-header.align-center .section-inner { text-align: center; }
.section-header.align-center .section-body { margin: 0 auto; }
.section-header.align-left .section-inner { text-align: left; }

/* ── QUOTE BLOCK ── */
.section-quote { background: var(--warm-white); }
.quote-block {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  border-top: 3px solid var(--stone);
  padding-top: 2.5rem;
}
.quote-block p {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  font-style: italic;
  font-weight: 300;
  line-height: 1.55;
  color: var(--charcoal);
}
.quote-block footer {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bark);
  margin-top: 1.6rem;
}

/* ── FOOTER ── */
footer.site-footer {
  background: var(--charcoal);
  color: rgba(250,247,242,0.85);
  padding: 4rem 3rem 2rem;
  margin-top: 0;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand img { height: 56px; margin-bottom: 1.2rem; filter: brightness(0) invert(1); opacity: 0.9; }
.footer-brand p { font-size: 14px; line-height: 1.8; max-width: 360px; opacity: 0.8; }
.footer-address strong,
.footer-nav strong {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stone);
  display: block;
  margin-bottom: 1rem;
}
.footer-address { font-size: 14px; line-height: 1.9; }
.footer-nav { display: flex; flex-direction: column; }
.footer-nav a {
  font-size: 14px;
  color: rgba(250,247,242,0.85);
  text-decoration: none;
  margin-bottom: 0.5rem;
  cursor: pointer;
}
.footer-nav a:hover { color: var(--stone); }
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 12px;
  opacity: 0.6;
}
.footer-bottom a { color: inherit; text-decoration: none; }
.footer-bottom a:hover { color: var(--stone); }

@media (max-width: 800px) {
  nav.site-nav { padding: 0 1.5rem; }
  .nav-links { display: none; }
  .footer-inner { grid-template-columns: 1fr; }
  .section-inner { padding: 0 1.5rem; }
  .section { padding: 4rem 0; }
}

/* ── CARD GRID BLOCK ── */
.section-cards .card-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.section-cards.columns-2 .card-grid { grid-template-columns: repeat(2, 1fr); }
.section-cards.columns-3 .card-grid { grid-template-columns: repeat(3, 1fr); }
.section-cards.columns-4 .card-grid { grid-template-columns: repeat(4, 1fr); }
.section-cards .card {
  background: var(--warm-white);
  padding: 2rem;
  border-top: 3px solid var(--stone);
}
.section-cards .card h4 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--charcoal);
  margin-bottom: 0.6rem;
}
.section-cards .card p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--charcoal);
  opacity: 0.9;
}

@media (max-width: 800px) {
  .section-cards.columns-2 .card-grid,
  .section-cards.columns-3 .card-grid,
  .section-cards.columns-4 .card-grid { grid-template-columns: 1fr; }
}

/* ── CTA BAND BLOCK ── */
.section-cta {
  background: var(--earth);
  color: var(--cream);
}
.section-cta .cta-inner { text-align: center; }
.section-cta .section-title { color: var(--cream); }
.section-cta .section-title em { color: var(--stone); }
.section-cta .section-body {
  color: rgba(250,247,242,0.85);
  margin: 0 auto 2rem;
}
.btn-bark {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 14px 36px;
  background: var(--bark);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
  display: inline-block;
}
.btn-bark:hover { background: var(--earth); }
.section-cta .btn-bark {
  background: var(--cream);
  color: var(--earth);
}
.section-cta .btn-bark:hover { background: #fff; }

/* ── RICH TEXT BLOCK ── */
.section-rich .section-body {
  max-width: 720px;
  margin: 0 auto;
}

/* ── SIDEBAR SECTION BLOCK ── */
.section-sidebar { padding: 5rem 0; }
.section-sidebar .sidebar-header {
  margin-bottom: 3rem;
  text-align: center;
}
/* Hide outer header parts when empty (the eyebrow span and the title h2) */
.section-sidebar .sidebar-header .section-eyebrow:empty,
.section-sidebar .sidebar-header .section-title:empty { display: none; }
/* If both are empty, lose the whole header's spacing too */
.section-sidebar .sidebar-header:has(.section-eyebrow:empty):has(.section-title:empty) {
  margin-bottom: 0;
}

.section-sidebar .sidebar-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 5rem;
  align-items: start;
}

.section-sidebar .sidebar-body h3 {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 400;
  margin: 2rem 0 0.8rem;
  color: var(--charcoal);
}
.section-sidebar .sidebar-body h3:first-child { margin-top: 0; }
/* Hide an empty h3 — and the body that follows it, since an h3-less body
   makes no sense on this page layout. */
.section-sidebar .sidebar-body h3:empty,
.section-sidebar .sidebar-body h3:empty + .sidebar-body-text { display: none; }

.section-sidebar .sidebar-body-text {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.9;
  margin-bottom: 1rem;
}
.section-sidebar .sidebar-body-text:empty { display: none; }
/* Lift the next h3 if the body before it was empty */
.section-sidebar .sidebar-body-text:empty + h3 { margin-top: 0; }

/* Sticky sidebar */
.section-sidebar .sidebar-card-wrap { position: relative; }
.section-sidebar .sidebar-card {
  background: var(--warm-white);
  padding: 2rem;
  border-top: 3px solid var(--stone);
  position: sticky;
  /* Offset for the fixed nav (72px) plus a touch of breathing room */
  top: 96px;
}
.section-sidebar .sidebar-card h4 {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 400;
  margin-bottom: 1rem;
  color: var(--charcoal);
}
.section-sidebar .sidebar-card h4:empty { display: none; }
.section-sidebar .sidebar-card ul { list-style: none; margin: 0; padding: 0; }
.section-sidebar .sidebar-card ul li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.section-sidebar .sidebar-card ul li span:first-child { color: var(--muted); }
.section-sidebar .sidebar-card ul li span:last-child {
  font-weight: 500;
  color: var(--charcoal);
  text-align: right;
}
/* If the LABEL (first span) is empty, hide the whole row.
   :has() is supported in all modern browsers. */
.section-sidebar .sidebar-card ul li:has(span:first-child:empty) { display: none; }
/* If only the value is empty, the row still shows (Accommodation case
   where the sidebar lists names with no values). The flex still works. */

.section-sidebar .sidebar-btn {
  display: block;
  text-align: center;
  margin-top: 1.5rem;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 12px 24px;
  border: 1px solid var(--bark);
  color: var(--bark);
  background: transparent;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.section-sidebar .sidebar-btn:hover { background: var(--bark); color: #fff; }
/* Hide a button when its label text is empty */
.section-sidebar .sidebar-btn:empty { display: none; }

/* Mobile: collapse to a single column. The sidebar drops below the body
   and stops being sticky. */
@media (max-width: 800px) {
  .section-sidebar .sidebar-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .section-sidebar .sidebar-card { position: static; }
}
