/* COMFEM | Home of Fashion & Stitches */

:root {
  --ivory: #f8f2e9;
  --ivory-2: #f1e7d8;
  --ink: #231a17;
  --ink-soft: #5c4f49;
  --wine: #5b1a2e;
  --wine-deep: #2a1420;
  --gold: #c39b4f;
  --gold-soft: #e3c98f;
  --line: rgba(35, 26, 23, .14);
  --line-dark: rgba(248, 242, 233, .16);

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 14px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font: 400 17px/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.2; margin: 0 0 .5em; }
h3 { font-family: var(--sans); font-weight: 600; }
h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; }
em { font-style: italic; color: var(--wine); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--wine); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

.eyebrow {
  font: 500 .95rem/1.3 var(--sans);
  color: var(--wine);
  margin-bottom: .6rem;
}
.lead { font-size: 1.12rem; color: var(--ink-soft); max-width: 34em; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .95rem 1.6rem;
  background: var(--wine); color: var(--ivory);
  border: 1px solid var(--wine); border-radius: 999px;
  font: 600 .98rem/1 var(--sans);
  text-decoration: none; cursor: pointer;
  transition: background .25s, color .25s, border-color .25s, transform .25s;
}
.btn:hover { background: var(--wine-deep); border-color: var(--wine-deep); transform: translateY(-1px); }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 3px;
}
.btn-ghost { background: transparent; color: var(--wine); }
.btn-ghost:hover { background: var(--wine); color: var(--ivory); }
.btn-gold { background: var(--gold); border-color: var(--gold); color: var(--wine-deep); }
.btn-gold:hover { background: var(--gold-soft); border-color: var(--gold-soft); }
.btn-small { padding: .7rem 1.2rem; font-size: .9rem; }
.btn-block { width: 100%; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248, 242, 233, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font: 600 1.45rem/1 var(--serif); letter-spacing: .03em; }
.brand-tag { font-size: .78rem; color: var(--ink-soft); margin-top: 3px; }
.site-nav { display: flex; align-items: center; gap: 2rem; }
.site-nav a:not(.btn) {
  text-decoration: none; font-size: 1rem; font-weight: 500;
  position: relative; padding: 4px 0;
}
.site-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: var(--wine); transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.site-nav a:not(.btn):hover::after { transform: scaleX(1); }
.nav-toggle { display: none; }

/* Photo placeholders (swap for <img> when photos arrive) */
.photo-slot { position: relative; overflow: hidden; }
.photo-slot > span {
  position: absolute; left: 12px; bottom: 10px;
  font-size: .8rem;
  color: rgba(255,255,255,.85); background: rgba(0,0,0,.22); padding: 4px 10px; border-radius: 999px;
}
.photo-slot img { width: 100%; height: 100%; object-fit: cover; }
.pattern-a {
  background-color: var(--wine);
  background-image:
    radial-gradient(circle at 50% 50%, var(--gold) 0 2px, transparent 3px),
    repeating-linear-gradient(45deg, rgba(255,255,255,.07) 0 1px, transparent 1px 22px),
    repeating-linear-gradient(-45deg, rgba(255,255,255,.07) 0 1px, transparent 1px 22px);
  background-size: 31px 31px, auto, auto;
}
.pattern-b {
  background-color: #2f3a4a;
  background-image:
    radial-gradient(circle at 0 0, transparent 13px, rgba(227,201,143,.35) 14px 15px, transparent 16px),
    radial-gradient(circle at 100% 100%, transparent 13px, rgba(227,201,143,.35) 14px 15px, transparent 16px);
  background-size: 30px 30px;
}
.pattern-c {
  background-color: #8a4b33;
  background-image:
    linear-gradient(90deg, rgba(255,255,255,.08) 50%, transparent 50%),
    linear-gradient(rgba(0,0,0,.08) 50%, transparent 50%);
  background-size: 26px 26px;
}
.pattern-gold {
  background-color: #b38a43;
  background-image:
    repeating-radial-gradient(circle at 50% 120%, rgba(255,255,255,.12) 0 2px, transparent 2px 18px);
}

