/* ===========================================================
   Hotel Columbia — Rimini Marina Centro
   Editorial hospitality design system
   =========================================================== */

:root {
  /* Brand */
  --color-primary: #255979;
  --color-accent: #00A9FF;
  --color-text: #2B2B2B;
  --color-sand: #D9C7A3;
  --color-white: #FFFFFF;

  /* Derived */
  --color-primary-dark: #1a4259;
  --color-primary-light: #3a7a9c;
  --color-sand-light: #ebe0c8;
  --color-sand-lightest: #f7f2e7;
  --color-sand-dark: #b8a380;
  --color-text-muted: #6b6b6b;
  --color-border: rgba(43, 43, 43, 0.08);
  --color-border-strong: rgba(43, 43, 43, 0.16);
  --color-overlay: rgba(37, 89, 121, 0.45);

  /* Type */
  --font-display: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  --font-sans: "Manrope", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-italic: "Cormorant Garamond", "EB Garamond", serif;

  /* Spacing scale */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4rem;
  --space-7: 6rem;
  --space-8: 8rem;

  /* Layout */
  --container: 1400px;
  --container-narrow: 1120px;
  --nav-h: 88px;

  /* Effects */
  --shadow-soft: 0 4px 24px rgba(37, 89, 121, 0.08);
  --shadow-medium: 0 12px 40px rgba(37, 89, 121, 0.12);
  --shadow-strong: 0 24px 60px rgba(37, 89, 121, 0.20);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ----- Theme tweaks ----- */
[data-theme="sand"] {
  --hero-overlay: linear-gradient(180deg, rgba(184, 163, 128, 0) 0%, rgba(43, 43, 43, 0.55) 100%);
}
[data-theme="blue"] {
  --hero-overlay: linear-gradient(180deg, rgba(37, 89, 121, 0) 0%, rgba(37, 89, 121, 0.65) 100%);
}

/* ===========================================================
   Reset & base
   =========================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, picture, video { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--color-primary); color: var(--color-white); }

/* Custom cursor — desktop only */
@media (hover: hover) and (pointer: fine) {
  body.has-custom-cursor, body.has-custom-cursor * { cursor: none !important; }
}
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  mix-blend-mode: difference;
  transition: transform 0.18s var(--ease-out), opacity 0.2s var(--ease-out), width 0.25s var(--ease-out), height 0.25s var(--ease-out);
  opacity: 0;
}
.cursor-dot { width: 6px; height: 6px; background: var(--color-white); }
.cursor-ring { width: 36px; height: 36px; border: 1px solid rgba(255,255,255,0.85); }
body.cursor-active .cursor-dot, body.cursor-active .cursor-ring { opacity: 1; }
body.cursor-hover .cursor-ring { width: 64px; height: 64px; border-color: var(--color-white); }
body.cursor-hover .cursor-dot { transform: translate(-50%, -50%) scale(0); }

/* ===========================================================
   Typography
   =========================================================== */
.h-display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.005em;
  line-height: 1.05;
  text-wrap: balance;
}
.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-primary);
}
.rule {
  display: inline-block;
  width: 32px;
  height: 1px;
  background: var(--color-sand-dark);
  vertical-align: middle;
  margin: 0 0.75rem;
}

/* ===========================================================
   Page wrapper + transitions
   =========================================================== */
.page-transition {
  position: fixed; inset: 0;
  background: var(--color-sand-lightest);
  z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.32s var(--ease-out);
}
.page-transition.active {
  opacity: 1;
  pointer-events: auto;
}
.page-transition-logo {
  width: min(280px, 48vw);
  height: auto;
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.36s var(--ease-out) 0.04s, transform 0.5s var(--ease-out) 0.04s;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}
.page-transition.active .page-transition-logo {
  opacity: 1;
  transform: scale(1);
}
.page-transition-mark {
  position: absolute;
  bottom: 12%;
  left: 50%;
  transform: translateX(-50%);
  width: 0; height: 1px;
  background: var(--color-sand-dark);
  opacity: 0.55;
  transition: width 0.5s var(--ease-out) 0.18s;
}
.page-transition.active .page-transition-mark { width: min(96px, 18vw); }

body.entering, body.entered { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .page-transition, .page-transition-logo, .page-transition-mark { transition: none; }
}

/* ===========================================================
   Navbar
   =========================================================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 var(--space-4);
  transition: background 0.4s var(--ease), backdrop-filter 0.4s var(--ease), box-shadow 0.4s var(--ease), height 0.3s var(--ease);
}
.nav::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(43,43,43,0.32) 0%, rgba(43,43,43,0) 100%);
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}
.nav.solid {
  background: var(--color-white);
  box-shadow: 0 1px 0 var(--color-border), 0 12px 40px rgba(37,89,121,0.06);
  height: 72px;
}
.nav.solid::before { opacity: 0; }
.nav.solid .nav-link,
.nav.solid .nav-burger-label,
.nav.solid .nav-phone,
.nav.solid .nav-lang button { color: var(--color-text); }
.nav.solid .nav-burger { background: var(--color-primary); color: var(--color-white); }
.nav.solid .nav-burger::after { background: var(--color-white); box-shadow: 0 -5px 0 var(--color-white), 0 5px 0 var(--color-white); }
.nav.solid .nav-logo { color: var(--color-primary); }

.nav-left, .nav-right { display: flex; align-items: center; gap: var(--space-3); position: relative; z-index: 1; }
.nav-right { justify-content: flex-end; }

.nav-burger {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 10px 18px 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--color-white);
  border: 1px solid rgba(255,255,255,0.22);
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.nav-burger:hover { background: var(--color-primary); border-color: var(--color-primary); transform: translateY(-1px); }
.nav-burger-icon {
  width: 18px; height: 12px;
  display: inline-block;
  position: relative;
}
.nav-burger-icon::before, .nav-burger-icon::after, .nav-burger-icon span {
  content: ""; position: absolute; left: 0; right: 0;
  height: 1.5px; background: currentColor;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-burger-icon::before { top: 0; }
.nav-burger-icon span { top: 50%; transform: translateY(-50%); }
.nav-burger-icon::after { bottom: 0; }
.nav-burger-label {
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 600;
  color: var(--color-white);
}

.nav-center { display: flex; align-items: center; justify-content: center; }
.nav-logo {
  display: flex; align-items: center; justify-content: center;
  color: var(--color-white);
  text-align: center;
  transition: color 0.3s var(--ease), transform 0.3s var(--ease);
  height: 100%;
}
.nav-logo:hover { transform: translateY(-1px); }
.nav-logo-img {
  height: 56px;
  width: auto;
  display: block;
  /* Over the dark hero, render the wordmark in pure white */
  filter: brightness(0) invert(1);
  transition: filter 0.4s var(--ease), height 0.3s var(--ease);
}
.nav.solid .nav-logo-img {
  /* Restore the original navy/accent colors on the solid white navbar */
  filter: none;
  height: 48px;
}

