/* ============================================================
   BELLEZA BAKING STUDIO — MAIN CSS
   Design tokens · Typography · Layout · Global Utilities
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,900;1,400;1,600&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=Dancing+Script:wght@600;700&display=swap');

/* ─── DESIGN TOKENS ────────────────────────────────────────── */
:root {
  /* Colors */
  --cocoa-950:    #0D0604;
  --cocoa-900:    #1F110B;
  --cocoa-800:    #3A1F10;
  --cocoa-700:    #5C3217;
  --cocoa-600:    #7A4A24;
  --milk-500:     #A36830;
  --caramel-400:  #C68B59;
  --caramel-300:  #D4A574;
  --gold-500:     #D4AF37;
  --gold-400:     #E2C96A;
  --gold-300:     #F0E0A0;
  --cream-100:    #FFFDF9;
  --cream-200:    #FFF8EE;
  --cream-300:    #F5ECD8;
  --blush-400:    #E8B4B8;
  --blush-500:    #C9797E;
  --rose-600:     #A84F55;
  --sage-400:     #8AAF8A;

  /* Gradients */
  --grad-hero:      linear-gradient(135deg, var(--cocoa-900) 0%, var(--cocoa-800) 40%, #4A2A18 100%);
  --grad-caramel:   linear-gradient(135deg, var(--caramel-300), var(--gold-500));
  --grad-warm:      linear-gradient(180deg, var(--cream-100) 0%, var(--cream-200) 100%);
  --grad-dark:      linear-gradient(180deg, var(--cocoa-900) 0%, #160B05 100%);
  --grad-section:   linear-gradient(180deg, var(--cream-200) 0%, var(--cream-300) 100%);
  --grad-card-hover:linear-gradient(180deg, transparent 50%, rgba(31,17,11,0.85) 100%);

  /* Shadows */
  --shadow-sm:    0 2px 8px rgba(31,17,11,0.08);
  --shadow-md:    0 8px 24px rgba(31,17,11,0.12);
  --shadow-lg:    0 20px 48px rgba(31,17,11,0.18);
  --shadow-xl:    0 32px 80px rgba(31,17,11,0.25);
  --shadow-gold:  0 0 32px rgba(212,175,55,0.25);
  --shadow-glow:  0 0 60px rgba(212,175,55,0.15);

  /* Spacing */
  --space-xs:   4px;
  --space-sm:   8px;
  --space-md:   16px;
  --space-lg:   24px;
  --space-xl:   40px;
  --space-2xl:  64px;
  --space-3xl:  96px;

  /* Border Radius */
  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  32px;
  --radius-2xl: 48px;
  --radius-full:9999px;

  /* Typography */
  --font-serif:  'Playfair Display', Georgia, serif;
  --font-script: 'Dancing Script', cursive;
  --font-sans:   'Plus Jakarta Sans', system-ui, sans-serif;

  /* Transitions */
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-in:     cubic-bezier(0.4, 0, 1, 1);
  --ease-out:    cubic-bezier(0, 0, 0.2, 1);
  --t-fast:   150ms;
  --t-normal: 300ms;
  --t-slow:   500ms;
  --t-slower: 800ms;

  /* Z-index layers */
  --z-base:    1;
  --z-above:   10;
  --z-overlay: 100;
  --z-modal:   200;
  --z-nav:     300;
  --z-toast:   400;
}

/* ─── 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: var(--font-sans);
  background-color: var(--cream-100);
  color: var(--cocoa-900);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* ─── TYPOGRAPHY ────────────────────────────────────────────── */
.font-serif  { font-family: var(--font-serif); }
.font-script { font-family: var(--font-script); }
.font-sans   { font-family: var(--font-sans); }

h1, h2, h3 { font-family: var(--font-serif); line-height: 1.15; }
h4, h5, h6 { font-family: var(--font-sans); font-weight: 600; line-height: 1.3; }

.text-display {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.text-heading-1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
}
.text-heading-2 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 600;
  line-height: 1.2;
}
.text-heading-3 {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2vw, 1.75rem);
  font-weight: 600;
}
.text-script {
  font-family: var(--font-script);
  font-size: clamp(1.4rem, 3vw, 2.4rem);
}
.text-body   { font-size: 1rem; line-height: 1.7; }
.text-sm     { font-size: 0.875rem; line-height: 1.6; }
.text-xs     { font-size: 0.75rem; letter-spacing: 0.04em; }
.text-label  { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }

