/* =========================================================
   Stay@Stenar — shared stylesheet
   Editorial / refined aesthetic, warm sage + cream palette
   ========================================================= */

:root {
  --cream: #f5f0e6;
  --cream-dark: #ebe3d2;
  --ink: #1f2418;
  --ink-soft: #4a4f42;
  --sage: #6b7a5a;
  --sage-deep: #4a5a3d;
  --rust: #b85c2a;
  --gold: #c9a14a;
  --line: rgba(31, 36, 24, 0.12);
  --shadow: 0 20px 60px rgba(31, 36, 24, 0.15);
  --max: 1400px;

  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; transition: opacity 0.3s ease; }
a:hover { opacity: 0.6; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.5rem, 6vw, 5.5rem); font-weight: 300; }
h2 { font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 400; }
h3 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 500; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin-bottom: 1.5rem;
  display: inline-block;
}

.lead {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 300;
  line-height: 1.6;
  color: var(--ink-soft);
}

p + p { margin-top: 1rem; }

/* ---------- Layout helpers ---------- */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 2rem; }
.wrap-narrow { max-width: 880px; margin: 0 auto; padding: 0 2rem; }

section { padding: clamp(4rem, 10vw, 9rem) 0; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
  mix-blend-mode: normal;
}
.nav.scrolled {
  background: rgba(245, 240, 230, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 1rem 2rem;
  box-shadow: 0 1px 0 var(--line);
}
.nav.over-hero { color: var(--cream); }
.nav.over-hero .brand { color: var(--cream); }
.nav.scrolled.over-hero { color: var(--ink); }
.nav.scrolled.over-hero .brand { color: var(--ink); }

.brand {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.brand em { font-style: italic; color: var(--rust); }

.nav-links {
  display: flex;
  gap: 2.2rem;
  list-style: none;
  align-items: center;
}
.nav-links a {
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 400;
  position: relative;
}
.nav-links a.active::after {
  content: "";
  position: absolute;
  bottom: -6px; left: 0; right: 0;
  height: 1px;
  background: currentColor;
}

.nav-cta {
  padding: 0.7rem 1.4rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 0.8rem !important;
  letter-spacing: 0.12em !important;
  transition: all 0.3s ease;
}
.nav-cta:hover {
  background: var(--ink);
  color: var(--cream);
  opacity: 1;
  border-color: var(--ink);
}
.nav.over-hero .nav-cta:hover {
  background: var(--cream);
  color: var(--ink);
}

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; color: inherit; }

@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; padding: 0.5rem; }
  .nav-toggle svg { width: 24px; height: 24px; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--cream);
    padding: 2rem;
    gap: 1.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    color: var(--ink);
  }
  .nav-links.open a { color: var(--ink); }
}

/* ---------- Hero (parallax) ---------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  color: var(--cream);
}
.hero-bg {
  position: absolute;
  inset: -25% 0 -25% 0;
  background-size: cover;
  background-position: center;
  will-change: transform;
  z-index: 0;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.05) 40%, rgba(0,0,0,0.65) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 2rem 5rem;
  max-width: var(--max);
  margin: 0 auto;
}
.hero-content .eyebrow {
  color: var(--cream);
  opacity: 0.85;
}
.hero-content h1 {
  max-width: 14ch;
  margin-bottom: 1.5rem;
}
.hero-content h1 em {
  font-style: italic;
  color: var(--gold);
}
.hero-meta {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(245, 240, 230, 0.3);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.9;
}
.hero-meta span { display: block; }
.hero-meta strong {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  display: block;
  margin-top: 0.3rem;
}

.scroll-cue {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0.7;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}
.scroll-cue::after {
  content: "";
  width: 1px; height: 40px;
  background: currentColor;
  animation: drop 2.4s ease-in-out infinite;
  transform-origin: top;
}
@keyframes drop {
  0%, 100% { transform: scaleY(0.3); opacity: 0.3; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* Smaller hero variant for inner pages */
