/* ==========================================================================
   Brandi Clarke Co. shared stylesheet
   Palette + type system sourced from the agency's rebrandi mockup.
   ========================================================================== */

:root {
  --color-cream: #F9F6F3;
  --color-charcoal: #21211C;
  --color-gold: #D6B870;
  --color-sage: #7B867F;
  --color-taupe: #D1CDC1;

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --nav-h: 81px; /* fallback; JS measures the real header height on load/resize */
}

body.nav-open {
  overflow: hidden;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-cream);
  font-family: var(--font-sans);
  color: var(--color-charcoal);
  overflow-x: hidden;
}

a {
  color: var(--color-sage);
  text-decoration: none;
}

a:hover {
  color: var(--color-gold);
}

::selection {
  background: var(--color-gold);
  color: var(--color-charcoal);
}

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

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

.serif {
  font-family: var(--font-serif);
}

.eyebrow {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 3px;
  color: var(--color-sage);
  margin-bottom: 22px;
}

.eyebrow-light {
  color: var(--color-gold);
}

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: -0.3px;
  margin: 0;
}

.section {
  padding: 130px 0;
}

.section-sm {
  padding: 90px 0;
}

@media (max-width: 991.98px) {
  .section {
    padding: 88px 0;
  }
  .section-sm {
    padding: 64px 0;
  }
}

/* --------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------- */

.btn-gold,
.btn-white,
.btn-outline-cream,
.btn-underline,
.btn-dark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.btn-gold {
  background: var(--color-gold);
  color: var(--color-charcoal);
  padding: 16px 30px;
  border-radius: 100px;
}

.btn-gold:hover {
  background: var(--color-cream);
  color: var(--color-charcoal);
}

.btn-white {
  background: var(--color-cream);
  color: var(--color-charcoal);
  padding: 16px 30px;
  border-radius: 100px;
}

.btn-white:hover {
  background: var(--color-gold);
  color: var(--color-charcoal);
}

.btn-outline-cream {
  border: 1px solid rgba(249, 246, 243, 0.55);
  color: var(--color-cream);
  padding: 16px 30px;
  border-radius: 100px;
}

.btn-outline-cream:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
}

.btn-outline-dark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1.5px;
  border: 1px solid rgba(33, 33, 28, 0.35);
  color: var(--color-charcoal);
  padding: 16px 30px;
  border-radius: 100px;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn-outline-dark:hover {
  background: var(--color-charcoal);
  border-color: var(--color-charcoal);
  color: var(--color-cream);
}

.btn-dark {
  background: var(--color-charcoal);
  color: var(--color-cream);
  padding: 13px 24px;
  border-radius: 100px;
  font-size: 13px;
  letter-spacing: 1.5px;
  font-weight: 500;
}

.btn-dark:hover {
  background: var(--color-gold);
  color: var(--color-charcoal);
}

.btn-underline {
  color: var(--color-charcoal);
  gap: 8px;
}

.btn-underline:hover {
  color: var(--color-gold);
}

.btn-underline i,
.btn-underline .fa-arrow-right {
  font-size: 12px;
  color: currentColor;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-underline:hover i {
  transform: translateX(5px);
}

/* --------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  transition: box-shadow 0.2s;
}

/* Blur lives on a pseudo-element, not .site-nav itself, because
   backdrop-filter on an ancestor creates a new containing block for any
   position: fixed descendant (like the mobile #navLinks drawer), which
   breaks its top/bottom offsets against the viewport. */
.site-nav::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(249, 246, 243, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.site-nav.scrolled {
  box-shadow: 0 8px 24px rgba(33, 33, 28, 0.06);
}

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

.brand-mark {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1;
}

.brand-mark .brand-name {
  font-family: var(--font-serif);
  font-size: 27px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--color-charcoal);
}

.brand-mark .brand-tag {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 3.5px;
  color: var(--color-sage);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 38px;
}

.nav-link {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.8px;
  color: rgba(33, 33, 28, 0.65);
  transition: color 0.2s;
  cursor: pointer;
}

.nav-link:hover {
  color: var(--color-gold);
}

.nav-link.active {
  color: var(--color-charcoal);
  border-bottom: 1px solid currentColor;
  padding-bottom: 3px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 20px;
  color: var(--color-charcoal);
  padding: 4px 6px;
}

.nav-services {
  position: relative;
}

.nav-services-caret {
  font-size: 10px;
  margin-left: 6px;
  transition: transform 0.2s;
}

.nav-services-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding-top: 18px;
  display: none;
}

