/* =========================================================
   SOBHI GROUP — Design System
   Warm, neutral, editorial luxury
   ========================================================= */

:root {
  /* Palette — warm neutrals, no harsh black, no navy/red */
  --cream: #F5F1EA;          /* primary background */
  --ivory: #FAF7F1;          /* secondary background (lightest) */
  --sand:  #EBE4D8;          /* tonal break / footer */
  --bronze: #B8956A;         /* single accent — muted champagne */
  --bronze-soft: #C9AC86;    /* lighter bronze for subtle states */
  --bronze-deep: #95764F;    /* hover / pressed */
  --charcoal: #2A2724;       /* primary text — warm dark, not black */
  --charcoal-soft: #3D3833;  /* secondary text — darkened from #4A4540 for readability on cream */
  --charcoal-mute: #5C554E;  /* muted but still readable on cream/ivory */
  --grey: #6F665E;           /* darkened from #8A8580 — still tertiary but legible */
  --line: rgba(42, 39, 36, 0.16);
  --line-light: rgba(245, 241, 234, 0.18);

  /* Dark sections — warm, not black */
  --dark: #1F1C18;           /* warm near-black for hero overlays only */
  --dark-text: #EFE9DD;

  /* Type scale */
  --f-display: 'Cormorant Garamond', 'Tenor Sans', Georgia, serif;
  --f-heading: 'Tenor Sans', Georgia, serif;
  --f-body: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --pad-section: 120px;
  --pad-section-mobile: 72px;
  --max-content: 1440px;
  --max-text: 720px;

  /* Motion */
  --ease: cubic-bezier(0.6, 0.05, 0.2, 1);
  --ease-soft: cubic-bezier(0.4, 0.0, 0.2, 1);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  font-family: var(--f-body);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.75;
  color: var(--charcoal);
  background: var(--cream);
  /* Use overflow-x:clip instead of hidden so we don't break
     position:sticky descendants (hidden implicitly forces overflow-y:auto,
     which makes body a scroll container and disables sticky). */
  overflow-x: clip;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: opacity 0.3s var(--ease), color 0.3s var(--ease); }
button { font: inherit; background: none; border: none; cursor: pointer; color: inherit; }

/* ========== Typography ========== */
h1, h2, h3, h4, h5 {
  font-family: var(--f-heading);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  line-height: 1.15;
  color: var(--charcoal);
}

.display {
  font-family: var(--f-display);
  font-weight: 300;
  text-transform: none;
  letter-spacing: 0.01em;
  font-style: italic;
}

.eyebrow {
  font-family: var(--f-heading);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  color: var(--bronze);
  font-weight: 400;
}

.h-hero  { font-size: clamp(34px, 5.2vw, 68px); letter-spacing: 0.1em; }
.h-1     { font-size: clamp(26px, 3.2vw, 42px); }
.h-2     { font-size: clamp(22px, 2.4vw, 32px); }
.h-3     { font-size: clamp(16px, 1.6vw, 20px); letter-spacing: 0.18em; }

p { font-weight: 400; max-width: 64ch; color: var(--charcoal-soft); }
.lead { font-size: 16px; line-height: 1.85; color: var(--charcoal-soft); font-weight: 400; }

/* ========== Layout helpers ========== */
.section { padding: var(--pad-section) 6vw; position: relative; }
.section-tight { padding: 80px 6vw; }
.container { max-width: var(--max-content); margin: 0 auto; }
.container-text { max-width: var(--max-text); margin: 0 auto; }
.center { text-align: center; }
.full-bleed { width: 100vw; margin-left: calc(-50vw + 50%); }

/* Section dividers */
.divider {
  width: 60px;
  height: 1px;
  background: var(--bronze);
  margin: 32px auto;
}

/* Ornamental divider — diamond between two lines (subtle accent) */
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 28px auto;
  opacity: 0.85;
}
.ornament::before, .ornament::after {
  content: '';
  width: 48px;
  height: 1px;
  background: var(--bronze);
  opacity: 0.55;
}
.ornament-dot {
  width: 6px; height: 6px;
  background: var(--bronze);
  transform: rotate(45deg);
  opacity: 0.85;
}
.on-dark .ornament::before, .on-dark .ornament::after { background: var(--bronze-soft); }
.on-dark .ornament-dot { background: var(--bronze-soft); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 16px 38px;
  font-family: var(--f-heading);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  border-radius: 999px;
  background: var(--bronze);
  color: var(--ivory);
  transition: background 0.4s var(--ease), transform 0.4s var(--ease);
}
.btn:hover { background: var(--bronze-deep); transform: translateY(-2px); }

.btn-ghost {
  background: transparent;
  color: var(--charcoal);
  border: 1px solid var(--charcoal);
}
.btn-ghost:hover { background: var(--charcoal); color: var(--ivory); transform: translateY(-2px); }

.link-underline {
  font-family: var(--f-heading);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--charcoal);
}

/* Dark variants */
.on-dark { background: var(--dark); color: var(--dark-text); }
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4 { color: var(--dark-text); }
.on-dark .btn-ghost { color: var(--dark-text); border-color: var(--dark-text); }
.on-dark .btn-ghost:hover { background: var(--dark-text); color: var(--dark); }

/* ========== Reveal animations ========== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

.reveal-up { opacity: 0; transform: translateY(40px); transition: opacity 1.2s var(--ease), transform 1.2s var(--ease); }
.reveal-up.is-visible { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-30px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.reveal-left.is-visible { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(30px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.reveal-right.is-visible { opacity: 1; transform: translateX(0); }

/* Parallax containers */
.parallax {
  position: relative;
  overflow: hidden;
}
.parallax-bg {
  position: absolute;
  inset: -10% 0;
  width: 100%;
  height: 120%;
  background-size: cover;
  background-position: center;
  will-change: transform;
}

/* Image hover slow-zoom helper */
.img-zoom { overflow: hidden; }
.img-zoom > * { transition: transform 1.4s var(--ease); }
.img-zoom:hover > * { transform: scale(1.05); }

/* Page intro fade */
@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }
main { animation: pageIn 0.9s var(--ease) both; }

/* Floating ornament that slowly drifts */
@keyframes drift { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.float-slow { animation: drift 6s ease-in-out infinite; }

/* ========== Mobile ========== */
@media (max-width: 768px) {
  :root { --pad-section: 72px; }
  .section { padding: var(--pad-section-mobile) 24px; }
  body { font-size: 14px; }
  .btn { padding: 14px 30px; font-size: 10px; }
  .h-hero { font-size: clamp(28px, 8vw, 44px); }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .parallax-bg { transform: none !important; }
}
