/* ============================================================
   Hair by Holly Syrett — site styles
   Palette: barbie pink, deep plum ink, warm blush neutrals
   Fonts: Lora (display, self-hosted) + Poppins (body, self-hosted)
   ============================================================ */

/* ---------- Fonts ---------- */
@font-face {
  font-family: 'Lora';
  src: url('../fonts/lora-var.woff') format('woff');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Lora';
  src: url('../fonts/lora-italic-var.woff') format('woff');
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('../fonts/poppins-300.woff') format('woff');
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('../fonts/poppins-400.woff') format('woff');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('../fonts/poppins-500.woff') format('woff');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('../fonts/poppins-700.woff') format('woff');
  font-weight: 700; font-style: normal; font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --pink:       #E0218A;   /* barbie pink — accents, decorations */
  --pink-deep:  #C11071;   /* buttons, strong accents */
  --pink-link:  #A90F63;   /* inline links (AA on white) */
  --pink-soft:  #F9D9EA;   /* chip borders, soft fills */
  --blush:      #FDF1F7;   /* section backgrounds */
  --blush-2:    #FBE4F0;   /* deeper blush */
  --ink:        #362030;   /* headings */
  --body:       #5E4457;   /* body text */
  --faint:      #7E6375;   /* meta text (AA on white) */
  --line:       #F0DCE8;   /* hairlines */
  --white:      #FFFFFF;
  --gold:       #C99B5F;

  --serif: 'Lora', Georgia, 'Times New Roman', serif;
  --sans: 'Poppins', 'Segoe UI', system-ui, -apple-system, sans-serif;

  --radius: 18px;
  --radius-lg: 26px;
  --shadow: 0 10px 30px rgba(160, 60, 120, .12);
  --shadow-lg: 0 24px 60px rgba(120, 30, 85, .18);
  --wrap: 1120px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 96px; } /* anchored sections clear the sticky header */
body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
/* height:auto is essential: it stops the width/height ATTRIBUTES (kept for
   layout reservation) from forcing a fixed pixel height and stretching photos */
