/* =========================================================
   RUBH Wedding — Elegant static stylesheet
   Edit brand colors in :root below.
   ========================================================= */

:root {
  /* Brand-tinted palette — terracotta / ruby from logo */
  --color-navy: #2a1f1c;
  --color-navy-soft: #3d2e2a;
  --color-ivory: #faf6f2;
  --color-cream: #f4ebe4;
  --color-warm-white: #fffbf8;
  --color-text: #2e2624;
  --color-text-muted: #6e625e;
  --color-border: rgba(166, 77, 61, 0.14);

  --color-ruby: #a64d3d;          /* logo terracotta */
  --color-ruby-deep: #8b3e35;     /* deeper burgundy */
  --color-ruby-bright: #c43c4a;   /* gem accent */
  --color-gold: #c4a484;          /* soft warm gold */
  --color-blush: #f0e4dc;         /* tinted surface */

  --color-header-solid: rgba(250, 246, 242, 0.97);
  --color-overlay: rgba(42, 31, 28, 0.45);

  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-display: "Playfair Display", "Cormorant Garamond", Georgia, serif;
  --font-nav: "Cormorant", "Cormorant Garamond", Georgia, serif;
  --font-sans: "Jost", system-ui, -apple-system, sans-serif;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6.5rem;
  --space-xxl: 9rem;
  --max-width: 1180px;
  --header-height: 64px;
  --logo-hero-height: clamp(145px, 22vw, 200px);
  --logo-nav-height: 58px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --duration: 0.55s;
}

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

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

body {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-ivory);
  -webkit-font-smoothing: antialiased;
}

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

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

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul {
  list-style: none;
}

address {
  font-style: normal;
}

/* ---------- HEADER — split nav + hero centrepiece logo ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5000;
  height: var(--header-height);
  overflow: visible;
  isolation: isolate;
  transition: background 0.45s var(--ease),
              box-shadow 0.45s var(--ease),
              backdrop-filter 0.45s var(--ease);
}

.site-header.is-scrolled {
  background: var(--color-header-solid);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--color-border);
  overflow: hidden; /* clip hero logo — no bleed over page content */
  contain: paint;
}

/* Menu open: solid bar matching full-screen ivory panel (no blur trap) */
.site-header.menu-open {
  background: var(--color-ivory) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none;
  overflow: hidden;
  contain: paint;
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  overflow: visible;
  position: relative;
  column-gap: 1rem;
}

.nav-left,
.nav-right {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2rem);
  z-index: 1002;
  /* Keep links high in the bar — not mid-logo height */
  align-self: start;
  padding-top: 1.15rem;
}

.nav-left {
  grid-column: 1;
  justify-self: start;
  /* Reserve space so links never collide with oversized logo */
  max-width: 100%;
  padding-right: 0.5rem;
}

.nav-right {
  grid-column: 3;
  justify-self: end;
  padding-left: 0.5rem;
}

.nav-left a,
.nav-right a {
  font-family: var(--font-nav);
  font-size: clamp(0.78rem, 1.1vw, 0.95rem);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.94);
  position: relative;
  white-space: nowrap;
  transition: color 0.35s var(--ease);
}

.nav-left a::after,
.nav-right a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.4s var(--ease);
}

.nav-left a:hover::after,
.nav-right a:hover::after {
  width: 100%;
}

.nav-left a:hover,
.nav-right a:hover {
  color: #f5d4cb;
}

.site-header.is-scrolled .nav-left a,
.site-header.is-scrolled .nav-right a {
  color: var(--color-navy);
}

.site-header.is-scrolled .nav-left a:hover,
.site-header.is-scrolled .nav-right a:hover {
  color: var(--color-ruby);
}

.logo {
  grid-column: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  line-height: 0;
  overflow: visible;
  position: relative;
  /* Sit below the top nav links as the hero centrepiece */
  transform: translateY(calc(var(--header-height) * 0.15 + var(--logo-hero-height) * 0.38));
  transition: transform 0.55s var(--ease);
  pointer-events: auto;
}

