/* ============================================================
   VICTOR & TAILORS — main.css
   Reset · Variables · Typography · Layout · Utilities
   ============================================================ */

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

/* ---------- CSS VARIABLES ---------- */
:root {
  /* Colors */
  --primary:       #1A2744;
  --primary-light: #243560;
  --primary-dark:  #111929;
  --accent:        #C9A84C;
  --accent-light:  #E8C97A;
  --accent-dark:   #A8872E;
  --neutral-dark:  #111111;
  --neutral-mid:   #4A4A4A;
  --neutral-light: #F7F5F0;
  --neutral-100:   #FAFAF8;
  --neutral-200:   #EFEFEB;
  --neutral-300:   #DEDCD6;
  --white:         #FFFFFF;
  --black:         #000000;
  --overlay:       rgba(26,39,68,0.85);
  --overlay-light: rgba(26,39,68,0.55);
  --success:       #2E7D32;
  --error:         #C62828;
  --whatsapp:      #25D366;

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

  /* Spacing */
  --sp-1:  8px;
  --sp-2:  16px;
  --sp-3:  24px;
  --sp-4:  32px;
  --sp-5:  48px;
  --sp-6:  64px;
  --sp-7:  96px;
  --sp-8:  128px;

  /* Radius */
  --radius-sm:   2px;
  --radius-md:   6px;
  --radius-lg:   12px;
  --radius-pill: 50px;

  /* Shadows */
  --shadow-sm:   0 2px 12px rgba(26,39,68,0.08);
  --shadow-md:   0 4px 24px rgba(26,39,68,0.10);
  --shadow-lg:   0 12px 40px rgba(26,39,68,0.18);
  --shadow-gold: 0 0 20px rgba(201,168,76,0.30);
  --shadow-card: 0 4px 24px rgba(26,39,68,0.10);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-med:  0.35s ease;
  --transition-slow: 0.6s cubic-bezier(0.16,1,0.3,1);

  /* Container */
  --container-max: 1200px;
  --container-pad: 24px;

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

/* ---------- RESET ---------- */
*, *::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-body);
  color: var(--neutral-dark);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }
table { border-collapse: collapse; width: 100%; }

/* ---------- SKIP LINK ---------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--sp-2);
  background: var(--accent);
  color: var(--primary);
  padding: var(--sp-1) var(--sp-2);
  font-weight: 600;
  z-index: 10000;
  border-radius: var(--radius-sm);
  transition: top var(--transition-fast);
}
.skip-link:focus { top: var(--sp-2); }

/* ---------- CONTAINER ---------- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}
.container-wide { max-width: 1400px; margin: 0 auto; padding: 0 var(--container-pad); }
.container-narrow { max-width: 800px; margin: 0 auto; padding: 0 var(--container-pad); }

/* ---------- SECTION DEFAULTS ---------- */
section { padding: var(--sp-7) 0; }
section.section-sm { padding: var(--sp-5) 0; }
section.section-lg { padding: var(--sp-8) 0; }

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--primary);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 600; }
h3 { font-size: clamp(1.4rem, 2.5vw, 1.8rem); font-weight: 500; }
h4 { font-size: 1.3rem; font-weight: 600; }
h5 { font-size: 1.1rem; font-weight: 600; }
h6 { font-size: 1rem; font-weight: 600; }

p { color: var(--neutral-mid); margin-bottom: var(--sp-2); }
p:last-child { margin-bottom: 0; }

.text-accent {
  font-family: var(--font-accent);
  font-style: italic;
  color: var(--accent);
}
.text-white { color: var(--white); }
.text-primary { color: var(--primary); }
.text-gold { color: var(--accent); }
.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }

.label-sm {
  font-family: var(--font-accent);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ---------- SECTION HEADER ---------- */
.section-header {
  margin-bottom: var(--sp-6);
}
.section-header.center { text-align: center; }
.section-header .eyebrow {
  font-family: var(--font-accent);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: var(--sp-1);
}
.section-header h2 { margin-bottom: var(--sp-2); }
.section-header p {
  font-size: 1.1rem;
  max-width: 600px;
  color: var(--neutral-mid);
}
.section-header.center p { margin: 0 auto; }

.title-line {
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  margin-top: var(--sp-2);
  border-radius: 2px;
}
.section-header.center .title-line { margin: var(--sp-2) auto 0; }

/* ---------- DIVIDER ---------- */
.divider {
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  margin: var(--sp-3) 0;
}
.divider.center { margin: var(--sp-3) auto; background: linear-gradient(90deg, transparent, var(--accent), transparent); }

/* ---------- GRID HELPERS ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-4); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-3); }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--sp-4); }

/* ---------- 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; }
.flex-col     { display: flex; flex-direction: column; }
.gap-1 { gap: var(--sp-1); }
.gap-2 { gap: var(--sp-2); }
.gap-3 { gap: var(--sp-3); }
.gap-4 { gap: var(--sp-4); }

/* ---------- UTILITIES ---------- */
.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; }
.hidden { display: none !important; }
.mt-1 { margin-top: var(--sp-1); }
.mt-2 { margin-top: var(--sp-2); }
.mt-3 { margin-top: var(--sp-3); }
.mt-4 { margin-top: var(--sp-4); }
.mt-5 { margin-top: var(--sp-5); }
.mb-1 { margin-bottom: var(--sp-1); }
.mb-2 { margin-bottom: var(--sp-2); }
.mb-3 { margin-bottom: var(--sp-3); }
.mb-4 { margin-bottom: var(--sp-4); }
.mb-5 { margin-bottom: var(--sp-5); }

/* ---------- PAGE HERO BANNER (inner pages) ---------- */
.page-hero {
  height: 50vh;
  min-height: 320px;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-height);
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23C9A84C' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-hero-content { position: relative; z-index: 1; }
.page-hero h1 { color: var(--white); margin-bottom: var(--sp-2); }
.page-hero .label-sm { color: var(--accent-light); }

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  justify-content: center;
  margin-top: var(--sp-2);
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
}
.breadcrumb a { color: var(--accent-light); transition: color var(--transition-fast); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span { color: rgba(255,255,255,0.4); }

/* ---------- STAR RATING ---------- */
.stars { display: flex; gap: 3px; }
.star {
  width: 18px;
  height: 18px;
  color: var(--accent);
  fill: var(--accent);
}
.star svg { width: 100%; height: 100%; }

/* ---------- BADGE ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: rgba(201,168,76,0.12);
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.05em;
}

/* ---------- PRELOADER ---------- */
#preloader {
  position: fixed;
  inset: 0;
  background: var(--primary-dark);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
#preloader.hidden { opacity: 0; visibility: hidden; }
.preloader-logo {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--white);
  margin-bottom: var(--sp-3);
  letter-spacing: 0.05em;
}
.preloader-logo span { color: var(--accent); }
.preloader-scissors {
  width: 48px;
  height: 48px;
  animation: scissors-spin 1.2s ease-in-out infinite;
}
@keyframes scissors-spin {
  0%,100% { transform: rotate(-20deg) scale(1); }
  50%      { transform: rotate(20deg) scale(1.1); }
}
.preloader-bar {
  width: 200px;
  height: 2px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  margin-top: var(--sp-3);
  overflow: hidden;
}
.preloader-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  border-radius: 2px;
  animation: preloader-fill 1.4s ease forwards;
}
@keyframes preloader-fill {
  0%   { width: 0%; }
  100% { width: 100%; }
}

/* ---------- BACK TO TOP ---------- */
#back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: var(--accent);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-gold);
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-med);
}
#back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
#back-to-top:hover { background: var(--accent-light); transform: translateY(-3px); }
#back-to-top svg { width: 20px; height: 20px; }

/* ---------- COOKIE NOTICE ---------- */
#cookie-notice {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--primary-dark);
  color: var(--white);
  padding: var(--sp-2) var(--sp-3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
  z-index: 9000;
  transform: translateY(100%);
  transition: transform 0.5s ease;
  flex-wrap: wrap;
}
#cookie-notice.visible { transform: translateY(0); }
#cookie-notice p { color: rgba(255,255,255,0.8); font-size: 0.9rem; margin: 0; }
#cookie-accept {
  padding: 8px 20px;
  background: var(--accent);
  color: var(--primary);
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: background var(--transition-fast);
}
#cookie-accept:hover { background: var(--accent-light); }