.hero.inner { height: 70vh; min-height: 480px; }
.hero.inner h1 { font-size: clamp(2.5rem, 6vw, 5rem); }

/* Clean photo banner — half height, no text, no overlay.
   Used when a page doesn't need a hero headline (e.g. contact). */
.hero--banner {
  height: 35vh;
  min-height: 260px;
}
.hero--banner::before { display: none; }

/* ---------- Stacked full-screen stages (home page) ----------
   Each .stage is a 100vh parallax panel with a darkened photo behind.
   Used to create a 3-stage scrolling intro on the home page.
------------------------------------------------------------- */
.stage {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
  color: var(--cream);
}
.stage .hero-bg {
  position: absolute;
  inset: -25% 0 -25% 0;
  background-size: cover;
  background-position: center;
  will-change: transform;
  z-index: 0;
}
.stage::before {
  content: "";
  position: absolute;
  inset: 0;
  /* Stronger, more even overlay so text reads on any photo */
  background:
    linear-gradient(180deg, rgba(15, 18, 12, 0.55) 0%, rgba(15, 18, 12, 0.35) 50%, rgba(15, 18, 12, 0.65) 100%);
  z-index: 1;
}
/* For bright/sunlit photos that need extra darkening */
.stage--darker::before {
  background:
    linear-gradient(180deg, rgba(15, 18, 12, 0.7) 0%, rgba(15, 18, 12, 0.55) 50%, rgba(15, 18, 12, 0.78) 100%);
}
.stage-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 2rem;
  max-width: var(--max);
  margin: 0 auto;
}

/* Variants for visual rhythm — first stage anchors bottom, second centres, third anchors bottom right */
.stage--bottom { align-items: flex-end; }
.stage--bottom .stage-content { padding-bottom: 5rem; }
.stage--center { align-items: center; text-align: center; }
.stage--center .stage-content { max-width: 880px; }
.stage--right { align-items: flex-end; justify-content: flex-end; text-align: right; }
.stage--right .stage-content { padding-bottom: 5rem; text-align: right; }
.stage--right h2,
.stage--right p,
.stage--right .eyebrow { margin-left: auto; }
.stage--right p { max-width: 50ch; }

.stage h1 {
  max-width: 22ch;
  margin-bottom: 1.5rem;
}
.stage h1 em { font-style: italic; color: var(--gold); }
.stage h2 {
  color: var(--cream);
  margin-bottom: 1.5rem;
  max-width: 18ch;
}
.stage--center h2 { margin-left: auto; margin-right: auto; }
.stage--center h1 { margin-left: auto; margin-right: auto; }
.stage--right h2 { margin-left: auto; }
.stage h2 em { font-style: italic; color: var(--gold); }
.stage .eyebrow { color: var(--cream); opacity: 0.85; }
.stage p {
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  font-weight: 300;
  line-height: 1.6;
  color: var(--cream);
  opacity: 0.95;
  max-width: 50ch;
}
.stage--center p { margin-left: auto; margin-right: auto; }

.stage-meta {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(245, 240, 230, 0.3);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.9;
}
.stage--right .stage-meta { justify-content: flex-end; }
.stage-meta span { display: block; }
.stage-meta strong {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  display: block;
  margin-top: 0.3rem;
}

/* Mobile: stages remain readable, alignments simplify */
@media (max-width: 760px) {
  .stage--right { justify-content: flex-start; text-align: left; }
  .stage--right .stage-content { text-align: left; padding-bottom: 4rem; }
  .stage--right h2,
  .stage--right p,
  .stage--right .eyebrow { margin-left: 0; }
  .stage--right .stage-meta { justify-content: flex-start; }
  .stage-meta { gap: 1.5rem; }
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease, transform 1s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal.delay-1 { transition-delay: 0.15s; }
.reveal.delay-2 { transition-delay: 0.3s; }
.reveal.delay-3 { transition-delay: 0.45s; }

/* ---------- Intro section ---------- */
.intro {
  text-align: center;
}
.intro .wrap-narrow > * + * { margin-top: 1.5rem; }
.intro .divider {
  width: 60px;
  height: 1px;
  background: var(--sage);
  margin: 2.5rem auto;
}
.intro p {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--ink-soft);
  font-weight: 300;
}