.nav-services-menu.open,
.nav-services:hover .nav-services-menu {
  display: block;
}

.nav-services:hover .nav-services-caret {
  transform: rotate(180deg);
}

.nav-services-card {
  background: #FFFFFF;
  border: 1px solid rgba(33, 33, 28, 0.08);
  border-radius: 16px;
  box-shadow: 0 18px 44px rgba(33, 33, 28, 0.14);
  padding: 10px;
  width: 268px;
}

.nav-services-item {
  display: block;
  padding: 13px 16px;
  border-radius: 10px;
  transition: background 0.15s;
  color: var(--color-charcoal);
}

.nav-services-item:hover {
  background: var(--color-cream);
  color: var(--color-charcoal);
}

.nav-services-item .t {
  display: block;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.2px;
}

.nav-services-item .d {
  display: block;
  font-size: 13px;
  font-weight: 300;
  color: rgba(33, 33, 28, 0.6);
  margin-top: 2px;
}

@media (max-width: 991.98px) {
  .nav-inner {
    padding: 18px 20px;
  }

  .nav-links {
    position: fixed;
    z-index: 199;
    top: var(--nav-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-cream);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 12px 24px 40px;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    overflow-y: auto;
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-link {
    width: 100%;
    padding: 16px 0;
    border-bottom: 1px solid rgba(33, 33, 28, 0.08);
  }

  .nav-link.active {
    border-bottom: 1px solid rgba(33, 33, 28, 0.08);
  }

  .nav-services-menu {
    position: static;
    transform: none;
    padding-top: 0;
    width: 100%;
  }

  .nav-services-card {
    width: 100%;
    box-shadow: none;
    border: none;
    padding: 0 0 8px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-cta {
    width: 100%;
    justify-content: center;
    margin-top: 24px;
  }
}

/* --------------------------------------------------------------------
   Hero entrance animations (shared by both hero options)
   CSS keyframes rather than scroll-reveal so they replay each time a
   hero option is switched back on (display: none resets animations).
   -------------------------------------------------------------------- */

@keyframes heroRise {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes heroFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.hero-anim      { animation: heroRise 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) both; }
.hero-anim-fade { animation: heroFade 0.9s ease both; }
.hero-anim-d1 { animation-delay: 0.15s; }
.hero-anim-d2 { animation-delay: 0.3s; }
.hero-anim-d3 { animation-delay: 0.45s; }
.hero-anim-d4 { animation-delay: 0.6s; }
.hero-anim-d5 { animation-delay: 0.75s; }

@media (prefers-reduced-motion: reduce) {
  .hero-anim,
  .hero-anim-fade {
    animation: none;
  }
}

/* --------------------------------------------------------------------
   Hero option A: editorial (v1 concept structure, v2 palette)
   -------------------------------------------------------------------- */

.hero-editorial {
  position: relative;
  background: var(--color-cream);
  padding: 64px 0 84px;
  overflow: hidden;
}

.accent-gold { color: var(--color-gold); }
.accent-charcoal { color: var(--color-charcoal); }

.hero-deco {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.deco-plus {
  position: absolute;
  line-height: 1;
  font-weight: 300;
  font-family: var(--font-sans);
  color: var(--color-gold);
  opacity: 0.65;
}

.deco-plus--1 { top: 16%; left: 5.5%; font-size: 32px; }
.deco-plus--2 { top: 44%; left: 63%; font-size: 22px; color: var(--color-sage); opacity: 0.8; }
.deco-plus--3 { bottom: 9%; left: 12%; font-size: 42px; opacity: 0.5; }

.hero-ed-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 40px;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 40px;
}

.hero-ed-side {
  writing-mode: vertical-rl;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-sage);
  white-space: nowrap;
}

.hero-ed-side--right {
  writing-mode: horizontal-tb;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 18px;
}

.hero-ed-side--right a {
  writing-mode: vertical-rl;
  color: var(--color-charcoal);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.hero-ed-side--right a:hover {
  color: var(--color-gold);
}

.hero-ed-feature {
  display: grid;
  grid-template-columns: clamp(300px, 32vw, 440px) 1fr;
  align-items: start;
  column-gap: clamp(24px, 4vw, 64px);
}

.hero-ed-portrait {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 4 / 5;
  margin-top: clamp(32px, 5vw, 76px);
  box-shadow: 0 44px 90px -42px rgba(33, 33, 28, 0.5);
  z-index: 1;
}

.hero-ed-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: filter 0.6s ease, transform 7s ease;
}

.hero-ed-portrait:hover img {
  filter: grayscale(0%);
  transform: scale(1.05);
}

.hero-ed-tag {
  position: absolute;
  right: 0;
  top: 0;
  background: var(--color-charcoal);
  color: var(--color-cream);
  padding: 13px 20px;
  border-radius: 0 0 0 20px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.hero-ed-portrait-btn {
  position: absolute;
  left: 18px;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--color-gold);
  color: var(--color-charcoal);
  padding: 13px 22px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  box-shadow: 0 16px 30px -12px rgba(33, 33, 28, 0.55);
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.hero-ed-portrait-btn:hover {
  transform: translateY(-3px);
  background: var(--color-charcoal);
  color: var(--color-cream);
}

.hero-ed-portrait-btn i {
  font-size: 12px;
  transition: transform 0.18s ease;
}

.hero-ed-portrait-btn:hover i {
  transform: translateX(3px);
}

.hero-ed-content {
  position: relative;
  z-index: 2;
  padding-top: clamp(8px, 3vw, 32px);
  transform: translate(clamp(16px, 2.5vw, 44px), clamp(-40px, -2vw, -16px));
}

.hero-ed-lede {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: 'Playfair Display', var(--font-serif);
  font-size: clamp(24px, 2.4vw, 34px);
  font-weight: 500;
  color: rgba(33, 33, 28, 0.6);
  margin: 0 0 4px;
  transform: translate(-15px, 40px);
}

.hero-ed-rule {
  flex: 0 0 clamp(40px, 7vw, 110px);
  height: 2px;
  background: var(--color-charcoal);
}

.hero-ed-name {
  font-family: 'Playfair Display', var(--font-serif);
  font-size: clamp(58px, 10vw, 168px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.92;
  margin: 0 0 28px;
  margin-left: clamp(-144px, -10vw, -40px);
}

.hero-ed-name-first {
  display: inline-block;
  font-size: 0.4em;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.hero-ed-name-last {
  display: inline-block;
  margin-left: -0.03em;
}

.hero-ed-intro {
  max-width: 470px;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.75;
  color: rgba(33, 33, 28, 0.72);
  margin: 0 0 32px;
}

.hero-ed-script {
  font-family: 'Nothing You Could Do', cursive;
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.3;
  color: var(--color-sage);
  text-align: center;
  margin: 72px 0 0;
}

@media (max-width: 1199.98px) {
  .hero-ed-side { display: none; }
  .hero-ed-grid { grid-template-columns: 1fr; }
}

@media (max-width: 991.98px) {
  .hero-ed-feature {
    grid-template-columns: 1fr;
    row-gap: 32px;
  }
  .hero-ed-portrait {
    width: min(360px, 75vw);
    margin-top: 0;
  }
  .hero-ed-content {
    padding-top: 8px;
    transform: none;
  }
  .hero-ed-lede { transform: none; }
  .hero-ed-name { margin-left: 0; }
}

@media (max-width: 767.98px) {
  .hero-editorial { padding: 40px 0 56px; }
  .hero-deco { display: none; }
  .hero-ed-grid { padding: 0 20px; }
  .hero-ed-script { margin-top: 48px; }
}

/* --------------------------------------------------------------------
   Shared photo-hero pieces (background media, scrim, grade)
   Used by secondary-page heroes and the CTA band.
   -------------------------------------------------------------------- */

.hero-media {
  position: absolute;
  inset: 0;
  background-image: url('../img/hero-vineyard.jpg');
  background-size: cover;
  background-position: center;
}

/* Slow settle-in zoom used by secondary-page heroes. */
@keyframes heroKenBurns {
  from { transform: scale(1); }
  to   { transform: scale(1.1); }
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(33, 33, 28, 0.34) 0%, rgba(33, 33, 28, 0.14) 40%, rgba(33, 33, 28, 0.78) 100%);
  pointer-events: none;
}

/* Warm golden-hour grade over the top corner so the photo reads
   editorial rather than flat stock. */
.hero-grade {
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 80% at 85% 8%, rgba(214, 184, 112, 0.28), transparent 58%);
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.page-hero-frame .eyebrow-light {
  color: rgba(249, 246, 243, 0.65);
}

/* --------------------------------------------------------------------
   Trusted-by strip
   -------------------------------------------------------------------- */

.wordmark-strip {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: rgba(33, 33, 28, 0.025);
  padding: 10px 14px;
  text-align: center;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: rgba(33, 33, 28, 0.45);
  text-transform: uppercase;
}

/* --------------------------------------------------------------------
   Trusted-by logo carousel (auto-scrolling, pauses on hover)
   -------------------------------------------------------------------- */

.partner-carousel {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

.partner-track {
  display: flex;
  align-items: center;
  width: max-content;
  gap: 56px;
  animation: partnerScroll 34s linear infinite;
}

.partner-carousel:hover .partner-track {
  animation-play-state: paused;
}

.partner-logo {
  flex: 0 0 auto;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.partner-logo img {
  max-height: 100%;
  max-width: 200px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Logos that kept their own colored/dark background (light text) get a
   rounded frame instead of sitting bare on the page background. */
.partner-logo--tile {
  height: 86px;
  border-radius: 12px;
  overflow: hidden;
}

.partner-logo--tile img {
  max-height: 86px;
  width: auto;
}

@keyframes partnerScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (max-width: 767.98px) {
  .partner-track { gap: 36px; }
  .partner-logo { height: 58px; }
  .partner-logo img { max-width: 150px; }
}

@media (prefers-reduced-motion: reduce) {
  .partner-track {
    animation: none;
    overflow-x: auto;
  }
}

/* --------------------------------------------------------------------
   Service badge (bespoke illustrative circle, not an icon chip)
   -------------------------------------------------------------------- */

.service-icon {
  font-size: 34px;
  line-height: 1;
  margin-bottom: 26px;
}

.service-card p {
  color: rgba(33, 33, 28, 0.72);
}

/* --------------------------------------------------------------------
   Hard-truths numbered columns
   -------------------------------------------------------------------- */

.truth-col {
  border-top: 1px solid rgba(249, 246, 243, 0.2);
  padding-top: 28px;
}

.truth-num {
  font-family: var(--font-serif);
  font-size: 40px;
  color: var(--color-gold);
  margin-bottom: 16px;
}

/* --------------------------------------------------------------------
   Media panels (portrait / ventures teaser)
   -------------------------------------------------------------------- */

.media-panel {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
}

.media-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ratio-4x5 {
  aspect-ratio: 4 / 5;
}

.ratio-5x4 {
  aspect-ratio: 5 / 4;
}

/* --------------------------------------------------------------------
   Testimonial
   -------------------------------------------------------------------- */

.testimonial-mark {
  font-size: 40px;
  line-height: 1;
  color: var(--color-charcoal);
  margin: 0 auto 36px;
}

.testimonial-quote {
  font-family: var(--font-serif);
  font-weight: 500;
  font-style: italic;
  font-size: 34px;
  line-height: 1.35;
  color: var(--color-charcoal);
}

/* --------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------- */

.cta-band {
  position: relative;
  padding: 150px 0;
  text-align: center;
  overflow: hidden;
}

.cta-band .hero-media {
  background-image: url('../img/cta-vineyard.jpg');
  background-position: center 65%;
}

.cta-band .hero-scrim {
  background: rgba(33, 33, 28, 0.66);
}

.cta-band h2 {
  font-size: 52px;
  line-height: 1.1;
  color: var(--color-cream);
  margin-bottom: 24px;
}

.cta-band p {
  font-size: 17px;
  font-weight: 300;
  line-height: 1.6;
  color: rgba(249, 246, 243, 0.88);
  margin-bottom: 38px;
}

@media (max-width: 767.98px) {
  .cta-band h2 {
    font-size: 36px;
  }
}

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

.site-footer {
  background: var(--color-charcoal);
  color: var(--color-cream);
  padding: 90px 0 40px;
}

.footer-col-label {
  font-size: 12px;
  letter-spacing: 2.5px;
  color: rgba(249, 246, 243, 0.55);
  margin-bottom: 22px;
  text-transform: uppercase;
}

.footer-link-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 15px;
  font-weight: 300;
}

.footer-link {
  color: rgba(249, 246, 243, 0.78);
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-link:hover {
  color: var(--color-gold);
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(249, 246, 243, 0.2);
  color: var(--color-cream);
  font-size: 16px;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.footer-social a:hover {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-charcoal);
}

.footer-top {
  padding-bottom: 64px;
  border-bottom: 1px solid rgba(249, 246, 243, 0.14);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 28px;
  font-size: 13px;
  letter-spacing: 0.5px;
  color: rgba(249, 246, 243, 0.45);
}

.footer-credit a {
  color: rgba(249, 246, 243, 0.65);
  transition: color 0.2s;
}

.footer-credit a:hover {
  color: var(--color-gold);
}

/* --------------------------------------------------------------------
   Scroll reveal
   Elements start visible by default (no-JS / JS-failure safe). JS adds
   .reveal-hidden on load, then removes it as each element enters view.
   -------------------------------------------------------------------- */

.reveal {
  transition: opacity 0.8s cubic-bezier(0.16, 0.8, 0.24, 1), transform 0.8s cubic-bezier(0.16, 0.8, 0.24, 1);
}

.reveal.reveal-hidden {
  opacity: 0;
  transform: translateY(28px);
}

.reveal-img.reveal-hidden {
  opacity: 0;
  transform: scale(1.04);
}

.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }

/* --------------------------------------------------------------------
   Secondary-page hero: shorter rounded photo frame for interior pages
   (Ventures, Retreats, etc). Same inset-frame language as the home
   vineyard hero, sized down since it doesn't need to fill the viewport.
   -------------------------------------------------------------------- */

.page-hero {
  padding: clamp(12px, 1.6vw, 22px);
  background: var(--color-cream);
}

.page-hero-frame {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  min-height: 62vh;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
}

.page-hero-frame .hero-media {
  transform-origin: 50% 40%;
  animation: heroKenBurns 26s cubic-bezier(0.2, 0, 0.2, 1) both;
  will-change: transform;
}

.page-hero-content {
  position: relative;
  padding: 0 0 84px;
  max-width: 780px;
}

.page-hero-content h1 {
  font-size: 54px;
  line-height: 1.06;
  color: var(--color-cream);
  margin-bottom: 22px;
}

.page-hero-content p {
  font-size: 17px;
  font-weight: 300;
  line-height: 1.6;
  color: rgba(249, 246, 243, 0.9);
  max-width: 540px;
}

@media (max-width: 767.98px) {
  .page-hero-frame {
    border-radius: 20px;
    min-height: 50vh;
  }
  .page-hero-content {
    padding-bottom: 48px;
  }
  .page-hero-content h1 {
    font-size: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-hero-frame .hero-media {
    animation: none;
  }
}

/* --------------------------------------------------------------------
   Note card: rounded taupe callout (e.g. "a note on brands")
   -------------------------------------------------------------------- */

.note-card {
  background: var(--color-taupe);
  border-radius: 24px;
  padding: 56px 60px;
}

@media (max-width: 767.98px) {
  .note-card {
    padding: 36px 28px;
  }
}

/* --------------------------------------------------------------------
   Schedule rows (e.g. "a day at the retreat")
   -------------------------------------------------------------------- */

.schedule-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 40px;
  padding: 30px 0;
  border-top: 1px solid rgba(33, 33, 28, 0.12);
  align-items: baseline;
}

.schedule-row:last-child {
  border-bottom: 1px solid rgba(33, 33, 28, 0.12);
}

.schedule-time {
  font-family: var(--font-serif);
  font-size: 24px;
  color: var(--color-gold);
}

@media (max-width: 575.98px) {
  .schedule-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

/* --------------------------------------------------------------------
   Retreat listing rows + status pills
   -------------------------------------------------------------------- */

.retreat-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) 100px;
  gap: 20px;
  align-items: center;
  background: var(--color-cream);
  padding: 26px 32px;
  border-radius: 16px;
}

.retreat-row + .retreat-row {
  margin-top: 10px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 100px;
  white-space: nowrap;
}

.status-pill--open {
  background: rgba(33, 33, 28, 0.08);
  color: var(--color-charcoal);
}

.status-pill--waitlist {
  background: rgba(123, 134, 127, 0.15);
  color: var(--color-sage);
}

@media (max-width: 575.98px) {
  .retreat-row {
    grid-template-columns: 1fr;
    gap: 8px;
    text-align: left;
  }
}

/* --------------------------------------------------------------------
   Checklist rows (e.g. "what's included")
   -------------------------------------------------------------------- */

.checklist-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.5;
  color: rgba(33, 33, 28, 0.82);
}

.checklist-row i {
  color: var(--color-gold);
  margin-top: 4px;
  font-size: 13px;
}

/* --------------------------------------------------------------------
   Format rows (e.g. "formats" list on Speaking / Workshops)
   -------------------------------------------------------------------- */

.format-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  padding: 22px 0;
  border-top: 1px solid rgba(33, 33, 28, 0.12);
}

.format-row:last-child {
  border-bottom: 1px solid rgba(33, 33, 28, 0.12);
}

.format-row .name {
  font-family: var(--font-serif);
  font-size: 23px;
}

.format-row .meta {
  font-size: 14px;
  font-weight: 300;
  color: rgba(33, 33, 28, 0.6);
  white-space: nowrap;
}

/* --------------------------------------------------------------------
   Contact form
   -------------------------------------------------------------------- */

.contact-card {
  background: #FFFFFF;
  border: 1px solid rgba(33, 33, 28, 0.08);
  border-radius: 24px;
  padding: 48px;
}

@media (max-width: 575.98px) {
  .contact-card {
    padding: 28px;
  }
}

.form-label-line {
  display: block;
  font-size: 12px;
  letter-spacing: 1px;
  color: rgba(33, 33, 28, 0.6);
  margin-bottom: 8px;
}

.form-input-line {
  width: 100%;
  border: none;
  border-bottom: 1px solid rgba(33, 33, 28, 0.2);
  background: transparent;
  padding: 8px 0;
  font-size: 16px;
  font-weight: 300;
  color: var(--color-charcoal);
  font-family: var(--font-sans);
}

.form-input-line:focus {
  outline: none;
  border-bottom-color: var(--color-gold);
}

.form-textarea-line {
  width: 100%;
  border: 1px solid rgba(33, 33, 28, 0.15);
  border-radius: 12px;
  background: var(--color-cream);
  padding: 14px;
  font-size: 15px;
  font-weight: 300;
  color: var(--color-charcoal);
  font-family: var(--font-sans);
  resize: vertical;
}

.form-textarea-line:focus {
  outline: none;
  border-color: var(--color-gold);
}

.form-chip {
  border: 1px solid rgba(33, 33, 28, 0.2);
  background: transparent;
  color: var(--color-charcoal);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 400;
  padding: 9px 18px;
  border-radius: 100px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.form-chip.on {
  background: var(--color-charcoal);
  border-color: var(--color-charcoal);
  color: var(--color-cream);
}

/* --------------------------------------------------------------------
   Photo grid + modal gallery
   -------------------------------------------------------------------- */

.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.photo-grid-item {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  overflow: hidden;
  border: 0;
  padding: 0;
  margin: 0;
  background: none;
  cursor: pointer;
}

.photo-grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.photo-grid-item:hover img {
  transform: scale(1.06);
}

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

.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(33, 33, 28, 0.94);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
}

.gallery-modal.open {
  opacity: 1;
  visibility: visible;
}

.gallery-modal-img {
  max-width: 88vw;
  max-height: 82vh;
  border-radius: 6px;
  object-fit: contain;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6);
}

.gallery-modal-close,
.gallery-modal-prev,
.gallery-modal-next {
  position: absolute;
  background: none;
  border: none;
  color: var(--color-cream);
  cursor: pointer;
  padding: 14px;
  line-height: 1;
  opacity: 0.75;
  transition: opacity 0.15s ease;
}

.gallery-modal-close:hover,
.gallery-modal-prev:hover,
.gallery-modal-next:hover {
  opacity: 1;
}

.gallery-modal-close {
  top: 12px;
  right: 12px;
  font-size: 26px;
}

.gallery-modal-prev,
.gallery-modal-next {
  top: 50%;
  transform: translateY(-50%);
  font-size: 30px;
}

.gallery-modal-prev {
  left: 4px;
}

.gallery-modal-next {
  right: 4px;
}

.gallery-modal-counter {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(249, 246, 243, 0.65);
  font-size: 12px;
  letter-spacing: 1.5px;
}

@media (max-width: 575.98px) {
  .gallery-modal-prev,
  .gallery-modal-next {
    font-size: 24px;
    padding: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal.reveal-hidden {
    opacity: 1;
    transform: none;
  }
}
