/* Valery Chapman Hair — dark, color-forward theme for a colorist/extensions specialist. */

:root {
  --ink: #f6efe7;          /* main text on dark */
  --ink-soft: #cbb9a9;     /* secondary text on dark */
  --bg: #1a1310;           /* page background — warm near-black */
  --bg-alt: #241a15;       /* alternating section, slightly lifted */
  --card: #2c1f19;         /* card / panel surface */
  --accent: #d99b52;       /* copper/gold — the "color" signature */
  --accent-2: #b34762;     /* berry — secondary pop, used sparingly */
  --accent-ink: #1a1310;   /* text on the accent color */
  --line: #3d2e26;         /* hairlines on dark */

  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --max: 1120px;
  --pad: clamp(1.25rem, 5vw, 4rem);
  --header-h: 68px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-top: var(--header-h);
}
img, video { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 500; line-height: 1.15; color: var(--ink); }
a { color: var(--accent); }
::selection { background: var(--accent); color: var(--accent-ink); }

/* Header — fixed, never moves on scroll ---------------------------------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0 var(--pad);
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.brand { font-family: var(--font-head); font-size: 1.25rem; text-decoration: none; color: var(--ink); letter-spacing: .01em; white-space: nowrap; }
.brand strong { color: var(--accent); font-weight: 500; }

.site-header nav { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2rem); }
.site-header nav a { text-decoration: none; color: var(--ink-soft); font-size: .95rem; }
.site-header nav a:hover { color: var(--accent); }
.nav-book {
  background: var(--accent); color: var(--accent-ink) !important;
  padding: .55rem 1.2rem; border-radius: 999px; font-weight: 600;
}
.nav-book:hover { opacity: .9; }

.hamburger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; border: none; background: none; cursor: pointer;
  padding: 0;
}
.hamburger span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; margin: 0 auto; }
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 760px) {
  .site-header nav { display: none; }
  .hamburger { display: flex; }
  .mobile-menu {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    background: var(--bg); z-index: 99;
    display: flex; flex-direction: column; padding: 2rem var(--pad); gap: 1.5rem;
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: transform .2s ease, opacity .2s ease;
  }
  .mobile-menu.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .mobile-menu a { text-decoration: none; color: var(--ink); font-family: var(--font-head); font-size: 1.6rem; }
  .mobile-menu .nav-book { align-self: flex-start; font-family: var(--font-body); font-size: 1rem; }
}
@media (min-width: 761px) { .mobile-menu { display: none; } }

/* Hero -------------------------------------------------------------------- */
.hero-topbar {
  background: var(--bg-alt); border-bottom: 1px solid var(--line);
  padding: .65rem var(--pad); text-align: center;
  text-transform: uppercase; letter-spacing: .2em; font-size: .75rem; font-weight: 700; color: var(--accent);
}
.hero {
  position: relative; min-height: min(90vh, 860px); display: flex; align-items: flex-end;
  background: #000;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 15%; opacity: 1; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,10,8,.18) 0%, rgba(15,10,8,.5) 45%, rgba(15,10,8,.8) 70%, rgba(15,10,8,.95) 100%);
}
.hero-inner { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; text-align: center; padding: clamp(3rem, 10vw, 5rem) var(--pad) clamp(1.25rem, 4vw, 2rem); width: 100%; }
@media (max-width: 760px) {
  .hero { min-height: 82vh; }
  .hero-media img { object-fit: contain; object-position: center 8%; }
}
.eyebrow { text-transform: uppercase; letter-spacing: .2em; font-size: .78rem; color: var(--accent); margin: 0 0 1rem; font-weight: 700; }
.hero h1 { font-size: clamp(2.2rem, 6.5vw, 4rem); margin: 0 0 1.25rem; filter: drop-shadow(0 2px 10px rgba(0,0,0,.6)); }
.hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, #1c110a 0%, #6b4226 18%, #c99a63 36%, #fdf3dc 50%, #c99a63 64%, #6b4226 82%, #1c110a 100%);
  background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: #fdf3dc; -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 1px rgba(255,247,232,.4);
  animation: ombre-flow 9s linear infinite;
}
@keyframes ombre-flow {
  100% { background-position: 300% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero h1 em { animation: none; }
}
.lede { font-size: clamp(1.05rem, 2.2vw, 1.25rem); color: var(--ink-soft); margin: 0 auto 2rem; max-width: 46ch; }
.hero-ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Buttons ------------------------------------------------------------------ */
.btn {
  display: inline-block; background: var(--accent); color: var(--accent-ink);
  text-decoration: none; padding: .9rem 2rem; border-radius: 999px;
  font-size: 1rem; font-weight: 600; letter-spacing: .01em;
  transition: transform .12s ease, opacity .12s ease;
}
.btn:hover { transform: translateY(-1px); opacity: .92; }
.btn-outline {
  display: inline-block; background: transparent; color: var(--ink);
  border: 1px solid var(--line); text-decoration: none; padding: .85rem 1.9rem;
  border-radius: 999px; font-size: 1rem; transition: border-color .12s ease, color .12s ease;
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* Sections ------------------------------------------------------------- */
.section { max-width: var(--max); margin: 0 auto; padding: clamp(3rem, 9vw, 6rem) var(--pad); }
.section.alt { max-width: none; background: var(--bg-alt); }
.section.alt > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.section-head { max-width: 640px; margin: 0 0 2.5rem; }
.section h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); margin: 0 0 .6rem; }
.section-lede { color: var(--ink-soft); margin: 0; max-width: 52ch; }