.nav-phone {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--color-white);
  font-size: 14px; font-weight: 500;
  letter-spacing: 0.04em;
  padding: 8px 14px;
  border-radius: 999px;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.nav-phone:hover { background: rgba(255,255,255,0.12); }
.nav.solid .nav-phone:hover { background: var(--color-sand-light); color: var(--color-primary); }
.nav-phone-icon { width: 16px; height: 16px; flex-shrink: 0; }

.nav-lang {
  display: inline-flex; gap: 2px; align-items: center;
  font-size: 11px; letter-spacing: 0.18em; font-weight: 600;
  color: var(--color-white);
  text-transform: uppercase;
  padding: 4px 6px;
}
.nav-lang button {
  padding: 4px 6px;
  border-radius: 4px;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
  opacity: 0.6;
  color: inherit;
}
.nav-lang button.active { opacity: 1; }
.nav-lang button:hover { opacity: 1; }
.nav-lang-divider { opacity: 0.4; font-weight: 300; }

@media (max-width: 768px) {
  .nav { padding: 0 var(--space-2); }
  .nav-burger-label { display: none; }
  .nav-burger { padding: 10px; }
  .nav-phone span { display: none; }
  .nav-phone { padding: 8px; }
  .nav-lang { display: none; }
  .nav-logo-img { height: 38px; }
  .nav.solid .nav-logo-img { height: 34px; }
}

/* ===========================================================
   Side drawer menu
   =========================================================== */
.drawer-backdrop {
  position: fixed; inset: 0;
  background: rgba(43, 43, 43, 0.55);
  opacity: 0; pointer-events: none;
  z-index: 200;
  transition: opacity 0.4s var(--ease);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.drawer-backdrop.open { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: min(520px, 92vw);
  background: var(--color-primary);
  color: var(--color-white);
  z-index: 201;
  transform: translateX(-100%);
  transition: transform 0.5s var(--ease-out);
  display: flex; flex-direction: column;
  padding: var(--space-4) var(--space-5);
  overflow-y: auto;
}
.drawer.open { transform: translateX(0); }
.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--space-6); }
.drawer-close {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  color: var(--color-white);
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}
.drawer-close:hover { background: var(--color-accent); transform: rotate(90deg); }
.drawer-eyebrow {
  font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--color-sand);
  font-weight: 600;
}
.drawer-lang {
  display: flex; align-items: center; gap: 4px;
  padding: var(--space-3) 0;
  font-size: 13px; letter-spacing: 0.18em; font-weight: 600;
  text-transform: uppercase;
}
.drawer-lang button {
  padding: 6px 10px; border-radius: 4px;
  color: var(--color-white); opacity: 0.5;
  transition: opacity 0.2s var(--ease), background 0.2s var(--ease);
}
.drawer-lang button.active { opacity: 1; background: rgba(255,255,255,0.12); }
.drawer-lang button:hover { opacity: 1; }
.drawer-lang-divider { opacity: 0.3; font-weight: 300; }

.drawer-nav { display: flex; flex-direction: column; gap: var(--space-1); flex: 1; }
.drawer-nav a {
  display: flex; align-items: baseline; gap: var(--space-3);
  padding: 18px 0;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.01em;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: transform 0.4s var(--ease-out), color 0.3s var(--ease);
  position: relative;
}
.drawer-nav a .num {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--color-sand);
  font-weight: 600;
  opacity: 0.8;
}
.drawer-nav a:hover { transform: translateX(24px); color: var(--color-sand); }
.drawer-nav a::before {
  content: ""; position: absolute; left: -24px; top: 50%;
  width: 0; height: 1px; background: var(--color-sand);
  transition: width 0.4s var(--ease-out);
}
.drawer-nav a:hover::before { width: 16px; }

.drawer-foot {
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid rgba(255,255,255,0.12);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  font-size: 13px;
  line-height: 1.5;
}
.drawer-foot strong {
  display: block;
  font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--color-sand);
  margin-bottom: 6px; font-weight: 600;
}
.drawer-foot a:hover { color: var(--color-sand); }

/* ===========================================================
   CTA / Buttons
   =========================================================== */
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 16px 28px;
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  border-radius: 999px;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  position: relative; overflow: hidden;
}
.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: var(--shadow-soft);
}
.btn-primary:hover {
  background: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}