img { max-width: 100%; height: auto; display: block; }
a { color: var(--pink-link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--pink-deep); }
h1, h2, h3 { font-family: var(--serif); color: var(--ink); line-height: 1.2; margin: 0 0 .5em; font-weight: 500; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5.5vw, 3.6rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.22rem; }
p  { margin: 0 0 1em; }
em, .accent-i { font-family: var(--serif); font-style: italic; }
strong { font-weight: 500; color: var(--ink); }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
section { padding-block: 72px; }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; border-radius: 4px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font-size: .78rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
  color: var(--pink-deep); margin-bottom: 14px;
}
.eyebrow::before { content: "✦"; color: var(--pink); }
.lead { font-size: 1.12rem; font-weight: 300; }
.center { text-align: center; }
.center .eyebrow { justify-content: center; }
.muted { color: var(--faint); font-size: .92rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-family: var(--sans); font-weight: 500; font-size: .98rem;
  padding: .85em 1.7em; border-radius: 999px; text-decoration: none;
  border: 2px solid transparent; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease;
}
.btn-primary { background: var(--pink-deep); color: #fff; box-shadow: 0 8px 22px rgba(193, 16, 113, .35); }
.btn-primary:hover { background: var(--pink); color: #fff; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(224, 33, 138, .4); }
.btn-ghost { background: transparent; color: var(--pink-deep); border-color: var(--pink-deep); }
.btn-ghost:hover { background: var(--pink-deep); color: #fff; transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--pink-deep); box-shadow: 0 8px 22px rgba(80, 10, 50, .25); }
.btn-light:hover { transform: translateY(-2px); color: var(--pink); }
.btn svg { flex: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 60;
  background: var(--pink-deep); color: #fff; font-weight: 500;
  padding: .7em 1.3em; border-radius: 0 0 12px 12px; text-decoration: none;
  transition: top .2s ease;
}
.skip-link:focus-visible { top: 0; color: #fff; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 74px; }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-mark {
  width: 44px; height: 44px; border-radius: 14px;
  background: linear-gradient(135deg, var(--pink) 0%, var(--pink-deep) 100%);
  color: #fff; font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 1.5rem;
  display: grid; place-items: center; padding-bottom: 3px;
  box-shadow: 0 6px 16px rgba(224, 33, 138, .35);
}
.logo-text { display: flex; flex-direction: column; line-height: 1.05; }
.logo-top { font-size: .62rem; font-weight: 500; letter-spacing: .34em; text-transform: uppercase; color: var(--faint); }
.logo-name { font-family: var(--serif); font-style: italic; font-size: 1.28rem; color: var(--ink); }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
  font-size: .95rem; font-weight: 400; color: var(--ink); text-decoration: none;
  padding: 4px 2px; position: relative;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 2px;
  background: var(--pink); border-radius: 2px; transform: scaleX(0); transition: transform .2s ease;
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { font-weight: 500; }
.nav .btn { padding: .6em 1.3em; font-size: .9rem; }
.nav .btn::after { display: none; }

.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 10px 24px 20px; display: none; box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav a { padding: 13px 4px; border-bottom: 1px solid var(--line); }
  .nav a:last-of-type { border-bottom: 0; }
  .nav a::after { display: none; }
  .nav .btn { margin-top: 12px; justify-content: center; }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(900px 500px at 85% -10%, var(--blush-2) 0%, transparent 60%),
    radial-gradient(700px 480px at -10% 110%, var(--blush) 0%, transparent 55%),
    var(--white);
  overflow: hidden;
  padding-block: 84px;
}
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; }
.hero h1 .pink { color: var(--pink); }
.hero .lead { max-width: 46ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin: 26px 0 30px; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; list-style: none; }
.hero-chips li {
  font-size: .82rem; font-weight: 400; color: var(--pink-deep);
  background: #fff; border: 1px solid var(--pink-soft); border-radius: 999px;
  padding: .45em 1em;
}
.hero-photo { position: relative; }
.hero-photo img {
  width: 100%; height: auto; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 5; object-fit: cover;
}
.hero-photo::before {
  content: ""; position: absolute; inset: 18px -18px -18px 18px;
  border: 2px solid var(--pink-soft); border-radius: var(--radius-lg); z-index: -1;
}
.hero-badge {
  position: absolute; left: -16px; bottom: 26px;
  background: #fff; border-radius: 16px; box-shadow: var(--shadow);
  padding: 12px 18px; display: flex; align-items: center; gap: 10px;
  font-size: .86rem; color: var(--ink); font-weight: 400;
}
.hero-badge .dot { width: 34px; height: 34px; border-radius: 50%; background: var(--blush-2); display: grid; place-items: center; color: var(--pink-deep); }

@media (max-width: 900px) {
  .hero { padding-block: 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-photo { max-width: 440px; margin-inline: auto; }
  .hero-badge { left: 8px; }
}

/* ---------- Featured work ---------- */
.featured { background: var(--white); }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 38px; }
.tile {
  position: relative; display: block; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); text-decoration: none;
  transition: transform .22s ease, box-shadow .22s ease;
}
.tile img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .35s ease; }
.tile:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.tile:hover img { transform: scale(1.045); }
.tile-label {
  position: absolute; inset: auto 12px 12px 12px;
  background: rgba(255, 255, 255, .93); border-radius: 12px;
  padding: 9px 14px; display: flex; align-items: center; justify-content: space-between;
  font-size: .88rem; font-weight: 500; color: var(--ink);
}
.tile-label span:last-child { color: var(--pink); }
@media (max-width: 820px) { .tiles { grid-template-columns: repeat(2, 1fr); gap: 14px; } }
@media (max-width: 480px) { .tiles { grid-template-columns: 1fr 1fr; } .tile-label { font-size: .78rem; padding: 7px 10px; } }

/* ---------- About ---------- */
.about { background: linear-gradient(180deg, var(--blush) 0%, var(--white) 100%); }
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.about-photo img {
  width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 5; object-fit: cover;
}
.about-photo { position: relative; }
.about-photo::after {
  content: "✦"; position: absolute; top: -14px; right: -8px; color: var(--pink);
  font-size: 1.6rem; background: #fff; width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; box-shadow: var(--shadow);
}
.signoff { font-family: var(--serif); font-style: italic; font-size: 1.35rem; color: var(--pink-deep); margin-top: 18px; }
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-photo { max-width: 400px; }
}

