/* ==========================================================================
   Villa Ilaria - Premium stylesheet
   Refactored for clarity, consistency and maintainability
   ========================================================================== */

/* ==========================================================
   Cormorant Garamond
========================================================== */

@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-v21-latin-regular.woff2")
    format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-v21-latin-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-v21-latin-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-v21-latin-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ==========================================================
   Manrope
========================================================== */

@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-v20-latin-300.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-v20-latin-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-v20-latin-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-v20-latin-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-v20-latin-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-v20-latin-800.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   01. Design tokens
   -------------------------------------------------------------------------- */

:root {
  --sand: #f5efe6;
  --cream: #fffaf2;
  --white: #ffffff;

  --ink: #173032;
  --muted: #6f7b75;
  --sea: #0f5965;
  --sea-dark: #123d3a;
  --sage: #8fa691;
  --terracotta: #b66d48;
  --terracotta-dark: #a65f3f;

  --line: rgba(23, 48, 50, 0.14);
  --line-soft: rgba(23, 48, 50, 0.08);
  --white-line: rgba(255, 255, 255, 0.18);

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", Arial, sans-serif;

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 30px;
  --radius-2xl: 36px;
  --radius-pill: 999px;

  --shadow-soft: 0 18px 52px rgba(23, 48, 50, 0.12);
  --shadow-card: 0 14px 45px rgba(23, 48, 50, 0.08);
  --shadow-lift: 0 28px 80px rgba(23, 48, 50, 0.18);
  --shadow-dark: 0 20px 60px rgba(0, 0, 0, 0.25);

  --ease-premium: cubic-bezier(0.22, 1, 0.36, 1);
  --transition-fast: 0.25s var(--ease-premium);
  --transition-base: 0.38s var(--ease-premium);
  --transition-slow: 0.7s var(--ease-premium);

  --container-x: 5vw;
  --section-y: 110px;
}

/* --------------------------------------------------------------------------
   02. Base reset
   -------------------------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

button {
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   03. Typography
   -------------------------------------------------------------------------- */

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
}

h1 {
  max-width: 1020px;
  font-size: clamp(50px, 7vw, 102px);
  line-height: 0.85;
}

h2 {
  font-size: clamp(38px, 5vw, 72px);
  line-height: 0.95;
}

h3 {
  font-size: 34px;
  line-height: 0.95;
}

.eyebrow,
.section-label,
.tag {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12px;
  font-weight: 800;
}

.eyebrow {
  color: #f1d1a9;
}

.eyebrow.dark,
.section-label,
.tag {
  color: var(--terracotta);
}

.section-label {
  margin-bottom: 28px;
}

.hero-text {
  max-width: 620px;
  margin: 28px 0;
  font-size: 20px;
}

.section-subtitle {
  max-width: 620px;
  margin: 12px auto 0;
  color: rgba(34, 48, 43, 0.7);
}

/* --------------------------------------------------------------------------
   04. Shared layout
   -------------------------------------------------------------------------- */

.section {
  padding: var(--section-y) var(--container-x);
}

.section-heading {
  max-width: 900px;
  margin-bottom: 50px;
}

.section-heading.compact,
.compact {
  margin-bottom: 30px;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.9s var(--ease-premium),
    transform 0.9s var(--ease-premium);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   05. Header and navigation
   -------------------------------------------------------------------------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px var(--container-x);
  color: #fff;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.38), transparent);
  transition:
    background 0.3s var(--ease-premium),
    color 0.3s var(--ease-premium),
    box-shadow 0.3s var(--ease-premium),
    backdrop-filter 0.3s var(--ease-premium);
}

.site-header.is-scrolled {
  color: #fff;
  background: rgba(18, 61, 58, 0.94);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
}

.brand-logo {
  display: block;
  width: auto;
  height: 58px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 20px;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  line-height: 1;
}

.brand small {
  margin-top: 3px;
  font-size: 12px;
  opacity: 0.75;
}

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

.nav a,
.nav-cta,
.btn,
.card-body a {
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-size: 0.78rem;
  font-weight: 700;
}

.nav a:not(.nav-cta) {
  position: relative;
  padding-block: 6px;
}

.nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition-base);
}

.nav a:not(.nav-cta):hover::after,
.nav a:not(.nav-cta):focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid currentColor;
  border-radius: var(--radius-pill);
  padding: 10px 18px;
  line-height: 1;
  transition:
    background var(--transition-base),
    color var(--transition-base),
    border-color var(--transition-base),
    transform var(--transition-base),
    box-shadow var(--transition-base);
}

.site-header.is-scrolled .nav-cta {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.18);
}

.nav-cta:hover,
.nav-cta:focus-visible {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(255, 255, 255, 0.96);
  transform: translateY(-2px);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.18);
}