/* ---------- Two-column feature ---------- */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}
.feature.reverse { direction: rtl; }
.feature.reverse > * { direction: ltr; }
.feature img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  box-shadow: var(--shadow);
}
.feature h2 { margin-bottom: 1.5rem; }
.feature ul {
  list-style: none;
  margin-top: 2rem;
  border-top: 1px solid var(--line);
}
.feature ul li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
}
.feature ul li span:first-child {
  color: var(--ink-soft);
  letter-spacing: 0.05em;
}
.feature ul li span:last-child {
  font-family: var(--font-display);
  font-size: 1.15rem;
}
@media (max-width: 760px) {
  .feature { grid-template-columns: 1fr; }
  .feature.reverse { direction: ltr; }
}

/* ---------- Full-bleed parallax band ---------- */
.parallax-band {
  position: relative;
  height: 75vh;
  min-height: 500px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  text-align: center;
}
.parallax-band .hero-bg {
  position: absolute;
  inset: -25% 0 -25% 0;
  background-size: cover;
  background-position: center;
  will-change: transform;
  z-index: 0;
}
.parallax-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(31, 36, 24, 0.45);
  z-index: 1;
}
.parallax-band .wrap-narrow {
  position: relative;
  z-index: 2;
}
.parallax-band h2 {
  color: var(--cream);
  margin-bottom: 1.5rem;
}
.parallax-band p {
  font-size: 1.2rem;
  font-weight: 300;
  opacity: 0.92;
}

/* ---------- Photo strip / teaser ---------- */
.strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 3rem;
}
.strip a {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.strip img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1s ease;
}
.strip a:hover img { transform: scale(1.05); }
.strip a:hover { opacity: 1; }

@media (max-width: 600px) {
  .strip { grid-template-columns: repeat(2, 1fr); }
  .strip a:nth-child(3) { grid-column: span 2; aspect-ratio: 2 / 1; }
}

/* ---------- Section header ---------- */
.section-head {
  text-align: center;
  margin-bottom: 4rem;
}
.section-head .eyebrow { color: var(--rust); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 1rem 2.4rem;
  background: var(--ink);
  color: var(--cream);
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  transition: all 0.3s ease;
}
.btn:hover {
  background: transparent;
  color: var(--ink);
  opacity: 1;
}
.btn-light {
  background: transparent;
  color: var(--cream);
  border-color: var(--cream);
}
.btn-light:hover {
  background: var(--cream);
  color: var(--ink);
}
.btn-rust {
  background: var(--rust);
  border-color: var(--rust);
}
.btn-rust:hover {
  background: transparent;
  color: var(--rust);
}

/* ---------- Cards (explore page) ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.card {
  background: #fff;
  padding: 2rem;
  border: 1px solid var(--line);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
  display: block;
  color: inherit;
  position: relative;
}
a.card:hover { opacity: 1; }
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}
/* Small external-link arrow indicator on anchored cards */
a.card::after {
  content: "↗";
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 1rem;
  color: var(--sage-deep);
  opacity: 0.4;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
a.card:hover::after {
  opacity: 1;
  transform: translate(2px, -2px);
}
.card .meta {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin-bottom: 0.8rem;
}
.card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
}
.card p {
  font-size: 0.95rem;
  color: var(--ink-soft);
}

/* ---------- Two-up info grid ---------- */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 3rem;
  margin-top: 4rem;
}
.info-grid > div h4 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--sage-deep);
  margin-bottom: 0.8rem;
}
.info-grid > div p {
  font-size: 0.95rem;
  color: var(--ink-soft);
}