.site-header.is-scrolled .logo,
.site-header.menu-open .logo {
  transform: translateY(0);
  align-self: center;
  overflow: hidden;
  height: var(--logo-nav-height);
  max-height: var(--logo-nav-height);
  max-width: 160px;
  margin-inline: auto;
  z-index: 1;
}

.logo-img {
  width: auto;
  max-width: min(320px, 52vw);
  object-fit: contain;
  object-position: center center;
  display: block;
  transition: height 0.55s var(--ease),
              opacity 0.35s var(--ease),
              filter 0.35s var(--ease),
              max-width 0.55s var(--ease),
              visibility 0.35s;
}

/* Stack both logo variants; crossfade on scroll */
.logo-img--light,
.logo-img--brand {
  height: var(--logo-hero-height);
}

.logo-img--brand {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.logo-img--light {
  position: relative;
  opacity: 1;
  visibility: visible;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.45));
  animation: logoReveal 1.25s var(--ease) 0.12s both;
}

@keyframes logoReveal {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Scrolled / menu: only compact mark — hide hero logo instantly (no ghost bleed) */
.site-header.is-scrolled .logo-img--light,
.site-header.menu-open .logo-img--light {
  display: none;
}

.site-header.is-scrolled .logo-img--brand,
.site-header.menu-open .logo-img--brand {
  opacity: 1;
  visibility: visible;
  height: var(--logo-nav-height);
  max-width: 150px;
  pointer-events: auto;
  position: relative;
  left: auto;
  top: auto;
  transform: none;
}

.site-header.is-scrolled .nav-left,
.site-header.is-scrolled .nav-right {
  align-self: center;
  padding-top: 0;
}

.main-nav {
  display: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  z-index: 3;
  grid-column: 3;
  justify-self: end;
}

.nav-toggle span {
  display: block;
  height: 1.5px;
  width: 100%;
  background: #fff;
  transition: background 0.3s, transform 0.35s var(--ease), opacity 0.3s;
}

.site-header.is-scrolled .nav-toggle span,
.site-header.menu-open .nav-toggle span {
  background: var(--color-navy);
}

.site-header.menu-open .nav-toggle span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.site-header.menu-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}
.site-header.menu-open .nav-toggle span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.6s var(--ease), transform 7s ease-out;
  z-index: 0;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    to bottom,
    rgba(42, 31, 28, 0.42) 0%,
    rgba(42, 31, 28, 0.48) 45%,
    rgba(42, 31, 28, 0.62) 100%
  );
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: clamp(12rem, 34vh, 18rem) 1.25rem 3.5rem;
  max-width: 900px;
}

.hero-headline {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.15rem, 5.6vw, 3.85rem);
  line-height: 1.22;
  color: #fff;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.3);
  animation: heroFade 1.4s var(--ease) 0.85s both;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.12em;
}

.hero-years {
  display: block;
  font-size: 0.88em;
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(255, 236, 228, 0.96);
  margin-bottom: 0.08em;
}

.hero-num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 1.18em;
  letter-spacing: 0;
  display: inline-block;
  line-height: 1;
  vertical-align: -0.04em;
  margin-right: 0.08em;
}

.hero-line {
  display: block;
}

.hero-dots {
  display: flex;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 2rem;
  animation: heroFade 1.2s var(--ease) 1.1s both;
}

.hero-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: transform 0.35s var(--ease), background 0.35s;
}

.hero-dot.is-active {
  background: #fff;
  transform: scale(1.25);
}

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

/* ---------- PHOTO STRIP ---------- */
.photo-strip {
  background: var(--color-warm-white);
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--color-border);
  overflow: hidden;
}

.photo-strip-viewport {
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent);
}

