/* <!-- style.css --> */

/* ===== Base ===== */
:root {
  --bg:#0a0b0d;
  --card:#131418;
  --ink:#f2ece6;
  --muted:#a7a4a1;
  --brand:#e2552f;      /* orange-red */
  --brand-dark:#b33e22;
  --line:rgba(255,255,255,.08);
  --navH: 72px;         /* approximate header height for centering */
}


* { box-sizing: border-box; }
html, body { height: 100%; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Manrope', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
.container { width: min(1160px, 92vw); margin: 0 auto; }

/* Typography */
.muted { color: var(--muted); }
/* Sharper, crisper headings */
h1, h2, h3 {
  font-family: 'Manrope', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 800;
  letter-spacing: -0.01em;
}

/* ===== Navbar ===== */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,11,13,.45);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.mark {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(from 210deg, var(--brand), var(--brand-dark));
  box-shadow: 0 6px 18px rgba(226,85,47,.35) inset, 0 2px 12px rgba(0,0,0,.45) inset;
}
.brand .name { letter-spacing: .4px; }
nav { display: flex; align-items: center; gap: 24px; }
nav .link { opacity: 0.85; }
nav .link:hover { opacity: 1; }

.btn {
  appearance: none; border: none; border-radius: 14px;
  padding: 12px 16px; font-weight: 700; cursor: pointer; transition: .2s ease;
  letter-spacing: .2px;
}
.btn-primary {
  background: linear-gradient(180deg, var(--brand), var(--brand-dark)); color: #fff;
  box-shadow: 0 10px 24px rgba(226,85,47,.35), inset 0 -4px 12px rgba(0,0,0,.3);
}
.btn-primary:hover { transform: translateY(-2px); }

/* Ghost button updated to match outlined card look */
.btn-ghost {
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--ink);
  box-shadow: none;
  transition: background 0.2s ease, transform 0.2s ease;
}
.btn-ghost:hover {
  transform: translateY(-2px);
  background: color-mix(in srgb, var(--card) 80%, var(--ink) 5%);
}

/* Pill base */
.pill {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .87rem;
  opacity: .9;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  display: grid;
  place-items: center;
  place-content: center; /* ensure true vertical centering */
  text-align: center;
  min-height: calc(100dvh - var(--navH)); /* center within viewport minus header */
  overflow: hidden;
  background: url('images/backroundpic.png') center/cover no-repeat;
  align-items: center; /* vertical center */
  padding-top: 0;      /* no manual offset */
}

/* subtle vignette for readability */
.hero::before{
  content:""; position:absolute; inset:0; z-index:0;
  background: radial-gradient(60% 50% at 50% 38%, rgba(0,0,0,.28), transparent 70%),
              linear-gradient(180deg, rgba(0,0,0,.22), rgba(0,0,0,.04));
}

.hero .content { position: relative; z-index: 2; max-width: 920px; padding: 0 16px; }

/* Translucent panel that keeps text crisp over the photo */
.hero-panel{
  display:grid; gap:12px; justify-items:center;
  background: transparent;
  border: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 0;
}

.hero h1{
  font-size: clamp(2.6rem, 7vw, 5rem);
  line-height: 1.02;
  margin: 0;
}

.hero p{
  margin: 0; max-width: 760px; color: #f1ece6; opacity: .95;
}
/* === Service Cards Hover Effect === */
.card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}

/* === Barber Cards Hover Effect === */
.card.barber {
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 12px;
}

.card.barber:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.3);
}

.card.barber img {
  transition: transform 0.4s ease, filter 0.4s ease;
}

.card.barber:hover img {
  transform: scale(1.1);
  filter: brightness(1.05);
}

/* === Barber "Choose" Button Hover Reveal === */
.card.barber .choose {
  opacity: 0;
  transform: translateY(15px);
  transition: all 0.3s ease;
}

.card.barber:hover .choose {
  opacity: 1;
  transform: translateY(0);
}

/* === Buttons Glow Hover === */
.btn-primary {
  transition: all 0.3s ease;
}