/* ---------- Service cards ---------- */
.services-teaser { background: var(--white); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 38px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; box-shadow: 0 6px 18px rgba(160, 60, 120, .07);
  transition: transform .22s ease, box-shadow .22s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-icon {
  width: 52px; height: 52px; border-radius: 16px; margin-bottom: 18px;
  background: linear-gradient(135deg, var(--blush-2), var(--pink-soft));
  display: grid; place-items: center; color: var(--pink-deep);
}
.card p { font-size: .95rem; margin-bottom: 14px; }
.card .link { font-weight: 500; font-size: .92rem; text-decoration: none; }
.card .link::after { content: " →"; }
@media (max-width: 820px) { .cards { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--pink) 0%, var(--pink-deep) 60%, #8E0B54 100%);
  color: #fff; text-align: center; border-radius: var(--radius-lg);
  padding: 64px 28px; position: relative; overflow: hidden;
}
.cta-band::before, .cta-band::after {
  content: "✦"; position: absolute; color: rgba(255, 255, 255, .25); font-size: 2rem;
}
.cta-band::before { top: 22px; left: 8%; }
.cta-band::after { bottom: 22px; right: 8%; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, .88); max-width: 52ch; margin-inline: auto; }
.cta-band .btn { margin-top: 12px; }
.cta-wrap { padding-block: 24px 88px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background:
    radial-gradient(700px 380px at 90% -20%, var(--blush-2) 0%, transparent 60%),
    radial-gradient(600px 380px at 0% 120%, var(--blush) 0%, transparent 55%),
    var(--white);
  padding-block: 64px 48px; text-align: center;
}
.page-hero p { max-width: 62ch; margin-inline: auto; }