.photo-strip-track {
  display: flex;
  gap: 0.85rem;
  width: max-content;
  animation: stripMarquee 55s linear infinite;
  will-change: transform;
}

.photo-strip-viewport:hover .photo-strip-track {
  animation-play-state: paused;
}

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

.photo-strip-item {
  flex: 0 0 auto;
  width: 160px;
  aspect-ratio: 1;
  overflow: hidden;
  padding: 0;
  position: relative;
}

.photo-strip-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(166, 77, 61, 0);
  transition: background 0.35s;
  pointer-events: none;
}

.photo-strip-item:hover::after {
  background: rgba(166, 77, 61, 0.18);
}

.photo-strip-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
  pointer-events: none;
}

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

/* Mobile/tablet: native swipe instead of auto-marquee */
@media (max-width: 820px) {
  .photo-strip {
    padding: 1rem 0;
  }

  .photo-strip-viewport {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    mask-image: none;
    -webkit-mask-image: none;
    padding: 0 1rem;
    scrollbar-width: none;
  }

  .photo-strip-viewport::-webkit-scrollbar {
    display: none;
  }

  .photo-strip-track {
    animation: none;
    width: max-content;
    gap: 0.7rem;
    padding-right: 1rem;
  }

  /* Hide duplicate set used only for desktop marquee loop */
  .photo-strip-item[aria-hidden="true"] {
    display: none;
  }

  .photo-strip-item {
    width: min(42vw, 150px);
    scroll-snap-align: start;
    flex-shrink: 0;
  }
}

/* ---------- SHARED ---------- */
.section {
  padding: var(--space-xxl) 1.5rem;
}

.section-header {
  text-align: center;
  max-width: 580px;
  margin: 0 auto 3.5rem;
}

.section-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 2.85rem);
  color: var(--color-navy);
  letter-spacing: 0.01em;
  margin-bottom: 0.75rem;
}

.section-sub {
  color: var(--color-text-muted);
  font-size: 0.98rem;
  font-weight: 300;
}

.text-link {
  display: inline-block;
  margin-top: 1.75rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-ruby);
  border-bottom: 1px solid var(--color-ruby);
  padding-bottom: 2px;
  transition: color 0.3s, border-color 0.3s;
}

.text-link:hover {
  color: var(--color-navy);
  border-color: var(--color-navy);
}

/* ---------- INTRO ---------- */
.intro {
  background: var(--color-ivory);
  padding-top: var(--space-xl);
}

.intro-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.intro-image {
  overflow: hidden;
  position: relative;
}

.intro-image img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}

.intro-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(42, 31, 28, 0.18), transparent 45%);
  opacity: 0;
  transition: opacity 0.6s var(--ease);
  pointer-events: none;
  z-index: 1;
}

.intro-image:hover::after {
  opacity: 1;
}

.intro-image:hover img {
  transform: scale(1.06);
}

.intro-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-ruby);
  margin-bottom: 1rem;
  font-weight: 500;
}

.intro-text {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  line-height: 1.65;
  color: var(--color-navy-soft);
  font-weight: 400;
}

.intro-text--secondary {
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--color-text-muted);
  margin-top: 1.25rem;
  font-weight: 300;
}

/* ---------- SERVICES ---------- */
.services {
  background: linear-gradient(180deg, var(--color-cream) 0%, var(--color-blush) 100%);
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
}

.services-list {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2rem 1.5rem;
}

.service-item {
  position: relative;
  padding: 1.15rem 0.85rem 1.15rem 0;
  border-top: 1px solid rgba(166, 77, 61, 0.22);
  transition: transform 0.55s var(--ease),
              opacity 0.75s var(--ease),
              background 0.55s var(--ease),
              border-color 0.55s var(--ease),
              padding 0.55s var(--ease),
              box-shadow 0.55s var(--ease);
  cursor: default;
}

.service-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: -1px;
  width: 0;
  height: 1.5px;
  background: var(--color-ruby);
  transition: width 0.55s var(--ease);
}