.btn-primary:hover {
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

.btn-ghost {
  transition: all 0.3s ease;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

/* Top badges (pills) above title: outlined, unselectable, hover lift) */
.hero .badges {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 16px 0 26px;
}
.hero .badges .pill {
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: none;
  padding: 8px 14px;
  font-weight: 600;
  opacity: 1;
  border-radius: 999px;
  user-select: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hero .badges .pill:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
}
.btn {
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 0;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(1);
  transition: transform 0.6s ease, opacity 0.6s ease;
}

.btn:active::after {
  opacity: 1;
  transform: translate(-50%, -50%) scale(20);
  opacity: 0;
}

/* Legacy hero button (kept) */
.hero button {
  background: linear-gradient(180deg, var(--brand), var(--brand-dark)); color: #fff;
  padding: 12px 18px; border: none; font-weight: 700; font-size: 1rem;
  border-radius: 14px; cursor: pointer; transition: .2s ease;
  box-shadow: 0 10px 24px rgba(226,85,47,.35), inset 0 -4px 12px rgba(0,0,0,.3);
}
.hero button:hover { transform: translateY(-2px); }

/* Film grain texture overlay */
.hero::after {
  content:""; position:absolute; inset:0; pointer-events:none; opacity:.11; mix-blend-mode:soft-light; z-index:0;
  background-image: url('data:image/svg+xml;utf8, \
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 400"><filter id="n"> \
  <feTurbulence type="fractalNoise" baseFrequency="0.8" numOctaves="2" stitchTiles="stitch"/> \
  <feColorMatrix type="saturate" values="0"/><feComponentTransfer> \
  <feFuncA type="table" tableValues="0 0.12"/> \
  </feComponentTransfer></filter><rect width="100%" height="100%" filter="url(%23n)"/></svg>');
}

/* ===== Sections ===== */
.section { padding: 64px 0; border-top: 1px solid var(--line); }
.section h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin: 0 0 8px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-top: 22px; }

/* ===== Cards & Services ===== */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px;
  box-shadow: 0 8px 24px rgba(0,0,0,.25); transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(0,0,0,.35); }
.card h3 { margin: 6px 0 6px; }
.price { color: var(--brand); font-weight: 800; }

/* ===== Barber cards ===== */
.barber-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 26px; }
.card.barber {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px;
  box-shadow: 0 8px 24px rgba(0,0,0,.25); transition: transform .2s ease, box-shadow .2s ease;
}
.card.barber:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0,0,0,.35); }
.card.barber img {
  width: 220px; height: 220px; object-fit: cover; border-radius: 50%;
  border: 3px solid var(--brand); margin-bottom: 14px; transition: transform .25s ease;
}
.card.barber img:hover { transform: scale(1.03); }
.barber-info h3 { font-size: 1.5rem; margin: 6px 0 4px; }
.barber-info p  { color: var(--muted); margin: 0 0 12px; }
.card.barber .btn { margin-top: 6px; }

/* ===== Booking ===== */
.booking-wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 22px; }

/* Booking form card — grey bg + white text, scoped */
.booking-form-card {
  background: #2a2a2a; /* dark grey background for clarity */
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  color: #ffffff;
}

/* Inputs/selects inside booking form */
.booking-form-card input,
.booking-form-card select {
  background: #1e1e1e;
  color: #ffffff;
  border: 1px solid var(--line);
}
.booking-form-card input::placeholder { color: #b3b3b3; }

/* Make select caret white (scoped) */
.booking-form-card select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg fill='white' height='12' viewBox='0 0 24 24' width='12' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px;
  padding-right: 30px;
}

/* Labels/small text in booking form */
.booking-form-card label,
.booking-form-card .muted,
.booking-form-card h2,
.booking-form-card p { color: #ffffff; }

/* Legacy booking wrapper */
.booking-form {
  background: transparent; padding: 64px 16px; text-align: center; border-top: 1px solid var(--line);
}
.booking-form h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin-bottom: 1rem; }

/* Form layout */
form { display: grid; gap: 12px; }
form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
form .row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }

