/* =========================================================
   COMFORTABLE APARTMENT — OLD TOWN LAGOS
   Boutique Holiday Rental · TERRACOTA Design System v1.0
   Palette: Warm Linen · Soft Cream · Earthy Tint · Dark Brown ·
            Sage Green (primary accent) · Pistachio · Burgundy (CTA) · Peach Fuzz
   ========================================================= */

:root {
  /* Terracota brand palette */
  --ivory: #F5F0E8;
  /* Warm Linen — page background, on-dark text */
  --sand: #EEE7D8;
  /* Earthy Tint — alternate sections */
  --blush: #F5E7DC;
  /* Soft warm card / peach-leaning accent */
  --sage: #9DB89C;
  /* Pistachio — subtle accents */
  --teal: #6B8C6A;
  /* Sage Green — primary accent (eyebrows, icons, links) */
  --teal-hover: #4E6E4D;
  /* Sage hover */
  --teal-active: #3A5238;
  /* Sage active */
  --cocoa: #2C2416;
  /* Dark Brown — body text, headings */
  --cocoa-soft: #4a3f2c;
  --cocoa-mute: #7A6E5E;
  /* Text muted */

  /* Burgundy — booking / conversion CTA */
  --burgundy: #7B2D3E;
  --burgundy-hover: #5E1E2C;
  --burgundy-active: #4a1622;

  /* Peach Fuzz — warm highlight (stars, badges) */
  --peach: #FFBE98;

  /* Surfaces */
  --bg: var(--ivory);
  --surface: #F9F5EE;
  /* Soft Cream */
  --surface-2: var(--sand);
  --border: #DDD4C4;
  /* Border / divider */
  --border-soft: #E6DFCF;

  /* Text */
  --text: var(--cocoa);
  --text-muted: var(--cocoa-mute);
  --text-faint: #B8A98F;
  --text-on-dark: #F9F5EE;

  /* CTA — burgundy for booking / conversion */
  --cta: var(--burgundy);
  --cta-hover: var(--burgundy-hover);
  --cta-text: #F9F5EE;

  /* Typography — Terracota: Cormorant Garamond (display) + DM Sans (UI/body) */
  --font-display: 'Cormorant Garamond', 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'DM Sans', 'Helvetica Neue', -apple-system, sans-serif;
  --font-eyebrow: 'DM Sans', sans-serif;

  /* Type scale (fluid) */
  --text-xs: clamp(0.75rem, 0.7rem + 0.2vw, 0.8125rem);
  --text-sm: clamp(0.875rem, 0.82rem + 0.2vw, 0.9375rem);
  --text-base: clamp(1rem, 0.95rem + 0.2vw, 1.0625rem);
  --text-lg: clamp(1.125rem, 1rem + 0.4vw, 1.25rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.2vw, 2.125rem);
  --text-2xl: clamp(2rem, 1.4rem + 2.2vw, 3.25rem);
  --text-hero: clamp(2.75rem, 1.5rem + 5vw, 5.5rem);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Radii */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --radius-xl: 22px;
  --radius-pill: 9999px;

  /* Shadows — tone-matched, soft */
  --shadow-xs: 0 1px 2px rgba(44, 36, 22, 0.04);
  --shadow-sm: 0 2px 8px rgba(44, 36, 22, 0.05);
  --shadow-md: 0 8px 24px rgba(44, 36, 22, 0.07);
  --shadow-lg: 0 18px 48px rgba(44, 36, 22, 0.10);

  /* Container */
  --container: 1240px;
  --container-narrow: 820px;
  --container-wide: 1440px;

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --transition: 280ms var(--ease);
}

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  min-height: 100dvh;
  line-height: 1.65;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

img,
picture,
video,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

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

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

input,
textarea,
select {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.005em;
  color: var(--cocoa);
  text-wrap: balance;
}

p {
  text-wrap: pretty;
  max-width: 64ch;
}

::selection {
  background: rgba(107, 140, 106, 0.22);
  color: var(--cocoa);
}

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

a,
button,
input,
select,
textarea {
  transition: color var(--transition), background var(--transition), border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* =========================================================
   LAYOUT
   ========================================================= */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(var(--space-4), 4vw, var(--space-8));
}

.container-narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 clamp(var(--space-4), 4vw, var(--space-8));
}

.container-wide {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 clamp(var(--space-4), 4vw, var(--space-8));
}

section {
  padding-block: clamp(var(--space-16), 9vw, var(--space-32));
}

