/* ============================================================
   SAND BEACH RESTAURANT — Global Styles
   Design System: Modern Coastal Luxury
   ============================================================ */

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

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

body {
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  color: var(--color-text);
  background-color: var(--color-cream);
  overflow-x: hidden;
  line-height: 1.7;
}

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

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

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* ── Design Tokens ── */
:root {
  /* Colors — derived from real photography */
  --color-cream:        #FAF7F2;
  --color-sand:         #E8D9BC;
  --color-sand-light:   #F2EAD8;
  --color-ocean:        #3A7CA5;
  --color-ocean-deep:   #1B4F72;
  --color-ocean-light:  #A8D1E7;
  --color-palm:         #5A7A4A;
  --color-palm-light:   #8FAF7A;
  --color-wood:         #8B5E3C;
  --color-wood-light:   #C4956A;
  --color-sunset:       #D4724A;
  --color-sunset-warm:  #E8A265;
  --color-white:        #FFFFFF;
  --color-text:         #2C2416;
  --color-text-light:   #6B5B4E;
  --color-text-muted:   #9C8B7E;

  /* Typography */
  --font-serif:   'Cormorant Garamond', Georgia, serif;
  --font-sans:    'DM Sans', system-ui, sans-serif;

  /* Spacing scale */
  --space-xs:   0.5rem;
  --space-sm:   1rem;
  --space-md:   1.5rem;
  --space-lg:   2.5rem;
  --space-xl:   4rem;
  --space-2xl:  6rem;
  --space-3xl:  9rem;

  /* Border radius */
  --radius-sm:  0.5rem;
  --radius-md:  1rem;
  --radius-lg:  2rem;
  --radius-xl:  3rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm:  0 2px 12px rgba(44, 36, 22, 0.06);
  --shadow-md:  0 8px 32px rgba(44, 36, 22, 0.10);
  --shadow-lg:  0 20px 60px rgba(44, 36, 22, 0.14);
  --shadow-glow: 0 0 40px rgba(212, 114, 74, 0.15);

  /* Transitions */
  --transition-fast:   0.2s ease;
  --transition-base:   0.4s ease;
  --transition-slow:   0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);

  /* Z-index scale */
  --z-base:    1;
  --z-above:   10;
  --z-nav:     100;
  --z-modal:   200;
  --z-top:     300;

  /* Max widths */
  --max-width:       1320px;
  --max-width-narrow: 860px;
  --max-width-wide:  1560px;
}

/* ── Typography Scale ── */
.heading-display {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(3rem, 7vw, 7rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.heading-xl {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.2rem, 4.5vw, 4.5rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.heading-lg {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.2;
}

.heading-md {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.4rem, 2.2vw, 2.2rem);
  line-height: 1.3;
}

.heading-sm {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.1rem, 1.6vw, 1.5rem);
  line-height: 1.35;
}

.body-lg {
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  font-weight: 300;
  line-height: 1.8;
}

.body-base {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.7;
}

.label {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ── Utility Classes ── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: clamp(1.5rem, 5vw, 4rem);
}

.container--narrow {
  max-width: var(--max-width-narrow);
}

.section-pad {
  padding-block: clamp(4rem, 8vw, 8rem);
}

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

.color-ocean   { color: var(--color-ocean); }
.color-sunset  { color: var(--color-sunset); }
.color-sand    { color: var(--color-sand); }
.color-wood    { color: var(--color-wood); }
.color-muted   { color: var(--color-text-muted); }

.bg-cream      { background-color: var(--color-cream); }
.bg-sand       { background-color: var(--color-sand-light); }
.bg-ocean      { background-color: var(--color-ocean); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.btn--primary {
  background: var(--color-sunset);
  color: var(--color-white);
  box-shadow: 0 4px 20px rgba(212, 114, 74, 0.35);
}

.btn--primary:hover {
  background: var(--color-wood);
  box-shadow: 0 8px 28px rgba(139, 94, 60, 0.4);
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  color: var(--color-white);
  border: 1.5px solid rgba(255,255,255,0.6);
  backdrop-filter: blur(8px);
}

.btn--outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--color-white);
  transform: translateY(-2px);
}

.btn--outline-dark {
  background: transparent;
  color: var(--color-text);
  border: 1.5px solid var(--color-text);
}

.btn--outline-dark:hover {
  background: var(--color-text);
  color: var(--color-cream);
  transform: translateY(-2px);
}

/* ── Section Label ── */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: var(--space-md);
}

.section-eyebrow::before,
.section-eyebrow::after {
  content: '';
  display: block;
  width: 2rem;
  height: 1px;
  background: currentColor;
  opacity: 0.4;
}

/* ── Image Utilities ── */
.img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.img-rounded {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* ── Glassmorphism ── */
.glass {
  background: rgba(250, 247, 242, 0.15);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── Divider ── */
.divider {
  width: 4rem;
  height: 2px;
  background: linear-gradient(90deg, var(--color-sunset), var(--color-sand));
  border-radius: var(--radius-full);
  margin: var(--space-md) auto;
}

.divider--left { margin-inline-start: 0; }

/* ── Organic shape overlay ── */
.wave-top,
.wave-bottom {
  position: absolute;
  left: 0;
  right: 0;
  height: 80px;
  overflow: hidden;
  pointer-events: none;
}

.wave-top  { top: -1px; }
.wave-bottom { bottom: -1px; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--color-cream); }
::-webkit-scrollbar-thumb {
  background: var(--color-sand);
  border-radius: var(--radius-full);
}

/* ── Selection ── */
::selection {
  background: var(--color-sunset);
  color: var(--color-white);
}

/* ── Focus visible ── */
:focus-visible {
  outline: 2px solid var(--color-ocean);
  outline-offset: 3px;
  border-radius: 2px;
}
