/*
 * ================================================================
 *  DREAM QUARTER — Main Stylesheet
 * ================================================================
 *
 *  CONFIGURING THE BACKGROUND GRADIENT
 *  ─────────────────────────────────────
 *  Edit the three --bg-* color stops and --bg-angle in :root below.
 *  Examples:
 *    Cool slate:   #f0f2f5 → #e8ecf0 → #dde3ea, angle 160deg
 *    Deep night:   #0e0d0c → #181410 → #221e18, angle 180deg
 *    Warm sand:    #f9f5ef → #f2ebe0 → #e8dfd0, angle 165deg  (default)
 *
 * ================================================================
 */

/* ── 1. Design Tokens (Configurable) ─────────────────────────── */
:root {
  /* Background gradient */
  --bg-start:  #f9f5ef;
  --bg-mid:    #f2ebe0;
  --bg-end:    #e8dfd0;
  --bg-angle:  165deg;

  /* Brand accent — warm gold */
  --accent:    #b8906a;
  --accent-dk: #9a7350;

  /* Text palette */
  --ink:       #1a1714;
  --ink-mid:   #5a5248;
  --ink-faint: #a09080;

  /* Dark section (gallery, footer) */
  --dark:      #141210;
  --dark-ink:  #ede8e0;

  /* Font stacks */
  --f-display: 'Cormorant Garamond', 'Georgia', serif;
  --f-ui:      'Inter', system-ui, -apple-system, sans-serif;

  /* Section vertical padding */
  --s-py: clamp(5rem, 10vw, 9rem);

  /* Max readable content width */
  --max-w: 1240px;

  /* Easing curves */
  --ease-out: cubic-bezier(0.25, 1, 0.5, 1);
}

/* ── 2. Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  font-family: var(--f-ui);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.72;
  color: var(--ink);
  background:
    linear-gradient(var(--bg-angle), var(--bg-start), var(--bg-mid) 50%, var(--bg-end))
    fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

address {
  font-style: normal;
}

/* ── 3. Typography ────────────────────────────────────────────── */
h1, h2, h3 {
  font-family: var(--f-display);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(3.6rem, 7.5vw, 7rem); }
h2 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); }
h3 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); font-weight: 400; }

.eyebrow {
  display: block;
  font-family: var(--f-ui);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.eyebrow.light {
  color: color-mix(in srgb, var(--accent) 75%, #fff);
}

.lead {
  font-size: 1.12rem;
  font-weight: 400;
  color: var(--ink-mid);
  margin: 1.25rem 0;
  line-height: 1.65;
}

/* ── 4. Layout ────────────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: clamp(1.5rem, 5vw, 4rem);
}

.section {
  padding-block: var(--s-py);
}

.section--dark {
  background: var(--dark);
  color: var(--dark-ink);
  padding-block: var(--s-py);
}

.section--dark h2 {
  color: var(--dark-ink);
}

/* ── 5. Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.9rem 2.4rem;
  font-family: var(--f-ui);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
  transition: background 0.25s ease, border-color 0.25s ease;
  cursor: pointer;
}

.btn:hover {
  background: var(--accent-dk);
  border-color: var(--accent-dk);
}

.btn.secondary {
  background: transparent;
  color: var(--accent);
}

.btn.secondary:hover {
  background: var(--accent);
  color: #fff;
}

/* ── 6. Navbar ────────────────────────────────────────────────── */
#navbar {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.6rem clamp(1.5rem, 5vw, 4rem);
  transition: background 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
}

#navbar.scrolled {
  background: rgba(249, 245, 239, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding-block: 1rem;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.07);
}

.nav-logo {
  font-family: var(--f-display);
  font-size: 1.7rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transition: color 0.4s ease, opacity 0.4s ease;
}

#navbar.scrolled .nav-logo {
  color: var(--ink);
}

#navbar.logo-visible .nav-logo {
  opacity: 1;
  pointer-events: auto;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.2s ease;
}

#navbar.scrolled .nav-links a {
  color: var(--ink-mid);
}