section.tight {
  padding-block: clamp(var(--space-10), 6vw, var(--space-20));
}

.eyebrow {
  font-family: var(--font-eyebrow);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
  display: inline-block;
}

.eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--teal);
  vertical-align: middle;
  margin-right: var(--space-3);
  margin-bottom: 3px;
}

.section-title {
  font-size: var(--text-2xl);
  font-style: italic;
  margin-top: var(--space-3);
  font-weight: 400;
}

.section-lead {
  font-size: var(--text-lg);
  color: var(--text-muted);
  margin-top: var(--space-5);
  max-width: 60ch;
  line-height: 1.55;
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 14px 28px;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--cta);
  color: var(--cta-text);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--cta-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-primary:active {
  background: var(--burgundy-active);
  transform: translateY(0);
}

.btn-ghost {
  background: transparent;
  color: var(--cocoa);
  border-color: var(--cocoa);
}

.btn-ghost:hover {
  background: var(--cocoa);
  color: var(--ivory);
}

.btn-teal {
  background: var(--teal);
  color: var(--ivory);
}

.btn-teal:hover {
  background: var(--teal-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-light {
  background: rgba(245, 240, 232, 0.96);
  color: var(--cocoa);
  backdrop-filter: blur(8px);
}

.btn-light:hover {
  background: var(--ivory);
}

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--teal);
  font-weight: 500;
  font-size: var(--text-sm);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-bottom: 1px solid currentColor;
  padding-bottom: 3px;
}

.btn-link:hover {
  color: var(--cta-hover);
}

/* =========================================================
   HEADER / NAV
   ========================================================= */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding: var(--space-5) 0;
  background: transparent;
  transition: background var(--transition), padding var(--transition), box-shadow var(--transition);
}

.header.scrolled {
  background: rgba(245, 240, 232, 0.92);
  backdrop-filter: blur(14px);
  padding: var(--space-3) 0;
  box-shadow: 0 1px 0 rgba(44, 36, 22, 0.05);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--cocoa);
}

.header:not(.scrolled) .brand.on-dark {
  color: var(--ivory);
}

.brand-mark {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.02em;
  line-height: 1;
}

.brand-sub {
  font-family: var(--font-body);
  font-size: 0.65rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-top: 2px;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .brand-sub {
    display: none;
  }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  list-style: none;
}

.nav-links a {
  font-size: var(--text-sm);
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--cocoa);
  position: relative;
  padding: 4px 0;
}

.header:not(.scrolled) .nav-links.on-dark a {
  color: var(--ivory);
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.nav-cta .btn {
  padding: 10px 22px;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  color: var(--cocoa);
}

.header:not(.scrolled) .nav-toggle.on-dark {
  color: var(--ivory);
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.4;
}

@media (max-width: 880px) {

  .nav-links,
  .nav-cta .btn {
    display: none;
  }

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

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--ivory);
  z-index: 60;
  padding: var(--space-8) var(--space-6);
  display: flex;
  flex-direction: column;
  transform: translateY(-100%);
  transition: transform 360ms var(--ease);
}

.mobile-menu.open {
  transform: translateY(0);
}

.mobile-menu-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mobile-menu-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-top: var(--space-12);
}

.mobile-menu-list a {
  font-family: var(--font-display);
  font-size: 1.875rem;
  letter-spacing: -0.005em;
}

.mobile-menu-cta {
  margin-top: auto;
  padding-bottom: var(--space-8);
}

.mobile-menu-cta .btn {
  width: 100%;
  padding: 18px;
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: 0;
  color: var(--ivory);
  isolation: isolate;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--cocoa);
  width: 100%;
  height: 100%;
}

.hero-inner,
.hero-scroll {
  position: relative;
  z-index: 1;
}

.hero-image picture {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

.hero-image .slide {
  opacity: 0;
  animation: kenburns 10s ease-in-out infinite;
  will-change: transform, opacity;
}

.hero-image .slide-1 {
  animation-delay: 0s;
}

.hero-image .slide-2 {
  animation-delay: 5s;
}

.hero-image source {
  display: none;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% center;
  filter: brightness(0.94) saturate(0.88) contrast(1.02);
}

@keyframes kenburns {
  0% {
    opacity: 0;
    transform: scale(1);
  }

  10% {
    opacity: 1;
  }

  50% {
    opacity: 1;
  }

  60% {
    opacity: 0;
    transform: scale(1.1);
  }

  100% {
    opacity: 0;
    transform: scale(1);
  }
}

/* Readability overlay so the headline stays legible over the photo */
.hero-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(44, 36, 22, 0.62) 0%, rgba(44, 36, 22, 0.30) 35%, rgba(44, 36, 22, 0) 65%),
    linear-gradient(180deg, rgba(44, 36, 22, 0.20) 0%, rgba(44, 36, 22, 0) 25%, rgba(44, 36, 22, 0.55) 100%);
}