.nav-toggle {
  position: relative;
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
  transition:
    background var(--transition-fast),
    border-color var(--transition-fast),
    transform var(--transition-fast);
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.42);
}

.nav-toggle:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.nav-toggle__line {
  position: absolute;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition:
    transform var(--transition-fast),
    opacity var(--transition-fast);
}

.nav-toggle__line:nth-child(1) {
  transform: translateY(-6px);
}

.nav-toggle__line:nth-child(2) {
  transform: translateY(0);
}

.nav-toggle__line:nth-child(3) {
  transform: translateY(6px);
}

.nav-toggle.is-open .nav-toggle__line:nth-child(1) {
  transform: rotate(45deg);
}

.nav-toggle.is-open .nav-toggle__line:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open .nav-toggle__line:nth-child(3) {
  transform: rotate(-45deg);
}

/* --------------------------------------------------------------------------
   06. Buttons
   -------------------------------------------------------------------------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  padding: 14px 22px;
  line-height: 1;
  transition:
    transform var(--transition-base),
    box-shadow var(--transition-base),
    background var(--transition-base),
    color var(--transition-base),
    border-color var(--transition-base);
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255, 255, 255, 0.28) 45%,
    transparent 70%
  );
  transform: translateX(-120%);
  transition: transform var(--transition-slow);
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 16px 42px rgba(23, 48, 50, 0.16);
}

.btn:hover::before,
.btn:focus-visible::before {
  transform: translateX(120%);
}

.btn-primary {
  color: #fff;
  background: var(--terracotta);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--terracotta-dark);
}

.btn-light {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
}

.btn-light:hover,
.btn-light:focus-visible {
  background: #fff;
}

.btn-outline {
  color: var(--sea);
  border-color: var(--sea);
}

.btn-outline:hover,
.btn-outline:focus-visible {
  color: #fff;
  background: var(--sea);
}

.hero-actions,
.cta-actions,
.cookie-banner__actions,
.cookie-preferences__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* --------------------------------------------------------------------------
   07. Hero slider
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  align-items: end;
  overflow: hidden;
  padding: 150px var(--container-x) 70px;
  color: #fff;
}

.hero-slider {
  min-height: 92vh;
  isolation: isolate;
}

.hero-slide,
.hero-bg,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-slide,
.hero-bg {
  background-position: center;
  background-size: cover;
  transform: scale(1.04);
}

.hero-slide {
  opacity: 0;
  transition:
    opacity 1.2s ease,
    transform 6s ease;
  will-change: opacity, transform;
}

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

.hero-overlay {
  z-index: 1;
  background:
    linear-gradient(
      90deg,
      rgba(28, 37, 34, 0.66),
      rgba(28, 37, 34, 0.26),
      rgba(28, 37, 34, 0.12)
    ),
    linear-gradient(to top, rgba(12, 36, 39, 0.42), transparent 55%);
}

.hero-content {
  position: relative;
  z-index: 3;
  width: min(1280px, 100%);
  max-width: 1280px;
  padding: 180px 1vw 120px;
  color: #fff;
}

.hero-content h1 {
  max-width: 1220px;
  font-size: clamp(64px, 7vw, 110px);
  line-height: 0.88;
}

.hero-content.reveal {
  transform: translateY(30px);
}

.hero-content.reveal.is-visible {
  transform: none;
}

.hero-content::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -250px;
  z-index: -1;
  width: 950px;
  height: 950px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(17, 29, 26, 0.68) 0%,
    rgba(17, 29, 26, 0.58) 22%,
    rgba(17, 29, 26, 0.38) 42%,
    rgba(17, 29, 26, 0.18) 60%,
    rgba(17, 29, 26, 0.08) 72%,
    rgba(17, 29, 26, 0) 100%
  );
  filter: blur(35px);
  pointer-events: none;
  transform: translateY(-50%);
}

.hero-card {
  position: absolute;
  right: var(--container-x);
  bottom: 70px;
  z-index: 3;
  min-width: 220px;
  padding: 24px;
  color: var(--ink);
  background: rgba(255, 250, 242, 0.92);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-dark);
}

.hero-card.reveal {
  transition-delay: 0.12s;
}

.hero-card strong {
  display: block;
  font-family: var(--serif);
  font-size: 54px;
}

.hero-card span {
  display: block;
  font-weight: 800;
}

.hero-card small {
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   08. Intro and content sections
   -------------------------------------------------------------------------- */

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7vw;
}

.intro p,
.split-text p,
.location-card p,
.card-body p:not(.tag),
.rule-card p,
.extra-costs span {
  color: var(--muted);
}

.intro p,
.split-text p,
.location-card p {
  font-size: 18px;
}

