/* ============================================================
   MODA CARAMELLO — base.css
   Design tokens, reset, typography, shared utilities
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Lora:ital,wght@0,400;0,500;0,600;1,400&family=Tajawal:wght@400;500;700;800&display=swap');

:root {
  /* Palette — from the Moda Caramello logo */
  --navy:        #1a3a5c;
  --navy-dark:   #0f2640;
  --navy-light:  #2a5580;
  --gold:        #c9a96e;
  --gold-dark:   #a8894f;
  --gold-light:  #e3cca3;
  --white:       #FFFFFF;
  --off-white:   #f8f7f4;
  --ink:         #1a1a1a;
  --ink-soft:    #6b6b6b;
  --line:        #e5e5e5;
  --success:     #28a745;
  --danger:      #dc3545;

  /* Typography */
  --font-display: 'Playfair Display', 'Tajawal', serif;
  --font-body:    'Lora', 'Tajawal', serif;
  --font-ar:      'Tajawal', sans-serif;

  /* Rhythm */
  --radius:    14px;
  --radius-sm: 8px;
  --shadow:    0 10px 30px rgba(26, 58, 92, 0.08);
  --shadow-lg: 0 24px 60px rgba(26, 58, 92, 0.14);
  --header-h:  76px;

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

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

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

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--ink);
  line-height: 1.7;
  font-size: 1rem;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.2;
  font-weight: 600;
  text-wrap: balance;
}

::selection { background: var(--gold); color: var(--white); }

/* Gold scrollbar */
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--off-white); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 8px; border: 3px solid var(--off-white); }

:focus-visible {
  outline: 2px solid var(--gold-dark);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Layout utilities ---------- */
.container {
  width: min(1160px, 92%);
  margin-inline: auto;
}

.section { padding-block: clamp(3.5rem, 7vw, 6.5rem); position: relative; }
.section--soft { background: var(--off-white); }
.section--navy { background: var(--navy); color: var(--white); }

.text-center { text-align: center; }

.gold { color: var(--gold-dark); }

/* ---------- Section title w/ flourish ---------- */
.sec-head { text-align: center; margin-bottom: clamp(2rem, 4vw, 3.5rem); }

.sec-head__eyebrow {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--gold);
  display: block;
  margin-bottom: .25rem;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.sec-head h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  color: var(--navy);
  letter-spacing: .02em;
}

.sec-head__rule {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  margin-top: .9rem;
}
.sec-head__rule::before,
.sec-head__rule::after {
  content: "";
  height: 1px;
  width: 46px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.sec-head__rule::after {
  background: linear-gradient(90deg, var(--gold), transparent);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .8rem 1.9rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .98rem;
  letter-spacing: .02em;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
  border: 1.5px solid transparent;
  white-space: nowrap;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }

.btn--navy {
  background: linear-gradient(135deg, var(--navy-light), var(--navy) 45%, var(--navy-dark));
  color: var(--white);
  box-shadow: 0 8px 22px rgba(15, 38, 64, .35);
}
.btn--navy:hover { box-shadow: 0 14px 30px rgba(15, 38, 64, .45); }

.btn--gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold) 45%, var(--gold-dark));
  color: var(--white);
  box-shadow: 0 8px 22px rgba(168, 137, 79, .35);
}
.btn--gold:hover { box-shadow: 0 14px 30px rgba(168, 137, 79, .45); }

.btn--ghost {
  background: transparent;
  border-color: var(--gold-dark);
  color: var(--gold-dark);
}
.btn--ghost:hover { background: var(--gold-dark); color: var(--white); }

.btn--danger {
  background: var(--danger);
  color: var(--white);
}

.btn svg { width: 1.05em; height: 1.05em; }

/* ---------- Hairline cards ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ---------- Reveal on scroll ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