form input, form select {
  width: 100%; background: #0f1114; color: var(--ink);
  border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px; font-size: 1rem; outline: none;
}
form input::placeholder { color: #9c9b9a; }

/* Keep global booking buttons brandy */
.booking-form button, .booking-form-card button {
  background: linear-gradient(180deg, var(--brand), var(--brand-dark)); color: #fff;
  font-weight: 700; cursor: pointer; transition: .2s ease; border-radius: 14px; padding: 12px 16px; border: none;
  box-shadow: 0 10px 24px rgba(226,85,47,.35), inset 0 -4px 12px rgba(0,0,0,.3);
}
.booking-form button:hover, .booking-form-card button:hover { transform: translateY(-2px); }

#message { margin-top: 10px; }

/* Info panel next to booking form */
.info { background: #0f1114; border: 1px dashed var(--line); border-radius: 12px; padding: 12px; }

/* ===== Testimonials marquee ===== */
.marquee { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #0f1114; }
.marquee-track { display: flex; gap: 20px; animation: scroll 30s linear infinite; padding: 14px; }
@keyframes scroll { 0% { transform: translateX(0) } 100% { transform: translateX(-50%) } }
.quote { white-space: nowrap; opacity: .95; }

/* ===== Gallery ===== */
.strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.strip img {
  width: 100%; height: 240px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line);
  filter: saturate(1.05); transition: transform .25s ease, box-shadow .25s ease;
}
.strip img:hover { transform: scale(1.02); box-shadow: 0 8px 20px rgba(0,0,0,.35); }

/* ===== Stats Section ===== */
.stats {
  display: flex; justify-content: center; align-items: center;
  gap: 20px; margin-top: 30px; flex-wrap: wrap;
}
.stat {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px 30px; min-width: 150px;
  text-align: center; box-shadow: 0 6px 18px rgba(0,0,0,.2); transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.stat:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(0,0,0,.3); }
.stat strong { display: block; font-size: 1.4rem; color: var(--brand); margin-bottom: 6px; }
.stat .muted { font-size: 0.9rem; color: var(--muted); }

/* ===== Success scissors animation ===== */
.scissor-fx{
  position: fixed; left: 0; top: 0; width: 32px; height: 32px; pointer-events: none; transform-origin: center;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,.35)); animation: scissorGrowSlide 1.1s cubic-bezier(.2,.8,.2,1) forwards;
}
.scissor-fx svg{ width: 100%; height: 100%; fill: none; stroke: #f2ece6; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
@keyframes scissorGrowSlide{
  0%{ opacity:0; transform: translate(-50%,-50%) scale(.25) rotate(-8deg);}
  25%{ opacity:1; transform: translate(-50%,-50%) scale(1) rotate(0deg);}
  100%{ opacity:0; transform: translate(calc(-50% + 260px), -50%) scale(1.07) rotate(16deg);}
}

/* ===== Responsive ===== */
@media (max-width: 940px) {
  .booking-wrap { grid-template-columns: 1fr; }
  form .row, form .row-3 { grid-template-columns: 1fr; }
  .card.barber img { width: 180px; height: 180px; }
}
@media (max-width: 540px) {
  :root{ --navH: 64px; }
  .hero-panel{ padding:14px 16px; }
  .hero h1 { font-size: clamp(2.1rem, 9vw, 3rem); }
  .hero p { font-size: 0.95rem; }
  .hero .badges .pill { padding: 7px 12px; }
}
/* === Cookie Banner === */
.cookie-banner{
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  padding: 14px 16px;
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0,0,0,.35);
  display: none;                 /* hidden by default */
  grid-template-columns: 1fr auto;
  gap: 12px;
  z-index: 1000;
}
.cookie-banner.is-visible{ display: grid; }
.cookie-banner a { color: var(--brand); text-decoration: none; }
.cookie-banner a:hover { text-decoration: underline; }
.cookie-actions { display: flex; gap: 8px; align-items: center; }
@media (max-width: 560px){
  .cookie-banner{ grid-template-columns: 1fr; }
  .cookie-actions{ justify-content: flex-end; }
}
/* Better focus visibility for keyboard users */
#cookieAccept:focus-visible,
#cookieReject:focus-visible,
#cookieSettingsLink:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 10px;
}

/* Ensure banner stays above anything else (modals, etc.) */
.cookie-banner { z-index: 2147483647; }