.btn-ghost {
  background: transparent;
  color: currentColor;
  border: 1px solid currentColor;
}
.btn-ghost:hover { background: currentColor; }
.btn-ghost:hover .btn-label { color: var(--color-white); }
.btn-ghost.on-primary:hover { background: var(--color-white); color: var(--color-primary); }

/* WhatsApp CTA — brand green fill, used in hero, quote and other surfaces. */
.btn-wa {
  background: #25D366;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: none;
  box-shadow: var(--shadow-soft);
  transition: background 0.25s var(--ease), transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease);
}
.btn-wa:hover {
  background: #1ebe5d;
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
  color: #fff;
}
.btn-wa .btn-wa-icon { flex-shrink: 0; }
.btn-wa .btn-label { color: #fff; }
.btn-arrow {
  width: 22px; height: 10px;
  position: relative;
  display: inline-block;
  flex-shrink: 0;
  overflow: visible;
}
.btn-arrow::before {
  /* shaft — full width of the arrow box, vertically centered */
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: 50%;
  height: 1px;
  background: currentColor;
  transform: translateY(-50%);
}
.btn-arrow::after {
  /* chevron head — rotated around its top-right corner (where the two
     borders meet), which is positioned exactly at the shaft endpoint */
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 7px; height: 7px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
  transform-origin: 100% 0%;
}

/* CTA shapes — tweak */
[data-cta-shape="pill"] .btn { border-radius: 999px; }
[data-cta-shape="square"] .btn { border-radius: 0; }
[data-cta-shape="soft"] .btn { border-radius: 8px; }

/* Floating CTA — replacement for sand-wave pill */
.float-cta {
  position: fixed;
  right: var(--space-3);
  bottom: var(--space-3);
  z-index: 90;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 22px 16px 18px;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: 999px;
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  box-shadow: 0 12px 32px rgba(37,89,121,0.32);
  transition: transform 0.3s var(--ease-out), background 0.3s var(--ease);
  transform: translateY(80px); opacity: 0;
}
.float-cta.visible { transform: translateY(0); opacity: 1; }
.float-cta:hover { background: var(--color-accent); }
.float-cta-icon { width: 18px; height: 18px; flex-shrink: 0; }
.float-cta-sub { display: block; font-size: 9px; font-weight: 500; letter-spacing: 0.18em; opacity: 0.7; margin-top: 2px; font-style: italic; text-transform: none; }

[data-cta-shape="square"] .float-cta { border-radius: 0; }
[data-cta-shape="soft"] .float-cta { border-radius: 12px; }

/* Floating WhatsApp button — circular, icon-only, bottom-left, scroll-follow */
.float-wa {
  position: fixed;
  left: var(--space-3);
  bottom: var(--space-3);
  z-index: 90;
  width: 56px; height: 56px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #25D366;
  color: #fff;
  border-radius: 999px;
  box-shadow: 0 12px 32px rgba(37,211,102,0.38);
  transition: transform 0.3s var(--ease-out), background 0.3s var(--ease), box-shadow 0.3s var(--ease), opacity 0.3s var(--ease);
  transform: translateY(80px); opacity: 0;
}
.float-wa.visible { transform: translateY(0); opacity: 1; }
.float-wa:hover { background: #1ebe5d; transform: translateY(-2px); box-shadow: 0 16px 40px rgba(37,211,102,0.5); color: #fff; }
.float-wa-icon { width: 28px; height: 28px; }
@media (max-width: 768px) {
  .float-wa { width: 52px; height: 52px; }
  .float-wa-icon { width: 26px; height: 26px; }
}

/* ===========================================================
   Cookie consent banner
   Bottom-left card, slides up on first visit. Stays until the
   user makes a choice (Accept all / Essential only).
   =========================================================== */
.cookie-banner {
  position: fixed;
  left: var(--space-3);
  bottom: var(--space-3);
  z-index: 95;
  max-width: 420px;
  background: var(--color-white);
  color: var(--color-text);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(20, 30, 50, 0.18), 0 2px 6px rgba(20, 30, 50, 0.04);
  padding: 22px 22px 18px;
  transform: translateY(140%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.45s var(--ease-out), opacity 0.35s var(--ease);
}
.cookie-banner.is-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.cookie-banner-eyebrow {
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  font-weight: 600;
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 8px;
}
.cookie-banner-eyebrow::before {
  content: ""; display: inline-block; width: 6px; height: 6px;
  border-radius: 999px; background: var(--color-primary);
}
.cookie-banner-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  font-style: italic;
  color: var(--color-primary);
  margin: 0 0 6px;
  line-height: 1.15;
}
.cookie-banner-body {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--color-text);
  margin: 0 0 14px;
}
.cookie-banner-body a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cookie-banner-actions {
  display: flex; flex-wrap: wrap; gap: 8px;
  align-items: center;
}
.cookie-banner-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 11px 18px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  border: 1px solid var(--color-border-strong);
  background: var(--color-white);
  color: var(--color-primary);
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.cookie-banner-btn:hover {
  background: var(--color-sand-lightest);
  border-color: var(--color-primary);
}
.cookie-banner-btn.is-primary {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}
.cookie-banner-btn.is-primary:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
}
.cookie-banner-more {
  margin-left: auto;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--color-text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cookie-banner-more:hover { color: var(--color-primary); }
@media (max-width: 540px) {
  .cookie-banner {
    left: 12px; right: 12px; bottom: 12px;
    max-width: none;
    padding: 18px 18px 16px;
  }
  /* Make space for the floating CTA / WhatsApp buttons */
  .cookie-banner.is-open ~ .float-wa,
  .cookie-banner.is-open ~ .float-cta { opacity: 0; pointer-events: none; }
}

/* Inline text-link CTA */
.link-cta {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--color-text);
  padding: 4px 0;
  position: relative;
  transition: gap 0.3s var(--ease-out), color 0.3s var(--ease);
}
.link-cta::before {
  content: ""; position: absolute; left: 0; bottom: 0;
  height: 1px; width: 0;
  background: var(--color-primary);
  transition: width 0.4s var(--ease-out);
}
.link-cta:hover { color: var(--color-primary); gap: 20px; }
.link-cta:hover::before { width: 100%; }
.link-cta .dots { letter-spacing: 0; font-size: 18px; line-height: 0; }

