/* Affan Grooming Lounge: shared styles for every page. */

@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/Manrope-variable.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Playfair Display";
  src: url("/assets/fonts/PlayfairDisplay-variable.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}

:root {
  --navy: #1E2B42;
  --navy-deep: #172234;
  --navy-line: #33425d;
  --parchment: #EEE5D0;
  --parchment-dim: #D5CFBF;
  --muted: #A9AFBB;
  --gold: #C9A14A;
  --gold-soft: rgba(201, 161, 74, 0.14);
  --charcoal: #23262A;
  --walnut: #4B3A33;
  --radius: 14px;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1120px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 110px; }
body {
  margin: 0;
  background: var(--navy);
  color: var(--parchment);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--gold); }
.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; z-index: 50; padding: 10px 14px; background: var(--gold); color: var(--navy); font-weight: 700; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--parchment); outline-offset: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 32px; } }

/* ---------- Header ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(30, 43, 66, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--navy-line);
}
.top-inner {
  display: grid; grid-template-columns: 1fr auto; grid-template-areas: "brand wa" "nav nav";
  align-items: center; gap: 8px 12px; padding-top: 10px; padding-bottom: 8px;
}
.brand { grid-area: brand; }
.wa-mini { grid-area: wa; }
.nav { grid-area: nav; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--parchment); flex: none; }
.brand img { height: 38px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font: 900 22px/1 var(--serif); letter-spacing: 0.03em; }
.brand-sub { font: 600 9.5px/1.6 var(--sans); letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); }
.wa-mini {
  flex: none; font: 700 13px/1 var(--sans); color: var(--navy); background: var(--gold);
  padding: 11px 15px; border-radius: 999px; text-decoration: none;
}
.nav { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; margin: 0 -10px; }
.nav::-webkit-scrollbar { display: none; }
.nav a {
  flex: none; padding: 7px 10px; border-radius: 999px;
  font: 600 14px/1.2 var(--sans); color: var(--parchment-dim); text-decoration: none;
}
.nav a:hover { color: var(--parchment); }
.nav a[aria-current="page"] { color: var(--navy); background: var(--parchment); }
@media (min-width: 860px) {
  .top-inner { grid-template-columns: auto 1fr auto; grid-template-areas: "brand nav wa"; gap: 20px; padding-top: 12px; padding-bottom: 12px; }
  .nav { justify-content: flex-end; margin: 0; }
  .nav a { padding: 8px 14px; font-size: 15px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 12px 22px; border-radius: 999px;
  font: 700 15px/1.2 var(--sans); text-align: center; text-decoration: none;
  cursor: pointer; border: 1px solid transparent; transition: transform .15s, background .15s, border-color .15s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.98); }
.btn svg { width: 20px; height: 20px; flex: none; fill: currentColor; }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: #d4ad57; }
.btn-line { background: transparent; color: var(--parchment); border-color: var(--navy-line); }
.btn-line:hover { border-color: var(--gold); }
.btn-wide { width: 100%; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 479px) { .btns .btn { flex: 1 1 100%; } }

/* ---------- Type and sections ---------- */
.eyebrow { margin: 0 0 12px; font: 700 12px/1.3 var(--sans); letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); }
h1, h2, h3 { font-family: var(--serif); margin: 0; }
h1 { font-weight: 800; font-size: clamp(36px, 8.5vw, 64px); line-height: 1.06; }
h1 em, h2 em { font-style: italic; font-weight: 500; color: var(--gold); }
h2 { font-weight: 700; font-size: clamp(28px, 6vw, 40px); line-height: 1.15; }
h3 { font-weight: 700; font-size: 21px; line-height: 1.25; }
.lede { font-size: 17.5px; color: var(--parchment-dim); max-width: 34em; }
.muted { color: var(--muted); }
.small { font-size: 13.5px; color: var(--muted); }
.section { padding: 56px 0; }
@media (min-width: 768px) { .section { padding: 84px 0; } }
.section-alt { background: var(--navy-deep); border-top: 1px solid var(--navy-line); border-bottom: 1px solid var(--navy-line); }
.section-head { margin-bottom: 28px; }
.section-head p { margin: 10px 0 0; }
.rule { width: 64px; height: 2px; background: var(--gold); border: 0; margin: 16px 0 0; }
.link-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; }
.link-more::after { content: "→"; transition: transform .15s; }
.link-more:hover::after { transform: translateX(3px); }