.nav-links a:hover {
  color: var(--accent) !important;
}

/* ── Language Switcher ────────────────────────────────────────── */
.nav-end {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.lang-btn {
  background: none;
  border: none;
  font-family: var(--f-ui);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  padding: 0.2rem 0;
  transition: color 0.2s ease;
  line-height: 1;
}

.lang-btn.active {
  color: var(--accent);
}

.lang-btn:hover:not(.active) {
  color: rgba(255, 255, 255, 0.85);
}

#navbar.scrolled .lang-btn {
  color: var(--ink-faint);
}

#navbar.scrolled .lang-btn.active {
  color: var(--accent);
}

#navbar.scrolled .lang-btn:hover:not(.active) {
  color: var(--ink);
}

.lang-sep {
  font-size: 0.55rem;
  color: rgba(255, 255, 255, 0.2);
  user-select: none;
  line-height: 1;
}

#navbar.scrolled .lang-sep {
  color: rgba(0, 0, 0, 0.18);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 1px;
  background: #fff;
  transition: background 0.4s ease, transform 0.3s ease, opacity 0.3s ease;
}

#navbar.scrolled .nav-toggle span {
  background: var(--ink);
}

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

/* ── 7. Hero ──────────────────────────────────────────────────── */
#hero {
  position: relative;
  height: 100dvh;
  min-height: 620px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.video-wrap {
  position: absolute;
  inset: 0;
}

/* Dark fallback for when no video file is present */
.video-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(150deg, #2c2318 0%, #0e0b09 100%);
  z-index: 0;
}

#hero-video {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    to bottom,
    rgba(8, 6, 4, 0.10) 0%,
    rgba(8, 6, 4, 0.30) 55%,
    rgba(8, 6, 4, 0.50) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: #fff;
  padding-inline: 1.5rem;
}

.hero-eyebrow {
  font-family: var(--f-ui);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.hero-content h1 {
  color: #fff;
  text-shadow: 0 4px 48px rgba(0, 0, 0, 0.25);
}

.hero-content h1 em {
  font-style: italic;
  font-weight: 300;
}

.hero-sub {
  margin-block: 1.6rem 2.8rem;
  font-size: 0.9rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

/* Scroll cue — animated descending line */
.scroll-cue {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}

.scroll-line {
  display: block;
  width: 1px;
  height: 56px;
  background: rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--accent);
  animation: scrollPulse 1.9s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%   { top: -100%; }
  100% { top: 100%; }
}

/* ── 8. About ─────────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
}

.about-text {
  max-width: 540px;
}

.about-text h2 {
  margin-bottom: 0;
}

.about-text p:not(.lead) {
  color: var(--ink-mid);
}

/* Stats row */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2.8rem;
  padding-top: 2.8rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.stat-n {
  display: block;
  font-family: var(--f-display);
  font-size: 2.2rem;
  font-weight: 300;
  color: var(--accent);
  line-height: 1;
}

.stat-l {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 0.45rem;
}

/* Exterior photo with decorative border accent */
.about-img {
  position: relative;
}

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

.about-img::after {
  content: '';
  position: absolute;
  bottom: -1.5rem;
  left: -1.5rem;
  width: 55%;
  height: 55%;
  border-left: 1px solid var(--accent);
  border-bottom: 1px solid var(--accent);
  opacity: 0.35;
  pointer-events: none;
}

/* ── 9. Gallery ───────────────────────────────────────────────── */
#gallery {
  text-align: center;
}

#gallery .container {
  margin-bottom: 2.5rem;
}

.gallery-stage {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 1100px;
  margin-inline: auto;
  padding-inline: clamp(2.5rem, 5vw, 5rem);
}

.gallery-frame {
  flex: 1;
  position: relative;
  aspect-ratio: 16 / 7.5;
  overflow: hidden;
  background: #000;
}

.gallery-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.42s ease;
  cursor: zoom-in;
}

.gallery-photo.fading {
  opacity: 0;
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem 2rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-align: left;
  transition: opacity 0.42s ease;
}