.features {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.features span,
.included-grid span,
.mini-grid span {
  border: 1px solid var(--line);
  background: #fff;
  transition:
    transform var(--transition-base),
    background var(--transition-base),
    border-color var(--transition-base),
    box-shadow var(--transition-base);
}

.features span {
  border-radius: var(--radius-pill);
  padding: 10px 14px;
}

.features span:hover,
.included-grid span:hover,
.mini-grid span:hover {
  transform: translateY(-3px);
  background: #fffdf8;
  border-color: rgba(182, 109, 72, 0.28);
  box-shadow: 0 12px 30px rgba(23, 48, 50, 0.08);
}

.image-band {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 16px;
  padding: 0 var(--container-x);
  isolation: isolate;
}

.image-band img,
.split-media img,
.masonry img {
  width: 100%;
  object-fit: cover;
  transition:
    transform 0.65s var(--ease-premium),
    filter 0.65s var(--ease-premium),
    box-shadow 0.65s var(--ease-premium);
  will-change: transform;
}

.image-band img {
  height: 420px;
  border-radius: 28px;
}

.image-band img:hover,
.split-media img:hover,
.masonry img:hover {
  filter: saturate(1.04) contrast(1.02);
  transform: scale(1.045);
  box-shadow: var(--shadow-soft);
}

.split {
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  gap: 7vw;
  align-items: center;
}

.split-media {
  isolation: isolate;
}

.split-media img {
  height: 620px;
  border-radius: 34px;
}

/* --------------------------------------------------------------------------
   09. Apartment cards
   -------------------------------------------------------------------------- */

.apartments {
  background: var(--sand);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.apartment-card,
.rule-card,
.cancellation-box,
.location-card,
blockquote {
  transition:
    transform 0.45s var(--ease-premium),
    box-shadow 0.45s var(--ease-premium),
    border-color 0.45s var(--ease-premium);
}

.apartment-card {
  overflow: hidden;
  background: #fff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
}

.apartment-card:hover,
.rule-card:hover,
.cancellation-box:hover,
.location-card:hover,
blockquote:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lift);
}

.apartment-card--carousel {
  display: flex;
  flex-direction: column;
}

.apartment-card--carousel .card-body {
  flex: 1;
}

.card-body {
  padding: 28px;
}

.card-body a {
  display: inline-block;
  margin-top: 4px;
  color: var(--sea);
  transition:
    opacity var(--transition-fast),
    color var(--transition-fast);
}

.card-body a:hover,
.card-body a:focus-visible {
  color: var(--terracotta);
}

.apartment-license {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 18px 0 20px;
  padding-top: 14px;
  border-top: 1px solid rgba(23, 48, 50, 0.1);
  color: var(--muted);
  font-size: 0.82rem;
}

.apartment-license strong {
  color: var(--ink);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   10. Apartment galleries
   -------------------------------------------------------------------------- */

.apartment-gallery {
  background: #fff;
}

.apartment-gallery__viewport {
  position: relative;
  height: 270px;
  overflow: hidden;
  background: #e9ded0;
  isolation: isolate;
}

.apartment-gallery__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.015);
  transition:
    opacity 0.35s ease,
    transform 0.45s ease;
}

.apartment-gallery__image.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.apartment-card:hover .apartment-gallery__image.is-active {
  transform: scale(1.045);
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 0;
  border-radius: var(--radius-pill);
  color: #fff;
  background: rgba(18, 61, 58, 0.9);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
  font-size: 30px;
  line-height: 1;
  transform: translateY(-50%);
  transition:
    background 0.28s var(--ease-premium),
    transform 0.28s var(--ease-premium),
    opacity 0.28s var(--ease-premium),
    box-shadow 0.28s var(--ease-premium);
}

.gallery-arrow:hover,
.gallery-arrow:focus-visible {
  background: var(--sea-dark);
  transform: translateY(-50%) scale(1.06);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.24);
}

.gallery-arrow--prev {
  left: 14px;
}

.gallery-arrow--next {
  right: 14px;
}

.gallery-count {
  position: absolute;
  bottom: 14px;
  left: 50%;
  z-index: 2;
  padding: 6px 11px;
  border-radius: var(--radius-pill);
  color: #fff;
  background: rgba(18, 61, 58, 0.72);
  backdrop-filter: blur(10px);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  transform: translateX(-50%);
}

.apartment-gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 8px;
  background: #fff;
  border-bottom: 1px solid var(--line-soft);
}

.gallery-thumb {
  height: 56px;
  overflow: hidden;
  padding: 0;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--sand);
  opacity: 0.72;
  transition:
    opacity var(--transition-fast),
    border-color var(--transition-fast),
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