/* ===========================================================
   Section container & rhythm
   =========================================================== */
.section {
  padding: var(--space-8) var(--space-4);
  position: relative;
}
.section--tight { padding-top: var(--space-6); padding-bottom: var(--space-6); }
.container { max-width: var(--container); margin: 0 auto; }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; }

[data-rhythm="on"] .section.alt { background: var(--color-sand-lightest); }
[data-rhythm="off"] .section.alt { background: transparent; }

@media (max-width: 768px) {
  .section { padding: var(--space-6) var(--space-3); }
}

/* ===========================================================
   Hero
   =========================================================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 680px;
  max-height: 1100px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  background: var(--color-primary);
}

[data-hero="framed"] .hero {
  padding: calc(var(--nav-h) + var(--space-3)) var(--space-4) var(--space-5);
  height: 100vh;
}
[data-hero="framed"] .hero-media { border-radius: 24px; overflow: hidden; }
[data-hero="full"] .hero { padding: 0; }
[data-hero="full"] .hero-media { border-radius: 0; }

.hero-media {
  position: absolute; inset: 0;
  z-index: 0;
  overflow: hidden;
}
[data-hero="framed"] .hero-media {
  inset: calc(var(--nav-h) + var(--space-3)) var(--space-4) var(--space-5);
}
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(37,89,121,0.1) 0%, rgba(37,89,121,0) 30%, rgba(43,43,43,0.55) 100%);
  z-index: 4;
  pointer-events: none;
}

/* ---- Carousel slides ---- */
.hero-slides {
  position: absolute; inset: 0;
  z-index: 0;
}
.hero-slide {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1);
  transition: opacity 1.2s ease-in-out, transform 1.2s ease-in-out;
  will-change: opacity, transform;
}
.hero-slide.is-active {
  opacity: 1;
  animation: kenBurns 8s linear forwards;
}
@keyframes kenBurns {
  from { transform: scale(1); }
  to   { transform: scale(1.06); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide.is-active { animation: none; transform: scale(1); }
  .hero-slide { transition: opacity 0.3s ease; }
}

/* ---- Pagination dots ---- */
.hero-dots {
  position: absolute;
  left: 50%; bottom: 18px;
  transform: translateX(-50%);
  z-index: 5;
  display: inline-flex; gap: 14px;
  padding: 6px 10px;
}
.hero-dot {
  width: 8px; height: 8px;
  background: rgba(255,255,255,0.4);
  border: 1px solid rgba(255,255,255,0.55);
  border-radius: 50%;
  padding: 0;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease), border-color 0.3s var(--ease);
  cursor: pointer;
}
.hero-dot.is-active {
  background: var(--color-white);
  border-color: var(--color-white);
  transform: scale(1.15);
}
.hero-dot:hover { background: rgba(255,255,255,0.75); }

/* ---- Directional arrow indicator ---- */
/* Pet-friendly hero pill — sand-outlined, sits top-right of the hero
   like a small hotel signature. Used on the home hero (and reusable). */
.hero-pet-badge {
  position: absolute;
  top: calc(var(--nav-h) + 28px);
  right: var(--space-4);
  z-index: 4;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 10px 16px 10px 12px;
  border: 1px solid rgba(217,199,163,0.55);
  background: rgba(26,66,89,0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 999px;
  color: var(--color-sand);
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: auto;
}
.hero-pet-badge svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--color-sand); }
.hero-pet-badge .hero-pet-badge-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--color-sand); margin-left: 4px; }
@media (max-width: 720px) {
  .hero-pet-badge {
    top: calc(var(--nav-h) + 16px);
    right: 16px;
    padding: 8px 12px 8px 10px;
    gap: 8px;
    font-size: 10px;
    letter-spacing: 0.22em;
  }
  .hero-pet-badge svg { width: 18px; height: 18px; }
}

/* Directional arrow indicator — disabled. The hero now uses the same
   custom cursor as the rest of the page, and slides advance via the
   dots / autoplay only. */
.hero-arrow { display: none !important; }

.hero-content {
  position: relative; z-index: 3;
  text-align: center;
  padding: var(--space-4);
  max-width: 1000px;
  width: 100%;
}
.hero-eyebrow {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: var(--space-3);
}
.hero-eyebrow .star { letter-spacing: 0.2em; }
.hero-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(48px, 8vw, 112px);
  line-height: 1;
  letter-spacing: -0.01em;
  margin: 0 0 var(--space-3);
  color: var(--color-white);
}
.hero-sub {
  font-size: clamp(14px, 1.4vw, 17px);
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.92);
  max-width: 520px;
  margin: 0 auto var(--space-5);
  font-weight: 300;
}
.hero-cta-row { display: flex; flex-wrap: wrap; gap: var(--space-2); justify-content: center; align-items: center; width: 100%; }