@media (max-width: 880px) {
  .hero-image img {
    object-position: 55% center;
  }

  .hero-image::after {
    background:
      linear-gradient(180deg, rgba(44, 36, 22, 0.30) 0%, rgba(44, 36, 22, 0.15) 30%, rgba(44, 36, 22, 0.78) 100%);
  }
}

.hero-inner {
  width: 100%;
  padding-bottom: clamp(var(--space-16), 12vw, var(--space-32));
  padding-top: var(--space-32);
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.92);
  margin-bottom: var(--space-6);
}

.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1px;
  background: rgba(245, 240, 232, 0.7);
  vertical-align: middle;
  margin-right: var(--space-3);
  margin-bottom: 3px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.015em;
  color: var(--ivory);
  max-width: 16ch;
}

.hero-title em {
  font-style: italic;
  font-weight: 300;
  color: var(--blush);
}

.hero-sub {
  margin-top: var(--space-6);
  font-size: var(--text-lg);
  font-weight: 300;
  max-width: 48ch;
  color: rgba(245, 240, 232, 0.92);
  line-height: 1.55;
}

.hero-actions {
  margin-top: var(--space-10);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.hero-actions .btn-ghost {
  border-color: rgba(245, 240, 232, 0.7);
  color: var(--ivory);
}

.hero-actions .btn-ghost:hover {
  background: var(--ivory);
  color: var(--cocoa);
  border-color: var(--ivory);
}

.hero-scroll {
  position: absolute;
  bottom: var(--space-6);
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}

@media (max-width: 880px) {
  .hero-scroll {
    display: none;
  }
}

.hero-scroll::after {
  content: '';
  width: 1px;
  height: 36px;
  background: linear-gradient(180deg, rgba(245, 240, 232, 0.6), transparent);
  animation: scrollDown 2.4s ease-in-out infinite;
}

@keyframes scrollDown {

  0%,
  100% {
    transform: scaleY(0.4);
    transform-origin: top;
  }

  50% {
    transform: scaleY(1);
  }
}

/* =========================================================
   TRUST STRIP
   ========================================================= */
.trust {
  background: var(--surface);
  border-bottom: 1px solid var(--border-soft);
  padding-block: var(--space-10);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-4);
  align-items: center;
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  text-align: center;
  padding: var(--space-3) var(--space-4);
  border-right: 1px solid var(--border-soft);
}

.trust-item:last-child {
  border-right: none;
}

.trust-icon {
  color: var(--teal);
}

.trust-icon svg {
  width: 24px;
  height: 24px;
  stroke-width: 1.3;
}

.trust-value {
  font-family: var(--font-display);
  font-size: 1.4rem;
  line-height: 1;
  font-weight: 400;
  color: var(--cocoa);
}

.trust-label {
  font-size: var(--text-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.trust-stars {
  color: var(--peach);
  letter-spacing: 1px;
}

/* Mobile: convert the grid into a slow auto-scrolling marquee on a single line.
   - JS clones .trust-grid children once so the loop is seamless.
   - Animation translates the track by exactly 50% (one full set width).
   - Soft fade masks on left/right hint at scrollability.
   - Pauses on touch/hover, and respects prefers-reduced-motion. */
@media (max-width: 880px) {
  .trust {
    padding-block: var(--space-8);
    overflow: hidden;
  }

  .trust .container {
    padding-inline: 0;
  }

  .trust-grid {
    display: flex;
    flex-wrap: nowrap;
    grid-template-columns: none;
    gap: 0;
    width: max-content;
    animation: trust-marquee 38s linear infinite;
    will-change: transform;
  }

  .trust-grid:hover,
  .trust-grid:active,
  .trust-grid:focus-within {
    animation-play-state: paused;
  }

  .trust-item {
    flex: 0 0 auto;
    width: 44vw;
    max-width: 220px;
    border-right: 1px solid var(--border-soft);
    border-bottom: none;
    padding: var(--space-2) var(--space-5);
  }

  /* Soft edge fades to suggest more content off-screen */
  .trust {
    position: relative;
  }

  .trust::before,
  .trust::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 48px;
    pointer-events: none;
    z-index: 2;
  }

  .trust::before {
    left: 0;
    background: linear-gradient(90deg, var(--surface) 0%, rgba(248, 244, 239, 0) 100%);
  }

  .trust::after {
    right: 0;
    background: linear-gradient(270deg, var(--surface) 0%, rgba(248, 244, 239, 0) 100%);
  }
}

@keyframes trust-marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .trust-grid {
    animation: none !important;
  }
}