.page-head { padding: 40px 0 8px; }
@media (min-width: 768px) { .page-head { padding: 64px 0 12px; } }
.page-head .lede { margin: 14px 0 0; }

/* ---------- Home hero ---------- */
.hero { padding: 28px 0 48px; }
.hero-grid { display: grid; gap: 28px; align-items: center; }
.hero-photo { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; box-shadow: 0 0 0 1px var(--gold), 0 24px 48px rgba(0, 0, 0, 0.35); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo figcaption { position: absolute; left: 12px; bottom: 12px; padding: 6px 12px; border-radius: 999px; background: rgba(23, 34, 52, 0.85); font-size: 12.5px; color: var(--parchment-dim); }
.hero-copy .lede { margin: 16px 0 24px; }
.status {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 7px 14px;
  border-radius: 999px; border: 1px solid var(--navy-line); font: 600 13.5px/1.2 var(--sans); color: var(--parchment-dim);
}
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.status.open::before { background: #5BC27A; box-shadow: 0 0 0 4px rgba(91, 194, 122, 0.18); }
.status.break::before { background: var(--gold); }
@media (max-width: 767px) { .hero-photo { order: -1; aspect-ratio: 4 / 4.2; } }
@media (min-width: 768px) {
  .hero { padding: 56px 0 84px; }
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; gap: 56px; }
}

/* ---------- Cards ---------- */
.cards { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .cards { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
.card { padding: 20px 16px; border-radius: var(--radius); background: var(--navy-deep); border: 1px solid var(--navy-line); }
.section-alt .card { background: var(--navy); }
.card svg { width: 34px; height: 34px; margin-bottom: 12px; fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 19px; margin-bottom: 6px; }
.card p { margin: 0; font-size: 14.5px; color: var(--muted); line-height: 1.5; }
.after-cards { margin-top: 24px; }

/* Try-on promo */
.promo {
  display: grid; gap: 20px; align-items: center; padding: 28px 22px; border-radius: 20px;
  background: linear-gradient(135deg, var(--walnut), #3a2d28); border: 1px solid rgba(201, 161, 74, 0.45);
}
.promo h2 { font-size: clamp(28px, 6vw, 38px); }
.promo p { margin: 10px 0 0; color: var(--parchment-dim); }
.promo .tag { display: inline-block; margin-bottom: 10px; padding: 4px 10px; border-radius: 999px; background: var(--gold); color: var(--navy); font: 800 11px/1.3 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; }
@media (min-width: 768px) { .promo { grid-template-columns: 1fr auto; padding: 40px 44px; } }

/* Split: text + photo */
.split { display: grid; gap: 28px; align-items: center; }
.split-photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; }
.split-photo img { width: 100%; height: 100%; object-fit: cover; }
.split p { color: var(--parchment-dim); }
@media (min-width: 768px) { .split { grid-template-columns: 1fr 1fr; gap: 56px; } }

/* Photo strip on home */
.strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.strip a { display: block; border-radius: 10px; overflow: hidden; aspect-ratio: 3 / 4; }
.strip img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.strip a:hover img { transform: scale(1.04); }
@media (min-width: 768px) { .strip { gap: 14px; } }

/* ---------- Info blocks (visit / home) ---------- */
.info { display: grid; gap: 14px; }
@media (min-width: 768px) { .info { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.info-box { padding: 22px 20px; border-radius: var(--radius); background: var(--navy-deep); border: 1px solid var(--navy-line); }
.section-alt .info-box { background: var(--navy); }
.info-box h3 { font: 700 12px/1.3 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.info-box p { margin: 0 0 14px; }
.info-box p:last-child { margin-bottom: 0; }
.info-box .big { font: 700 20px/1.35 var(--serif); color: var(--parchment); }

.hours { width: 100%; border-collapse: collapse; font-size: 15px; }
.hours th, .hours td { padding: 8px 0; border-bottom: 1px solid var(--navy-line); text-align: left; font-weight: 500; }
.hours td { text-align: right; color: var(--parchment-dim); }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }
.hours tr.today th, .hours tr.today td { color: var(--gold); font-weight: 700; }

.map { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--navy-line); aspect-ratio: 4 / 3; background: var(--navy-deep); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(0.2); }
@media (min-width: 768px) { .map { aspect-ratio: 16 / 9; } }

.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.contact-list a {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--radius);
  background: var(--navy-deep); border: 1px solid var(--navy-line); color: var(--parchment); text-decoration: none;
}
.contact-list a:hover { border-color: var(--gold); }
.contact-list svg { width: 26px; height: 26px; flex: none; fill: var(--gold); }
.contact-list strong { display: block; font-size: 16px; }
.contact-list span { color: var(--muted); font-size: 14px; }

/* ---------- Services menu ---------- */
.menu { display: grid; gap: 16px; }
@media (min-width: 860px) { .menu { grid-template-columns: 1fr 1fr; gap: 20px 28px; align-items: start; } }
.menu-group { padding: 24px 20px 14px; border-radius: var(--radius); background: var(--navy-deep); border: 1px solid var(--navy-line); }
.menu-group h2 { font-size: 26px; color: var(--gold); padding-bottom: 12px; margin-bottom: 4px; border-bottom: 1px solid rgba(201, 161, 74, 0.5); }
.menu-group p.note { margin: 10px 0 0; font-size: 13.5px; color: var(--muted); }
.menu-list { list-style: none; margin: 0; padding: 0; }
.menu-list li { display: flex; align-items: baseline; gap: 10px; padding: 11px 0; border-bottom: 1px dashed rgba(169, 175, 187, 0.25); }
.menu-list li:last-child { border-bottom: 0; }
.menu-list .item { font-weight: 500; }
.menu-list .item small { color: var(--muted); font-size: 13px; font-weight: 400; }
.menu-list .dots { flex: 1; }
.menu-list .price { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.menu-list .sub { padding-top: 16px; font: 700 12px/1.3 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); border-bottom: 0; }
.price-note { margin-top: 24px; padding: 16px 18px; border-radius: var(--radius); background: var(--gold-soft); border: 1px solid rgba(201, 161, 74, 0.4); color: var(--parchment-dim); font-size: 14.5px; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (min-width: 768px) { .gallery { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.gallery figure { margin: 0; }
.gallery button { display: block; width: 100%; padding: 0; border: 0; border-radius: 12px; overflow: hidden; cursor: zoom-in; background: var(--navy-deep); aspect-ratio: 3 / 4; }
.gallery button img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery button:hover img { transform: scale(1.04); }
.gallery figcaption { padding: 8px 2px 0; font-size: 13.5px; color: var(--muted); line-height: 1.4; }
.gallery figcaption strong { display: block; color: var(--parchment); font-weight: 600; }

.lightbox { padding: 0; border: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(10, 15, 25, 0.92); }
.lightbox-inner { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; padding: 56px 12px 20px; gap: 12px; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 140px); width: auto; border-radius: 10px; }
.lightbox p { margin: 0; color: var(--parchment-dim); text-align: center; font-size: 14.5px; }
.lightbox .close {
  position: fixed; top: 12px; right: 12px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--navy-line);
  background: var(--navy-deep); color: var(--parchment); font-size: 24px; line-height: 1; cursor: pointer;
}

/* ---------- Footer ---------- */
.foot { padding: 48px 0 40px; background: var(--navy-deep); border-top: 1px solid var(--navy-line); color: var(--parchment-dim); font-size: 14.5px; }
.foot-grid { display: grid; gap: 28px; text-align: center; }
.foot-logo { width: 240px; margin: 0 auto; }
.foot h2 { font: 700 12px/1.3 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.foot p { margin: 0 0 6px; }
.foot a { color: var(--parchment); text-decoration: none; font-weight: 600; }
.foot a:hover { color: var(--gold); }
.foot-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; }
.foot-bottom { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--navy-line); text-align: center; font-size: 13px; color: var(--muted); }
@media (min-width: 860px) {
  .foot-grid { grid-template-columns: 1.2fr 1fr 1fr 1fr; text-align: left; align-items: start; }
  .foot-logo { margin: 0; }
  .foot-nav { justify-content: flex-start; flex-direction: column; }
}

/* Floating WhatsApp button on phones */
.wa-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 30; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; background: var(--gold); color: var(--navy);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}
.wa-float svg { width: 28px; height: 28px; fill: currentColor; }
@media (min-width: 860px) { .wa-float { display: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation-duration: 0.01ms !important; }
}