.hero-scroll {
  position: absolute;
  left: 50%; bottom: 64px;
  transform: translateX(-50%);
  z-index: 3;
  color: var(--color-white);
  font-size: 10px; letter-spacing: 0.32em; text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  opacity: 0.8;
}
.hero-scroll-line {
  width: 1px; height: 48px;
  background: linear-gradient(180deg, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0) 100%);
  animation: scrollPulse 2s var(--ease) infinite;
}
@keyframes scrollPulse {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  50.01% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

.hero-badge {
  position: absolute;
  right: var(--space-4); bottom: var(--space-5);
  z-index: 3;
  background: var(--color-white);
  padding: 14px 18px;
  border-radius: 4px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: var(--shadow-medium);
  font-size: 12px;
  color: var(--color-text);
}
.hero-badge-label {
  display: inline-block;
  background: #58c477; color: var(--color-white);
  font-size: 9px; padding: 3px 8px; letter-spacing: 0.18em;
  font-weight: 600; text-transform: uppercase;
}
.hero-badge-score { display: flex; flex-direction: column; gap: 2px; }
.hero-badge strong { font-size: 13px; font-weight: 700; }
.hero-badge .dots {
  display: inline-flex; gap: 2px;
}
.hero-badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #00aa6c;
}
.hero-badge .dot.empty { background: rgba(0,170,108,0.22); }

@media (max-width: 768px) {
  .hero { min-height: 600px; }
  .hero-badge { right: var(--space-2); bottom: var(--space-3); padding: 10px 12px; font-size: 11px; }
}

/* ===========================================================
   Intro / SEO section
   =========================================================== */
.intro {
  background: var(--color-white);
  padding: var(--space-8) var(--space-4) var(--space-7);
}
.intro-head { max-width: 1200px; margin: 0 0 var(--space-6); }
.intro-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: 0.005em;
  color: var(--color-primary);
  margin: var(--space-2) 0 var(--space-2);
}
.intro-sub {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(20px, 2.4vw, 30px);
  color: var(--color-sand-dark);
  margin: 0;
}
.intro-cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
  max-width: var(--container-narrow);
  margin: 0;
}
.intro-cols p { margin: 0 0 var(--space-2); text-align: justify; text-justify: inter-word; }
.intro-cols p:last-child { margin-bottom: 0; }
.intro-cols strong { color: var(--color-primary); font-weight: 600; }
@media (max-width: 768px) {
  .intro-cols { grid-template-columns: 1fr; gap: var(--space-3); }
  .intro-cols p { text-align: left; }
}

/* ===========================================================
   Split feature sections (welcome, rooms, breakfast, promenade)
   =========================================================== */
.split {
  display: grid;
  grid-template-columns: 40fr 60fr;        /* text 40% · image 60% */
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
  max-width: var(--container);
  margin: 0 auto;
}
/* Alternation flips the column ratio so the image is dominant in both
   orientations. DOM order still drives which side text/media land on. */
.split.split--reverse {
  grid-template-columns: 60fr 40fr;
}
.split-media {
  position: relative;
  aspect-ratio: 3 / 2;                     /* landscape — wider than tall */
  min-height: 480px;
  border-radius: 28px;
  background: transparent;                 /* overflow lives on the image-slot now */
}
.split-media image-slot,
.split-media .split-media-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  border-radius: 28px;
  background: var(--color-sand-light);
  box-shadow: 0 20px 60px rgba(37, 89, 121, 0.12);
  overflow: hidden;
  z-index: 1;
}
.split-media .split-media-img {
  object-fit: cover;
  object-position: center;
  display: block;
}
.split-media-frame {
  /* Decorative inset border + sand-coloured swoosh disabled —
     removed per user request so the photo sits clean without lines
     extending past its top-right corner. */
  display: none;
}
.split-media::after { display: none; }
.split-media-frame--legacy {
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(255,255,255,0.45);
  border-radius: 20px;
  pointer-events: none;
  z-index: 2;
}
/* (Decorative swoosh CSS retained below but disabled via the rule above.) */
.split-media-after--legacy {
  content: "";
  position: absolute;
  top: -28px;
  right: -16px;
  width: clamp(180px, 32%, 320px);
  height: 96px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 96' fill='none' stroke='%23D9C7A3' stroke-linecap='round'><path d='M4 78 C 70 18, 150 62, 230 30 S 312 16, 316 8' stroke-width='1.4'/><path d='M8 90 C 80 36, 160 76, 240 46 S 312 28, 316 22' stroke-width='1' opacity='0.7'/></svg>");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  opacity: 0.6;
  pointer-events: none;
  z-index: 0;                              /* behind image-slot (z:1) */
}
.split-text { padding: var(--space-3) 0; }
.split-eyebrow {
  font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: var(--space-2);
  display: inline-flex; align-items: center; gap: 12px;
}
.split-eyebrow::before {
  content: ""; width: 24px; height: 1px; background: var(--color-sand-dark);
}
.split-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(36px, 4.4vw, 64px);
  line-height: 1.04;
  letter-spacing: 0.005em;
  color: var(--color-primary);
  margin: 0 0 var(--space-3);
  text-transform: uppercase;
  text-wrap: balance;
}
.split-body {
  padding-left: var(--space-3);
  border-left: 2px solid var(--color-sand);
  margin: 0 0 var(--space-4);
  font-size: 16px;
  color: var(--color-text);
  max-width: 480px;
}
.split-body strong { font-weight: 700; color: var(--color-text); }

.feature-list {
  list-style: none; padding: 0; margin: 0 0 var(--space-4);
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 10px 24px;
  max-width: 480px;
}
.feature-list li {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px;
  color: var(--color-text-muted);
}
.feature-list li::before {
  content: ""; width: 6px; height: 6px;
  background: var(--color-sand-dark);
  border-radius: 50%; flex-shrink: 0;
}