/* Services --------------------------------------------------------------- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.service-card {
  position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  padding: 1.5rem 1.6rem; display: flex; flex-direction: column; gap: .5rem;
  cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.service-card:hover, .service-card:focus-visible, .service-card.popped {
  border-color: var(--accent);
  box-shadow: 0 10px 24px -14px rgba(0,0,0,.6), 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent);
  transform: translateY(-3px);
  outline: none;
}
.service-top { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.service-top h3 { font-size: 1.15rem; margin: 0; }
.service-price { color: var(--accent); font-weight: 700; white-space: nowrap; font-size: 1.05rem; }
.service-meta { color: var(--ink-soft); font-size: .85rem; margin: 0; }
.service-desc { color: var(--ink-soft); font-size: .92rem; margin: 0; }
.services-note { margin-top: 2rem; color: var(--ink-soft); font-size: .92rem; }
.services-note a { color: var(--accent); }

@media (max-width: 640px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); gap: .6rem; }
  .service-card { padding: .9rem .9rem; gap: .35rem; }
  .service-top { flex-direction: column; align-items: flex-start; gap: .15rem; }
  .service-top h3 { font-size: .92rem; line-height: 1.25; }
  .service-price { font-size: .92rem; }
  .service-meta { font-size: .74rem; }
  .service-desc { font-size: .78rem; line-height: 1.4; }
}

/* Gallery -------------------------------------------------------------- */
.gallery-wrap { position: relative; }
.gallery-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--accent);
  background: var(--bg); box-shadow: 0 6px 16px -6px rgba(0,0,0,.7);
  color: var(--accent); display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: transform .15s ease, opacity .15s ease, background .15s ease;
}
.gallery-arrow svg { width: 20px; height: 20px; }
.gallery-arrow:hover { background: var(--accent); color: var(--accent-ink); transform: translateY(-50%) scale(1.06); }
.gallery-arrow:disabled { opacity: 0; pointer-events: none; }
.gallery-prev { left: -18px; }
.gallery-next { right: -18px; }
@media (max-width: 640px) {
  .gallery-arrow { width: 38px; height: 38px; }
  .gallery-arrow svg { width: 17px; height: 17px; }
  .gallery-prev { left: -19px; }
  .gallery-next { right: -19px; }
}
.gallery {
  display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: .5rem; -webkit-overflow-scrolling: touch; scrollbar-width: thin;
}
.gallery figure {
  position: relative; margin: 0; overflow: hidden; border-radius: 8px; background: var(--card);
  aspect-ratio: 4 / 5; flex: 0 0 clamp(200px, 42vw, 280px); scroll-snap-align: start;
}
.gallery img, .gallery video { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery figure:hover img, .gallery figure:hover video { transform: scale(1.04); }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: .9rem 1rem .7rem;
  background: linear-gradient(0deg, rgba(0,0,0,.75), transparent);
  color: #fff; font-size: .82rem; letter-spacing: .01em;
}
.video-tile { position: relative; cursor: pointer; }
.video-tile::before {
  content: "▶"; position: absolute; top: 50%; left: 50%; z-index: 1;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,.55); color: #fff; width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
  padding-left: 3px; transition: opacity .15s ease, transform .15s ease;
}
.video-tile.playing::before { opacity: 0; pointer-events: none; transform: translate(-50%, -50%) scale(.8); }
.video-tile video { cursor: default; }
.video-badge {
  position: absolute; top: .7rem; left: .7rem; z-index: 1;
  background: var(--accent); color: var(--accent-ink); font-weight: 700;
  font-size: .68rem; text-transform: uppercase; letter-spacing: .08em;
  padding: .25rem .55rem; border-radius: 999px;
  transition: opacity .15s ease;
}
.video-tile.playing .video-badge { opacity: 0; }
.ig-cta { text-align: center; margin-top: 2.5rem; }
.ig-cta p { color: var(--ink-soft); margin-bottom: 1rem; }
.ig-icon { width: 34px; height: 34px; color: var(--accent); display: block; margin: 0 auto .9rem; }

