/* ============================================================
   WitchArts.in — LUXURY SALON DESIGN SYSTEM
   main.css | Design Tokens, Typography, Base Styles, Utilities
   ============================================================ */

/* ---- Google Fonts Import ---- */
@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=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');

/* Accessibility Skip Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  background: var(--color-gold);
  color: #000000;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: bold;
  z-index: 10000;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 20px;
}

/* Scroll margin offset for sticky header */
section[id],
div[id] {
  scroll-margin-top: 90px;
}

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

/* ============================================================
   DESIGN TOKENS — CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  /* Primary Colors */
  --color-black:        #0a0a0a;
  --color-white:        #ffffff;
  --color-gold:         #c9a84c;
  --color-gold-light:   #e8c97a;
  --color-gold-dark:    #8b6914;
  --color-gold-pale:    #f5edd8;
  --color-cream:        #f9f5ee;
  --color-cream-dark:   #f0e9d8;

  /* Neutrals */
  --color-dark:         #0a0a0a;
  --color-dark-2:       #141414;
  --color-dark-3:       #1e1e1e;
  --color-dark-4:       #2a2a2a;
  --color-gray-700:     #3d3d3d;
  --color-gray-500:     #6b6b6b;
  --color-gray-300:     #a0a0a0;
  --color-gray-100:     #e8e8e8;
  --color-gray-50:      #f4f4f4;

  /* Semantic */
  --color-bg:           var(--color-white);
  --color-bg-alt:       var(--color-cream);
  --color-surface:      var(--color-white);
  --color-surface-alt:  var(--color-gray-50);
  --color-text:         var(--color-dark);
  --color-text-muted:   var(--color-gray-500);
  --color-text-subtle:  var(--color-gray-300);
  --color-border:       var(--color-gray-100);
  --color-border-gold:  rgba(201, 168, 76, 0.3);
  --color-accent:       var(--color-gold);
  --color-accent-hover: var(--color-gold-light);

  /* Gradients */
  --gradient-gold:      linear-gradient(135deg, #c9a84c 0%, #e8c97a 50%, #c9a84c 100%);
  --gradient-dark:      linear-gradient(135deg, #0a0a0a 0%, #1e1e1e 100%);
  --gradient-hero:      linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.7) 100%);
  --gradient-glass:     linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
  --gradient-cream:     linear-gradient(180deg, #f9f5ee 0%, #f0e9d8 100%);
  --gradient-gold-shine: linear-gradient(90deg, transparent 0%, rgba(201,168,76,0.3) 50%, transparent 100%);

  /* Typography */
  --font-heading:       'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --font-body:          'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display:       'Playfair Display', Georgia, serif;

  /* Font Sizes — Fluid Clamp Scale */
  --text-xs:            clamp(0.7rem, 1.5vw, 0.75rem);
  --text-sm:            clamp(0.8rem, 1.8vw, 0.875rem);
  --text-base:          clamp(0.9rem, 2vw, 1rem);
  --text-md:            clamp(1rem, 2.2vw, 1.125rem);
  --text-lg:            clamp(1.1rem, 2.5vw, 1.25rem);
  --text-xl:            clamp(1.25rem, 3vw, 1.5rem);
  --text-2xl:           clamp(1.5rem, 3.5vw, 1.875rem);
  --text-3xl:           clamp(1.875rem, 4vw, 2.25rem);
  --text-4xl:           clamp(2.25rem, 5vw, 3rem);
  --text-5xl:           clamp(2.75rem, 6vw, 4rem);
  --text-6xl:           clamp(3.5rem, 8vw, 5.5rem);
  --text-7xl:           clamp(4.5rem, 10vw, 7rem);

  /* Font Weights */
  --fw-light:    300;
  --fw-regular:  400;
  --fw-medium:   500;
  --fw-semibold: 600;
  --fw-bold:     700;

  /* Line Heights */
  --lh-tight:    1.1;
  --lh-snug:     1.25;
  --lh-normal:   1.5;
  --lh-relaxed:  1.625;
  --lh-loose:    2;

  /* Letter Spacing */
  --ls-tight:    -0.02em;
  --ls-normal:   0;
  --ls-wide:     0.05em;
  --ls-wider:    0.1em;
  --ls-widest:   0.2em;

  /* Spacing Scale */
  --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;
  --space-40:  10rem;
  --space-48:  12rem;

  /* Section Padding */
  --section-py:  clamp(4rem, 8vw, 8rem);
  --section-px:  clamp(1.25rem, 5vw, 4rem);

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

  /* Shadows */
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:   0 4px 16px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.04);
  --shadow-lg:   0 10px 40px rgba(0,0,0,0.12), 0 4px 16px rgba(0,0,0,0.06);
  --shadow-xl:   0 20px 60px rgba(0,0,0,0.16), 0 8px 24px rgba(0,0,0,0.08);
  --shadow-gold: 0 0 30px rgba(201, 168, 76, 0.25);
  --shadow-gold-sm: 0 0 15px rgba(201, 168, 76, 0.2);
  --shadow-dark: 0 20px 60px rgba(0,0,0,0.4);

  /* Transitions */
  --transition-fast:   0.15s ease;
  --transition-base:   0.3s ease;
  --transition-slow:   0.5s ease;
  --transition-spring: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Z-Index Scale */
  --z-below:    -1;
  --z-base:      1;
  --z-raised:    10;
  --z-dropdown:  100;
  --z-sticky:    200;
  --z-overlay:   300;
  --z-modal:     400;
  --z-toast:     500;
  --z-tooltip:   600;

  /* Container */
  --container-max:  1400px;
  --container-lg:   1200px;
  --container-md:   960px;
  --container-sm:   720px;
}