/* ---------- Gallery ---------- */
.filters {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
  padding: 0 24px; margin: 0 auto 40px; max-width: var(--wrap);
}
.filter-btn {
  font-family: var(--sans); font-size: .9rem; font-weight: 400; cursor: pointer;
  color: var(--ink); background: #fff; border: 1.5px solid var(--line);
  border-radius: 999px; padding: .55em 1.25em;
  transition: all .18s ease;
}
.filter-btn:hover { border-color: var(--pink); color: var(--pink-deep); }
.filter-btn.active { background: var(--pink-deep); border-color: var(--pink-deep); color: #fff; font-weight: 500; }
.filter-btn .count { opacity: .6; font-size: .8em; margin-left: .35em; }

.masonry { columns: 4 260px; column-gap: 18px; max-width: 1400px; margin-inline: auto; padding-inline: 24px; }
@media (max-width: 640px) {
  /* two columns on phones: half the scroll, more of a gallery feel */
  .masonry { columns: 2; column-gap: 10px; padding-inline: 14px; }
  .shot { margin-bottom: 10px; border-radius: 10px; }
}
.shot {
  break-inside: avoid; margin: 0 0 18px; position: relative; display: block;
  border-radius: 14px; overflow: hidden; box-shadow: 0 6px 16px rgba(160, 60, 120, .10);
  border: 0; padding: 0; cursor: zoom-in; background: var(--blush);
  width: 100%; transition: transform .2s ease, box-shadow .2s ease;
}
.shot img { width: 100%; height: auto; transition: transform .3s ease; }
.shot::after {
  content: attr(data-caption);
  position: absolute; inset: auto 0 0 0; padding: 30px 14px 12px;
  background: linear-gradient(transparent, rgba(40, 8, 28, .72));
  color: #fff; font-size: .82rem; font-weight: 400; text-align: left;
  opacity: 0; transition: opacity .22s ease;
}
.shot:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.shot:hover::after, .shot:focus-visible::after { opacity: 1; }
.shot.hidden { display: none; }
.gallery-note { text-align: center; margin: 34px 0 0; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100; display: none;
  background: rgba(30, 5, 20, .93);
  align-items: center; justify-content: center; flex-direction: column; gap: 14px;
  padding: 48px 16px 20px;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: min(92vw, 900px); max-height: 76vh; object-fit: contain;
  border-radius: 12px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
}
.lb-caption { color: #fff; font-size: .95rem; font-weight: 300; text-align: center; }
.lb-caption .lb-count { color: rgba(255, 255, 255, .75); margin-left: .8em; font-size: .85em; }
.lb-btn {
  position: absolute; background: rgba(255, 255, 255, .12); color: #fff;
  border: 0; border-radius: 50%; width: 52px; height: 52px; cursor: pointer;
  display: grid; place-items: center; transition: background .18s ease;
}
.lb-btn:hover { background: var(--pink); }
.lb-btn svg { width: 26px; height: 26px; }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) {
  .lb-prev { left: 6px; } .lb-next { right: 6px; }
  .lb-btn { width: 44px; height: 44px; }
}

/* ---------- Services page ---------- */
.service-block { display: grid; grid-template-columns: .82fr 1.18fr; gap: 48px; align-items: center; }
.service-block + .service-block { margin-top: 72px; }
.service-block:nth-child(even) .service-photo { order: 2; }
.service-photo img {
  width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 5; object-fit: cover;
}
.service-list { list-style: none; padding: 0; margin: 18px 0 22px; }
.service-list li { padding: 11px 0 11px 30px; border-bottom: 1px solid var(--line); position: relative; font-size: .98rem; }
.service-list li:last-child { border-bottom: 0; }
.service-list li::before { content: "✦"; position: absolute; left: 4px; color: var(--pink); font-size: .8em; top: 15px; }
.service-list strong { font-weight: 500; }
.note-box {
  background: var(--blush); border: 1px solid var(--pink-soft); border-radius: var(--radius);
  padding: 26px 30px; margin-top: 64px;
}
.note-box h3 { display: flex; align-items: center; gap: .5em; }
.note-box p:last-child { margin-bottom: 0; }
@media (max-width: 900px) {
  .service-block { grid-template-columns: 1fr; gap: 28px; }
  .service-block:nth-child(even) .service-photo { order: 0; }
  .service-photo { max-width: 420px; }
}

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: stretch; }
.contact-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 40px 36px; box-shadow: var(--shadow); text-align: center;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.contact-card.ig { background: linear-gradient(150deg, #FDF1F7 0%, #FFFFFF 55%); }
.ig-glyph {
  width: 64px; height: 64px; border-radius: 20px; margin-bottom: 10px;
  background: linear-gradient(135deg, var(--pink) 0%, var(--pink-deep) 100%);
  color: #fff; display: grid; place-items: center; box-shadow: 0 10px 26px rgba(224, 33, 138, .4);
}
.handle { font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: var(--ink); }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 30px 0 0; display: grid; gap: 18px; text-align: left; }
.steps li { counter-increment: step; display: flex; gap: 16px; align-items: flex-start; }
.steps li::before {
  content: counter(step);
  flex: none; width: 38px; height: 38px; border-radius: 50%;
  background: var(--blush-2); color: var(--pink-deep); font-weight: 500;
  display: grid; place-items: center;
}
.steps strong { display: block; }
.faq { max-width: 760px; margin-inline: auto; }
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 18px 24px; margin-bottom: 12px;
}
.faq summary {
  font-weight: 500; color: var(--ink); cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--pink); font-size: 1.3em; font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 12px 0 4px; font-size: .95rem; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- 404 ---------- */
.oops { min-height: 60vh; display: grid; place-items: center; text-align: center; padding-block: 80px; }
.oops .num { font-family: var(--serif); font-style: italic; font-size: clamp(4rem, 14vw, 7rem); color: var(--pink); line-height: 1; }

/* ---------- Footer ---------- */
.site-footer { background: #2C1524; color: #D9BFCF; margin-top: 40px; }
.site-footer .wrap { padding-block: 52px 34px; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 36px; justify-content: space-between; align-items: flex-start; }
.site-footer .logo-name { color: #fff; }
.site-footer .logo-top { color: #B08CA3; }
.footer-nav { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-nav a { color: #E8D3E0; text-decoration: none; font-size: .95rem; }
.footer-nav a:hover { color: #fff; text-decoration: underline; }
.footer-meta {
  border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 36px; padding-top: 22px;
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  font-size: .84rem; color: #B08CA3;
}
.footer-meta a { color: #E8D3E0; }

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