/* ---------- Gallery grid ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}
.gallery a {
  display: block;
  overflow: hidden;
  position: relative;
  background: var(--cream-dark);
}
.gallery a img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}
.gallery a:hover img { transform: scale(1.04); }
.gallery a:hover { opacity: 1; }

/* asymmetric layout */
.gallery a:nth-child(8n+1) { grid-column: span 8; aspect-ratio: 16/9; }
.gallery a:nth-child(8n+2) { grid-column: span 4; aspect-ratio: 3/4; }
.gallery a:nth-child(8n+3) { grid-column: span 4; aspect-ratio: 3/4; }
.gallery a:nth-child(8n+4) { grid-column: span 4; aspect-ratio: 3/4; }
.gallery a:nth-child(8n+5) { grid-column: span 4; aspect-ratio: 3/4; }
.gallery a:nth-child(8n+6) { grid-column: span 6; aspect-ratio: 4/3; }
.gallery a:nth-child(8n+7) { grid-column: span 6; aspect-ratio: 4/3; }
.gallery a:nth-child(8n+0) { grid-column: span 12; aspect-ratio: 21/9; }

@media (max-width: 760px) {
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
  .gallery a { grid-column: span 1 !important; aspect-ratio: 1/1 !important; }
  .gallery a:nth-child(3n+1) { grid-column: span 2 !important; aspect-ratio: 4/3 !important; }
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 18, 12, 0.96);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
.lightbox-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 1px solid rgba(245,240,230,0.4);
  color: var(--cream);
  width: 50px; height: 50px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
}
.lightbox-btn:hover {
  background: var(--cream);
  color: var(--ink);
}
.lightbox-prev { left: 2rem; }
.lightbox-next { right: 2rem; }
.lightbox-close {
  position: absolute;
  top: 2rem; right: 2rem;
  background: none;
  border: 0;
  color: var(--cream);
  font-size: 2rem;
  cursor: pointer;
  width: 40px; height: 40px;
  line-height: 1;
}
.lightbox-counter {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--cream);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  opacity: 0.7;
}

@media (max-width: 600px) {
  .lightbox-prev { left: 0.5rem; }
  .lightbox-next { right: 0.5rem; }
  .lightbox-btn { width: 40px; height: 40px; }
}

/* ---------- Footer photo banner ----------
   A sign-off image just above the dark footer — full-width, parallax,
   no text overlay. Gives the page a satisfying close.
------------------------------------------------------------- */
.footer-photo {
  position: relative;
  height: 60vh;
  min-height: 380px;
  overflow: hidden;
  padding: 0;
}
.footer-photo .hero-bg {
  position: absolute;
  inset: -25% 0 -25% 0;
  background-size: cover;
  background-position: center;
  will-change: transform;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: var(--cream);
  padding: 5rem 2rem 2rem;
}
.footer .wrap {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  padding: 0;
}
.footer h4 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  opacity: 0.6;
}
.footer .brand { color: var(--cream); font-size: 1.8rem; }
.footer p { opacity: 0.75; font-size: 0.95rem; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 0.6rem; font-size: 0.95rem; opacity: 0.85; }
.footer-bottom {
  max-width: var(--max);
  margin: 4rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(245,240,230,0.15);
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  opacity: 0.6;
  flex-wrap: wrap;
  gap: 1rem;
}
@media (max-width: 760px) {
  .footer .wrap { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; }
}

/* ---------- Contact page ---------- */
.contact-block {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.contact-block .lead { margin: 1.5rem 0 3rem; }
.contact-block .btn { margin: 0.5rem; }

.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2.5rem;
  margin-top: 5rem;
  padding-top: 3rem;
  border-top: 1px solid var(--line);
  text-align: center;
}
.contact-info h4 {
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin-bottom: 0.6rem;
  font-weight: 500;
}
.contact-info p { font-family: var(--font-display); font-size: 1.2rem; }

/* ---------- Misc small ---------- */
.note {
  background: var(--cream-dark);
  padding: 1.5rem 2rem;
  margin-top: 2.5rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
  border-left: 3px solid var(--sage);
}
.note strong { color: var(--ink); font-weight: 500; }

/* Sections hidden with the site editor (still shown, faded, while editing) */
body:not(.ed-on) [data-hidden] { display: none !important; }