/* ─── COLORS ─────────────────────────────────────────────────── */
.text-cocoa    { color: var(--cocoa-900); }
.text-caramel  { color: var(--caramel-400); }
.text-gold     { color: var(--gold-500); }
.text-cream    { color: var(--cream-100); }
.text-blush    { color: var(--blush-500); }
.text-muted    { color: var(--cocoa-600); }

.bg-cocoa      { background-color: var(--cocoa-900); }
.bg-cream      { background-color: var(--cream-100); }
.bg-warm       { background: var(--grad-warm); }
.bg-dark       { background: var(--grad-dark); }

/* ─── LAYOUT ─────────────────────────────────────────────────── */
.container {
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 64px);
}
.container--narrow { max-width: 900px; }
.container--wide   { max-width: 1440px; }

.section { padding-block: var(--space-3xl); }
.section--lg { padding-block: 120px; }

.grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: var(--space-lg);
}
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-lg); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-lg); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-lg); }

.flex        { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between{ display: flex; align-items: center; justify-content: space-between; }
.flex-col    { display: flex; flex-direction: column; }
.gap-xs  { gap: var(--space-xs); }
.gap-sm  { gap: var(--space-sm); }
.gap-md  { gap: var(--space-md); }
.gap-lg  { gap: var(--space-lg); }
.gap-xl  { gap: var(--space-xl); }

/* ─── SECTION HEADERS ─────────────────────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}
.section-header .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--caramel-400);
  margin-bottom: var(--space-md);
}
.section-header .eyebrow::before,
.section-header .eyebrow::after {
  content: '';
  width: 32px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}
.section-header h2 { margin-bottom: var(--space-md); }
.section-header p {
  font-size: 1.1rem;
  color: var(--cocoa-600);
  max-width: 600px;
  margin-inline: auto;
  line-height: 1.7;
}

/* ─── DIVIDERS ───────────────────────────────────────────────── */
.divider {
  width: 60px;
  height: 3px;
  background: var(--grad-caramel);
  border-radius: var(--radius-full);
  margin-inline: auto;
  margin-block: var(--space-lg);
}
.divider--left { margin-inline: 0; }

/* ─── ANIMATIONS ─────────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-12px); }
}
@keyframes pulse-gold {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212,175,55, 0.4); }
  50%       { box-shadow: 0 0 0 12px rgba(212,175,55, 0); }
}
@keyframes rotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.animate-fadeInUp  { animation: fadeInUp var(--t-slow) var(--ease-out) both; }
.animate-fadeIn    { animation: fadeIn var(--t-normal) var(--ease-out) both; }
.animate-scaleIn   { animation: scaleIn var(--t-slow) var(--ease-spring) both; }
.animate-float     { animation: float 4s ease-in-out infinite; }
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }
.delay-600 { animation-delay: 0.6s; }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--t-slow) var(--ease-out), transform var(--t-slow) var(--ease-out);
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ─── SCROLLBAR ──────────────────────────────────────────────── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--cream-200); }
::-webkit-scrollbar-thumb { background: var(--caramel-400); border-radius: var(--radius-full); }
::-webkit-scrollbar-thumb:hover { background: var(--cocoa-700); }

/* ─── SELECTION ──────────────────────────────────────────────── */
::selection { background: var(--gold-400); color: var(--cocoa-900); }

/* ─── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding-block: var(--space-2xl); }
  .section--lg { padding-block: var(--space-2xl); }
}
@media (max-width: 480px) {
  .container { padding-inline: var(--space-md); }
}