/* Hero */
.hero { padding: clamp(40px, 7vw, 90px) 0 clamp(56px, 8vw, 110px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero-visual { position: relative; min-height: 520px; }
.frame { border-radius: 20px; box-shadow: 0 30px 60px -30px rgba(42,20,32,.45); }
.frame-tall { position: absolute; right: 0; top: 0; width: 78%; height: 100%; border-radius: 24px; }
.frame-small { position: absolute; left: 0; bottom: 38px; width: 42%; aspect-ratio: 4/5; border: 6px solid var(--ivory); border-radius: 18px; }


/* Sections */
.section { padding: clamp(72px, 10vw, 130px) 0; }
.section-head { max-width: 680px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-dark { background: var(--wine-deep); color: var(--ivory); }
.section-dark .eyebrow { color: var(--gold); }
.section-dark p { color: rgba(248,242,233,.78); }
.section-tint { background: var(--ivory-2); }

/* Collection cards */
.collection-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.card { background: #fffaf3; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .35s, box-shadow .35s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -30px rgba(42,20,32,.4); }
.card-img { aspect-ratio: 16/9; }
.card-body { padding: 28px 28px 32px; }
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { padding: 9px 0 9px 22px; position: relative; font-size: 1rem; color: var(--ink-soft); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 19px; width: 8px; height: 8px; background: var(--gold); border-radius: 50%; }
.ticks strong { color: var(--ink); font-weight: 600; }

/* Bridal split */
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(36px, 7vw, 96px); align-items: center; }
.frame-arch { aspect-ratio: 4/5; border-radius: 24px; box-shadow: none; }
.bridal-list { list-style: none; margin: 2rem 0 2.4rem; padding: 0; }
.bridal-list li { padding: 16px 0; border-top: 1px solid var(--line-dark); }
.bridal-list li:last-child { border-bottom: 1px solid var(--line-dark); }
.bridal-list h3 { font-size: 1.1rem; margin-bottom: .2rem; color: var(--ivory); }
.bridal-list p { margin: 0; font-size: 1rem; }

/* Wigs */
.wigs { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(36px, 6vw, 80px); align-items: start; }
.wigs-copy { position: sticky; top: 110px; }
.wig-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.wig-grid li {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; background: #fffaf3; border: 1px solid var(--line); border-radius: var(--radius);
  font-weight: 500; font-size: .95rem; transition: border-color .25s, transform .25s;
}
.wig-grid li:hover { border-color: var(--gold); }
.swatch { width: 38px; height: 38px; border-radius: 50%; flex: none; background-color: #2b1d18; }
.s1  { background: linear-gradient(90deg, #1d1411 0 2px, #2e211b 2px 4px); background-size: 4px 100%; }
.s2  { background: repeating-radial-gradient(circle at 0 50%, #1d1411 0 3px, #3a2a22 3px 6px); }
.s3  { background: repeating-linear-gradient(60deg, #1d1411 0 5px, #3a2a22 5px 9px); }
.s4  { background: repeating-radial-gradient(circle at 50% 50%, #1d1411 0 2px, #3a2a22 2px 4px); }
.s5  { background: repeating-radial-gradient(circle at 30% 30%, #1d1411 0 2px, #3a2a22 2px 3px); }
.s6  { background: radial-gradient(circle, #3a2a22 1.5px, #1d1411 2px) 0 0/5px 5px; }
.s7  { background: radial-gradient(circle, #4a3328 1px, #1d1411 1.5px) 0 0/3px 3px; }
.s8  { background: linear-gradient(180deg, #e8c9a6 0 30%, #1d1411 30%); }
.s9  { background: linear-gradient(135deg, #1d1411 0 40%, #8a4b33 40% 60%, #c39b4f 60%); }
.s10 { background: radial-gradient(circle at 50% 0, #2e211b 0 60%, transparent 61%), #e8c9a6; }
.s11 { background: linear-gradient(90deg, #1d1411 0 45%, #e8c9a6 45% 55%, #1d1411 55%); }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: s; }
.steps li { padding: 32px 26px; background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius); }
.step-n { display: inline-flex; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--wine); color: var(--wine); align-items: center; justify-content: center; font: 600 1.1rem/1 var(--sans); margin-bottom: 1.2rem; }
.steps h3 { font-size: 1.15rem; }
.steps p { font-size: 1rem; color: var(--ink-soft); margin: 0; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 14px; }
.g { border-radius: 16px; }
.g1 { grid-column: span 2; grid-row: span 2; }
.gallery-cta { margin-top: 28px; color: var(--ink-soft); }
.gallery-cta a { color: var(--wine); font-weight: 600; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: start; }
.locations { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 2rem 0 2.2rem; }
.loc { border-top: 1px solid var(--line-dark); padding-top: 16px; }
.loc h3 { font-size: 1.05rem; color: var(--gold-soft); margin-bottom: .6rem; }
.loc p { margin: 0 0 .35rem; color: var(--ivory); }
.loc a { text-decoration: none; }
.loc a:hover { color: var(--gold-soft); }
.tag { font-size: .75rem; border-radius: 999px !important; background: rgba(195,155,79,.2); color: var(--gold-soft); padding: 2px 6px; border-radius: 2px; margin-left: 6px; vertical-align: 2px; }

/* About */
.about { display: grid; grid-template-columns: 1.3fr .7fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.about-copy p { color: var(--ink-soft); font-size: 1.04rem; }
.facts { margin: 0; display: grid; gap: 0; }
.facts div { padding: 20px 0; border-top: 1px solid var(--line); }
.facts div:last-child { border-bottom: 1px solid var(--line); }
.facts dt { font: 500 1.9rem/1 var(--serif); color: var(--wine); margin-bottom: 6px; }
.facts dd { margin: 0; font-size: 1rem; color: var(--ink-soft); }

.contact-list { margin: 2rem 0 2.2rem; display: grid; gap: 0; }
.contact-list div { display: grid; grid-template-columns: 150px 1fr; padding: 14px 0; border-top: 1px solid var(--line-dark); }
.contact-list dt { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); padding-top: 3px; }
.contact-list dd { margin: 0; }
.contact-list a { text-decoration: none; }
.contact-list a:hover { color: var(--gold-soft); }
.contact-form { background: rgba(248,242,233,.04); border: 1px solid var(--line-dark); padding: clamp(22px, 4vw, 40px); border-radius: var(--radius); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { font-size: .95rem; font-weight: 500; color: var(--gold-soft); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; font: inherit; color: var(--ivory);
  background: rgba(0,0,0,.18); border: 1px solid var(--line-dark); border-radius: 10px;
  color-scheme: dark;
}
.field select option { color: var(--ink); }
.field textarea { resize: vertical; }
.form-note { font-size: .9rem; text-align: center; margin: 12px 0 0; }

/* Footer */
.site-footer { background: #1c0d15; color: rgba(248,242,233,.7); padding: 44px 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.brand-footer .brand-name { color: var(--ivory); font-size: 1.3rem; }
.brand-footer .brand-tag { color: rgba(248,242,233,.55); }
.footer-nav { display: flex; gap: 1.6rem; flex-wrap: wrap; }
.footer-nav a { text-decoration: none; font-size: .95rem; }
.footer-nav a:hover { color: var(--gold); }
.copy { margin: 0; font-size: .9rem; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid, .split, .wigs, .contact, .about { grid-template-columns: 1fr; }
  .hero-visual { min-height: 440px; max-width: 520px; width: 100%; margin: 0 auto; }
  .steps { grid-template-columns: 1fr 1fr; }
  .wigs-copy { position: static; }
  .split-visual { max-width: 420px; margin: 0 auto; width: 100%; }
}
@media (max-width: 760px) {
  .nav-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; background: none; border: 0; cursor: pointer; padding: 10px;
  }
  .nav-toggle span:not(.sr-only) { display: block; height: 1.5px; background: var(--ink); transition: transform .3s, opacity .3s; }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(6.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(4) { transform: translateY(-6.5px) rotate(-45deg); }
  .site-nav {
    position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ivory); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px;
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .site-nav .btn { margin-top: 16px; }
  .brand-tag { display: none; }
  .collection-grid, .steps, .wig-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; }
  .g1 { grid-column: span 2; }
  .field-row, .locations { grid-template-columns: 1fr; gap: 0; }
  .locations { gap: 20px; }
  .contact-list div { grid-template-columns: 1fr; gap: 2px; }
  .hero-visual { min-height: 380px; }
}

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