@media (max-width: 1023px) and (min-width: 768px) {
  /* Tablet — 45/55 split, slightly shorter frame */
  .split { grid-template-columns: 45fr 55fr; }
  .split.split--reverse { grid-template-columns: 55fr 45fr; }
  .split-media { min-height: 380px; }
}

@media (max-width: 767px) {
  .split,
  .split.split--reverse { grid-template-columns: 1fr; gap: var(--space-4); }
  /* On mobile, force image above text regardless of DOM order */
  .split .split-media { order: 1; }
  .split .split-text { order: 2; }
  .split-media {
    aspect-ratio: 16 / 9;                  /* still landscape, never portrait */
    min-height: 0;
    border-radius: 16px;
  }
  .split-media image-slot,
  .split-media .split-media-img { border-radius: 16px; }
  .split-media-frame { inset: 8px; border-radius: 10px; }
  .split-media::after { top: -18px; right: -10px; height: 64px; }
}

/* ===========================================================
   Reviews — testimonial carousel
   =========================================================== */
.testimonials {
  background: var(--color-sand-lightest);
}
[data-rhythm="off"] .testimonials {
  background: var(--color-white);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.reviews-head {
  text-align: center;
  margin-bottom: var(--space-6);
}

.testimonials-carousel {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

/* Stage stacks all slides. The active slide is in normal flow so the
   carousel auto-sizes to its content; inactive slides overlay
   absolutely and fade out — no layout shift between slides of
   different lengths. */
.testimonials-stage {
  position: relative;
}
.testimonial {
  display: flex; flex-direction: column; align-items: center;
  gap: 18px;
  text-align: center;
  padding: var(--space-4) var(--space-3) var(--space-3);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out);
  pointer-events: none;
}
.testimonial:not(.is-active) {
  position: absolute;
  inset: 0;
}
.testimonial.is-active {
  position: relative;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.testimonial-mark {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 110px;
  line-height: 0.6;
  color: var(--color-sand-dark);
  opacity: 0.5;
  margin-bottom: -18px;
  user-select: none;
}
.testimonial-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.4;
  color: var(--color-primary);
  margin: 0;
  max-width: 720px;
  text-wrap: pretty;
}
.testimonial-stars {
  letter-spacing: 0.32em;
  color: #d2a93a;
  font-size: 14px;
  margin-top: 4px;
}
.testimonial-meta {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  margin-top: 4px;
}
.testimonial-author {
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--color-text);
}
.testimonial-where {
  font-size: 13px;
  color: var(--color-text-muted);
  font-style: italic;
}
.testimonial-source {
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-primary);
  font-weight: 600;
  margin-top: 6px;
  display: inline-flex; align-items: center; gap: 10px;
}
.testimonial-source::before {
  content: ""; width: 18px; height: 1px; background: var(--color-sand-dark);
}

/* Arrows */
.testimonials-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 999px;
  border: 1px solid var(--color-border-strong);
  background: var(--color-white);
  color: var(--color-primary);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.testimonials-arrow:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}
.testimonials-arrow--prev { left: 0; }
.testimonials-arrow--next { right: 0; }

/* Dots */
.testimonials-dots {
  display: flex; gap: 10px; justify-content: center;
  margin-top: var(--space-5);
}
.testimonials-dots button {
  width: 8px; height: 8px;
  border-radius: 999px;
  background: var(--color-sand-dark);
  opacity: 0.45;
  cursor: pointer;
  transition: all 0.35s var(--ease);
  border: 0;
  padding: 0;
}
.testimonials-dots button.is-active {
  background: var(--color-primary);
  opacity: 1;
  width: 28px;
}

@media (max-width: 768px) {
  .testimonials-carousel { padding: 0; }
  .testimonials-arrow { display: none; }
  .testimonial { padding: var(--space-3) 0; }
  .testimonial-mark { font-size: 80px; margin-bottom: -10px; }
}

/* ===========================================================
   Location & contact
   =========================================================== */
.location {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 0;
  min-height: 680px;
}
.location-map {
  position: relative;
  background: var(--color-sand-light);
  overflow: hidden;
}
.location-map iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
  filter: grayscale(15%) contrast(1.02);
  pointer-events: none;          /* belt — no scroll/zoom inside */
}
/* Suspenders — invisible blocker on top of the iframe that absorbs
   every pointer event, so even browsers that ignore pointer-events on
   iframes can't pan/zoom the map. */
.location-map-shield {
  position: absolute; inset: 0;
  z-index: 2;
  background: transparent;
  cursor: default;
}
/* Small link tucked in the corner for users who actually want a map */
.location-map-link {
  position: absolute;
  left: var(--space-3);
  bottom: var(--space-3);
  z-index: 4;
  background: var(--color-white);
  color: var(--color-primary);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
  transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}
.location-map-link:hover {
  background: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-1px);
}
.location-pin {
  position: absolute;
  z-index: 5;
  background: var(--color-white);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  font-weight: 600;
  color: var(--color-primary);
  box-shadow: var(--shadow-medium);
  pointer-events: none;
  white-space: nowrap;
}
.location-pin small { display: block; font-size: 10px; font-weight: 400; letter-spacing: 0.06em; text-transform: none; font-style: italic; color: var(--color-text-muted); margin-top: 2px; }
.location-pin--beach { top: 32%; left: 35%; }
.location-pin--center { bottom: 22%; left: 14%; }
.location-pin--port { top: 14%; right: 18%; }