/* About ---------------------------------------------------------------- */
.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(1.5rem, 5vw, 3.5rem); align-items: center; }
.about-photo { border-radius: 8px; aspect-ratio: 4 / 5; object-fit: cover; width: 100%; background: var(--card); }
.about-photo-tile { margin: 0; display: block; }
.about-grid p { color: var(--ink-soft); }
@media (max-width: 720px) { .about-grid { grid-template-columns: 1fr; } .about-photo { max-width: 340px; margin: 0 auto; order: -1; } }

/* Contact -------------------------------------------------------------- */
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 2rem; }
.contact-card {
  display: flex; flex-direction: column; gap: .25rem;
  padding: 1.25rem 1.75rem; border: 1px solid var(--line); border-radius: 8px;
  text-decoration: none; color: var(--ink); background: var(--card);
  transition: border-color .12s ease;
}
.contact-card:hover { border-color: var(--accent); }
.contact-label { text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; color: var(--accent); }
.contact-value { font-size: 1.1rem; }
.contact-cta { text-align: center; }
@media (max-width: 760px) {
  .contact-cards { grid-template-columns: 1fr; }
}

/* Tool dividers ---------------------------------------------------------- */
.divider {
  display: flex; flex-wrap: nowrap; align-items: center; gap: clamp(.75rem, 3vw, 1.5rem);
  padding: 0 var(--pad); max-width: var(--max); margin: 0 auto;
}
.divider-line {
  flex: 1 1 0%; min-width: 12px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent) 15%, var(--accent) 85%, transparent);
  opacity: .55;
}
.divider-icon {
  flex: none; color: var(--accent);
  width: clamp(30px, 6vw, 40px); height: clamp(30px, 6vw, 40px);
}
.divider-icon svg { width: 100%; height: 100%; display: block; }

.divider:nth-of-type(odd) .divider-icon { animation: tool-fizzle-left 3.2s ease-in-out infinite; }
.divider:nth-of-type(even) .divider-icon { animation: tool-fizzle-right 3.2s ease-in-out infinite; }

@keyframes tool-fizzle-left {
  0%, 100% { opacity: .6; transform: scale(.85) rotate(0deg); filter: drop-shadow(0 0 0 rgba(217,155,82,0)); }
  50% { opacity: 1; transform: scale(1.15) rotate(-16deg); filter: drop-shadow(0 0 6px rgba(217,155,82,.6)); }
}
@keyframes tool-fizzle-right {
  0%, 100% { opacity: .6; transform: scale(.85) rotate(0deg); filter: drop-shadow(0 0 0 rgba(217,155,82,0)); }
  50% { opacity: 1; transform: scale(1.15) rotate(16deg); filter: drop-shadow(0 0 6px rgba(217,155,82,.6)); }
}
@media (prefers-reduced-motion: reduce) {
  .divider-icon { animation: none !important; }
}

/* Footer --------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); padding: 2.5rem var(--pad); text-align: center; color: var(--ink-soft); background: var(--bg-alt); }
.site-footer p { margin: .25rem 0; }
.footer-ig { display: inline-block; margin: .75rem 0; color: var(--accent); text-decoration: none; font-weight: 600; }
.fine { font-size: .8rem; }
