/* ============================================================
   Caribe Suites — Editorial Coastal Redesign
   ============================================================ */

:root {
  /* Brand palette (locked, both modes) */
  --ocean: #2C6FA3;
  --ocean-light: #8EC5E8;
  --ocean-dark: #1E5278;
  --sand-light: #F6F1EA;
  --sand: #EDE3D6;
  --ink: #1E293B;
  --muted: #64748B;
  --whatsapp: #25D366;
  --whatsapp-deep: #128C7E;

  /* Editorial mode (default) — paper-first, ocean as accent */
  --paper: #FAF7F2;
  --paper-2: var(--sand-light);
  --paper-3: var(--sand);
  --ink-2: #334155;
  --ink-mute: var(--muted);
  --hairline: #E4DCCD;

  --accent: var(--ocean);
  --accent-deep: var(--ocean-dark);
  --accent-soft: var(--ocean-light);

  /* Type */
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Inter", "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: "JetBrains Mono", "SF Mono", ui-monospace, monospace;

  /* Display family — varies by mode */
  --display: var(--serif);
  --display-weight: 400;
  --display-style: normal;
  --display-spacing: -0.015em;
  --display-line: 0.95;

  /* Body */
  --body-weight: 400;

  /* Surfaces */
  --r: 4px;
  --r-lg: 14px;
  --r-card: 14px;
  --shadow-card: 0 1px 2px rgba(30,41,59,0.04);
  --shadow-cta: 0 6px 22px -8px oklch(60% 0.18 145 / 0.5);

  /* Button / kicker styling — varies by mode */
  --btn-bg: var(--ink);
  --btn-color: var(--paper);
  --btn-radius: 999px;
  --kicker-style: italic;
  --kicker-decoration: underline;
}

/* ============================================================
   BRAND-STRICT MODE
   Inter heavy, gradient text, gradient buttons, 24px radius
   ============================================================ */
html[data-mode="brand"] {
  --paper: #FFFFFF;
  --paper-2: var(--sand-light);
  --paper-3: var(--sand);
  --hairline: #E2E8F0;

  --display: var(--sans);
  --display-weight: 800;
  --display-style: normal;
  --display-spacing: -0.025em;
  --display-line: 1.05;

  --r-card: 24px;
  --shadow-card: 0 8px 30px -12px rgba(30,41,59,0.12);

  --btn-bg: linear-gradient(135deg, var(--ocean) 0%, var(--ocean-dark) 100%);
  --btn-color: #FFFFFF;
  --btn-radius: 16px;
  --kicker-style: normal;
  --kicker-decoration: none;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  font-weight: var(--body-weight);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background 0.5s ease, color 0.5s ease;
  overflow-x: hidden;
}

/* Subtle paper noise via tiny SVG bg */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.4;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.55 0 0 0 0 0.50 0 0 0 0 0.42 0 0 0 0.05 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  transition: opacity 0.5s ease;
}
html[data-mode="brand"] body::before { opacity: 0; }

/* Type system */
.display {
  font-family: var(--display);
  font-weight: var(--display-weight);
  font-style: var(--display-style);
  letter-spacing: var(--display-spacing);
  line-height: var(--display-line);
}

html[data-mode="brand"] .display.gradient,
html[data-mode="brand"] .hero-title,
html[data-mode="brand"] .stays-title,
html[data-mode="brand"] .locations-title,
html[data-mode="brand"] .stay-name,
html[data-mode="brand"] .promo-title,
html[data-mode="brand"] .bt-title,
html[data-mode="brand"] .contact-title,
html[data-mode="brand"] .payments-title {
  background: linear-gradient(135deg, var(--ink) 0%, var(--ocean) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.italic { font-style: italic; }

.eyebrow, .mono {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
}

.num {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

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

/* Selection */
::selection {
  background: var(--ocean);
  color: var(--paper);
}

/* Hairline utility */
.hairline {
  border: 0;
  border-top: 1px solid var(--hairline);
  margin: 0;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  background: var(--btn-bg);
  color: var(--btn-color);
  border: 0;
  border-radius: var(--btn-radius);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.25s ease, filter 0.25s ease, box-shadow 0.25s ease;
}
.btn-primary:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}
html[data-mode="brand"] .btn-primary { box-shadow: 0 8px 24px -10px rgba(44,111,163,0.5); font-weight: 600; }
html[data-mode="brand"] .btn-primary:hover { box-shadow: 0 12px 32px -10px rgba(44,111,163,0.6); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
  border-radius: var(--btn-radius);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}
.btn-ghost:hover {
  background: var(--ink);
  color: var(--paper);
}
html[data-mode="brand"] .btn-ghost { border-color: var(--ocean); color: var(--ocean); font-weight: 600; }
html[data-mode="brand"] .btn-ghost:hover { background: var(--ocean); color: #fff; }

.btn-wa {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 26px;
  background: var(--whatsapp);
  color: white;
  border: 0;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 6px 22px -8px oklch(60% 0.18 145 / 0.5);
}
.btn-wa:hover {
  background: var(--whatsapp-deep);
  transform: translateY(-1px);
}
.btn-wa:disabled {
  background: var(--paper-3);
  color: var(--ink-mute);
  cursor: not-allowed;
  box-shadow: none;
}

/* Container */
.shell {
  position: relative;
  z-index: 2;
}

/* Smooth focus rings */
:focus-visible {
  outline: 2px solid var(--ocean-mid);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Image placeholders */
.ph {
  position: relative;
  background:
    repeating-linear-gradient(
      135deg,
      oklch(88% 0.025 220) 0 14px,
      oklch(85% 0.03 215) 14px 28px
    );
  overflow: hidden;
}
.ph::after {
  content: attr(data-label);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: oklch(45% 0.05 220);
  text-align: center;
  padding: 12px;
}

/* Reveal animation */
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.rise { animation: rise 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both; }

/* Mode-specific section card surfaces */
html[data-mode="brand"] .stay-feats {
  border-color: var(--hairline);
}
html[data-mode="brand"] .loc-card .loc-num,
html[data-mode="brand"] .stay-num {
  color: var(--ocean);
}
html[data-mode="brand"] .site-header.scrolled {
  background: rgba(255,255,255,0.92);
}
html[data-mode="brand"] .booking-teaser .bt-cta {
  background: #fff;
  color: var(--ocean-dark);
}
html[data-mode="brand"] .booking-teaser .bt-cta:hover { background: var(--sand-light); }

/* Brand mode logo treatment */
.brand-logo-img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--ocean) 0%, var(--ocean-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 4px 12px -4px rgba(44,111,163,0.4);
}
.brand-logo-img::after {
  content: "";
  position: absolute;
  inset: 5px;
  background: #fff;
  border-radius: 6px;
}
.brand-logo-img svg {
  position: relative;
  z-index: 1;
}

@keyframes slowZoom {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}

/* Marquee */
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee-track {
  animation: marquee 40s linear infinite;
}