/* ---- Dark Mode Theme ---- */
[data-theme="dark"] {
  --color-bg:           #0b0b0e;
  --color-bg-alt:       #111116;
  --color-surface:      #16161c;
  --color-surface-alt:  #1d1d24;
  --color-text:         #f8f6f0;
  --color-text-muted:   #cccccc;
  --color-text-subtle:  #aaaaaa;
  --color-border:       #2a2520;
  --color-border-gold:  rgba(201, 168, 76, 0.35);
  --color-cream:        #14141a;
  --color-cream-dark:   #0e0e12;
  --gradient-cream:     linear-gradient(180deg, #16161c 0%, #0b0b0e 100%);
}

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

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

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--fw-regular);
  line-height: var(--lh-relaxed);
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color var(--transition-base), color var(--transition-base);
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

input, textarea, select {
  font-family: var(--font-body);
  font-size: var(--text-base);
}

ul, ol { list-style: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--fw-medium);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  color: var(--color-text);
}

/* ============================================================
   TYPOGRAPHY UTILITIES
   ============================================================ */
.font-heading   { font-family: var(--font-heading); }
.font-body      { font-family: var(--font-body); }
.font-display   { font-family: var(--font-display); }

.text-xs    { font-size: var(--text-xs); }
.text-sm    { font-size: var(--text-sm); }
.text-base  { font-size: var(--text-base); }
.text-md    { font-size: var(--text-md); }
.text-lg    { font-size: var(--text-lg); }
.text-xl    { font-size: var(--text-xl); }
.text-2xl   { font-size: var(--text-2xl); }
.text-3xl   { font-size: var(--text-3xl); }
.text-4xl   { font-size: var(--text-4xl); }
.text-5xl   { font-size: var(--text-5xl); }
.text-6xl   { font-size: var(--text-6xl); }
.text-7xl   { font-size: var(--text-7xl); }

.fw-light    { font-weight: var(--fw-light); }
.fw-regular  { font-weight: var(--fw-regular); }
.fw-medium   { font-weight: var(--fw-medium); }
.fw-semibold { font-weight: var(--fw-semibold); }
.fw-bold     { font-weight: var(--fw-bold); }

.italic  { font-style: italic; }

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

.text-gold     { color: var(--color-gold); }
.text-muted    { color: var(--color-text-muted); }
.text-subtle   { color: var(--color-text-subtle); }
.text-white    { color: var(--color-white); }
.text-dark     { color: var(--color-dark); }

.uppercase    { text-transform: uppercase; }
.capitalize   { text-transform: capitalize; }

.ls-wide    { letter-spacing: var(--ls-wide); }
.ls-wider   { letter-spacing: var(--ls-wider); }
.ls-widest  { letter-spacing: var(--ls-widest); }

/* Gold gradient text */
.text-gold-gradient {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Decorative label above headings */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-4);
}

.section-label::before,
.section-label::after {
  content: '';
  display: block;
  width: 2rem;
  height: 1px;
  background: var(--gradient-gold);
  flex-shrink: 0;
}

/* Section heading */
.section-heading {
  font-family: var(--font-heading);
  font-size: var(--text-5xl);
  font-weight: var(--fw-light);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  margin-bottom: var(--space-6);
}

.section-heading span {
  font-style: italic;
  color: var(--color-gold);
}

.section-subheading {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  line-height: var(--lh-relaxed);
  max-width: 600px;
  margin-bottom: var(--space-12);
}

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

.container-lg { max-width: var(--container-lg); }
.container-md { max-width: var(--container-md); }
.container-sm { max-width: var(--container-sm); }

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

.section-sm { padding-block: calc(var(--section-py) * 0.6); }
.section-lg { padding-block: calc(var(--section-py) * 1.4); }

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