.service-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(166, 77, 61, 0.06), transparent 60%);
  opacity: 0;
  transition: opacity 0.55s var(--ease);
  pointer-events: none;
}

.service-item:hover {
  transform: translateY(-6px);
  border-top-color: transparent;
  background: rgba(255, 252, 248, 0.7);
  padding-left: 0.85rem;
  box-shadow: 0 18px 40px rgba(42, 31, 28, 0.06);
}

.service-item:hover::before {
  width: 42px;
}

.service-item:hover::after {
  opacity: 1;
}

.service-item h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--color-navy);
  margin-bottom: 0.55rem;
  line-height: 1.3;
  transition: color 0.4s var(--ease), transform 0.45s var(--ease);
  position: relative;
  z-index: 1;
}

.service-item:hover h3 {
  color: var(--color-ruby-deep);
  transform: translateX(2px);
}

.service-item p {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  transition: color 0.4s var(--ease);
  position: relative;
  z-index: 1;
}

.service-item:hover p {
  color: var(--color-text);
}

.services-closing {
  max-width: 640px;
  margin: 3.5rem auto 0;
  text-align: center;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--color-navy-soft);
  line-height: 1.65;
}

.services-toggle-wrap {
  display: none;
  text-align: center;
  margin-top: 1.75rem;
}

.services-toggle {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-ruby);
  border-bottom: 1px solid var(--color-ruby);
  padding: 0.35rem 0.15rem;
  transition: color 0.3s, border-color 0.3s;
}

.services-toggle:hover {
  color: var(--color-navy);
  border-color: var(--color-navy);
}

/* ---------- LOCATIONS ---------- */
.locations {
  background: var(--color-warm-white);
}

.locations-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.locations-headline {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.1rem, 4.5vw, 3.4rem);
  line-height: 1.2;
  color: var(--color-navy);
  margin-bottom: 1.5rem;
}

.locations-headline em {
  font-style: italic;
  color: var(--color-ruby);
}

.locations-copy p {
  color: var(--color-text-muted);
  max-width: 380px;
  font-size: 1rem;
}

.locations-image {
  overflow: hidden;
  position: relative;
}

.locations-image img {
  width: 100%;
  aspect-ratio: 5 / 6;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}

.locations-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(42, 31, 28, 0.18), transparent 45%);
  opacity: 0;
  transition: opacity 0.6s var(--ease);
  pointer-events: none;
  z-index: 1;
}

.locations-image:hover::after {
  opacity: 1;
}

.locations-image:hover img {
  transform: scale(1.06);
}

/* ---------- GALLERY ---------- */
.gallery {
  background: var(--color-ivory);
}

.gallery-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.gallery-item {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  padding: 0;
  text-align: left;
  aspect-ratio: 4 / 5;
  background: var(--color-cream);
  cursor: zoom-in;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease), filter 0.5s;
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(42, 31, 28, 0.35) 0%, transparent 40%);
  opacity: 0;
  transition: opacity 0.4s;
}

.gallery-zoom {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -40%);
  z-index: 2;
  font-family: var(--font-nav);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fff;
  opacity: 0;
  transition: opacity 0.4s, transform 0.4s var(--ease);
  pointer-events: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.7);
  padding-bottom: 2px;
}

.gallery-item:hover img {
  transform: scale(1.06);
  filter: brightness(0.92);
}

.gallery-item:hover::after,
.gallery-item:hover .gallery-zoom {
  opacity: 1;
}

.gallery-item:hover .gallery-zoom {
  transform: translate(-50%, -50%);
}

/* ---------- CONTACT ---------- */
.contact {
  background: var(--color-cream);
}

.contact-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.contact-info {
  position: relative;
}

.contact-logo {
  width: min(240px, 80%);
  height: auto;
  margin-bottom: 1.25rem;
}

