/* ============================================================
   Hair House — Bingley
   Brand: gold lettering on deep brown (matches salon logo)
   Palette: #2E211B brown · #B8945A gold · #FBF6EE cream · #fff
   ============================================================ */

:root {
  --brown: #2E211B;        /* primary dark — text, buttons, hero overlay */
  --brown-dark: #1C130F;   /* button hover */
  --gold: #B8945A;         /* accent — eyebrows, prices, dividers, icons */
  --gold-dark: #9c7c45;    /* gold hover/contrast */
  --gold-light: #d9bd8a;   /* light gold for dark backgrounds */
  --cream: #FBF6EE;        /* warm section background */
  --ink: #2E211B;          /* body text */
  --white: #FFFFFF;
  --muted: #897b6e;        /* warm taupe — secondary text */
  --line: #ece2d3;         /* hairlines / borders */
  --shadow: 0 10px 30px rgba(46, 33, 27, 0.08);
  --shadow-lg: 0 18px 50px rgba(46, 33, 27, 0.18);
  --radius: 16px;
  --header-h: 72px;
  --maxw: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: "DM Sans", system-ui, -apple-system, sans-serif;
  font-weight: 300;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--gold-dark); text-decoration: none; }

h1, h2, h3 { font-weight: 500; line-height: 1.2; margin: 0 0 0.4em; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 720px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  letter-spacing: .02em;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn-primary { background: var(--brown); color: var(--cream); box-shadow: var(--shadow-lg); }
.btn-primary:hover { background: var(--brown-dark); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,.85); }
.btn-ghost:hover { background: rgba(255,255,255,.15); transform: translateY(-2px); }
.btn-block { width: 100%; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(251, 246, 238, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.9);
  border-bottom-color: var(--line);
  box-shadow: 0 2px 18px rgba(46,33,27,.06);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }

/* Logo: real image when present (assets/logo.png), styled gold script otherwise */
.logo { display: inline-flex; align-items: center; line-height: 1; }
.logo-img { height: 46px; width: auto; display: none; }
.logo-text {
  font-family: "Dancing Script", cursive;
  font-weight: 700;
  font-size: 1.95rem;
  color: var(--gold-dark);
}
.logo.has-img .logo-img { display: block; }
.logo.has-img .logo-text { display: none; }
.footer-brand .logo-img { height: 40px; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav-link { color: var(--ink); font-weight: 400; font-size: 1rem; position: relative; }
.nav-link:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; bottom: -5px; width: 0; height: 2px;
  background: var(--gold); transition: width .25s ease;
}
.nav-link:not(.nav-cta):hover::after { width: 100%; }
.nav-cta {
  background: var(--brown); color: var(--cream); padding: 9px 22px; border-radius: 999px;
}
.nav-cta:hover { background: var(--brown-dark); }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: none;
  cursor: pointer; padding: 8px;
}
.nav-toggle span { width: 26px; height: 2px; background: var(--brown); border-radius: 2px; transition: transform .3s ease, opacity .3s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex; align-items: center;
  background: url("assets/gallery-2.jpg") center/cover no-repeat;
  color: var(--white);
  text-align: center;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(28,19,15,.45), rgba(46,33,27,.62));
}
.hero-content { position: relative; z-index: 1; padding: 120px 22px 90px; }
.hero h1 { font-size: clamp(2.2rem, 6vw, 4rem); font-weight: 500; margin-bottom: .25em; text-shadow: 0 2px 20px rgba(0,0,0,.35); }
.hero-sub { font-size: clamp(1.05rem, 2.4vw, 1.4rem); font-weight: 300; max-width: 620px; margin: 0 auto 2em; text-shadow: 0 1px 12px rgba(0,0,0,.4); }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section-alt { background: var(--cream); }
.eyebrow {
  display: inline-block; color: var(--gold-dark); font-weight: 500; letter-spacing: .14em;
  text-transform: uppercase; font-size: .78rem; margin-bottom: .5em;
}
.section h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); }
.lead { font-size: 1.12rem; color: var(--muted); }

/* ---------- About ---------- */
.about { text-align: center; }
.divider { color: var(--gold); margin: 8px 0 22px; display: flex; justify-content: center; }
.about .lead { color: var(--ink); font-weight: 300; font-size: 1.18rem; }

/* ---------- Services ---------- */
.service-grid {
  display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 36px;
}
.service-card {
  display: flex; flex-direction: column;
  width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow); position: relative;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--gold); }