.gallery-caption.fading {
  opacity: 0;
}

/* Arrow buttons */
.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 3rem;
  height: 3rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: rgba(255, 255, 255, 0.75);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.gallery-arrow:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.gallery-arrow--prev { left: 0.5rem; }
.gallery-arrow--next { right: 0.5rem; }

/* Thumbnail strip */
.gallery-thumbs {
  display: flex;
  justify-content: center;
  gap: 0.55rem;
  padding: 1.5rem clamp(1rem, 4vw, 3rem);
  flex-wrap: wrap;
}

.gallery-thumb {
  width: 88px;
  height: 55px;
  object-fit: cover;
  cursor: pointer;
  opacity: 0.4;
  border: 2px solid transparent;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}

.gallery-thumb:hover {
  opacity: 0.72;
}

.gallery-thumb.active {
  opacity: 1;
  border-color: var(--accent);
}

/* ── 10. Lightbox ─────────────────────────────────────────────── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 1000;
  cursor: zoom-out;
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }

.lightbox-img {
  max-width: 95vw;
  max-height: 92vh;
  object-fit: contain;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.6);
  cursor: default;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  font-size: 2rem;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
  opacity: 0.75;
}
.lightbox-close:hover { opacity: 1; }

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  opacity: 0.75;
  cursor: pointer;
  padding: 1rem;
  z-index: 1;
  line-height: 1;
}
.lightbox-prev:hover,
.lightbox-next:hover { opacity: 1; }
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }
#lightbox[data-mode="plan"] .lightbox-prev,
#lightbox[data-mode="plan"] .lightbox-next { display: none; }

/* ── 11. Floor Plans ──────────────────────────────────────────── */
.section-intro {
  max-width: 520px;
  color: var(--ink-mid);
  margin-top: 0.75rem;
}

/* Tab navigation */
.plan-tabs {
  display: flex;
  margin-block: 2.8rem 3rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.plan-tab {
  padding: 0.75rem 1.8rem;
  font-family: var(--f-ui);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--ink-faint);
  cursor: pointer;
  margin-bottom: -1px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.plan-tab:hover,
.plan-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.plan-display {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}

.plan-img-wrap {
  background: #f0ece6;
  border: 1px solid rgba(0, 0, 0, 0.07);
  overflow: hidden;
}

.plan-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  cursor: zoom-in;
  transition: opacity 0.42s ease, transform 0.3s ease;
}

.plan-photo:hover {
  transform: scale(1.02);
}

.plan-photo.fading {
  opacity: 0;
}

.plan-specs h3 {
  margin-bottom: 1.5rem;
}

/* Spec items */
.spec-list {
  list-style: none;
  margin-bottom: 1.5rem;
}

.spec-list li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.65rem 0;
  font-size: 0.88rem;
  color: var(--ink-mid);
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.spec-list li::before {
  content: '';
  display: inline-block;
  width: 1.4rem;
  height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}

.plan-price {
  font-family: var(--f-display);
  font-size: 1.8rem;
  font-weight: 300;
  color: var(--accent);
  margin-bottom: 2rem;
}

/* ── 11. Footer / Contact ─────────────────────────────────────── */
#contact {
  background: var(--dark);
  color: var(--dark-ink);
  padding-top: var(--s-py);
  padding-bottom: 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 2rem;
}

.footer-logo {
  font-family: var(--f-display);
  font-size: 2.4rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}

.footer-tagline {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.38);
  line-height: 1.8;
}