.contact-tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--color-ruby);
  margin: 0 0 2.25rem;
  line-height: 1.5;
  max-width: 280px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.contact-details .label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 0.25rem;
}

.contact-details a:hover {
  color: var(--color-ruby);
}

.form-heading {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 400;
  color: var(--color-navy);
  margin-bottom: 0.4rem;
}

.form-note {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  margin-bottom: 1.75rem;
}

.booking-form {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  position: relative;
}

.botcheck {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  pointer-events: none;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem;
}

.field label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 0.4rem;
}

.field .req {
  color: var(--color-ruby);
}

.field .optional {
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 0.85em;
  color: var(--color-text-muted);
  opacity: 0.75;
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--color-border);
  background: var(--color-warm-white);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 300;
  border-radius: 0;
  transition: border-color 0.25s;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-ruby);
}

.field input.is-invalid,
.field textarea.is-invalid {
  border-color: var(--color-ruby-bright);
}

.field-error {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.78rem;
  color: var(--color-ruby-deep);
}

.btn-submit {
  align-self: flex-start;
  margin-top: 0.5rem;
  padding: 0.95rem 2.25rem;
  background: var(--color-ruby-deep);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: background 0.3s var(--ease), transform 0.3s;
}

.btn-submit:hover {
  background: var(--color-ruby-bright);
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: wait;
}

.form-success {
  padding: 2.5rem 1.5rem;
  text-align: center;
  border: 1px solid var(--color-border);
  background: var(--color-warm-white);
}

.form-success p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--color-navy);
}

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--color-navy);
  color: rgba(255, 255, 255, 0.78);
  padding: var(--space-xl) 1.5rem var(--space-md);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
}

.footer-logo-img {
  height: 42px;
  width: auto;
  margin-bottom: 0.85rem;
  filter: brightness(0) invert(1);
  opacity: 0.92;
}

.footer-brand p {
  font-size: 0.9rem;
  max-width: 260px;
  line-height: 1.6;
  font-family: var(--font-serif);
  font-style: italic;
}

