/* =====================================================================
   makeupkeyla.com - placeholder design system
   NOTE: fonts + palette below are tasteful placeholders. Phase 1 of the
   roadmap captures the reference site's exact type + hex values; swap the
   :root tokens then. Nothing here is lifted from the reference site.
   ===================================================================== */

:root {
  /* palette (placeholder - warm editorial neutrals) */
  --c-bg:        #faf7f3;
  --c-surface:   #ffffff;
  --c-ink:       #2b2622;
  --c-muted:     #6f665e;
  --c-line:      #e6ded4;
  --c-accent:    #b98a7a;   /* muted rose/clay */
  --c-accent-dk: #9c6f60;

  /* type (placeholder) */
  --f-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --f-body:    "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

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

*, *::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-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 500;
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: 0.01em;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.75rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 1.9rem); }

p { margin: 0 0 1.1em; color: var(--c-muted); }

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

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

.eyebrow {
  font-family: var(--f-body);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--c-accent-dk);
  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); }
.text-center { text-align: center; }
.measure { max-width: 46ch; margin-inline: auto; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--f-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 1rem 2.2rem;
  border: 1px solid var(--c-ink);
  border-radius: var(--radius);
  background: var(--c-ink);
  color: #fff;
  cursor: pointer;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.btn:hover { background: transparent; color: var(--c-ink); }
.btn--ghost { background: transparent; color: var(--c-ink); }
.btn--ghost:hover { background: var(--c-ink); color: #fff; }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--c-bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--c-line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-block: 1.1rem;
}
.brand { font-family: var(--f-display); font-size: 1.5rem; letter-spacing: .04em; }
.brand span { color: var(--c-accent-dk); }

.nav-links { display: flex; align-items: center; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.16em; font-weight: 600;
  color: var(--c-ink); padding-block: .4rem; position: relative;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 1px;
  background: var(--c-accent-dk); transition: width .25s ease;
}
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { width: 100%; }

.nav-social { display: flex; gap: .9rem; }
.nav-social a { font-size: 0.72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--c-muted); }
.nav-social a:hover { color: var(--c-accent-dk); }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: .18em; font-weight: 600; color: var(--c-ink);
}

/* ---------- hero ---------- */
.hero { position: relative; text-align: center; padding-block: clamp(4rem, 12vw, 9rem); }
.hero .eyebrow { color: var(--c-accent-dk); }
.hero p.lead { font-size: 1.15rem; color: var(--c-muted); max-width: 44ch; margin-inline: auto; }
.hero .btn { margin-top: 1.5rem; }

/* ---------- placeholder media (NO reference photos) ---------- */
.ph {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background:
    repeating-linear-gradient(45deg, #efe7dd 0 12px, #e9dfd2 12px 24px);
  border: 1px solid var(--c-line);
  display: grid; place-items: center;
  color: var(--c-muted); font-size: .72rem; letter-spacing: .18em; 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-surface); border: 1px solid var(--c-line);
  border-radius: var(--radius); 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-display); font-size: 1.5rem; line-height: 1.4; margin: 0; color: var(--c-ink); }
.slide cite { font-style: normal; font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--c-accent-dk); }
.carousel-btns { display: flex; justify-content: center; gap: 1rem; margin-top: 1.5rem; }
.carousel-btns button {
  background: none; border: 1px solid var(--c-line); border-radius: 50%; width: 44px; height: 44px;
  cursor: pointer; font-size: 1rem; color: var(--c-ink); transition: border-color .2s, color .2s;
}
.carousel-btns button:hover { border-color: var(--c-accent-dk); color: var(--c-accent-dk); }
.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: var(--c-line); cursor: pointer; }
.carousel-dots button.is-active { background: var(--c-accent-dk); }

/* ---------- 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-display); font-size: 1.3rem; 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-accent-dk); }
.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-size: .72rem; text-transform: uppercase; letter-spacing: .16em; 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: var(--radius); background: var(--c-surface); color: var(--c-ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--c-accent); outline-offset: 1px; }
.field textarea { min-height: 140px; resize: vertical; }
.field .error { color: #b23b3b; font-size: .78rem; letter-spacing: .02em; text-transform: none; 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; }

/* ---------- footer ---------- */
.site-footer { background: var(--c-ink); 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-display); font-size: 1.3rem; color: #efe7dd; }
.footer-nav { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.footer-nav a { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: #cbbfb2; }
.footer-nav a:hover { color: #fff; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.12); font-size: .74rem; 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-surface); 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,.08);
  }
  .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); }
}

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