/* ============================================================
   MARI'S NAILS — Design System
   Brand: Elegant, Feminine, Sophisticated, Luxurious
   ============================================================ */

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

/* ---- CSS Custom Properties ------------------------------- */
:root {
  /* Brand Colors */
  --color-blush:      #F6E6E8;
  --color-ivory:      #FAF8F5;
  --color-gold:       #C6A77D;
  --color-gold-light: #DFC49A;
  --color-gold-dark:  #A88B63;
  --color-nude:       #E8D8CE;
  --color-charcoal:   #302C2B;
  --color-charcoal-80:#504A49;
  --color-charcoal-50:#989090;
  --color-white:      #FFFFFF;
  --color-rose:       #D4A0A8;
  --color-deep-rose:  #B07880;

  /* Backgrounds */
  --bg-primary:   var(--color-ivory);
  --bg-accent:    var(--color-blush);
  --bg-dark:      var(--color-charcoal);
  --bg-card:      var(--color-white);

  /* Text */
  --text-primary:  var(--color-charcoal);
  --text-secondary:var(--color-charcoal-80);
  --text-muted:    var(--color-charcoal-50);
  --text-light:    var(--color-white);
  --text-gold:     var(--color-gold);

  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Manrope', system-ui, sans-serif;

  /* Font Sizes — fluid */
  --fs-xs:   clamp(0.7rem,  1.5vw, 0.75rem);
  --fs-sm:   clamp(0.8rem,  1.8vw, 0.875rem);
  --fs-base: clamp(0.9rem,  2vw,   1rem);
  --fs-md:   clamp(1rem,    2.2vw, 1.125rem);
  --fs-lg:   clamp(1.1rem,  2.5vw, 1.25rem);
  --fs-xl:   clamp(1.3rem,  3vw,   1.5rem);
  --fs-2xl:  clamp(1.6rem,  4vw,   2rem);
  --fs-3xl:  clamp(2rem,    5vw,   2.75rem);
  --fs-4xl:  clamp(2.5rem,  6vw,   3.75rem);
  --fs-5xl:  clamp(3rem,    8vw,   5rem);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10:2.5rem;
  --space-12:3rem;
  --space-16:4rem;
  --space-20:5rem;
  --space-24:6rem;
  --space-32:8rem;

  /* Borders */
  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --radius-full:9999px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(48,44,43,.08);
  --shadow-md:  0 4px 20px rgba(48,44,43,.10);
  --shadow-lg:  0 12px 40px rgba(48,44,43,.14);
  --shadow-xl:  0 24px 64px rgba(48,44,43,.18);
  --shadow-gold:0 8px 32px rgba(198,167,125,.25);

  /* Transitions */
  --transition-fast:   0.15s ease;
  --transition-base:   0.3s ease;
  --transition-slow:   0.6s ease;

  /* Layout */
  --container-max:   1200px;
  --container-wide:  1400px;
  --nav-height:      80px;

  /* Gold gradient */
  --gradient-gold: linear-gradient(135deg, #DFC49A 0%, #C6A77D 50%, #A88B63 100%);
  --gradient-blush: linear-gradient(135deg, #FAF8F5 0%, #F6E6E8 100%);
  --gradient-dark:  linear-gradient(135deg, #302C2B 0%, #504A49 100%);
}

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

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

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  color: var(--text-primary);
  background: var(--bg-primary);
  line-height: 1.7;
  overflow-x: hidden;
}

img, video { max-width: 100%; display: block; }

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

ul, ol { list-style: none; }

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

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* ---- Typography ------------------------------------------ */
.font-display { font-family: var(--font-display); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  color: var(--text-primary);
}

h1 { font-size: var(--fs-5xl); }
h2 { font-size: var(--fs-4xl); }
h3 { font-size: var(--fs-3xl); }
h4 { font-size: var(--fs-2xl); }
h5 { font-size: var(--fs-xl); font-family: var(--font-body); font-weight: 600; }
h6 { font-size: var(--fs-lg); font-family: var(--font-body); font-weight: 600; }

.text-italic { font-style: italic; }
.text-gold    { color: var(--color-gold); }
.text-muted   { color: var(--text-muted); }
.text-center  { text-align: center; }
.text-light   { color: var(--text-light); }

/* ---- Layout Utilities ------------------------------------ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.container--wide {
  max-width: var(--container-wide);
  padding-inline: var(--space-6);
}

.section {
  padding-block: var(--space-24);
}

.section--sm { padding-block: var(--space-16); }
.section--lg { padding-block: var(--space-32); }

.section--blush    { background: var(--bg-accent); }
.section--dark     { background: var(--bg-dark); color: var(--text-light); }
.section--charcoal { background: var(--color-charcoal-80); color: var(--text-light); }

/* ---- Section Headers ------------------------------------- */
.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-4);
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--fs-4xl);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: var(--space-5);
}