.footer-col h4 {
  font-family: var(--f-ui);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.footer-col p,
.footer-col address {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.85;
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

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

/* ── 12. Scroll Reveal Animations ─────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(1.8rem);
  transition:
    opacity  0.85s var(--ease-out),
    transform 0.85s var(--ease-out);
  /* --delay custom property set inline on element (0, 1, 2, 3 …) */
  transition-delay: calc(var(--delay, 0) * 0.1s);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── 13. Responsive ───────────────────────────────────────────── */

/* ── Tablet (≤ 960px) ── */
@media (max-width: 960px) {
  .about-grid,
  .plan-display {
    grid-template-columns: 1fr;
  }

  .about-img {
    order: -1;
    max-height: 480px;
    overflow: hidden;
  }

  .about-img::after {
    display: none;
  }

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

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .gallery-thumb {
    width: 72px;
    height: 45px;
  }
}

/* ── Phone landscape / large phone (≤ 640px) ── */
@media (max-width: 640px) {
  /* background-attachment: fixed is broken on iOS Safari — disable it */
  body {
    background-attachment: scroll;
  }

  .nav-end {
    gap: 1rem;
  }

  /* Mobile full-screen nav overlay */
  .nav-links {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(20, 18, 16, 0.97);
    backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    z-index: 190;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7) !important;
  }

  /* Hamburger — ensure 44px minimum touch target */
  .nav-toggle {
    display: flex;
    z-index: 201;
    padding: 10px;
    margin-right: -10px;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: flex-end;
  }

  /* Gallery: remove horizontal padding so arrows overlay the image edge */
  .gallery-stage {
    padding-inline: 0;
  }

  /* Arrows: overlay the image; ensure 44×44px minimum tap target */
  .gallery-arrow {
    min-width: 44px;
    min-height: 44px;
    background: rgba(0, 0, 0, 0.38);
    border-color: rgba(255, 255, 255, 0.15);
  }

  .gallery-arrow--prev { left: 0; }
  .gallery-arrow--next { right: 0; }

  /* Thumbnails: single scrollable row instead of wrapping grid */
  .gallery-thumbs {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding-inline: clamp(1rem, 4vw, 2rem);
    scrollbar-width: none;
    gap: 0.4rem;
  }

  .gallery-thumbs::-webkit-scrollbar {
    display: none;
  }

  .gallery-thumb {
    width: 60px;
    height: 38px;
    flex-shrink: 0;
  }

  /* Plan tabs: horizontal scroll rather than wrapping */
  .plan-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-bottom: 2rem;
  }

  .plan-tabs::-webkit-scrollbar {
    display: none;
  }

  .plan-tab {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 0.7rem 1.2rem;
    font-size: 0.72rem;
  }

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

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ── Phone portrait (≤ 480px) ── */
@media (max-width: 480px) {
  :root {
    --s-py: clamp(3.5rem, 14vw, 5rem);
  }

  /* Scale h1 fluidly — 3.6rem minimum is too large at 375px */
  h1 { font-size: clamp(2.6rem, 13vw, 3.6rem); }

  /* Hero — reduce tracking to prevent overflow on narrow screens */
  .hero-eyebrow {
    font-size: 0.75rem;
    letter-spacing: 0.18em;
  }

  .hero-sub {
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    margin-block: 1.2rem 2rem;
  }

  /* CTA centred and capped width */
  .hero-content .btn {
    display: block;
    max-width: 280px;
    margin-inline: auto;
    text-align: center;
  }

  /* About */
  .about-img {
    max-height: 300px;
  }

  .stats {
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
  }

  .stat-n {
    font-size: 1.8rem;
  }

  /* Gallery caption — slightly tighter on narrow screens */
  .gallery-caption {
    padding: 1rem 1.25rem;
    font-size: 0.72rem;
  }

  /* Plans */
  .plan-img-wrap {
    max-height: 260px;
  }

  /* Full-width CTA inside plan specs */
  .plan-specs .btn {
    display: block;
    text-align: center;
  }

  /* Footer */
  .footer-logo {
    font-size: 1.8rem;
  }

  #gallery .container {
    margin-bottom: 1.5rem;
  }
}

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

  /* Kill the scroll-cue animation */
  .scroll-line::after {
    animation: none;
    opacity: 0;
  }

  /* Reveal elements instantly */
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  /* Keep image crossfades but shorten them to a cut */
  .gallery-photo,
  .gallery-caption,
  .plan-photo {
    transition-duration: 0.01ms;
  }
}