/* =========================================================
   STORY
   ========================================================= */
.story {
  background: var(--bg);
}

.hosts-head,
.story-head {
  text-align: center;
  max-width: 80ch;
  margin: 0 auto var(--space-12) auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(var(--space-10), 7vw, var(--space-24));
  align-items: center;
}

.story-text {
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.story-text .section-title {
  max-width: 18ch;
}

.story-text p {
  margin-top: var(--space-5);
  font-size: var(--text-base);
  line-height: 1.75;
  color: var(--text);
}

.story-text p.lead {
  font-size: var(--text-lg);
  font-style: italic;
  color: var(--cocoa-soft);
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.005em;
}

.story-image {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

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

.story-image::before {
  content: '';
  position: absolute;
  top: var(--space-6);
  left: var(--space-6);
  right: var(--space-6);
  bottom: var(--space-6);
  border: 1px solid rgba(245, 240, 232, 0.6);
  pointer-events: none;
  z-index: 1;
}

@media (max-width: 880px) {
  .story-grid {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }

  .story-image {
    aspect-ratio: 3 / 4;
    max-height: 70vh;
  }
}

/* =========================================================
   GALLERY
   ========================================================= */
.gallery {
  background: var(--surface-2);
}

.gallery-head {
  text-align: center;
  max-width: 80ch;
  margin: 0 auto var(--space-12) auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gallery-head .section-lead {
  margin-top: var(--space-5);
  margin-left: auto;
  margin-right: auto;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  cursor: pointer;
  background: var(--cocoa);
  /* Reset native button defaults so it behaves like a tappable tile */
  border: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  appearance: none;
  -webkit-appearance: none;
  /* iOS tap reliability */
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(44, 36, 22, 0.15);
  user-select: none;
  -webkit-user-select: none;
  aspect-ratio: 3 / 2;
}

.gallery-item.featured {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: auto;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease), filter 600ms var(--ease);
  /* The button is the click target — stop the img from intercepting the tap on iOS */
  pointer-events: none;
}

/* Hover only on devices that actually support hover (desktop) —
   prevents iOS sticky-hover where first tap is swallowed by :hover. */
@media (hover: hover) and (pointer: fine) {
  .gallery-item:hover img {
    transform: scale(1.04);
    filter: brightness(1.05);
  }
}

@media (max-width: 880px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item.featured {
    grid-column: auto;
    grid-row: auto;
    aspect-ratio: 3 / 2;
  }
}

/* =========================================================
   AMENITIES
   ========================================================= */
.amenities {
  background: var(--bg);
}

.amenities-head {
  text-align: center;
  max-width: 80ch;
  margin: 0 auto var(--space-16) auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.amenities-head .eyebrow {
  color: var(--teal);
}

.amenities-head .section-lead {
  margin-left: auto;
  margin-right: auto;
  margin-top: var(--space-5);
}

.amenities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-6);
}

.amenity {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.amenity:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--blush);
}

.amenity-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  background: var(--ivory);
  border: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
}

.amenity-icon svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.25;
}

.amenity h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  font-style: italic;
}

.amenity p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.6;
}

/* =========================================================
   MAP SECTION
   ========================================================= */
.map-section {
  background: var(--surface-2);
  border-bottom: 1px solid var(--border-soft);
}

.map-head {
  text-align: center;
  max-width: 80ch;
  margin: 0 auto var(--space-12) auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.map-widget {
  width: 100%;
  margin-bottom: var(--space-10);
}

.map-widget iframe {
  width: 100%;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  display: block;
}

.map-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.map-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.map-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--teal);
}

.map-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-style: italic;
  font-weight: 400;
  color: var(--cocoa);
}

.map-card-time {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: block;
  margin-top: var(--space-1);
  margin-bottom: var(--space-3);
}