.section-subtitle {
  font-size: var(--fs-md);
  color: var(--text-secondary);
  max-width: 56ch;
  line-height: 1.75;
}

.section-header {
  margin-bottom: var(--space-16);
}

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

.section-header--center .section-subtitle {
  margin-inline: auto;
}

/* ---- Buttons --------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.875rem 2rem;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all var(--transition-base);
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
  text-decoration: none;
}

.btn--primary {
  background: var(--gradient-gold);
  color: var(--color-white);
  border-color: transparent;
  box-shadow: var(--shadow-gold);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(198,167,125,.4);
}

.btn--outline {
  background: transparent;
  color: var(--color-charcoal);
  border-color: var(--color-charcoal);
}

.btn--outline:hover {
  background: var(--color-charcoal);
  color: var(--color-white);
  transform: translateY(-2px);
}

.btn--outline-light {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255,255,255,0.5);
}

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

.btn--outline-gold {
  background: transparent;
  color: var(--color-gold);
  border-color: var(--color-gold);
}

.btn--outline-gold:hover {
  background: var(--gradient-gold);
  color: var(--color-white);
  transform: translateY(-2px);
}

.btn--sm {
  padding: 0.6rem 1.4rem;
  font-size: var(--fs-xs);
}

.btn--lg {
  padding: 1.1rem 2.5rem;
  font-size: var(--fs-base);
}

/* ---- Cards ----------------------------------------------- */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* ---- Gold Divider ---------------------------------------- */
.gold-divider {
  width: 60px;
  height: 2px;
  background: var(--gradient-gold);
  margin: var(--space-5) 0;
}

.gold-divider--center { margin-inline: auto; }

/* ---- Badge ----------------------------------------------- */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.badge--gold { background: var(--color-blush); color: var(--color-gold-dark); }
.badge--blush { background: var(--color-blush); color: var(--color-deep-rose); }

/* ---- Grid Helpers ---------------------------------------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-8); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-8); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6); }

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

@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .container { padding-inline: var(--space-4); }
  .section { padding-block: var(--space-16); }
  .section-title { font-size: var(--fs-3xl); }
}

/* ---- Animations ------------------------------------------ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

.animate-fade-up {
  animation: fadeUp 0.8s ease both;
}

.animate-fade-in {
  animation: fadeIn 0.6s ease both;
}

[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* delay helpers */
[data-delay="100"] { transition-delay: 0.1s; }
[data-delay="200"] { transition-delay: 0.2s; }
[data-delay="300"] { transition-delay: 0.3s; }
[data-delay="400"] { transition-delay: 0.4s; }
[data-delay="500"] { transition-delay: 0.5s; }
[data-delay="600"] { transition-delay: 0.6s; }

/* ---- Reduced Motion -------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ---- Focus Visible --------------------------------------- */
:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
}

/* ---- Scrollbar ------------------------------------------- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--color-nude); border-radius: var(--radius-full); }
::-webkit-scrollbar-thumb:hover { background: var(--color-gold); }