.location-info {
  background: var(--color-primary);
  color: var(--color-white);
  padding: var(--space-7) var(--space-5);
  display: flex; flex-direction: column;
  justify-content: center;
  gap: var(--space-4);
  position: relative;
  overflow: hidden;
}
.location-info::before {
  content: ""; position: absolute;
  inset: 0;
  background: radial-gradient(circle at 100% 0%, rgba(217,199,163,0.18), transparent 50%);
  pointer-events: none;
}
.location-info > * { position: relative; z-index: 1; }
.location-info-mark {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 400;
  letter-spacing: 0.12em;
  line-height: 1;
  display: flex; flex-direction: column; gap: 8px;
}
.location-info-mark small {
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--color-sand);
  font-weight: 600;
}
.location-info-row {
  display: flex; align-items: flex-start; gap: 16px;
  padding: var(--space-2) 0;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 14px;
  line-height: 1.6;
}
.location-info-row:last-of-type { border-bottom: 1px solid rgba(255,255,255,0.12); }
.location-info-icon {
  width: 22px; height: 22px;
  flex-shrink: 0;
  color: var(--color-sand);
  margin-top: 2px;
}
.location-info-row strong {
  display: block;
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-sand);
  font-weight: 600;
  margin-bottom: 4px;
}
.location-info-row a:hover { color: var(--color-sand); }

.location-info-social {
  display: flex; gap: 12px;
  margin-top: var(--space-2);
}
.location-info-social a {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 50%;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.location-info-social a:hover { background: var(--color-sand); border-color: var(--color-sand); color: var(--color-primary); }
.location-info-legal {
  font-size: 11px; line-height: 1.6;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.04em;
  margin-top: var(--space-2);
}

@media (max-width: 900px) {
  .location { grid-template-columns: 1fr; }
  .location-map { min-height: 420px; }
  .location-info { padding: var(--space-5) var(--space-3); }
}

/* ===========================================================
   Quote / Contact form
   ===========================================================
   Lives in two places: a band at the bottom of the homepage,
   and the dedicated /quote.html page. Markup is identical, so
   styles target a single .quote-form class. Keep the form
   palette (sand background, white card) consistent with the
   newsletter band it replaces so the page rhythm doesn't shift.
*/
.quote-section {
  background: var(--color-sand);
  padding: var(--space-7) var(--space-4);
}
.quote-section.on-light { background: var(--color-sand-lightest); }
.quote-section.on-white { background: var(--color-white); }

.quote-inner {
  max-width: 980px;
  margin: 0 auto;
}
.quote-head {
  text-align: center;
  margin-bottom: var(--space-5);
}
.quote-head .eyebrow { color: var(--color-primary); }
.quote-head h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(36px, 4.5vw, 56px);
  line-height: 1.05;
  color: var(--color-primary);
  margin: 10px 0 12px;
  letter-spacing: 0.005em;
}
.quote-head p {
  color: var(--color-text);
  margin: 0 auto;
  max-width: 620px;
  font-size: 16px;
}

.quote-form {
  background: var(--color-white);
  border-radius: 24px;
  padding: clamp(24px, 4vw, 44px);
  box-shadow: 0 18px 50px rgba(37, 89, 121, 0.08);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 20px;
}
.quote-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.quote-field.full { grid-column: 1 / -1; }
.quote-field.half { grid-column: span 1; }
.quote-field-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 20px;
}
.quote-field-row.cols-3 { grid-template-columns: 1.4fr 1fr 1fr; }

.quote-field label {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-primary);
  font-weight: 600;
}
.quote-field label .req { color: var(--color-accent); margin-left: 2px; }

.quote-field input,
.quote-field select,
.quote-field textarea {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  background: var(--color-sand-lightest);
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 14px 16px;
  font: inherit;
  font-size: 15px;
  color: var(--color-text);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.quote-field input::placeholder,
.quote-field textarea::placeholder {
  color: rgba(43,43,43,0.45);
}
.quote-field input:focus,
.quote-field select:focus,
.quote-field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  background: var(--color-white);
  box-shadow: 0 0 0 4px rgba(37, 89, 121, 0.08);
}
.quote-field select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8' fill='none' stroke='%23255979' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><polyline points='1 1 7 7 13 1'/></svg>");
  background-repeat: no-repeat;
  background-position: right 18px center;
  padding-right: 44px;
  cursor: pointer;
}
.quote-field input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.55;
}
.quote-field textarea {
  resize: vertical;
  min-height: 130px;
  line-height: 1.55;
}

.quote-privacy {
  grid-column: 1 / -1;
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.55;
}
.quote-privacy input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  flex-shrink: 0;
  width: 18px; height: 18px;
  margin-top: 2px;
  border: 1.5px solid var(--color-border-strong);
  border-radius: 4px;
  background: var(--color-white);
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.quote-privacy input[type="checkbox"]:checked {
  background: var(--color-primary);
  border-color: var(--color-primary);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><polyline points='2 7 6 11 12 3'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
}
.quote-privacy a { color: var(--color-primary); text-decoration: underline; }

.quote-submit-row {
  grid-column: 1 / -1;
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-3);
  margin-top: 6px;
  flex-wrap: wrap;
}
.quote-submit {
  display: inline-flex; align-items: center; gap: 14px;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: 999px;
  padding: 16px 32px;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
  border: 0;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  box-shadow: var(--shadow-soft);
}
.quote-submit:hover { background: var(--color-accent); transform: translateY(-2px); box-shadow: var(--shadow-medium); }
.quote-submit:disabled { opacity: 0.7; cursor: progress; transform: none; }
.quote-submit .btn-arrow { color: currentColor; }
.quote-aside {
  font-size: 12px;
  color: var(--color-text-muted);
  font-style: italic;
  max-width: 320px;
}