/* Respect reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .cookie-banner,
  .btn,
  .card,
  .stat,
  .strip img {
    transition: none !important;
    animation: none !important;
  }
}

/* Show content when AOS JS isn't running */
body.aos-disabled [data-aos] {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

/* Cookie Settings modal polish */
.cookie-modal[hidden]{display:none!important;}
.cookie-modal{position:fixed;inset:0;z-index:2147483646;}
.cookie-modal__backdrop{position:absolute;inset:0;background:rgba(0,0,0,.55);backdrop-filter:blur(3px);}
.cookie-modal__dialog{
  position:relative;margin:8vh auto 0;width:min(560px,92vw);
  background:var(--card);color:var(--ink);border:1px solid var(--line);
  border-radius:18px;padding:22px;box-shadow:0 30px 80px rgba(0,0,0,.55);
}
.cookie-modal__close{
  position:absolute;right:12px;top:10px;font-size:26px;line-height:1;
  background:transparent;border:none;color:var(--ink);cursor:pointer;border-radius:10px;
}

.cookie-form{margin-top:12px;display:grid;gap:12px}

/* Each option is a full-width, clickable card */
.cookie-opt{
  display:grid;
  grid-template-columns: 22px 1fr;               /* radio | text */
  align-items:center;
  gap:12px;
  padding:14px 16px;
  background:#0f1114;
  border:1px solid var(--line);
  border-radius:14px;
  cursor:pointer;
  transition:transform .15s ease, box-shadow .15s ease, border-color .15s ease, background .15s ease;
}
.cookie-opt:hover{transform:translateY(-2px);box-shadow:0 10px 22px rgba(0,0,0,.35)}
.cookie-opt input[type="radio"]{
  margin:0;                                   /* remove default left offset */
  accent-color: var(--brand);
}
.cookie-opt span{
  font-weight:700;line-height:1.35;
}
.cookie-opt .hint{
  display:block;color:var(--muted);font-size:.9rem;margin-top:2px;font-weight:400;
}

/* Highlight the selected card */
.cookie-opt:has(input[type="radio"]:checked){
  border-color: color-mix(in srgb, var(--brand) 70%, #fff 0%);
  box-shadow:0 0 0 1px rgba(226,85,47,.35), 0 16px 30px rgba(0,0,0,.4);
  background:linear-gradient(180deg, #14161a, #101214);
}

/* Modal buttons */
.cookie-actions{display:flex;gap:10px;align-items:center;margin-top:6px}
.cookie-actions .btn{padding:10px 14px;border-radius:12px}
.cookie-actions .btn.btn-ghost{background:#0f1114;border:1px solid var(--line)}

/* Focus only for keyboard users */
.cookie-modal :where(button,[href],input):focus-visible{
  outline:2px solid var(--brand);outline-offset:2px;border-radius:10px;
}

/* respect reduced motion */
@media (prefers-reduced-motion: reduce){
  .cookie-modal__dialog{animation:none}
}



/* Footer grid & lists */
.site-footer{ position:relative; background:#0f1114; border-top:1px solid var(--line); }
.site-footer .container{ padding: 28px 0; }
.site-footer{ transform: translateZ(0); will-change: transform; }

.cols{
  display:grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 24px;
  align-items: start;
}
.footer-list{ list-style:none; margin:0; padding:0; display:grid; gap:8px; }
.footer-link{
  display:inline-block;
  opacity:.95;
  padding:4px 0;
}
.footer-link:hover{ text-decoration:underline; }

/* Responsive */
@media (max-width: 940px){
  .cols{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px){
  .cols{ grid-template-columns: 1fr; }
}

/* GDPR ack checkbox tweak */
.gdpr-ack a { color: var(--brand); text-decoration: none; }
.gdpr-ack a:hover { text-decoration: underline; }
.gdpr-ack input[type="checkbox"] {
  width: 18px; height: 18px; accent-color: var(--brand);
}
.footer-list{ list-style:none; margin:0; padding:0; display:grid; gap:8px; }
.footer-link{ display:inline-block; opacity:.95; padding:4px 0; }
.footer-link:hover{ text-decoration:underline; }
/* Data Request modal – match input/textarea styles and fix checkbox row */
#dataRequestModal select,
#dataRequestModal input[type="text"],
#dataRequestModal input[type="tel"],
#dataRequestModal textarea {
  width: 100%;
  background: #1e1e1e;          /* same as booking form inputs */
  color: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 12px;
  outline: none;
}

#dataRequestModal textarea {
  min-height: 100px;             /* no huge box; grows if user types more */
  resize: vertical;
}

/* Small column for the checkbox, large column for the text */
#dataRequestModal .confirm-row {
  display: grid;
  grid-template-columns: 22px 1fr;  /* checkbox | text */
  align-items: start;
  gap: 12px;
  margin-top: 4px;
}

#dataRequestModal .confirm-row input[type="checkbox"] {
  margin: 3px 0 0 0;             /* align tick nicely */
  accent-color: var(--brand);
}

/* keep the explanatory text readable */
#dataRequestModal .confirm-row span {
  line-height: 1.5;
}