.gallery-thumb:hover,
.gallery-thumb:focus-visible,
.gallery-thumb.is-active {
  opacity: 1;
  border-color: var(--sea);
  box-shadow: 0 10px 24px rgba(23, 48, 50, 0.12);
}

.gallery-thumb:hover {
  transform: translateY(-1px);
}

.apartment-card .gallery-thumb img,
.apartment-gallery__thumbs img {
  width: 100%;
  height: 100% !important;
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   11. Gallery, location and reviews
   -------------------------------------------------------------------------- */

.gallery {
  background: #fff;
}

.masonry {
  columns: 3 260px;
  column-gap: 18px;
  isolation: isolate;
}

.masonry img {
  width: 100%;
  margin: 0 0 18px;
  border-radius: var(--radius-lg);
  break-inside: avoid;
}

.location {
  background:
    linear-gradient(rgba(245, 239, 230, 0.86), rgba(245, 239, 230, 0.86)),
    url("../images/belvedere-capo-vaticano.jpg") center / cover fixed;
}

.location-card {
  max-width: 720px;
  padding: 48px;
  background: rgba(255, 250, 242, 0.9);
  border-radius: 32px;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 28px;
}

.mini-grid span {
  padding: 18px;
  border-radius: var(--radius-md);
}

.mini-grid strong,
.mini-grid small {
  display: block;
}

.mini-grid small {
  color: var(--muted);
}

.google-reviews-section {
  background: #f8f3ea;
}

.google-reviews-heading {
  max-width: 760px;
  margin: 0 auto 36px;
  text-align: center;
}

.google-reviews-summary {
  max-width: 980px;
  margin: 0 auto 28px;
  padding: 18px 22px;
  border: 1px solid rgba(20, 54, 51, 0.12);
  border-radius: 999px;
  background: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.google-reviews-summary strong {
  color: #143633;
  font-weight: 700;
  margin-left: 10px;
}

.google-reviews-stars,
.google-review-stars {
  color: #fbbc04;
  letter-spacing: 1px;
  font-size: 1rem;
  line-height: 1;
}

.google-reviews-link {
  color: #143633;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.google-reviews-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.google-review-card {
  background: #ffffff;
  border: 1px solid rgba(20, 54, 51, 0.1);
  border-radius: 24px;
  padding: 22px;
  box-shadow: 0 18px 45px rgba(20, 54, 51, 0.08);
}

.google-review-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.google-review-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #1d5a53;
  color: #ffffff;
  display: grid;
  place-items: center;
  font-weight: 700;
  flex: 0 0 auto;
}

.google-review-card h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.2;
  color: #202124;
}

.google-review-card .google-review-top p {
  margin: 3px 0 0;
  font-size: 0.9rem;
  color: #5f6368;
}

.google-review-card > p {
  margin: 14px 0 0;
  color: #4f555b;
  font-size: 0.98rem;
  line-height: 1.65;
}

.google-reviews-cta {
  margin-top: 32px;
  text-align: center;
}

@media (max-width: 1024px) {
  .google-reviews-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .google-reviews-summary {
    border-radius: 28px;
    flex-direction: column;
    align-items: flex-start;
  }

  .google-reviews-grid {
    grid-template-columns: 1fr;
  }

  .google-review-card {
    border-radius: 22px;
    padding: 20px;
  }
}

blockquote {
  margin: 0;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: #fff;
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1.1;
}

cite {
  display: block;
  margin-top: 20px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 14px;
  font-style: normal;
}

/* --------------------------------------------------------------------------
   12. CTA
   -------------------------------------------------------------------------- */

.cta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
  margin: 0 var(--container-x) 70px;
  padding: 70px;
  color: #fff;
  background: var(--sea);
  border-radius: var(--radius-2xl);
}

.cta h2 {
  font-size: clamp(36px, 5vw, 68px);
}

.cta p {
  color: rgba(255, 255, 255, 0.78);
}

/* --------------------------------------------------------------------------
   13. Tariffe page
   -------------------------------------------------------------------------- */

.page-hero {
  position: relative;
  display: grid;
  min-height: 68vh;
  align-items: center;
  overflow: hidden;
  padding: 150px 7vw 90px;
  color: #fff;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
  will-change: transform;
}

.page-hero-content {
  position: relative;
  z-index: 2;
  max-width: 1020px;
}

.page-hero h1 {
  margin: 0 0 24px;
  font-size: clamp(4rem, 10vw, 8rem);
  line-height: 0.88;
}

.page-hero p {
  max-width: 620px;
  font-size: 1.08rem;
  line-height: 1.7;
}

.rates-section {
  background: #fbf7ef;
}

.rates-section .section-heading {
  width: 100%;
  max-width: 900px;

  margin: 0 auto 56px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  text-align: center;
}

.rates-section .section-label,
.rates-section h2 {
  width: 100%;
  max-width: none;

  margin-left: 0;
  margin-right: 0;

  text-align: center;
}