.map-card p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.6;
}

@media (max-width: 880px) {
  .map-cards {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
}

/* =========================================================
   BOOKING BLOCK
   ========================================================= */
.booking {
  background: linear-gradient(180deg, var 0%, var(--blush) 140%);
  position: relative;
  overflow: hidden;
}

.booking::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(245, 240, 232, 0.5), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(157, 184, 156, 0.3), transparent 50%);
  pointer-events: none;
}

.booking-card {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: clamp(var(--space-8), 5vw, var(--space-16));
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--space-8), 5vw, var(--space-16));
  align-items: start;
}

.booking-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.booking-text {
  text-align: center;
  max-width: 80ch;
  margin: 0 auto var(--space-12) auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.booking-text .eyebrow {
  color: var(--teal);
}

.booking-text h2 {
  font-size: var(--text-2xl);
  font-style: italic;
  margin-top: var(--space-3);
  font-weight: 400;
}

.booking-text p {
  margin-top: var(--space-5);
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 65ch;
}

.booking-perks {
  list-style: none;
  margin-top: var(--space-6);
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-6);
}

.booking-perks li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--cocoa-soft);
}

.booking-perks svg {
  width: 18px;
  height: 18px;
  stroke: var(--teal);
  stroke-width: 1.5;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .booking-perks {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
  }
}

/* =========================================================
   CALENDAR WIDGET STYLING
   ========================================================= */
.calendar-container {
  background: var(--ivory);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: none;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-4);
}

.calendar-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-style: italic;
  color: var(--cocoa);
}

.calendar-nav-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cocoa);
  transition: all var(--transition);
}

.calendar-nav-btn:hover {
  background: var(--teal);
  color: var(--ivory);
  border-color: var(--teal);
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-weight: 600;
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-bottom: var(--space-2);
  border-bottom: 1px solid var(--border-soft);
  padding-bottom: 6px;
}

.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.calendar-day {
  aspect-ratio: 1.1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  border-radius: var(--radius-sm);
  cursor: pointer;
  position: relative;
  transition: all var(--transition);
  font-weight: 500;
}

.calendar-day.empty {
  cursor: default;
  background: transparent;
}

.calendar-day.past {
  color: var(--text-faint);
  cursor: not-allowed;
  pointer-events: none;
}

.calendar-day.booked {
  color: var(--text-muted);
  background: var(--border-soft);
  cursor: not-allowed;
  opacity: 0.55;
  pointer-events: none;
}

.calendar-day.booked::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 10%;
  right: 10%;
  height: 1px;
  background: var(--text-muted);
  transform: rotate(-15deg);
  opacity: 0.8;
}

.calendar-day:not(.empty):not(.past):not(.booked):hover {
  background: var(--sage);
  color: var(--cocoa);
}

.calendar-day.selected {
  background: var(--teal) !important;
  color: var(--ivory) !important;
  font-weight: 600;
}

.calendar-day.range {
  background: var(--blush);
  color: var(--cocoa);
}

.calendar-legend {
  display: flex;
  gap: var(--space-4);
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: var(--space-4);
  justify-content: center;
  border-top: 1px solid var(--border-soft);
  padding-top: var(--space-3);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.legend-color {
  width: 12px;
  height: 12px;
  border-radius: 2px;
}

.legend-color.available {
  background: var(--surface);
  border: 1px solid var(--border-soft);
}

.legend-color.booked {
  background: var(--border-soft);
  position: relative;
  overflow: hidden;
  opacity: 0.55;
}

.legend-color.booked::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 10%;
  right: 10%;
  height: 1px;
  background: var(--text-muted);
  transform: rotate(-15deg);
}

.legend-color.selected {
  background: var(--teal);
}

.booking-form {
  background: var(--ivory);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  border: 1px solid var(--border-soft);
}

.booking-form-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--border-soft);
}

.booking-form-head .price {
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 400;
}

.booking-form-head .price small {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-left: 4px;
  letter-spacing: 0.05em;
}

.booking-form-head .stars {
  font-size: 0.85rem;
  color: var(--peach);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 1px;
}

.booking-form-head .stars b {
  color: var(--cocoa);
  font-weight: 500;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}

.field {
  display: flex;
  flex-direction: column;
  margin-bottom: var(--space-3);
}

.field label {
  font-size: var(--text-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-2);
  font-weight: 500;
}

.field input,
.field select {
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  color: var(--cocoa);
}