.service-card:focus-visible { outline: 2px solid var(--gold-dark); outline-offset: 3px; }
.service-card h3 { font-size: 1.2rem; }
.service-card .price { color: var(--gold-dark); font-weight: 700; font-size: 1.35rem; margin: 0; }
.card-cta {
  margin-top: auto; padding-top: 16px; color: var(--gold-dark);
  font-weight: 500; font-size: .92rem; letter-spacing: .02em;
}
.card-cta span { display: inline-block; transition: transform .25s ease; }
.service-card:hover .card-cta span { transform: translateX(4px); }
.price-muted { color: var(--muted) !important; font-weight: 500 !important; font-size: 1.1rem !important; }
.service-card.featured { background: linear-gradient(160deg, #fff, var(--cream)); border-color: var(--gold); }
.tag {
  position: absolute; top: 18px; right: 18px; background: var(--gold); color: var(--brown);
  font-size: .68rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; padding: 4px 12px; border-radius: 999px;
}
.note { text-align: center; color: var(--muted); margin-top: 34px; font-size: .98rem; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 36px; }
.gallery-item {
  padding: 0; border: none; background: none; cursor: pointer; overflow: hidden;
  border-radius: var(--radius); aspect-ratio: 1 / 1; box-shadow: var(--shadow);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery-item:hover img { transform: scale(1.07); }

/* ---------- Booking form ---------- */
.booking-form { margin-top: 34px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 500; margin-bottom: 7px; font-size: .95rem; }
.req { color: var(--gold-dark); }
.opt { color: var(--muted); font-weight: 300; font-size: .85rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: 12px;
  font-family: inherit; font-size: 1rem; background: var(--white); color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(184,148,90,.2);
}
.field select.just-set {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184, 148, 90, .35);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.thank-you {
  margin-top: 34px; text-align: center; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 44px 26px; box-shadow: var(--shadow);
}
.thank-you h3 { color: var(--gold-dark); font-size: 1.6rem; }

/* ---------- Find Us ---------- */
.find-grid { display: grid; grid-template-columns: 1fr; gap: 34px; margin-top: 36px; }
.hours { width: 100%; border-collapse: collapse; }
.hours th { text-align: left; font-weight: 500; padding: 9px 0; border-bottom: 1px solid var(--line); }
.hours td { text-align: right; color: var(--muted); padding: 9px 0; border-bottom: 1px solid var(--line); }
.hours td.closed { color: var(--gold-dark); font-style: italic; }
.mt { margin-top: 28px; }
address { font-style: normal; color: var(--ink); line-height: 1.7; }
.btn-call { margin-top: 22px; }
.find-map iframe { width: 100%; height: 340px; border: 0; border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- Footer ---------- */
.site-footer { background: var(--brown); color: #e8ddd0; padding: 50px 0 26px; }
.footer-inner { display: flex; flex-direction: column; gap: 26px; align-items: center; text-align: center; }
.site-footer .logo-text { color: var(--gold-light); }
.footer-brand p { margin: 4px 0 0; color: #b6a899; font-size: .95rem; }
.footer-nav { display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; }
.footer-nav a { color: #e8ddd0; font-weight: 400; }
.footer-nav a:hover { color: var(--gold-light); }
.footer-social a { color: #e8ddd0; display: inline-flex; }
.footer-social a:hover { color: var(--gold-light); }
.footer-bottom {
  display: flex; flex-direction: column; gap: 6px; align-items: center; text-align: center;
  margin-top: 30px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12);
  font-size: .85rem; color: #9c8f80;
}
.footer-bottom .credit a { color: #9c8f80; }
.footer-bottom .credit a:hover { color: var(--gold-light); }

/* ---------- Mobile sticky call button ---------- */
.mobile-call { display: none; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(20,13,10,.93);
  display: flex; align-items: center; justify-content: center; padding: 30px;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 90vw; max-height: 88vh; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox-close {
  position: absolute; top: 22px; right: 30px; background: none; border: none; color: #fff;
  font-size: 2.6rem; line-height: 1; cursor: pointer; padding: 6px 14px;
}
.lightbox-close:hover { color: var(--gold-light); }

/* ============================================================
   Tablet  (≥ 768px)
   ============================================================ */
@media (min-width: 768px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .find-grid { grid-template-columns: 1fr 1fr; align-items: start; }
  .footer-inner { flex-direction: row; justify-content: space-between; text-align: left; }
  .footer-brand { text-align: left; }
}

/* ============================================================
   Desktop  (≥ 1024px)
   ============================================================ */
@media (min-width: 1024px) {
  .service-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ============================================================
   Mobile nav  (≤ 860px)
   ============================================================ */
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed; top: var(--header-h); right: 0; left: 0;
    flex-direction: column; gap: 0; align-items: stretch;
    background: var(--white); border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(46,33,27,.1);
    max-height: 0; overflow: hidden; transition: max-height .35s ease;
  }
  .nav.open { max-height: 360px; }
  .nav-link { padding: 16px 24px; border-bottom: 1px solid var(--line); }
  .nav-link:not(.nav-cta)::after { display: none; }
  .nav-cta { background: none; color: var(--gold-dark); border-radius: 0; }

  /* Sticky call button pinned to the bottom of the viewport on mobile */
  .mobile-call {
    display: block;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    background: var(--brown); color: var(--cream);
    text-align: center; font-weight: 500; font-size: 1.05rem; letter-spacing: .02em;
    padding: 16px 20px calc(16px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -6px 24px rgba(46, 33, 27, .22);
  }
  .mobile-call:active { background: var(--brown-dark); }
  /* Leave room so the fixed button never covers the footer credit */
  body { padding-bottom: 66px; padding-bottom: calc(66px + env(safe-area-inset-bottom, 0px)); }
}

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