.rates-section .section-subtitle {
  width: 100%;
  max-width: 520px;
  margin-top: 50px;
  text-align: center;
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.7;
  color: var(--ink);
  opacity: 0.82;
}

.rates-table-wrap {
  width: min(1120px, 100%);
  margin: 42px auto 0;
  overflow-x: auto;
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 24px 70px rgba(35, 45, 40, 0.08);
}

.rates-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.rates-table th,
.rates-table td {
  padding: 22px 24px;
  border-bottom: 1px solid rgba(50, 70, 60, 0.12);
  text-align: center;
}

.rates-table th:first-child,
.rates-table td:first-child {
  text-align: left;
}

.rates-table thead th {
  color: #fff;
  background: var(--sea-dark);
  font-weight: 600;
}

.rates-table thead th:first-child {
  border-top-left-radius: 28px;
}

.rates-table thead th:last-child {
  border-top-right-radius: 28px;
}

.rates-table th small {
  display: block;
  margin-top: 4px;
  opacity: 0.75;
  font-weight: 400;
}

.rates-table tbody tr {
  transition: background var(--transition-fast);
}

.rates-table tbody tr:hover {
  background: #f7efe2;
}

.rates-table tbody tr:last-child td {
  border-bottom: 0;
}

.rate-note {
  width: min(1120px, 100%);
  margin: 22px auto 0;
  padding: 20px 24px;
  border-radius: var(--radius-md);
  color: #263b35;
  background: #efe2cd;
}

.included-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 36px;
}

.included-grid span {
  padding: 14px 18px;
  border-radius: var(--radius-pill);
  color: #243b35;
  text-align: center;
  font-weight: 600;
}

.extra-costs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.extra-costs div,
.rule-card,
.cancellation-box {
  padding: 34px;
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 20px 60px rgba(35, 45, 40, 0.07);
}

.extra-costs strong {
  display: block;
  color: var(--sea-dark);
  font-family: var(--serif);
  font-size: 3rem;
}

.booking-rules {
  background: #f7efe2;
}

.rules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.rule-card h3 {
  margin: 10px 0 12px;
  font-size: 2rem;
}

.rule-card p {
  line-height: 1.75;
}

.cancellation-box {
  max-width: 920px;
  margin: 0 auto;
}

.cancellation-box h2 {
  margin: 8px 0 24px;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
}

.cancellation-box ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.cancellation-box li {
  padding: 18px 0;
  border-top: 1px solid rgba(45, 65, 55, 0.12);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   14. Legal pages
   -------------------------------------------------------------------------- */

.legal-hero {
  padding: 180px var(--container-x) 80px;
  background: var(--sand);
  text-align: center;
}

.legal-hero h1 {
  margin: 12px auto 18px;
  color: var(--ink);
  font-size: clamp(52px, 8vw, 104px);
}

.legal-hero p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
}

.legal-section {
  padding-top: 72px;
  background: var(--cream);
}

.legal-card {
  width: min(980px, 100%);
  margin: 0 auto;
  padding: clamp(28px, 5vw, 58px);
  border: 1px solid var(--line);
  border-radius: 32px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(23, 48, 50, 0.08);
}

.legal-card h2 {
  margin: 46px 0 14px;
  font-size: clamp(32px, 4vw, 48px);
}

.legal-card h2:first-of-type {
  margin-top: 0;
}

.legal-card h3 {
  margin: 28px 0 10px;
  font-size: 26px;
}

.legal-card p,
.legal-card li {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
}

.legal-card a {
  color: var(--sea);
  font-weight: 700;
  transition: color var(--transition-fast);
}

.legal-card a:hover,
.legal-card a:focus-visible {
  color: var(--terracotta);
}

.legal-note {
  padding: 18px 20px;
  border: 1px solid rgba(182, 109, 72, 0.2);
  border-radius: var(--radius-md);
  color: var(--ink) !important;
  background: #f7efe2;
}

.legal-table-wrap {
  overflow-x: auto;
  margin: 24px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.legal-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  background: #fff;
}

.legal-table th,
.legal-table td {
  padding: 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.legal-table th {
  color: #fff;
  background: var(--sea-dark);
}

.legal-intro-box {
  margin-bottom: 38px;
  padding: 28px 30px;
  border: 1px solid rgba(182, 109, 72, 0.22);
  border-radius: 24px;
  background: #f7efe2;
}

.legal-intro-box p {
  margin: 0;
}

.legal-intro-box p + p {
  margin-top: 10px;
}

.legal-kicker {
  color: var(--terracotta) !important;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem !important;
  font-weight: 800;
}

.legal-index {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 12px;
  margin: 0 0 54px;
}

.legal-index a {
  display: flex;
  align-items: center;
  min-height: 54px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: #fffaf2;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.35;
  transition:
    transform var(--transition-fast),
    border-color var(--transition-fast),
    background var(--transition-fast),
    color var(--transition-fast);
}

.legal-index a:hover,
.legal-index a:focus-visible {
  color: #fff;
  background: var(--sea);
  border-color: var(--sea);
  transform: translateY(-2px);
}

.legal-rights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 28px 0;
}