.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--teal);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(107, 140, 106, 0.12);
}

.booking-form .btn-primary {
  width: 100%;
  padding: 16px;
  margin-top: var(--space-3);
}

.booking-form-note {
  text-align: center;
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: var(--space-4);
  letter-spacing: 0.04em;
}

@media (max-width: 880px) {
  .booking-card {
    grid-template-columns: 1fr;
    padding: clamp(var(--space-5), 5vw, var(--space-8));
  }

  .booking-form,
  .calendar-container {
    padding: var(--space-5);
    min-width: 0;
  }

  .booking-form-head {
    gap: var(--space-3);
    flex-wrap: wrap;
  }

  .booking-form-head .stars {
    font-size: 0.78rem;
    letter-spacing: 0.5px;
    gap: 4px;
  }

  .field-row {
    gap: var(--space-2);
  }

  .field input,
  .field select {
    padding: 11px 12px;
    min-width: 0;
    width: 100%;
  }
}

/* =========================================================
   6.5 RATES
   ========================================================= */
.rates {
  background: var(--surface-2);
}

.rates-head {
  text-align: center;
  max-width: 80ch;
  margin: 0 auto var(--space-12) auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.rates-head .section-lead {
  margin-top: var(--space-5);
  margin-left: auto;
  margin-right: auto;
}

.rates-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.rate-card {
  background: var(--ivory);
  border-radius: var(--radius-lg);
  padding: var(--space-10) var(--space-8);
  position: relative;
  display: flex;
  flex-direction: column;
}

.rate-card.featured {
  background: #fff;
  border: 1px solid var(--teal);
  box-shadow: var(--shadow-md);
}

.rate-badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--teal);
  color: var(--ivory);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.rate-season {
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-6);
}

.rate-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.rate-price {
  font-family: var(--font-display);
  font-size: 5rem;
  font-style: italic;
  color: var(--cocoa);
  line-height: 1  ;
}

.rate-currency {
  font-family: var(--font-display);
  font-size: 2rem;
  font-style: italic;
  color: var(--teal);
}

.rate-per {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-top: var(--space-2);
}

.rate-months {
  display: flex;
  align-items: center;
  text-align: center;
  margin-block: var(--space-10) var(--space-8);
  color: var(--cocoa-soft);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.rate-months::before,
.rate-months::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border);
}

.rate-months::before {
  margin-right: var(--space-4);
}

.rate-months::after {
  margin-left: var(--space-4);
}

.rate-perks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.rate-perks li {
  position: relative;
  padding-left: var(--space-6);
  font-size: var(--text-sm);
  color: var(--cocoa);
  line-height: 1.5;
}

.rate-perks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 12px;
  height: 1px;
  background: var(--teal);
}

.rates-footer {
  margin-top: var(--space-12);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
}

.rates-footer p {
  color: var(--cocoa-soft);
  font-size: var(--text-sm);
  max-width: 50ch;
}

@media (max-width: 980px) {
  .rates-grid {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }
}

/* =========================================================
   7. REVIEWS
   ========================================================= */
.reviews {
  background: var(--bg);
}

.reviews-head {
  text-align: center;
  max-width: 80ch;
  margin: 0 auto var(--space-16) auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.reviews-head .section-lead {
  margin-top: var(--space-5);
  margin-left: auto;
  margin-right: auto;
}

.reviews-rating {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 400;
  line-height: 1;
  color: var(--teal);
  margin-bottom: var(--space-2);
}

.reviews-rating-stars {
  color: var(--peach);
  font-size: 1.1rem;
  letter-spacing: 4px;
  margin-bottom: var(--space-3);
}

.reviews-rating-label {
  font-size: var(--text-sm);
  color: var(--text-muted);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-6);
  margin-bottom: var(--space-12);
}

.review {
  background: var(--ivory);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
}

.review:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.review .quote {
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 0.5;
  color: var(--blush);
  margin-bottom: var(--space-3);
}

.review p {
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--cocoa-soft);
  font-style: italic;
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.005em;
}

.review-meta {
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.review-author {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-sm);
  color: var(--cocoa);
}