/* Flex */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start  { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end  { justify-content: flex-end; }
.flex-wrap  { flex-wrap: wrap; }
.gap-2  { gap: var(--space-2); }
.gap-4  { gap: var(--space-4); }
.gap-6  { gap: var(--space-6); }
.gap-8  { gap: var(--space-8); }
.gap-12 { gap: var(--space-12); }

/* Spacing */
.mb-2   { margin-bottom: var(--space-2); }
.mb-4   { margin-bottom: var(--space-4); }
.mb-6   { margin-bottom: var(--space-6); }
.mb-8   { margin-bottom: var(--space-8); }
.mb-12  { margin-bottom: var(--space-12); }
.mb-16  { margin-bottom: var(--space-16); }
.mt-4   { margin-top: var(--space-4); }
.mt-8   { margin-top: var(--space-8); }
.mt-12  { margin-top: var(--space-12); }
.mx-auto { margin-inline: auto; }

.py-4   { padding-block: var(--space-4); }
.py-8   { padding-block: var(--space-8); }
.py-12  { padding-block: var(--space-12); }
.px-4   { padding-inline: var(--space-4); }
.px-6   { padding-inline: var(--space-6); }
.px-8   { padding-inline: var(--space-8); }
.p-4    { padding: var(--space-4); }
.p-6    { padding: var(--space-6); }
.p-8    { padding: var(--space-8); }

/* Width / Height */
.w-full   { width: 100%; }
.h-full   { height: 100%; }
.min-h-screen { min-height: 100vh; }

/* Display */
.block   { display: block; }
.hidden  { display: none; }
.relative { position: relative; }
.absolute { position: absolute; }
.fixed   { position: fixed; }
.sticky  { position: sticky; }
.overflow-hidden { overflow: hidden; }
.z-10 { z-index: 10; }

/* Object fit */
.object-cover   { object-fit: cover; }
.object-contain { object-fit: contain; }

/* Backgrounds */
.bg-dark     { background-color: var(--color-dark); }
.bg-cream    { background-color: var(--color-cream); }
.bg-surface  { background-color: var(--color-surface); }
.bg-gold     { background-color: var(--color-gold); }

/* Borders */
.border-gold { border: 1px solid var(--color-border-gold); }
.rounded-sm  { border-radius: var(--radius-sm); }
.rounded-md  { border-radius: var(--radius-md); }
.rounded-lg  { border-radius: var(--radius-lg); }
.rounded-xl  { border-radius: var(--radius-xl); }
.rounded-2xl { border-radius: var(--radius-2xl); }
.rounded-full { border-radius: var(--radius-full); }

/* ============================================================
   GLASSMORPHISM UTILITY
   ============================================================ */
.glass {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-dark {
  background: rgba(10, 10, 10, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(201, 168, 76, 0.15);
}

.glass-gold {
  background: rgba(201, 168, 76, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(201, 168, 76, 0.25);
}

/* ============================================================
   DIVIDER UTILITIES
   ============================================================ */
.divider {
  height: 1px;
  background: var(--color-border);
  margin-block: var(--space-8);
}

.divider-gold {
  height: 1px;
  background: var(--gradient-gold);
  margin-block: var(--space-8);
  opacity: 0.5;
}

/* Gold ornament divider */
.ornament {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-block: var(--space-8);
}

.ornament::before,
.ornament::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gradient-gold);
  opacity: 0.4;
}

.ornament-icon {
  color: var(--color-gold);
  font-size: var(--text-lg);
  flex-shrink: 0;
}

/* ============================================================
   BACKGROUND PATTERNS
   ============================================================ */
.bg-dots {
  background-image: radial-gradient(circle, rgba(201,168,76,0.08) 1px, transparent 1px);
  background-size: 30px 30px;
}

.bg-lines {
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 10px,
    rgba(201,168,76,0.03) 10px,
    rgba(201,168,76,0.03) 11px
  );
}

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

:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  background: var(--color-gold);
  color: var(--color-dark);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  font-weight: var(--fw-semibold);
  z-index: var(--z-toast);
  transition: top var(--transition-fast);
}

.skip-link:focus { top: var(--space-4); }

/* ============================================================
   MEDIA QUERIES — BREAKPOINTS
   ============================================================ */
/* Mobile first — add breakpoints for larger screens */

/* sm: 640px */
@media (max-width: 639px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section-heading { font-size: var(--text-4xl); }
  .hide-mobile { display: none !important; }
}

/* md: 768px */
@media (max-width: 767px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hide-tablet { display: none !important; }
}

/* lg: 1024px */
@media (max-width: 1023px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hide-desktop { display: none !important; }
}

/* xl: 1280px */
@media (min-width: 1280px) {
  .show-xl { display: block !important; }
}

/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {
  .no-print { display: none; }
  body { background: white; color: black; }
  a { text-decoration: underline; }
}