.legal-rights-grid div {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fffaf2;
  color: var(--ink);
  font-weight: 700;
}

.legal-contact-box {
  display: grid;
  gap: 6px;
  margin: 24px 0 42px;
  padding: 28px 30px;
  border-radius: 24px;
  color: #fff;
  background: var(--sea-dark);
}

.legal-contact-box strong {
  margin-bottom: 8px;
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 600;
}

.legal-contact-box span,
.legal-contact-box a {
  color: rgba(255, 255, 255, 0.84);
}

.legal-contact-box a {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-contact-box a:hover,
.legal-contact-box a:focus-visible {
  color: #f1d1a9;
}

.legal-card strong {
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   15. Footer
   -------------------------------------------------------------------------- */

.footer {
  padding: 64px 7vw 28px;
  color: #fff;
  background: var(--sea-dark);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-logo {
  width: 140px;
  height: auto;
  margin-bottom: 18px;
}

.footer-brand p,
.footer-info p,
.footer-bottom p {
  margin: 0;
}

.footer-brand p,
.footer-info p {
  margin-bottom: 8px;
  line-height: 1.6;
}

.footer-brand small {
  opacity: 0.75;
}

.footer-info h4 {
  margin: 0 0 16px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.85rem;
}

.footer-info a,
.footer-cookie-link,
.footer-credits a {
  position: relative;
  color: #fff;
  transition:
    opacity var(--transition-fast),
    color var(--transition-fast);
}

.footer-info a {
  display: block;
  margin-bottom: 10px;
  opacity: 0.82;
}

.footer-info a:hover,
.footer-cookie-link:hover,
.footer-credits a:hover,
.footer-info a:focus-visible,
.footer-cookie-link:focus-visible,
.footer-credits a:focus-visible {
  opacity: 1;
  color: #f1d1a9;
}

.footer-cookie-link {
  display: block;
  margin: 0 0 10px;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  opacity: 0.82;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-size: 0.78rem;
  font-weight: 700;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  max-width: 1200px;
  margin: 42px auto 0;
  padding-top: 22px;
  border-top: 1px solid var(--white-line);
  font-size: 0.85rem;
  opacity: 0.7;
}

.footer-credits a {
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   16. Cookie banner
   -------------------------------------------------------------------------- */

.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  width: min(1500px, calc(100% - 40px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 28px 34px;
  background: rgba(20, 74, 71, 0.97);
  backdrop-filter: blur(14px);
  border-radius: 28px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: 0.35s;
}

.cookie-banner.is-visible {
  opacity: 1;
  visibility: visible;
}

.cookie-banner__text {
  flex: 1;
  max-width: 760px;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.cookie-banner__text strong {
  display: block;
  margin-bottom: 10px;
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1;
  color: rgba(255, 250, 242, 0.98);
  font-weight: 600;
}

.cookie-banner__text p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
}

.cookie-banner__text a {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
}

.cookie-btn {
  white-space: nowrap;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-pill);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 800;
  transition:
    background var(--transition-fast),
    border-color var(--transition-fast),
    color var(--transition-fast);
}

.cookie-btn:hover,
.cookie-btn:focus-visible {
  background: rgba(255, 255, 255, 0.14);
}

.cookie-btn--primary {
  background: var(--terracotta);
  border-color: var(--terracotta);
}

.cookie-btn--primary:hover,
.cookie-btn--primary:focus-visible {
  background: var(--terracotta-dark);
}

.cookie-tab {
  position: fixed;
  right: 0;
  bottom: 118px;
  z-index: 9998;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  min-height: 44px;
  padding: 12px 18px 12px 20px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-right: 0;
  border-radius: 999px 0 0 999px;
  color: #fff;
  background: rgba(20, 74, 71, 0.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.22);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: translateX(calc(100% - 28px));
  opacity: 0;
  visibility: hidden;
  cursor: pointer;
  transition:
    transform var(--transition-fast),
    opacity var(--transition-fast),
    visibility var(--transition-fast),
    background var(--transition-fast);
}

.cookie-tab::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-right: 10px;
  border-radius: 999px;
  background: var(--terracotta);
}

.cookie-tab.is-visible {
  opacity: 1;
  visibility: visible;
}

.cookie-tab:hover,
.cookie-tab:focus-visible {
  transform: translateX(0);
  background: rgba(20, 74, 71, 1);
}

.cookie-preferences {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(6, 20, 20, 0.5);
}

.cookie-preferences.is-visible {
  display: flex;
}

.cookie-banner[hidden],
.cookie-tab[hidden],
.cookie-preferences[hidden] {
  display: none;
}

.cookie-preferences__panel {
  width: min(620px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  padding: 34px;
  border-radius: var(--radius-xl);
  color: var(--ink);
  background: #fff;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.28);
}

.cookie-preferences__panel h2 {
  margin-bottom: 14px;
  font-size: 42px;
}

.cookie-option {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.cookie-option input {
  width: 18px;
  height: 18px;
  margin-top: 6px;
}

.cookie-option strong {
  display: block;
  margin-bottom: 4px;
}

.cookie-option span {
  color: var(--muted);
}

.cookie-preferences__actions {
  justify-content: flex-end;
  margin-top: 24px;
}

.cookie-preferences__actions .cookie-btn {
  color: var(--ink);
  border-color: var(--line);
}

.cookie-preferences__actions .cookie-btn--primary {
  color: #fff;
}

/* --------------------------------------------------------------------------
   17. Accessibility and motion
   -------------------------------------------------------------------------- */

:focus-visible {
  outline: 2px solid rgba(182, 109, 72, 0.85);
  outline-offset: 4px;
}

@media (hover: none) {
  .apartment-card:hover,
  .rule-card:hover,
  .cancellation-box:hover,
  .location-card:hover,
  blockquote:hover,
  .image-band img:hover,
  .split-media img:hover,
  .masonry img:hover,
  .features span:hover,
  .included-grid span:hover,
  .mini-grid span:hover {
    transform: none;
    box-shadow: inherit;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* --------------------------------------------------------------------------
   18. Responsive
   -------------------------------------------------------------------------- */

@media (min-width: 1600px) {
  .hero-content {
    max-width: 1450px;
  }

  .hero-content h1 {
    max-width: 1380px;
    font-size: 118px;
  }
}

@media (max-width: 1023px) {
  .hero-content::before {
    display: none;
  }
}

@media (max-width: 900px) {
  :root {
    --section-y: 72px;
  }

  .site-header {
    padding: 16px var(--container-x);
  }

  .brand-logo {
    height: 48px;
  }

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

  .nav {
    position: absolute;
    top: 78px;
    right: var(--container-x);
    left: var(--container-x);
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 22px;
    border-radius: 22px;
    color: var(--ink);
    background: var(--cream);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.16);
  }

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

  .nav-cta {
    color: var(--ink);
  }

  .hero {
    padding-top: 120px;
  }

  .hero-content {
    padding: 120px 0 40px;
  }

  .hero-content h1 {
    font-size: clamp(52px, 12vw, 82px);
  }

  .hero-card {
    position: relative;
    right: auto;
    bottom: auto;
    max-width: 260px;
    margin-top: 30px;
  }

  .intro-grid,
  .cards,
  .split,
  .cta,
  .included-grid,
  .extra-costs,
  .rules-grid {
    grid-template-columns: 1fr;
  }

  .image-band {
    grid-template-columns: 1fr;
  }

  .image-band img,
  .split-media img {
    height: 360px;
  }

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

  .apartment-gallery__viewport {
    height: 320px;
  }

  .page-hero {
    min-height: 58vh;
    padding: 130px 24px 72px;
  }

  .cta {
    padding: 42px 24px;
  }

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

@media (max-width: 768px) {
  .rates-table th,
  .rates-table td {
    padding: 17px 16px;
  }
}

@media (max-width: 760px) {
  .legal-hero {
    padding: 140px 24px 64px;
  }

  .cookie-banner {
    right: 16px;
    bottom: 16px;
    left: 16px;
    transform: none;
    width: auto;
    max-height: min(78vh, 560px);
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    padding: 22px 20px;
    border-radius: 24px;
  }

  .cookie-banner__text strong {
    font-size: 26px;
  }

  .cookie-banner__text p {
    font-size: 0.9rem;
    line-height: 1.55;
  }

  .cookie-banner__actions,
  .cookie-preferences__actions {
    flex-direction: column;
  }

  .cookie-tab {
    bottom: 96px;
    min-width: 84px;
    min-height: 42px;
    padding: 11px 15px 11px 18px;
    font-size: 0.72rem;
  }

  .cookie-btn {
    width: 100%;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-cookie-link {
    text-align: left;
  }
}

@media (max-width: 640px) {
  .footer {
    padding: 52px 24px 24px;
  }

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

  .footer-logo {
    width: 120px;
  }
}

@media (max-width: 560px) {
  h1 {
    font-size: 48px;
  }

  h2 {
    font-size: 38px;
  }

  .hero-text {
    font-size: 17px;
  }

  .btn {
    width: 100%;
  }

  .apartment-gallery__viewport {
    height: 240px;
  }

  .gallery-arrow {
    width: 38px;
    height: 38px;
    font-size: 26px;
  }

  .gallery-arrow--prev {
    left: 10px;
  }

  .gallery-arrow--next {
    right: 10px;
  }

  .gallery-thumb {
    height: 48px;
    border-radius: 8px;
  }

  .apartment-card img {
    height: 230px;
  }

  .location {
    background-attachment: scroll;
  }

  blockquote {
    font-size: 24px;
  }

  .brand small {
    display: none;
  }
}
.footer-map-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  margin-top: 16px;

  font-size: 0.8rem;
  font-weight: 700;

  letter-spacing: 0.08em;
  text-transform: uppercase;

  color: #f1d1a9;

  transition:
    color 0.3s ease,
    transform 0.3s ease;
}

.footer-map-link:hover {
  color: #ffffff;

  transform: translateX(4px);
}
@media (max-width: 760px) {
  .legal-index {
    grid-template-columns: 1fr;
    margin-bottom: 42px;
  }

  .legal-index a {
    min-height: auto;
    border-radius: 18px;
  }

  .legal-rights-grid {
    grid-template-columns: 1fr;
  }

  .legal-intro-box,
  .legal-contact-box {
    padding: 24px 22px;
    border-radius: 22px;
  }

  .legal-table-wrap {
    margin-right: -8px;
    margin-left: -8px;
  }

  .legal-card h2 {
    scroll-margin-top: 110px;
  }
}
@media (max-width: 768px) {
  .hero .hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(
      to bottom,
      rgba(9, 32, 29, 0.72) 0%,
      rgba(9, 32, 29, 0.58) 28%,
      rgba(9, 32, 29, 0.44) 52%,
      rgba(9, 32, 29, 0.24) 76%,
      rgba(9, 32, 29, 0.12) 100%
    );
  }

  .hero .hero-slide {
    z-index: 1;
  }

  .hero .hero-content,
  .hero .hero-card {
    position: relative;
    z-index: 3;
  }
}
@media (max-width: 768px) {
  .hero {
    min-height: 100svh;
    align-items: center;
    padding: 112px var(--container-x) 48px;
  }

  .hero-content {
    position: relative;
    z-index: 4;
    width: 100%;
    padding: 0 0 4.5rem;
    margin: 0;
    transform: none;
  }

  .hero-content::before {
    content: "";
    position: absolute;
    left: -1.5rem;
    right: -1.5rem;
    top: -1.5rem;
    bottom: -1.5rem;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(
      ellipse at left center,
      rgba(9, 32, 29, 0.68) 0%,
      rgba(9, 32, 29, 0.48) 42%,
      rgba(9, 32, 29, 0.22) 68%,
      rgba(9, 32, 29, 0) 100%
    );
    filter: blur(4px);
  }

  .hero-overlay {
    background: linear-gradient(
      to bottom,
      rgba(9, 32, 29, 0.74) 0%,
      rgba(9, 32, 29, 0.52) 30%,
      rgba(9, 32, 29, 0.28) 62%,
      rgba(9, 32, 29, 0.18) 100%
    );
  }

  .hero-content h1 {
    font-size: clamp(48px, 11vw, 70px);
    line-height: 0.92;
  }

  .hero h1 {
    margin-top: 0;
  }

  .hero-text {
    max-width: 94%;
    margin: 22px 0;
    font-size: 18px;
  }

  .hero-actions {
    margin-top: 1.5rem;
  }

  .hero-card {
    margin-top: 1.5rem;
  }
}
@media (max-width: 768px) {
  .nav {
    max-height: calc(100svh - 8rem);
    overflow-y: auto;
    padding-bottom: 2rem;
  }

  .nav.is-open,
  .nav.active,
  .site-header .nav {
    overflow-y: visible;
  }

  .nav .nav-cta {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: fit-content !important;
    min-width: 180px;
    max-width: 100%;
    margin-top: 0.75rem;
    padding: 0.9rem 1.6rem !important;
    color: #173d3a !important;
    background: transparent !important;
    border: 2px solid #173d3a !important;
    border-radius: 999px !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    position: relative !important;
    z-index: 20 !important;
  }
}

/* Mobile-only compact homepage gallery */
@media (max-width: 640px) {
  .gallery .section-heading {
    margin-bottom: 28px;
  }

  .masonry {
    columns: 2 140px;
    column-gap: 10px;
  }

  .masonry img {
    margin-bottom: 10px;
    border-radius: 16px;
  }

  .masonry img:nth-child(n + 11) {
    display: none;
  }
}
