/* =========================================================================
   San Roque Club, Fase 1 — Coastal-Elegant Design System
   ========================================================================= */

:root {
  /* ---- Sand neutrals (warm, airy) ---- */
  --sand-50:  #FCF9F4;
  --sand-100: #F6F0E7;
  --sand-150: #F0E8DA;
  --sand-200: #E9DECE;
  --sand-300: #DBCBB3;
  --sand-400: #C9B292;

  /* ---- Sea (primary) ---- */
  --sea-950: #0A2731;
  --sea-900: #0D3340;
  --sea-800: #114555;
  --sea-700: #185A6B;
  --sea-600: #1F7287;
  --sea-500: #2E8BA1;
  --sea-400: #5BA7B9;
  --sea-300: #95C6D2;
  --sea-200: #C4E0E6;
  --sea-100: #E4F1F3;

  /* ---- Warm gold / sun accent ---- */
  --gold-700: #9A7536;
  --gold-600: #B08A45;
  --gold-500: #C7A35C;
  --gold-400: #D9BC82;
  --gold-300: #E8D2A8;
  --gold-100: #F6EBD6;

  /* ---- Soft terracotta (sparingly) ---- */
  --terra-500: #C06B49;
  --terra-300: #E1A98E;

  /* ---- Ink / text ---- */
  --ink:       #122B34;
  --ink-soft:  #43616C;
  --ink-faint: #7B939C;
  --line:      #E7DDCE;
  --line-soft: #F0E9DD;

  /* ---- Semantic ---- */
  --bg:        var(--sand-50);
  --surface:   #FFFFFF;
  --primary:   var(--sea-800);
  --primary-ink: #FFFFFF;
  --accent:    var(--gold-600);

  /* ---- Type ---- */
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Mulish", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* ---- Radii ---- */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 34px;
  --r-pill: 999px;

  /* ---- Shadows (soft sea-mist) ---- */
  --shadow-xs: 0 1px 2px rgba(13,51,64,.05);
  --shadow-sm: 0 2px 10px -4px rgba(13,51,64,.12);
  --shadow-md: 0 14px 36px -18px rgba(13,51,64,.22);
  --shadow-lg: 0 34px 70px -30px rgba(13,51,64,.32);
  --shadow-gold: 0 16px 40px -20px rgba(176,138,69,.45);

  --maxw: 1180px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--sea-200); color: var(--sea-900); }

.app-loading { min-height: 100vh; display: grid; place-items: center; background: var(--bg); }
.app-loading-mark { animation: src-loading-pulse 1.4s ease-in-out infinite; }
@keyframes src-loading-pulse { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }

/* ---------- Typography ---------- */
.display {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: var(--sea-900);
  margin: 0;
}
.serif { font-family: var(--serif); }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; color: var(--sea-900); margin: 0; line-height: 1.08; }

.eyebrow {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0;
}

.lede { font-size: 1.22rem; line-height: 1.55; color: var(--ink-soft); font-weight: 400; }

.muted { color: var(--ink-soft); }
.faint { color: var(--ink-faint); }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.section { padding: 86px 0; }
.section-tight { padding: 56px 0; }

.app-shell { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-weight: 700; font-size: 15px;
  padding: 14px 26px; border-radius: var(--r-pill);
  border: 1px solid transparent; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s, color .2s, border-color .2s;
  letter-spacing: .01em; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--sea-800); color: #fff; box-shadow: var(--shadow-md); }
.btn-primary:hover { background: var(--sea-900); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-gold { background: var(--gold-600); color: #fff; box-shadow: var(--shadow-gold); }
.btn-gold:hover { background: var(--gold-700); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--sea-900); border-color: var(--sand-300); }
.btn-ghost:hover { border-color: var(--sea-700); background: #fff; transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn-soft { background: var(--sea-100); color: var(--sea-800); }
.btn-soft:hover { background: var(--sea-200); }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-lg { padding: 17px 32px; font-size: 16px; }

/* ---------- Badges / chips ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; letter-spacing: .03em;
  padding: 5px 12px; border-radius: var(--r-pill);
  background: var(--sea-100); color: var(--sea-700);
  text-transform: uppercase;
}
.badge.gold { background: var(--gold-100); color: var(--gold-700); }
.badge.terra { background: #F7E7DE; color: var(--terra-500); }
.badge.sand { background: var(--sand-150); color: var(--ink-soft); }
.badge.sea { background: var(--sea-100); color: var(--sea-700); }

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.card-hover:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--line); }

/* ---------- Decorative wave divider ---------- */
.wave { display: block; width: 100%; height: auto; color: var(--sea-200); }

/* ---------- Inputs ---------- */
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 13.5px; font-weight: 700; color: var(--sea-800); letter-spacing: .02em; }
.input {
  font-family: var(--sans); font-size: 16px; color: var(--ink);
  padding: 13px 16px; border-radius: var(--r-sm);
  border: 1px solid var(--sand-300); background: #fff;
  transition: border-color .2s, box-shadow .2s;
  width: 100%;
}
.input:focus { outline: none; border-color: var(--sea-500); box-shadow: 0 0 0 4px var(--sea-100); }

/* ---------- Utility ---------- */
.row { display: flex; align-items: center; }
.between { justify-content: space-between; }
.gap-s { gap: 10px; }
.gap-m { gap: 18px; }
.gap-l { gap: 28px; }
.wrap-flex { flex-wrap: wrap; }
.center { text-align: center; }
.stack { display: flex; flex-direction: column; }

.divider-line { height: 1px; background: var(--line); border: none; margin: 0; }

/* Content is visible by default — no opacity-gated entrance, so nothing can
   freeze hidden in throttled render contexts. Hover/interaction transitions remain. */
.rise { opacity: 1; }

/* image-slot fallback styling */
image-slot {
  --is-bg: var(--sea-100);
  background: linear-gradient(160deg, var(--sea-200), var(--sand-150));
}