.review-date {
  font-size: var(--text-xs);
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Mobile: review cards become a slow horizontal marquee.
   - Same pattern as the trust strip: JS clones cards once for a seamless loop.
   - Wider cards (~78vw) so 1–1.5 are readable at a time.
   - Slower speed (70s) because quotes need reading time.
   - Pauses on touch; respects prefers-reduced-motion. */
@media (max-width: 880px) {
  .reviews {
    overflow: hidden;
    position: relative;
  }

  .reviews .container {
    padding-inline: 0;
  }

  .reviews-head,
  .reviews-categories-wrap {
    padding-inline: var(--space-6);
  }

  .reviews-grid {
    display: flex;
    flex-wrap: nowrap;
    grid-template-columns: none;
    gap: var(--space-4);
    width: max-content;
    margin-bottom: var(--space-10);
    padding-inline: var(--space-6);
    animation: reviews-marquee 70s linear infinite;
    will-change: transform;
  }

  .reviews-grid:hover,
  .reviews-grid:active,
  .reviews-grid:focus-within {
    animation-play-state: paused;
  }

  .review {
    flex: 0 0 auto;
    width: 78vw;
    max-width: 320px;
    padding: var(--space-6);
  }

  /* Disable lift on touch — conflicts with marquee transform */
  .review:hover {
    transform: none;
    box-shadow: none;
  }

  /* Soft edge fades hint at scroll */
  .reviews::before,
  .reviews::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 40px;
    pointer-events: none;
    z-index: 2;
  }

  .reviews::before {
    left: 0;
    background: linear-gradient(90deg, var(--bg) 0%, rgba(248, 244, 239, 0) 100%);
  }

  .reviews::after {
    right: 0;
    background: linear-gradient(270deg, var(--bg) 0%, rgba(248, 244, 239, 0) 100%);
  }
}

@keyframes reviews-marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reviews-grid {
    animation: none !important;
  }
}

.reviews-categories {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-3);
  background: var(--ivory);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  max-width: 1080px;
  margin: 0 auto;
}

@media (max-width: 980px) {
  .reviews-categories {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 520px) {
  .reviews-categories {
    grid-template-columns: repeat(2, 1fr);
    padding: var(--space-5);
  }
}

.cat-rating {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: var(--space-3);
}

.cat-rating-label {
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.cat-rating-value {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--cocoa);
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.cat-rating-bar {
  height: 2px;
  background: var(--border-soft);
  border-radius: 2px;
  overflow: hidden;
}

.cat-rating-bar-fill {
  height: 100%;
  background: var(--teal);
}

/* =========================================================
   LOCATION
   ========================================================= */
.location {
  background: var(--surface-2);
}

.location-head {
  text-align: center;
  max-width: 80ch;
  margin: 0 auto var(--space-12) auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.location-head .section-lead {
  margin-left: auto;
  margin-right: auto;
}

.location-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(var(--space-10), 6vw, var(--space-20));
  align-items: start;
}

.location-image {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

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

.lifestyle-list {
  list-style: none;
  margin-top: 0;
  display: grid;
  gap: var(--space-5);
}

.lifestyle-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: var(--space-4);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--border-soft);
}

.lifestyle-item:last-child {
  border-bottom: none;
}

.lifestyle-num {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--teal);
  letter-spacing: 0.1em;
}

.lifestyle-name {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--cocoa);
}

.lifestyle-name span {
  display: block;
  font-family: var(--font-body);
  font-style: normal;
  font-size: var(--text-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 4px;
}

.lifestyle-distance {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 880px) {
  .location-grid {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }

  .location-image {
    aspect-ratio: 4 / 3;
    max-height: 60vh;
  }
}

/* =========================================================
   FAQ
   ========================================================= */
.faq {
  background: var(--surface-2);
}

.faq-head {
  text-align: center;
  max-width: 80ch;
  margin: 0 auto var(--space-12) auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.faq-item {
  border-bottom: 1px solid var(--border-soft);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-6) 0;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--cocoa);
}

.faq-question:hover {
  color: var(--teal);
}

.faq-icon {
  width: 28px;
  height: 28px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--transition), border-color var(--transition);
  color: var(--teal);
}

.faq-icon svg {
  width: 14px;
  height: 14px;
  stroke-width: 1.5;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  border-color: var(--teal);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 360ms var(--ease);
}

.faq-answer-inner {
  padding: 0 0 var(--space-6) 0;
  color: var(--text-muted);
  line-height: 1.7;
  font-size: var(--text-base);
  max-width: 60ch;
}

.faq-item.open .faq-answer {
  max-height: 320px;
}

/* =========================================================
   FINAL CTA
   ========================================================= */
.final-cta {
  position: relative;
  isolation: isolate;
  color: var(--ivory);
  text-align: center;
  padding-block: clamp(var(--space-24), 12vw, var(--space-32));
  overflow: hidden;
}