.footer-col h4 {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 1rem;
  font-weight: 500;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.footer-col a:hover {
  color: #fff;
}

.social-links {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.social-links a {
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.25s;
}

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

.footer-bottom {
  max-width: var(--max-width);
  margin: 3rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.footer-bottom p {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.45);
}

/* ---------- LIGHTBOX ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(20, 14, 12, 0.94);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox[hidden] {
  display: none;
}

.lightbox:not([hidden]) {
  display: flex;
}

.lightbox-stage {
  max-width: min(94vw, 1200px);
  max-height: 82vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox img {
  max-width: 100%;
  max-height: 82vh;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
  transform: scale(0.96);
  opacity: 0;
  transition: transform 0.4s var(--ease), opacity 0.4s;
}

.lightbox.is-open img.is-loaded {
  transform: scale(1);
  opacity: 1;
}

.lightbox-counter {
  margin-top: 1rem;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.lightbox-close {
  position: absolute;
  top: 1.1rem;
  right: 1.4rem;
  font-size: 2.2rem;
  line-height: 1;
  color: #fff;
  opacity: 0.8;
  z-index: 2;
  transition: opacity 0.25s;
}

.lightbox-close:hover {
  opacity: 1;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  color: #fff;
  opacity: 0.7;
  transition: opacity 0.25s, background 0.25s;
  border-radius: 50%;
}

.lightbox-nav:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.08);
}

.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

/* ---------- SCROLL REVEAL (premium) ---------- */
.fade-up,
.reveal,
.reveal-left,
.reveal-right,
.reveal-scale {
  opacity: 0;
  will-change: transform, opacity;
}

.fade-up,
.reveal {
  transform: translateY(48px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  transition-delay: var(--delay, 0s);
}

.reveal-left {
  transform: translateX(-40px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  transition-delay: var(--delay, 0s);
}

.reveal-right {
  transform: translateX(40px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  transition-delay: var(--delay, 0.12s);
}

.reveal-scale {
  transform: translateY(28px) scale(0.97);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  transition-delay: var(--delay, 0s);
}

.fade-up.is-visible,
.reveal.is-visible,
.reveal-left.is-visible,
.reveal-right.is-visible,
.reveal-scale.is-visible {
  opacity: 1;
  transform: none;
}

.section-header.fade-up .section-title {
  position: relative;
  display: inline-block;
}

.section-header.fade-up .section-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -0.55rem;
  width: 0;
  height: 1px;
  background: var(--color-ruby);
  transform: translateX(-50%);
  transition: width 0.9s var(--ease) 0.35s;
}

.section-header.fade-up.is-visible .section-title::after {
  width: 48px;
}

.services-list .service-item {
  opacity: 0;
  transform: translateY(28px);
}

.services-list.is-visible .service-item {
  opacity: 1;
  transform: translateY(0);
}

.services-list.is-visible .service-item:nth-child(1) { transition-delay: 0.04s; }
.services-list.is-visible .service-item:nth-child(2) { transition-delay: 0.1s; }
.services-list.is-visible .service-item:nth-child(3) { transition-delay: 0.16s; }
.services-list.is-visible .service-item:nth-child(4) { transition-delay: 0.22s; }
.services-list.is-visible .service-item:nth-child(5) { transition-delay: 0.28s; }
.services-list.is-visible .service-item:nth-child(6) { transition-delay: 0.34s; }
.services-list.is-visible .service-item:nth-child(7) { transition-delay: 0.4s; }
.services-list.is-visible .service-item:nth-child(8) { transition-delay: 0.46s; }
.services-list.is-visible .service-item:nth-child(9) { transition-delay: 0.52s; }
.services-list.is-visible .service-item:nth-child(10) { transition-delay: 0.58s; }

.services-list.is-visible .service-item:hover {
  transform: translateY(-6px);
  transition-delay: 0s;
}

.intro-image.reveal-left img,
.locations-image.reveal-right img {
  transform: scale(1.05);
  transition: transform 1.5s var(--ease);
}

.intro-image.reveal-left.is-visible img,
.locations-image.reveal-right.is-visible img {
  transform: scale(1);
}

/* Hover must win over reveal settle state */
.intro-image.is-visible:hover img,
.locations-image.is-visible:hover img,
.intro-image.reveal-left.is-visible:hover img,
.locations-image.reveal-right.is-visible:hover img {
  transform: scale(1.06);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1100px) {
  .services-list {
    grid-template-columns: repeat(3, 1fr);
  }

  :root {
    --logo-hero-height: clamp(130px, 20vw, 175px);
  }

  .nav-left a,
  .nav-right a {
    font-size: 0.8rem;
    letter-spacing: 0.12em;
  }
}

@media (max-width: 960px) {
  .intro-grid,
  .locations-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .locations-image {
    order: -1;
  }

  .reveal-left,
  .reveal-right {
    transform: translateY(36px);
  }

  .reveal-left.is-visible,
  .reveal-right.is-visible {
    transform: none;
  }

  .services-list {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .photo-strip-item {
    width: 130px;
  }

  :root {
    --header-height: 58px;
    --logo-hero-height: clamp(125px, 26vw, 160px);
    --logo-nav-height: 50px;
  }

  .nav-left,
  .nav-right {
    padding-top: 0.95rem;
    gap: 1rem;
  }

  .logo-img {
    max-width: min(300px, 46vw);
  }

  .intro-image img,
  .locations-image img {
    aspect-ratio: 16 / 11;
  }

  .lightbox-prev { left: 0.35rem; }
  .lightbox-next { right: 0.35rem; }

  .hero-content {
    padding-top: clamp(10.5rem, 34vh, 15rem);
  }
}

/* Prevent logo/nav overlap on mid widths — keep logo truly centered */
@media (max-width: 820px) {
  .nav-left,
  .nav-right {
    display: none;
  }

  .header-inner {
    grid-template-columns: 48px 1fr 48px;
    align-items: center;
  }

  .logo {
    grid-column: 2;
    justify-self: center;
    align-self: start;
    /* Centered hero mark below the top bar */
    transform: translateY(calc(12px + var(--logo-hero-height) * 0.28));
    width: 100%;
  }

  .logo-img {
    margin-inline: auto;
    max-width: min(240px, 68vw);
  }

  .site-header.is-scrolled .logo,
  .site-header.menu-open .logo {
    transform: translateY(0);
    justify-self: center;
    align-self: center;
    grid-column: 2;
  }

  .site-header.is-scrolled .logo-img--brand,
  .site-header.menu-open .logo-img--brand {
    max-width: 140px;
  }

  .nav-toggle {
    display: flex;
    grid-column: 3;
    justify-self: end;
    align-self: center;
    position: relative;
    z-index: 6002;
  }

  /* Full-viewport panel — sibling of header, never clipped by header blur/overflow */
  .main-nav {
    display: flex;
    position: fixed;
    inset: 0;
    background: var(--color-ivory);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s var(--ease), visibility 0.35s;
    z-index: 6000;
  }

  body.menu-open .main-nav,
  .site-header.menu-open ~ .main-nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .site-header.menu-open {
    z-index: 6001;
  }

  .main-nav a {
    font-family: var(--font-nav);
    font-size: 1.35rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--color-navy);
  }

  /* Collapse extra services on tablet/mobile */
  .services-toggle-wrap {
    display: block;
  }

  .service-item--extra {
    display: none;
  }

  .services-list.is-expanded .service-item--extra {
    display: block;
  }

  .services-list {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .hero-content {
    padding-top: clamp(11rem, 38vh, 16rem);
  }
}

@media (max-width: 720px) {
  :root {
    --header-height: 56px;
    --logo-hero-height: clamp(120px, 36vw, 155px);
    --logo-nav-height: 48px;
    --space-xxl: 4.5rem;
    --space-xl: 3.5rem;
  }

  .logo-img {
    max-width: min(220px, 70vw);
  }

  .site-header.is-scrolled .logo-img--brand,
  .site-header.menu-open .logo-img--brand {
    max-width: 128px;
  }

  .hero {
    min-height: 92vh;
  }

  .hero-content {
    padding: clamp(10rem, 38vh, 13.5rem) 1.1rem 3rem;
  }

  .hero-headline {
    font-size: clamp(1.85rem, 7vw, 2.45rem);
  }

  .hero-years {
    font-size: 0.78em;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .section {
    padding-left: 1.1rem;
    padding-right: 1.1rem;
  }

  .contact-logo {
    width: min(200px, 70%);
  }

  .lightbox-stage,
  .lightbox img {
    max-height: 75vh;
  }
}

@media (max-width: 400px) {
  :root {
    --logo-hero-height: 105px;
    --logo-nav-height: 40px;
  }

  .hero-headline {
    font-size: 1.65rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .hero-slide {
    opacity: 0 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }

  .hero-slide.is-active {
    opacity: 1 !important;
  }

  .fade-up,
  .reveal,
  .reveal-left,
  .reveal-right,
  .reveal-scale,
  .hero-headline,
  .hero-years,
  .gallery-item img,
  .photo-strip-item img,
  .photo-strip-track,
  .logo,
  .logo-img,
  .logo-img--light,
  .services-list .service-item,
  .gallery-grid .gallery-item {
    transition: none !important;
    animation: none !important;
  }

  .fade-up,
  .reveal,
  .reveal-left,
  .reveal-right,
  .reveal-scale,
  .services-list .service-item,
  .gallery-grid .gallery-item {
    opacity: 1;
    transform: none;
  }
}
