/* ==========================================================
   SOL SALON — BASE.CSS
   Design Tokens | Reset | Typography | Utilities
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&family=Montserrat:wght@300;400;500;600&display=swap');

/* ----------------------------------------------------------
   CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   ---------------------------------------------------------- */
:root {
  /* Color Palette */
  --cream:         #FAF8F4;
  --warm-white:    #FFFEF9;
  --sand:          #E8DDD0;
  --sand-light:    #F0EBE3;
  --taupe:         #BFB0A0;
  --taupe-mid:     #A89888;
  --oak:           #C9A882;
  --oak-dark:      #B38F68;
  --matte-black:   #1A1A1A;
  --charcoal:      #3D3832;
  --body-text:     #5C5248;
  --light-text:    #8A7E74;
  --gold-soft:     #D4A96A;
  --white:         #FFFFFF;

  /* Typography */
  --font-serif:    'Cormorant Garamond', Georgia, serif;
  --font-sans:     'Montserrat', 'Helvetica Neue', sans-serif;

  /* Font Sizes */
  --fs-xxl:        clamp(3.5rem, 7vw, 6.5rem);
  --fs-xl:         clamp(2.8rem, 5vw, 4.5rem);
  --fs-lg:         clamp(2rem, 3.5vw, 3rem);
  --fs-md:         clamp(1.5rem, 2.5vw, 2rem);
  --fs-sm:         1.125rem;
  --fs-xs:         0.875rem;
  --fs-body:       1rem;

  /* Spacing */
  --section-py:    clamp(80px, 10vw, 140px);
  --section-px:    clamp(24px, 6vw, 80px);
  --container-max: 1280px;
  --gap-lg:        80px;
  --gap-md:        48px;
  --gap-sm:        24px;

  /* Borders */
  --border-thin:   1px solid var(--sand);
  --border-mid:    1px solid var(--taupe);
  --radius-sm:     2px;
  --radius-md:     4px;

  /* Shadows */
  --shadow-soft:   0 4px 40px rgba(50, 40, 30, 0.06);
  --shadow-card:   0 2px 20px rgba(50, 40, 30, 0.08);
  --shadow-hover:  0 8px 40px rgba(50, 40, 30, 0.12);

  /* Transitions */
  --transition:    all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-fast: all 0.2s ease;

  /* Nav height */
  --nav-height:    80px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--body-text);
  background-color: var(--cream);
  overflow-x: hidden;
}

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

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

ul, ol {
  list-style: none;
}

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

input, textarea, select {
  font-family: var(--font-sans);
}

/* ----------------------------------------------------------
   TYPOGRAPHY SCALE
   ---------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.15;
  color: var(--charcoal);
  letter-spacing: 0.01em;
}

h1 { font-size: var(--fs-xxl); }
h2 { font-size: var(--fs-xl); }
h3 { font-size: var(--fs-lg); }
h4 { font-size: var(--fs-md); }
h5 { font-size: var(--fs-sm); font-family: var(--font-sans); font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; }
h6 { font-size: var(--fs-xs); font-family: var(--font-sans); font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase; }

p {
  line-height: 1.8;
  color: var(--body-text);
}

/* ----------------------------------------------------------
   LAYOUT UTILITIES
   ---------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--section-px);
}

.section {
  padding: var(--section-py) 0;
}

.section--sand {
  background-color: var(--sand-light);
}

.section--dark {
  background-color: var(--charcoal);
  color: var(--cream);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--cream);
}

.section--dark p {
  color: var(--sand);
}

/* Flex helpers */
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }

/* Grid helpers */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap-md); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap-sm); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap-sm); }

/* Text utilities */
.text-center { text-align: center; }
.text-serif { font-family: var(--font-serif); }
.eyebrow {
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--oak);
  display: block;
  margin-bottom: 16px;
}

.section-title {
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: var(--fs-sm);
  color: var(--body-text);
  max-width: 580px;
  line-height: 1.8;
}

.section-subtitle--centered {
  margin: 0 auto;
}

.divider {
  width: 48px;
  height: 1px;
  background: var(--oak);
  margin: 28px 0;
}

.divider--centered {
  margin: 28px auto;
}

/* ----------------------------------------------------------
   ANIMATIONS
   ---------------------------------------------------------- */
.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in {
  opacity: 0;
  transition: opacity 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
}

/* Stagger children */
.stagger > *:nth-child(1) { transition-delay: 0s; }
.stagger > *:nth-child(2) { transition-delay: 0.1s; }
.stagger > *:nth-child(3) { transition-delay: 0.2s; }
.stagger > *:nth-child(4) { transition-delay: 0.3s; }
.stagger > *:nth-child(5) { transition-delay: 0.4s; }

/* ----------------------------------------------------------
   RESPONSIVE BREAKPOINTS
   ---------------------------------------------------------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --nav-height: 68px; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .hide-mobile { display: none !important; }
}

@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
}