.final-cta-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.final-cta-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.65);
}

.final-cta-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(44, 36, 22, 0.35), rgba(44, 36, 22, 0.55));
}

.final-cta h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-style: italic;
  font-weight: 300;
  color: var(--ivory);
  max-width: 22ch;
  margin: 0 auto;
  letter-spacing: -0.005em;
}

.final-cta p {
  margin: var(--space-6) auto 0;
  max-width: 50ch;
  color: rgba(245, 240, 232, 0.9);
  font-size: var(--text-lg);
  line-height: 1.55;
  font-weight: 300;
}

.final-cta .btn {
  margin-top: var(--space-10);
}

.final-cta-actions {
  margin-top: var(--space-10);
  display: inline-flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: center;
}

.final-cta-actions .btn-ghost {
  color: var(--ivory);
  border-color: rgba(245, 240, 232, 0.6);
}

.final-cta-actions .btn-ghost:hover {
  background: var(--ivory);
  color: var(--cocoa);
  border-color: var(--ivory);
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  background: var(--cocoa);
  color: rgba(245, 240, 232, 0.7);
  padding-block: var(--space-16) var(--space-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--space-10);
  margin-bottom: var(--space-12);
}

.footer-brand .brand-name {
  color: var(--ivory);
}

.footer-brand p {
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  line-height: 1.7;
  max-width: 36ch;
}

.footer h4 {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ivory);
  margin-bottom: var(--space-5);
}

.footer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer ul a {
  font-size: var(--text-sm);
}

.footer ul a:hover {
  color: var(--blush);
}

.footer-bottom {
  border-top: 1px solid rgba(245, 240, 232, 0.1);
  padding-top: var(--space-6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
}

@media (max-width: 880px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: span 2;
  }
}

/* Hero on smaller screens — keep image fully covering, ensure padding under nav */
@media (max-width: 880px) {
  .hero-inner {
    padding-top: clamp(120px, 25vh, 200px);
    padding-bottom: clamp(var(--space-12), 14vw, var(--space-20));
  }

  .hero-title {
    max-width: 14ch;
  }

  .hero-actions {
    gap: var(--space-3);
  }

  .hero-actions .btn {
    padding: 14px 22px;
    font-size: 0.78rem;
  }
}

/* =========================================================
   STICKY MOBILE CTA
   ========================================================= */
.sticky-cta {
  display: none;
  position: fixed;
  left: var(--space-3);
  right: var(--space-3);
  bottom: var(--space-3);
  z-index: 40;
  background: rgba(245, 240, 232, 0.96);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-pill);
  padding: 8px 8px 8px 22px;
  box-shadow: var(--shadow-lg);
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  transform: translateY(120%);
  transition: transform 360ms var(--ease);
}

.sticky-cta.visible {
  transform: translateY(0);
}

.sticky-cta-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.sticky-cta-price {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--cocoa);
  line-height: 1;
}

.sticky-cta-price small {
  font-family: var(--font-body);
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.sticky-cta-rating {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

.sticky-cta .btn {
  padding: 12px 20px;
  font-size: 0.78rem;
  flex-shrink: 0;
}

@media (max-width: 880px) {
  .sticky-cta {
    display: flex;
  }

  body {
    padding-bottom: 80px;
  }
}

/* =========================================================
   REVEAL ANIMATIONS — disabled
   Reveal classes are kept on the markup so the HTML doesn't need to change,
   but they are no-ops now: everything renders fully visible from the start.
   The earlier IntersectionObserver-based fade-in was unreliable on iOS Safari.
   ========================================================= */
.reveal,
.reveal-image,
.reveal.visible,
.reveal-image.visible {
  opacity: 1;
  transform: none;
}

/* Marquee animations still respect reduced-motion */
@media (prefers-reduced-motion: reduce) {

  .trust-grid,
  .reviews-grid {
    animation: none !important;
  }
}

/* =========================================================
   LIGHTBOX
   ========================================================= */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(44, 36, 22, 0.95);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-8);
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.lightbox-close {
  position: absolute;
  top: var(--space-5);
  right: var(--space-5);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(245, 240, 232, 0.1);
  color: var(--ivory);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(245, 240, 232, 0.3);
}

.lightbox-close:hover {
  background: rgba(245, 240, 232, 0.2);
}

.lightbox-close svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.5;
}