/*
Theme Name: Style Sunshine Olena
Theme URI: https://stylesunshineolena.com.ua
Description: Luxury black single-page theme for stylist
Version: 1.0
Author: Style Sunshine Olena
Author URI: https://stylesunshineolena.com.ua
Text Domain: stylesunshineolena
*/

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

/* ============================================
   CSS VARIABLES — DESIGN SYSTEM
   ============================================ */

:root {
  /* Backgrounds */
  --bg-void:     #050404;
  --bg-deep:     #0A0908;
  --bg-dark:     #111009;
  --bg-surface:  #1A1714;
  --bg-elevated: #221F1B;
  --bg-card:     #2A2622;

  /* Gold */
  --gold-bright: #E8C96A;
  --gold:        #C9A84C;
  --gold-muted:  #A8873C;
  --gold-dim:    #7A5F28;
  --gold-line:   rgba(201,168,76,0.25);
  --gold-glow:   rgba(201,168,76,0.12);

  /* Ivory / Cream */
  --ivory:       #F5F0E8;
  --ivory-warm:  #EDE6D6;
  --ivory-muted: #C8BFA8;
  --ivory-dim:   #8A8070;

  /* Typography */
  --font-heading: 'Cormorant', Georgia, serif;
  --font-body:    'Montserrat', Arial, sans-serif;

  /* Font scale */
  --fs-xs:   0.75rem;   /* 12px */
  --fs-sm:   0.875rem;  /* 14px */
  --fs-base: 1rem;      /* 16px */
  --fs-md:   1.125rem;  /* 18px */
  --fs-lg:   1.375rem;  /* 22px */
  --fs-xl:   1.75rem;   /* 28px */
  --fs-2xl:  2.25rem;   /* 36px */
  --fs-3xl:  3rem;      /* 48px */
  --fs-4xl:  4rem;      /* 64px */
  --fs-5xl:  5.5rem;    /* 88px */

  /* Spacing */
  --sp-xs:  0.5rem;  /* 8px  */
  --sp-sm:  1rem;    /* 16px */
  --sp-md:  1.5rem;  /* 24px */
  --sp-lg:  2.5rem;  /* 40px */
  --sp-xl:  4rem;    /* 64px */
  --sp-2xl: 6rem;    /* 96px */
  --sp-3xl: 9rem;    /* 144px */

  /* Transitions */
  --ease:    cubic-bezier(0.25,0.46,0.45,0.94);
  --t-micro: 150ms;
  --t-std:   300ms;
  --t-slow:  600ms;

  /* Z-index */
  --z-deco:         1;
  --z-card:         2;
  --z-mobile-menu:  99;
  --z-nav:          100;
  --z-lightbox:     200;
  --z-modal:        300;
}

/* ============================================
   RESET & BASE
   ============================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.7;
  color: var(--ivory);
  background-color: var(--bg-deep);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul, ol {
  list-style: none;
}

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

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: var(--ivory);
}

h1 { font-size: var(--fs-5xl); font-weight: 300; }
h2 { font-size: var(--fs-4xl); font-weight: 400; }
h3 { font-size: var(--fs-2xl); font-weight: 400; }
h4 { font-size: var(--fs-xl);  font-weight: 400; }
h5 { font-size: var(--fs-lg);  font-weight: 400; }

p {
  font-size: var(--fs-base);
  line-height: 1.7;
  color: var(--ivory-muted);
  max-width: 65ch;
}

blockquote {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: clamp(1.375rem, 2.5vw, 2.25rem);
  line-height: 1.5;
  color: var(--ivory-warm);
}

/* ============================================
   LABEL / OVERLINE
   ============================================ */

.label {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
}

/* ============================================
   CONTAINERS
   ============================================ */

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

.container--mid {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 40px;
}

.container--sm {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 40px;
}

.section {
  padding: var(--sp-3xl) 0;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 1rem 2.5rem;
  border-radius: 2px;
  transition: all var(--t-std) var(--ease);
  cursor: pointer;
  white-space: nowrap;
  min-height: 44px;
}

.btn--primary {
  background: var(--gold);
  color: var(--bg-deep);
  border: 1px solid var(--gold);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--gold-bright);
  border-color: var(--gold-bright);
  box-shadow: 0 8px 32px rgba(201,168,76,0.3);
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  color: var(--ivory);
  border: 1px solid rgba(245,240,232,0.3);
}

.btn--outline:hover,
.btn--outline:focus-visible {
  border-color: var(--gold);
  color: var(--gold);
}

.btn--ghost {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold-line);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  background: var(--gold-glow);
  border-color: var(--gold);
}

.btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ============================================
   GOLD LINE DECORATOR
   ============================================ */

.gold-line {
  display: block;
  width: 60px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}

.gold-line--center {
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   SECTION HEADER
   ============================================ */

.section-header {
  margin-bottom: var(--sp-xl);
}

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

.section-header--center .gold-line {
  margin: var(--sp-sm) auto 0;
}

.section-header .label {
  margin-bottom: var(--sp-sm);
}

.section-header h2 {
  margin-bottom: var(--sp-xs);
}

.section-header > p {
  margin-top: var(--sp-sm);
}

/* ============================================
   SCROLL REVEAL
   ============================================ */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease);
}

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

/* ============================================
   IMAGE PLACEHOLDER
   ============================================ */

.img-placeholder {
  background: var(--bg-surface);
  border: 1px solid var(--gold-line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ivory-dim);
  font-size: var(--fs-sm);
  font-family: var(--font-body);
  letter-spacing: 0.1em;
  text-align: center;
  padding: var(--sp-md);
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ============================================
   RESPONSIVE BASE
   ============================================ */

@media (max-width: 1024px) {
  .section { padding: 80px 0; }
  .container,
  .container--mid,
  .container--sm { padding: 0 24px; }
}

@media (max-width: 768px) {
  .section { padding: 56px 0; }
  .container,
  .container--mid,
  .container--sm { padding: 0 16px; }
  h1 { font-size: clamp(2.5rem, 10vw, 5.5rem); }
  h2 { font-size: var(--fs-3xl); }
  p  { max-width: 100%; }
}

/* ============================================
   PREFERS REDUCED MOTION
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
