/* ═══════════════════════════════════════════════════
   RIVIERA PALACE RESIDENCE — main.css
   Variabili, Reset, Tipografia, Layout base
════════════════════════════════════════════════════ */

/* ── Design Tokens ─────────────────────────────── */
:root {
  --navy:       #0f2340;
  --navy2:      #1b3a5c;
  --gold:       #c9a84c;
  --gold2:      #e8c97a;
  --cream:      #faf7f2;
  --sand:       #f0e8d8;
  --white:      #ffffff;
  --text:       #2c2c2c;
  --muted:      #7a7a7a;
  --serif:      'Cormorant Garamond', serif;
  --sans:       'Jost', sans-serif;
  --transition: cubic-bezier(0.4, 0, 0.2, 1);

  --container:  1200px;
  --section-v:  120px;
}

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

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

body {
  font-family: var(--sans);
  font-weight: 300;
  color: var(--text);
  background-color: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: var(--sans);
}

/* ── Container ─────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 48px;
}

/* ── Tipografia base ───────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--serif);
  font-weight: 300;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  color: var(--white);
  letter-spacing: -0.01em;
}

h1 em {
  font-style: italic;
  color: var(--gold2);
}

h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  color: var(--navy);
  letter-spacing: -0.01em;
}

h2 em {
  font-style: italic;
  color: var(--gold);
}

h2.white-text {
  color: var(--white);
}

h2.white-text em {
  color: var(--gold2);
}

h3 {
  font-size: 1.5rem;
  color: var(--navy);
}

h4 {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--white);
  font-weight: 400;
  margin-bottom: 8px;
}

p {
  font-family: var(--sans);
  font-weight: 300;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
}

/* ── Eyebrow ───────────────────────────────────── */
.eyebrow {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  display: block;
}

.gold2-text {
  color: var(--gold2) !important;
}

.white-text {
  color: var(--white);
}

/* ── Gold Line ─────────────────────────────────── */
.gold-line {
  width: 56px;
  height: 1px;
  background: var(--gold);
  margin-bottom: 28px;
}

/* ── Buttons ───────────────────────────────────── */
.btn-primary {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 16px 36px;
  transition: background 0.3s var(--transition),
              transform 0.3s var(--transition),
              box-shadow 0.3s var(--transition);
  white-space: nowrap;
}

.btn-primary:hover {
  background: var(--gold2);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(201, 168, 76, 0.35);
}

.btn-outline {
  display: inline-block;
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 15px 36px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  transition: all 0.3s var(--transition);
  white-space: nowrap;
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

/* ── Section Header ────────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header .gold-line {
  margin: 0 auto 28px;
}

.section-sub {
  max-width: 540px;
  margin: 0 auto;
  margin-top: 20px;
  font-size: 1.05rem;
}

/* ── Section spacing ───────────────────────────── */
section {
  padding: var(--section-v) 0;
}

/* ── Smooth scroll arrow ───────────────────────── */
.hero-scroll {
  position: absolute;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
}

.scroll-arrow {
  width: 24px;
  height: 24px;
  border-right: 1.5px solid rgba(255,255,255,0.6);
  border-bottom: 1.5px solid rgba(255,255,255,0.6);
  transform: rotate(45deg);
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: rotate(45deg) translateY(0); opacity: 0.6; }
  50%       { transform: rotate(45deg) translateY(8px); opacity: 1; }
}

/* ── Responsive ────────────────────────────────── */
@media (max-width: 768px) {
  :root {
    --section-v: 80px;
  }

  .container {
    padding: 0 24px;
  }

  section {
    padding: 80px 0;
  }
}