/* Feedback */
.quote-feedback {
  grid-column: 1 / -1;
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 14px;
  display: none;
}
.quote-feedback.is-success {
  display: block;
  background: rgba(88, 196, 119, 0.12);
  color: #2c6c3f;
  border: 1px solid rgba(88, 196, 119, 0.35);
}
.quote-feedback.is-error {
  display: block;
  background: rgba(217, 91, 91, 0.10);
  color: #8a3030;
  border: 1px solid rgba(217, 91, 91, 0.32);
}

@media (max-width: 720px) {
  .quote-form { grid-template-columns: 1fr; padding: 22px; gap: 14px; }
  .quote-field-row,
  .quote-field-row.cols-3 { grid-template-columns: 1fr; gap: 14px; }
  .quote-submit-row { flex-direction: column; align-items: stretch; }
  .quote-submit { width: 100%; justify-content: center; }
  .quote-aside { text-align: center; max-width: none; }
}
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.1;
  color: var(--color-primary);
  margin: 0 0 var(--space-2);
}
.newsletter p {
  color: var(--color-text);
  margin: 0 0 var(--space-3);
  font-size: 15px;
}
.newsletter-form {
  display: flex;
  gap: 8px;
  background: var(--color-white);
  padding: 6px;
  border-radius: 999px;
  box-shadow: 0 4px 24px rgba(43,43,43,0.06);
}
.newsletter-form input {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 12px 18px;
  font: inherit;
  color: var(--color-text);
  outline: none;
}
.newsletter-form button {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: background 0.3s var(--ease);
}
.newsletter-form button:hover { background: var(--color-accent); }
@media (max-width: 600px) {
  .newsletter-form { flex-direction: column; padding: 12px; border-radius: 16px; }
  .newsletter-form button { width: 100%; padding: 16px; }
}

/* ===========================================================
   Footer
   =========================================================== */
.footer {
  background: var(--color-primary-dark);
  color: rgba(255,255,255,0.7);
  padding: var(--space-7) var(--space-4) var(--space-3);
  font-size: 14px;
}
.footer a:hover { color: var(--color-white); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: var(--space-5);
  max-width: var(--container);
  margin: 0 auto;
  padding-bottom: var(--space-5);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand-name {
  margin: 0 0 var(--space-1);
}
.footer-brand-logo {
  height: 56px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
  margin-bottom: var(--space-2);
}
.footer-brand p { font-size: 14px; line-height: 1.7; max-width: 320px; }
.footer-col h4 {
  font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase;
  font-weight: 600;
  color: var(--color-sand);
  margin: 0 0 var(--space-2);
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer-bottom {
  max-width: var(--container);
  margin: var(--space-3) auto 0;
  display: flex; justify-content: space-between; align-items: center; gap: var(--space-3);
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.04em;
}
.footer-bottom-links { display: flex; gap: var(--space-3); }
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ===========================================================
   Reveal-on-scroll
   =========================================================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* Side-reveal variants for alternating split sections */
.reveal.from-left { transform: translateX(-64px); }
.reveal.from-right { transform: translateX(64px); }
.reveal.from-left.is-visible,
.reveal.from-right.is-visible { transform: none; }
@media (max-width: 900px) {
  /* On mobile (single column), side reveals would feel jumpy — soften to a gentle rise */
  .reveal.from-left, .reveal.from-right { transform: translateY(28px); }
}
.reveal-children > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}
.reveal-children.is-visible > * { opacity: 1; transform: none; }
.reveal-children.is-visible > *:nth-child(2) { transition-delay: 120ms; }
.reveal-children.is-visible > *:nth-child(3) { transition-delay: 240ms; }
.reveal-children.is-visible > *:nth-child(4) { transition-delay: 360ms; }

/* Image slot styling overrides */
image-slot {
  --bg: var(--color-sand-light);
  --fg: var(--color-text-muted);
  --border: var(--color-sand-dark);
}

/* ===========================================================
   Tweaks panel (custom, follows host protocol)
   =========================================================== */
.tweaks {
  position: fixed;
  right: 20px; top: calc(var(--nav-h) + 16px);
  z-index: 500;
  width: 320px;
  max-height: calc(100vh - var(--nav-h) - 40px);
  background: var(--color-white);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(43,43,43,0.18), 0 0 0 1px var(--color-border);
  display: none;
  flex-direction: column;
  overflow: hidden;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--color-text);
}
.tweaks.open { display: flex; }
.tweaks-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--color-border);
}
.tweaks-head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--color-primary);
}
.tweaks-close {
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(43,43,43,0.05);
  color: var(--color-text);
}
.tweaks-close:hover { background: var(--color-primary); color: var(--color-white); }
.tweaks-body { padding: 14px 16px; overflow-y: auto; flex: 1; }
.tweak-group { margin-bottom: 18px; }
.tweak-group:last-child { margin-bottom: 0; }
.tweak-label {
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--color-text-muted);
  font-weight: 600;
  margin-bottom: 8px;
  display: block;
}
.tweak-segmented {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  background: rgba(43,43,43,0.05);
  border-radius: 8px;
  padding: 3px;
  gap: 0;
}
.tweak-segmented button {
  padding: 8px 6px;
  font-size: 11px;
  letter-spacing: 0.06em;
  font-weight: 500;
  color: var(--color-text-muted);
  border-radius: 6px;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.tweak-segmented button.active {
  background: var(--color-white);
  color: var(--color-primary);
  box-shadow: 0 1px 3px rgba(43,43,43,0.08);
  font-weight: 600;
}

@media (max-width: 640px) {
  .tweaks { right: 8px; left: 8px; width: auto; }
}
