/* ============================================================
   VEMA COSMETICS — shared stylesheet
   ============================================================ */

:root {
  --ivory: #FCFAFB;
  --ivory-dim: #F7EEF2;
  --ink: #17141C;
  --ink-soft: #524C58;
  --brass: #E8547B;
  --rose: #F2A6C6;
  --rose-dim: #FCE9F1;
  --slate: #33475B;
  --slate-dim: #E7ECF1;
  --line: #EBD9E2;
  --max: 1140px;
  --frame: 20px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; background: var(--ink); }

body {
  margin: 0 auto;
  max-width: 1480px;
  padding: var(--frame);
  background: var(--ivory);
  color: var(--ink);
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

@media (max-width: 640px) { :root { --frame: 10px; } }

h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  line-height: 1.1;
  margin: 0 0 0.5em;
  color: var(--ink);
}
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 500; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.4rem; }

p { margin: 0 0 1em; color: var(--ink-soft); }
a { color: var(--ink); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

.eyebrow {
  font-family: 'Manrope', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
  font-weight: 700;
  display: block;
  margin-bottom: 0.7em;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- header ---------- */
header.site {
  border-bottom: 1px solid var(--line);
  background: var(--ivory);
  position: sticky; top: var(--frame); z-index: 30;
}
header.site .bar {
  max-width: var(--max); margin: 0 auto; padding: 20px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  display: flex;
  align-items: center;
}
.logo img { display: block; }
.logo span { color: var(--brass); }
nav.main a {
  color: var(--ink);
  margin-left: 26px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
nav.main a:hover { color: var(--brass); text-decoration: none; }
nav.main a.active { color: var(--brass); }
@media (max-width: 860px) { nav.main { display: none; } }

/* ---------- logo scaling on small screens ---------- */
@media (max-width: 860px) { .logo-img-home { height: 70px !important; } }
@media (max-width: 560px) { .logo-img-home { height: 50px !important; } }

/* ---------- mobile nav toggle ---------- */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px; height: 32px;
  background: none; border: none; cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block; width: 100%; height: 2px;
  background: var(--ink); border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--ivory);
  border-top: 1px solid var(--line);
  padding: 8px 24px 16px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 14px 0;
  font-size: 0.95rem; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover, .mobile-nav a.active { color: var(--brass); text-decoration: none; }

@media (max-width: 860px) { .nav-toggle { display: flex; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: 2px;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn-dark { background: var(--ink); color: var(--ivory); }
.btn-dark:hover { background: var(--brass); text-decoration: none; }
.btn-outline-light { border-color: var(--ivory); color: var(--ivory); }
.btn-outline-light:hover { background: var(--ivory); color: var(--ink); text-decoration: none; }
.btn-outline-dark { border-color: var(--ink); color: var(--ink); }
.btn-outline-dark:hover { background: var(--ink); color: var(--ivory); text-decoration: none; }
.btn-disabled {
  background: var(--ivory-dim);
  color: var(--ink-soft);
  border: 1px solid var(--line);
  cursor: not-allowed;
  pointer-events: none;
}

/* ---------- split hero (home signature) ---------- */
.split-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 560px;
  margin-top: 4px;
}
@media (max-width: 780px) { .split-hero { grid-template-columns: 1fr; min-height: auto; } }

.split-panel {
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 48px;
  position: relative;
  min-height: 380px;
}
.split-panel.her { background: linear-gradient(160deg, var(--rose-dim), var(--ivory-dim)); }
.split-panel.him { background: linear-gradient(160deg, var(--ink), #232030); }
.split-panel.him h2, .split-panel.him .eyebrow-light { color: var(--ivory); }
.split-panel.him p { color: #C9C2BB; }
.split-panel .eyebrow-light { color: var(--brass); }

.split-seam {
  position: absolute; left: 50%; top: 0; bottom: 0;
  width: 1px; background: var(--brass);
  transform: translateX(-50%);
  z-index: 2;
}
@media (max-width: 780px) { .split-seam { display: none; } }

.wordmark-seal {
  position: absolute; top: 25%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  background: var(--ivory);
  border: 1px solid var(--brass);
  border-radius: 50%;
  width: 128px; height: 128px;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  line-height: 1.2;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  box-shadow: 0 8px 28px rgba(0,0,0,0.18);
}
@media (max-width: 780px) {
  .wordmark-seal {
    top: 50%;
    left: auto;
    right: 16px;
    transform: translateY(-50%);
    width: 132px;
    height: 132px;
    font-size: 0.85rem;
    letter-spacing: 0.07em;
  }
}
@media (max-width: 480px) {
  .wordmark-seal {
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    width: 100px;
    height: 100px;
    font-size: 0.66rem;
    letter-spacing: 0.04em;
  }
}

/* ---------- sections ---------- */
section { padding: 72px 0; }
.section-alt { background: var(--ivory-dim); }
.section-head { max-width: 620px; margin-bottom: 44px; }
.section-head.center { max-width: 640px; margin-left: auto; margin-right: auto; text-align: center; }

.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .grid-4 { grid-template-columns: 1fr; } }

/* category / product cards */
.cat-card {
  display: block;
  border: 1px solid var(--line);
  background: var(--ivory);
}
.cat-card .swatch { width: 100%; aspect-ratio: 3 / 1; overflow: hidden; }
.cat-card .swatch img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cat-card .cat-label {
  padding: 18px 20px;
  display: flex; justify-content: space-between; align-items: baseline;
}
.cat-card .cat-label h3 { margin: 0; font-size: 1.15rem; }
.cat-card .cat-label span { font-size: 0.78rem; color: var(--brass); letter-spacing: 0.05em; }
.cat-card:hover { text-decoration: none; border-color: var(--brass); }

.product-card {
  border: 1px solid var(--line);
  background: var(--ivory);
  display: flex; flex-direction: column;
}
.product-card .swatch { width: 100%; height: 210px; }
.product-card .p-body { padding: 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-card .p-cat { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brass); font-weight: 700; }
.product-card h3 { font-size: 1.15rem; margin-bottom: 2px; }
.product-card .price { color: var(--ink-soft); font-size: 0.92rem; margin-top: auto; }
.product-card .btn { margin-top: 14px; align-self: flex-start; }

/* filter tabs (shop all) */
.filter-tabs { display: flex; gap: 10px; margin-bottom: 40px; flex-wrap: wrap; }
.filter-tabs button {
  font-family: 'Manrope', sans-serif;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 10px 20px; border-radius: 2px;
  border: 1px solid var(--ink);
  background: transparent; color: var(--ink);
  cursor: pointer;
}
.filter-tabs button.is-active { background: var(--ink); color: var(--ivory); }
.hide { display: none !important; }

/* quote / editorial block */
.editorial {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: center;
}
@media (max-width: 860px) { .editorial { grid-template-columns: 1fr; } }
.editorial .swatch-lg { width: 100%; aspect-ratio: 4 / 3; overflow: hidden; }
.editorial .swatch-lg img { width: 100%; height: 100%; object-fit: cover; display: block; }
blockquote {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.6rem;
  line-height: 1.4;
  color: var(--ink);
  margin: 0 0 16px;
}

/* disclaimer / note */
.note {
  background: var(--ivory-dim);
  border: 1px solid var(--line);
  padding: 20px 24px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* contact form */
form.contact { display: grid; gap: 18px; max-width: 520px; }
form.contact label { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; display: block; margin-bottom: 8px; }
form.contact input, form.contact textarea {
  width: 100%; padding: 13px 14px;
  border: 1px solid var(--line); border-radius: 2px;
  font-family: inherit; font-size: 0.95rem;
  background: var(--ivory); color: var(--ink);
}
form.contact textarea { min-height: 130px; resize: vertical; }
form.contact input:focus, form.contact textarea:focus { outline: 2px solid var(--brass); outline-offset: 1px; }

/* blog / journal cards */
.journal-card .date { font-size: 0.75rem; color: var(--brass); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; display:block; margin-bottom: 10px; }

/* footer */
footer.site {
  border-top: 1px solid var(--line);
  padding: 52px 0 32px;
  margin-top: 40px;
  color: var(--ink-soft);
  font-size: 0.9rem;
}
footer.site .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 36px; }
@media (max-width: 780px) { footer.site .cols { grid-template-columns: 1fr 1fr; } }
footer.site h4 { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); margin-bottom: 12px; }
footer.site a { color: var(--ink-soft); display: block; margin-bottom: 8px; font-size: 0.9rem; }
footer.site a:hover { color: var(--brass); }
footer.site .bottom {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 20px;
}
footer.site .bottom-copyright { color: var(--ink-soft); }
footer.site .bottom-links { display: flex; gap: 20px; flex-wrap: wrap; }
footer.site .bottom-links a { color: var(--ink-soft); }
footer.site .bottom-links a:hover { color: var(--brass); }

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

/* ---------- review template ---------- */
.breadcrumb { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 18px; }
.breadcrumb a { color: var(--ink-soft); }
.breadcrumb a:hover { color: var(--brass); }
.breadcrumb .sep { margin: 0 8px; color: var(--line); }

.review-hero { max-width: 760px; }
.review-hero .lede {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.5rem;
  line-height: 1.4;
  color: var(--ink-soft);
  margin-top: 10px;
}
.review-body { max-width: 700px; }
.review-body p { font-size: 1.02rem; }

.love-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin: 32px 0; }
@media (max-width: 700px) { .love-grid { grid-template-columns: 1fr; } }
.love-card { border: 1px solid var(--line); background: var(--ivory-dim); padding: 22px; }
.love-card .icon { font-size: 1.4rem; display:block; margin-bottom: 8px; }
.love-card h4 { font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 0.98rem; margin: 0 0 6px; color: var(--ink); }
.love-card p { font-size: 0.92rem; margin: 0; color: var(--ink-soft); }

.tag-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 8px; }
.tag-pill {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.03em;
  padding: 8px 16px; border-radius: 100px;
  background: var(--rose-dim); color: var(--ink);
  border: 1px solid var(--line);
}

.rating-table { margin: 28px 0; border-top: 1px solid var(--line); }
.rating-row { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--line); }
.rating-row .label { font-weight: 600; font-size: 0.95rem; }
.stars { letter-spacing: 2px; font-size: 1.05rem; color: var(--brass); white-space: nowrap; }
.stars .empty { color: var(--line); }

.score-block {
  display: flex; align-items: center; gap: 24px;
  background: var(--ink); color: var(--ivory);
  padding: 36px 40px; margin: 40px 0;
}
.score-block .num { font-family: 'Cormorant Garamond', serif; font-size: 3.4rem; font-weight: 600; color: var(--brass); line-height: 1; }
.score-block .num span { font-size: 1.3rem; color: #C9C2CE; }
.score-block .label-col .eyebrow { color: var(--brass); margin-bottom: 4px; }
.score-block .label-col p { color: #C9C2CE; margin: 0; font-size: 0.95rem; }

.external-rating {
  font-size: 0.92rem; color: var(--ink-soft); border-left: 3px solid var(--brass);
  padding-left: 16px; margin: 24px 0;
}
