/* =====================================================================
   makeupkeyla.com - design system
   Tokens captured from reference site computed styles (Phase 1).
   Fonts: Parisienne (free script, substitute for commercial script),
   Montserrat (uppercase structure/labels), Lato (body). Palette: charcoal,
   gold, taupe, blush, sage. Nothing here reproduces reference content.
   ===================================================================== */

:root {
  /* palette (captured) */
  --c-ink:       #1a1a1a;
  --c-dark:      #1a1a1a;
  --c-bg:        #ffffff;
  --c-surface:   #f7f4f1;
  --c-taupe:     #cec4bf;
  --c-blush:     #f6d0b8;
  --c-gold:      #f3d977;
  --c-gold-dk:   #e6c74e;
  --c-sage:      #656f59;
  --c-muted:     #6b6b6b;
  --c-line:      #e3ddd6;
  --c-line-dark: #333333;

  /* type */
  --f-script: "Parisienne", "Snell Roundhand", cursive;
  --f-head:   "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --f-body:   "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --maxw: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 999px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-ink);
  font-family: var(--f-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

/* structural headings: Montserrat, uppercase, wide tracking (reference style) */
h2, h3, h4 {
  font-family: var(--f-head);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  line-height: 1.35;
  margin: 0 0 0.7em;
}
h2 { font-size: clamp(1.15rem, 2vw, 1.5rem); }
h3 { font-size: clamp(1rem, 1.6vw, 1.15rem); }

/* script display: emotional / feature lines + logo */
h1, .script {
  font-family: var(--f-script);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0.01em;
  line-height: 1.05;
  margin: 0 0 0.3em;
}
h1 { font-size: clamp(2.8rem, 7vw, 5.5rem); }
.script { font-size: clamp(1.8rem, 4vw, 3rem); color: var(--c-ink); }

p { margin: 0 0 1.15em; color: var(--c-muted); font-weight: 400; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.eyebrow {
  font-family: var(--f-head);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--c-ink);
  margin: 0 0 1rem;
}

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.section--tint { background: var(--c-surface); }
.section--taupe { background: var(--c-taupe); }
.section--dark { background: var(--c-dark); color: #fff; }
.section--dark p { color: rgba(255,255,255,0.75); }
.section--dark .eyebrow, .section--dark h2, .section--dark h3 { color: #fff; }
.section--dark .script { color: var(--c-blush); }
.text-center { text-align: center; }
.measure { max-width: 48ch; margin-inline: auto; }

/* ---------- gold pill buttons (reference) ---------- */
.btn {
  display: inline-block;
  font-family: var(--f-head);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 1.05rem 2.6rem;
  border: 1px solid var(--c-gold);
  border-radius: var(--radius);
  background: var(--c-gold);
  color: var(--c-ink);
  cursor: pointer;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.btn:hover { background: var(--c-gold-dk); border-color: var(--c-gold-dk); }
.btn--ghost { background: transparent; color: currentColor; border-color: currentColor; }
.btn--ghost:hover { background: var(--c-ink); color: #fff; border-color: var(--c-ink); }

/* ---------- announcement bar ---------- */
.announce {
  background: var(--c-gold); color: var(--c-ink);
  font-family: var(--f-head); text-transform: uppercase; letter-spacing: 0.18em;
  font-size: 0.66rem; font-weight: 600; text-align: center;
  padding: 0.7rem 1rem;
}

/* ---------- header / nav (dark) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--c-dark);
  border-bottom: 1px solid var(--c-line-dark);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.1rem; }
.brand { font-family: var(--f-script); font-size: 2rem; color: #fff; letter-spacing: .02em; }
.brand span { color: var(--c-blush); }

.nav-links { display: flex; align-items: center; gap: 1.7rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-family: var(--f-head); font-size: 0.68rem; text-transform: uppercase;
  letter-spacing: 0.2em; font-weight: 600; color: #fff; padding-block: .4rem; position: relative;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 1px;
  background: var(--c-gold); transition: width .25s ease;
}
.nav-links a:hover::after, .nav-links a[aria-current]::after { width: 100%; }

.nav-lang { display: flex; align-items: center; gap: .5rem; font-family: var(--f-head); font-size: 0.85rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; }
.nav-lang a { color: rgba(255,255,255,.62); padding-bottom: 2px; }
.nav-lang a.on { color: var(--c-gold); border-bottom: 2px solid var(--c-gold); }
.nav-lang a:hover { color: var(--c-gold); }
.nav-lang span { color: rgba(255,255,255,.3); }

.nav-social { display: flex; gap: .9rem; }
.nav-social a { font-family: var(--f-head); font-size: 0.66rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.nav-social a:hover { color: var(--c-gold); }

/* social logo glyphs (inline SVG sprite, fill follows link color) */
.si { width: 18px; height: 18px; fill: currentColor; display: inline-block; vertical-align: middle; }
.footer-bottom a + a .si, .footer-bottom a + a { margin-left: .35rem; }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  font-family: var(--f-head); font-size: 0.68rem; text-transform: uppercase; letter-spacing: .2em; font-weight: 600; color: #fff;
}

/* ---------- hero (dark, moody) ---------- */
.hero {
  position: relative; text-align: center;
  background: var(--c-dark); color: #fff;
  padding-block: clamp(4.5rem, 13vw, 10rem);
  max-width: none; padding-inline: var(--gutter);
}
.hero .eyebrow { color: #fff; }
.hero h1 { color: #fff; }
.hero p.lead { font-family: var(--f-head); text-transform: uppercase; letter-spacing: 0.22em; font-size: 0.86rem; font-weight: 500; color: rgba(255,255,255,.85); max-width: 52ch; margin: 1rem auto 0; line-height: 2; }
.hero .btn { margin-top: 1.8rem; }
.hero-collage { display: flex; gap: .75rem; justify-content: center; max-width: 860px; margin: 0 auto 2.6rem; }
.hero-slot { position: relative; width: 33.33%; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 2px; margin: 0; }
.hero-slot .hs-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.1s ease; }
.hero-slot .hs-img.is-active { opacity: 1; }
.hero-collage .hero-slot:nth-child(1), .hero-collage .hero-slot:nth-child(3) { margin-top: 1.5rem; }
.hero .eyebrow { margin-bottom: 1.8rem; }
@media (max-width: 620px) { .hero-collage .hero-slot:nth-child(3) { display: none; } .hero-collage .hero-slot:nth-child(1) { margin-top: 0; } }

/* switching full-bleed backdrop behind the hero */
.hero-backdrop { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
.hero-backdrop .hb-layer {
  position: absolute; inset: -8%; background-size: cover; background-position: center;
  filter: blur(16px) saturate(1.05); transform: scale(1.08);
  opacity: 0; transition: opacity 1.6s ease;
}
.hero-backdrop .hb-layer.is-active { opacity: .42; }
.hero-backdrop::after { content: ""; position: absolute; inset: 0; background: rgba(20,20,20,.68); }
.hero > .container { position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce) { .hero-backdrop { display: none; } }

/* real images (replace .ph placeholders) */
img.cover { width: 100%; object-fit: cover; border-radius: 2px; display: block; border: 1px solid var(--c-line); }
img.cover[data-ratio="portrait"] { aspect-ratio: 3 / 4; }
img.cover[data-ratio="landscape"] { aspect-ratio: 4 / 3; }
img.cover[data-ratio="square"] { aspect-ratio: 1 / 1; }
.gallery img.cover { border: 0; border-radius: 2px; }

/* the hidden attribute must win even when a class sets its own display */
[hidden] { display: none !important; }

/* ---------- placeholder media ---------- */
.ph {
  position: relative; overflow: hidden; border-radius: 2px;
  background: repeating-linear-gradient(45deg, #efe7dd 0 12px, #e7ddd0 12px 24px);
  border: 1px solid var(--c-line);
  display: grid; place-items: center;
  color: var(--c-muted); font-family: var(--f-head);
  font-size: .64rem; letter-spacing: .2em; text-transform: uppercase; min-height: 220px;
}
.ph[data-ratio="portrait"] { aspect-ratio: 3 / 4; }
.ph[data-ratio="landscape"] { aspect-ratio: 4 / 3; }
.ph[data-ratio="square"] { aspect-ratio: 1 / 1; }
.ph[data-ratio="wide"] { aspect-ratio: 16 / 9; }

/* ---------- layout helpers ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.two-col { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1rem, 3vw, 2rem); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2.5vw, 1.75rem); }

.card { background: var(--c-bg); border: 1px solid var(--c-line); border-radius: 2px; padding: 2rem; }

/* ---------- portfolio gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.gallery .ph { min-height: 0; }

/* ---------- testimonials carousel ---------- */
.carousel { position: relative; max-width: 720px; margin-inline: auto; text-align: center; }
.carousel-track { position: relative; min-height: 210px; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .5s ease; display: flex; flex-direction: column; justify-content: center; gap: 1rem; pointer-events: none; }
.slide.is-active { opacity: 1; position: relative; pointer-events: auto; }
.slide blockquote { font-family: var(--f-head); text-transform: uppercase; letter-spacing: 0.08em; font-size: 1.05rem; line-height: 1.9; margin: 0; color: inherit; font-weight: 400; }
.slide cite { font-family: var(--f-script); font-style: normal; font-size: 1.9rem; color: var(--c-blush); }
.carousel-btns { display: flex; justify-content: center; gap: 1rem; margin-top: 1.5rem; }
.carousel-btns button { background: none; border: 1px solid currentColor; border-radius: 50%; width: 44px; height: 44px; cursor: pointer; font-size: 1rem; color: inherit; opacity: .7; transition: opacity .2s, color .2s; }
.carousel-btns button:hover { opacity: 1; color: var(--c-gold); }
.carousel-dots { display: flex; justify-content: center; gap: .5rem; margin-top: 1rem; }
.carousel-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: currentColor; opacity: .3; cursor: pointer; }
.carousel-dots button.is-active { opacity: 1; background: var(--c-gold); }

/* ---------- FAQ accordion ---------- */
.faq { max-width: 760px; margin-inline: auto; }
.faq-item { border-bottom: 1px solid var(--c-line); }
.faq-q { width: 100%; text-align: left; background: none; border: 0; cursor: pointer; padding: 1.35rem 0; font-family: var(--f-head); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.82rem; font-weight: 600; color: var(--c-ink); display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq-q .icon { transition: transform .25s ease; color: var(--c-gold-dk); font-size: 1.2rem; }
.faq-q[aria-expanded="true"] .icon { transform: rotate(45deg); }
.faq-a { overflow: hidden; max-height: 0; transition: max-height .3s ease; }
.faq-a > div { padding-bottom: 1.35rem; }

/* ---------- contact form ---------- */
.form { max-width: 560px; margin-inline: auto; display: grid; gap: 1.1rem; }
.field { display: grid; gap: .4rem; }
.field label { font-family: var(--f-head); font-size: .66rem; text-transform: uppercase; letter-spacing: .2em; font-weight: 600; color: var(--c-muted); }
.field input, .field select, .field textarea { font-family: var(--f-body); font-size: 1rem; padding: .85rem 1rem; border: 1px solid var(--c-line); border-radius: 2px; background: var(--c-bg); color: var(--c-ink); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--c-gold); outline-offset: 1px; }
.field textarea { min-height: 140px; resize: vertical; }
.field .error { color: #b23b3b; font-size: .78rem; min-height: 1em; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #b23b3b; }
.form-status { text-align: center; font-size: .9rem; min-height: 1.4em; }
.form-status.ok { color: #3b7a4b; }
.form-status.err { color: #b23b3b; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- footer (dark) ---------- */
.site-footer { background: var(--c-dark); color: #efe7dd; padding-block: clamp(3rem, 6vw, 4.5rem); }
.site-footer a { color: #efe7dd; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.site-footer .brand { color: #fff; }
.site-footer .tagline { font-family: var(--f-script); font-size: 1.7rem; color: var(--c-blush); }
.footer-nav { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.footer-nav a { font-family: var(--f-head); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: #cbbfb2; }
.footer-nav a:hover { color: var(--c-gold); }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.12); font-family: var(--f-head); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: #9c9184; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .nav-links {
    position: fixed; inset: 0 0 0 auto; width: min(80vw, 320px);
    background: var(--c-dark); flex-direction: column; align-items: flex-start;
    gap: 1.4rem; padding: 6rem 2rem 2rem; transform: translateX(100%);
    transition: transform .3s ease; box-shadow: -8px 0 30px rgba(0,0,0,.3);
  }
  .nav-links.is-open { transform: translateX(0); }
  .nav-toggle { display: inline-flex; z-index: 60; }
  .nav-social { display: none; }
  .split, .two-col, .grid-3, .footer-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- chosen default: centered-logo nav (desktop) ---------- */
@media (min-width: 861px) {
  .site-header .nav { position: relative; flex-wrap: wrap; justify-content: center; row-gap: .9rem; }
  .site-header .brand { flex-basis: 100%; text-align: center; }
  .site-header .nav-links { width: 100%; justify-content: center; }
  .site-header .nav-social { position: absolute; left: 0; top: .4rem; }
}

/* ---------- chosen default: portfolio lightbox ---------- */
.lightbox { position: fixed; inset: 0; background: rgba(26,26,26,.94); display: none; place-items: center; z-index: 100; padding: 2rem; }
.lightbox.is-open { display: grid; }
.lightbox .lb-img { max-width: min(92vw, 760px); max-height: 86vh; border-radius: 2px; }
.lightbox .lb-close { position: absolute; top: 1.3rem; right: 1.8rem; background: none; border: 0; color: #fff; font-family: var(--f-head); font-size: .7rem; letter-spacing: .24em; text-transform: uppercase; cursor: pointer; }
.lightbox .lb-arrow { position: absolute; top: 50%; transform: translateY(-50%); background: none; border: 1px solid rgba(255,255,255,.5); color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 1.2rem; cursor: pointer; }
.lightbox .lb-prev { left: 2rem; } .lightbox .lb-next { right: 2rem; }
.lightbox .lb-arrow:hover, .lightbox .lb-close:hover { color: var(--c-gold); border-color: var(--c-gold); }
@media (max-width: 600px) { .lightbox .lb-arrow { width: 40px; height: 40px; } .lightbox .lb-prev { left: .6rem; } .lightbox .lb-next { right: .6rem; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* accessibility: skip to content */
.skip-link{position:absolute;left:-9999px;top:0;background:var(--c-gold);color:var(--c-ink);font-family:var(--f-head);font-size:.72rem;font-weight:600;letter-spacing:.14em;text-transform:uppercase;padding:.8rem 1.2rem;border-radius:0 0 6px 0;z-index:200}
.skip-link:focus{left:0}

/* ---------- coverflow: stepping band, centered photo emphasized ---------- */
.coverflow-section .container { margin-bottom: 2.4rem; }
.coverflow { overflow: hidden; cursor: grab; padding: 2.2rem 0; user-select: none; -webkit-user-select: none; touch-action: pan-y; }
.coverflow.is-dragging { cursor: grabbing; }
.cf-track { display: flex; align-items: center; gap: 1.1rem; width: max-content; will-change: transform; }
.cf-item { flex: 0 0 auto; width: clamp(150px, 18vw, 220px); aspect-ratio: 3 / 4; margin: 0; border-radius: 3px; overflow: hidden;
  opacity: .38; transform: scale(.94); transition: opacity .55s ease, transform .55s ease; }
.cf-item.is-center { opacity: 1; transform: scale(1.1); box-shadow: 0 10px 32px rgba(26,26,26,.22); }
.cf-item img { width: 100%; height: 100%; object-fit: cover; display: block; -webkit-user-drag: none; pointer-events: none; }
@media (prefers-reduced-motion: reduce) {
  .cf-item, .cf-item.is-center { transition: none; }
}

/* ---------- 1x10 square work grid ---------- */
.workgrid { display: grid; grid-template-columns: repeat(10, 1fr); gap: 2px; background: var(--c-dark); }
.workgrid .wg-cell { position: relative; aspect-ratio: 1 / 1; overflow: hidden; display: block; }
.workgrid .wg-cell img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease, filter .5s ease; }
.workgrid .wg-cell:hover img { transform: scale(1.08); filter: brightness(1.06); }
@media (max-width: 900px) {
  .workgrid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 38%; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; }
  .workgrid::-webkit-scrollbar { display: none; }
  .workgrid .wg-cell { scroll-snap-align: start; }
}
