/* Abiko's Barbershop — leather green, brass fittings, bone-white type */
:root {
  --leather: #0E1A15;
  --leather-2: #142520;
  --leather-3: #1B3029;
  --brass: #C8A35A;
  --brass-hi: #E2C27F;
  --brass-lo: #8E7442;
  --bone: #EEE6D3;
  --smoke: #A8A290;
  --oxblood: #8A2F2A;
  --line: rgba(200, 163, 90, .28);
  --line-soft: rgba(238, 230, 211, .1);
  --danger: #E58A7E;

  --serif: "Bodoni Moda", "Didot", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius-s: 6px;
  --radius-arch: 999px 999px 0 0;

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--leather);
  color: var(--bone);
  font: 400 1rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.1; margin: 0; }
p { margin: 0; }

:focus-visible { outline: 2px solid var(--brass-hi); outline-offset: 3px; border-radius: 2px; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--brass); color: var(--leather); padding: 10px 14px; border-radius: var(--radius-s);
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: 0 1.5em;
  border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: .98rem; letter-spacing: .01em;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn-brass { background: var(--brass); color: var(--leather); }
.btn-brass:hover { background: var(--brass-hi); }
.btn-ghost { border-color: var(--line); color: var(--bone); background: transparent; }
.btn-ghost:hover { border-color: var(--brass); color: var(--brass-hi); }
.btn-wide { width: 100%; }
.wa-ico { width: 20px; height: 20px; fill: currentColor; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(14, 26, 21, .86);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.header-row { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  width: 38px; height: 46px; display: grid; place-items: center;
  border: 1px solid var(--brass); border-radius: var(--radius-arch);
  font: italic 500 1.5rem/1 var(--serif); color: var(--brass); padding-top: 6px;
}
.brand-name { font: 600 1.2rem/1 var(--serif); letter-spacing: .01em; }
.brand-name em { font-style: italic; font-weight: 400; color: var(--brass); }

.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--smoke); font-weight: 500; font-size: .95rem; padding: 6px 0; transition: color .2s; }
.nav a:hover { color: var(--bone); }

.header-actions { display: flex; align-items: center; gap: 8px; }
.cart-btn, .icon-btn, .menu-btn {
  position: relative; width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 999px; border: 1px solid var(--line); background: transparent; cursor: pointer;
}
.cart-btn:hover, .icon-btn:hover { border-color: var(--brass); }
.cart-btn svg, .icon-btn svg { width: 20px; height: 20px; fill: none; stroke: var(--bone); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.cart-count {
  position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 999px; background: var(--brass); color: var(--leather);
  font-size: .72rem; font-weight: 700; display: grid; place-items: center;
}
.cart-count[hidden] { display: none; }
.cart-count.bump { animation: bump .35s ease; }
@keyframes bump { 50% { transform: scale(1.35); } }

.menu-btn { display: none; }
.menu-btn span { position: absolute; width: 18px; height: 1.5px; background: var(--bone); transition: transform .25s; }
.menu-btn span:first-child { transform: translateY(-4px); }
.menu-btn span:last-child { transform: translateY(4px); }
.menu-btn[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(40px, 7vw, 96px) 0 clamp(56px, 8vw, 110px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 70% at 78% 40%, rgba(200,163,90,.12), transparent 70%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero-place { color: var(--brass); font-weight: 600; font-size: 1rem; margin-bottom: 18px; }
.hero-title { font-weight: 400; line-height: .88; margin-bottom: 28px; }
.ht-1 {
  display: block; font-size: clamp(4.2rem, 12vw, 9.5rem); font-style: italic; font-weight: 500;
  letter-spacing: -.02em;
  background: linear-gradient(176deg, var(--brass-hi) 10%, var(--brass) 48%, var(--brass-lo) 92%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-bottom: .06em;
}
.ht-2 { display: block; font-size: clamp(1.6rem, 4vw, 2.9rem); letter-spacing: .02em; color: var(--bone); margin-top: .2em; padding-left: .12em; }
.hero-lede { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--smoke); max-width: 34em; margin-bottom: 32px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 44px; }
.hero-facts { display: flex; gap: 40px; margin: 0; padding-top: 24px; border-top: 1px solid var(--line-soft); max-width: 30em; }
.hero-facts dt { font-size: .85rem; color: var(--smoke); }
.hero-facts dd { margin: 2px 0 0; font: 500 1.3rem/1.3 var(--serif); }

/* Mirror frame: the arched barbershop mirror is the recurring motif */
.mirror { position: relative; margin: 0; }
.mirror-glass {
  position: relative; border-radius: var(--radius-arch); overflow: hidden;
  background: linear-gradient(160deg, var(--leather-3), var(--leather-2));
  aspect-ratio: 400 / 520;
}
.mirror-glass img { width: 100%; height: 100%; object-fit: cover; filter: sepia(.18) saturate(.9) contrast(1.04); }
.mirror-glass::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(14,26,21,.55));
}
.hero-mirror { padding: 14px; }
.mirror-line { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.mirror-line path {
  fill: none; stroke: var(--brass); stroke-width: 1.5; vector-effect: non-scaling-stroke;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: draw 1.8s cubic-bezier(.6,.05,.3,1) .2s forwards;
}
.hero-mirror .mirror-glass { opacity: 0; animation: reveal 1.1s ease .9s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes reveal { to { opacity: 1; } }

.pole {
  position: absolute; left: 0; right: 0; bottom: 0; height: 6px;
  background: repeating-linear-gradient(-45deg, var(--oxblood) 0 12px, var(--bone) 12px 24px, #24443A 24px 36px, var(--bone) 36px 48px);
  background-size: 68px 6px;
  opacity: .85;
  animation: pole 4s linear infinite;
}
@keyframes pole { to { background-position: 68px 0; } }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-head { max-width: 640px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: 14px; }
.section-head p { color: var(--smoke); font-size: 1.05rem; }

/* ---------- Price board ---------- */
.price-board {
  border: 1px solid var(--line); border-radius: 18px;
  padding: clamp(8px, 3vw, 40px) clamp(18px, 4vw, 56px);
  background: linear-gradient(180deg, var(--leather-2), var(--leather));
}
.price-list { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: clamp(32px, 6vw, 80px); }
.price-item { break-inside: avoid; padding: 22px 0; border-bottom: 1px solid var(--line-soft); }
.price-row { display: flex; align-items: baseline; gap: 10px; }
.price-row h3 { font-size: 1.35rem; font-weight: 500; }
.price-row .dots { flex: 1; border-bottom: 1px dotted var(--brass-lo); transform: translateY(-5px); min-width: 20px; }
.price-row .price { font: 500 1.35rem/1 var(--serif); color: var(--brass-hi); white-space: nowrap; }
.price-meta { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 6px; }
.price-meta p { color: var(--smoke); font-size: .93rem; }
.price-meta .dur { white-space: nowrap; }
.book-link {
  flex-shrink: 0; background: none; border: 0; padding: 6px 0; cursor: pointer;
  color: var(--brass); font-weight: 600; font-size: .9rem; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line);
}
.book-link:hover { color: var(--brass-hi); text-decoration-color: currentColor; }

/* ---------- Products ---------- */
.products { background: var(--leather-2); border-block: 1px solid var(--line-soft); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.chip {
  min-height: 40px; padding: 0 18px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: transparent; color: var(--smoke); font-weight: 500; font-size: .93rem;
  transition: background-color .2s, color .2s, border-color .2s;
}
.chip:hover { color: var(--bone); border-color: var(--brass-lo); }
.chip[aria-pressed="true"] { background: var(--bone); color: var(--leather); border-color: var(--bone); }

.shelf { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 48px 28px; }
.product { display: flex; flex-direction: column; }
.product-stage {
  position: relative; aspect-ratio: 1 / 1; display: grid; place-items: end center;
  background: radial-gradient(70% 60% at 50% 45%, var(--leather-3), transparent 75%);
  border-bottom: 2px solid var(--brass-lo);
  margin-bottom: 18px;
}
.product-stage::after { /* shelf lip */
  content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 6px;
  background: linear-gradient(180deg, rgba(0,0,0,.35), transparent);
}
.product-stage svg { width: 62%; height: 84%; }
.product-tag {
  position: absolute; top: 10px; left: 10px;
  font-size: .78rem; font-weight: 600; color: var(--leather); background: var(--brass);
  padding: 3px 10px; border-radius: 999px;
}
.product h3 { font-size: 1.2rem; margin-bottom: 4px; }
.product .desc { color: var(--smoke); font-size: .92rem; margin-bottom: 14px; flex: 1; }
.product-buy { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.product-buy .price { font: 500 1.35rem/1 var(--serif); color: var(--brass-hi); }
.add-btn {
  min-height: 42px; padding: 0 16px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--brass); background: transparent; color: var(--brass-hi); font-weight: 600; font-size: .9rem;
  transition: background-color .2s, color .2s;
}
.add-btn:hover { background: var(--brass); color: var(--leather); }
.add-btn.added { background: var(--brass); color: var(--leather); }

/* product line art */
.pa { fill: none; stroke: var(--brass); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.pa-fill { fill: var(--leather); }
.pa-label { fill: var(--bone); stroke: none; }
.pa-ink { fill: var(--leather); font-family: var(--serif); font-style: italic; }
.pa-glass { fill: rgba(200,163,90,.14); }

/* ---------- Booking ---------- */
.booking-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.booking-copy h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: 14px; }
.booking-copy > p { color: var(--smoke); font-size: 1.05rem; max-width: 30em; }
.steps { list-style: none; counter-reset: s; margin: 28px 0 36px; padding: 0; display: grid; gap: 14px; }
.steps li { counter-increment: s; display: flex; align-items: center; gap: 14px; }
.steps li::before {
  content: counter(s); width: 34px; height: 34px; flex-shrink: 0; display: grid; place-items: center;
  border: 1px solid var(--brass); border-radius: 999px; color: var(--brass); font: italic 500 1rem/1 var(--serif);
}
.booking-mirror { max-width: 300px; }

.book-form {
  background: var(--leather-2); border: 1px solid var(--line); border-radius: 18px;
  padding: clamp(22px, 4vw, 40px); display: grid; gap: 18px;
}
.field { display: grid; gap: 7px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label, .field legend { font-weight: 600; font-size: .93rem; }
.opt { color: var(--smoke); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  background: var(--leather); border: 1px solid var(--line-soft); border-radius: 10px;
  font-size: 1rem; transition: border-color .2s;
}
.field textarea { resize: vertical; min-height: 90px; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C8A35A' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
}
.field input::placeholder, .field textarea::placeholder { color: #6F6C60; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--line); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brass); box-shadow: 0 0 0 3px rgba(200,163,90,.18); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(.75) sepia(.6) saturate(2) hue-rotate(5deg); cursor: pointer; }
.err { color: var(--danger); font-size: .85rem; min-height: 0; }
.err:empty { display: none; }
.form-note { color: var(--smoke); font-size: .88rem; text-align: center; }
.form-note a { color: var(--brass-hi); }

/* ---------- Contact ---------- */
.contact { border-top: 1px solid var(--line-soft); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: stretch; }
.contact h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: 28px; }
.contact-list { margin: 0 0 32px; display: grid; gap: 20px; }
.contact-list dt { color: var(--smoke); font-size: .88rem; }
.contact-list dd { margin: 2px 0 0; font: 500 1.25rem/1.35 var(--serif); }
.contact-list a { text-decoration-color: var(--line); text-underline-offset: 4px; }
.contact-list a:hover { color: var(--brass-hi); }
.contact-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.map { min-height: 360px; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: var(--leather-2); }
.map iframe { width: 100%; height: 100%; min-height: 360px; border: 0; filter: grayscale(.6) invert(.9) hue-rotate(180deg) contrast(.9); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line-soft); padding: 28px 0; color: var(--smoke); font-size: .9rem; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.site-footer .brand-name { color: var(--bone); font-size: 1.05rem; }
.site-footer a { color: var(--smoke); }
.site-footer a:hover { color: var(--bone); }

/* ---------- Cart drawer ---------- */
.scrim { position: fixed; inset: 0; z-index: 60; background: rgba(5, 10, 8, .6); opacity: 0; transition: opacity .3s; }
.scrim.on { opacity: 1; }
.cart {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 70;
  width: min(420px, 100%); display: flex; flex-direction: column;
  background: var(--leather-2); border-left: 1px solid var(--line);
  transform: translateX(100%); transition: transform .35s cubic-bezier(.3,.7,.2,1);
}
.cart.open { transform: none; }
.cart-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid var(--line-soft); }
.cart-head h2 { font-size: 1.8rem; }
.cart-body { flex: 1; overflow-y: auto; padding: 8px 22px; }
.cart-items { list-style: none; margin: 0; padding: 0; }
.cart-item { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line-soft); }
.cart-thumb { width: 56px; height: 56px; border-radius: 10px; background: var(--leather); display: grid; place-items: center; }
.cart-thumb svg { width: 70%; height: 80%; }
.cart-item h3 { font: 600 .98rem/1.3 var(--sans); }
.cart-item .unit { color: var(--smoke); font-size: .85rem; }
.qty { display: flex; align-items: center; gap: 4px; margin-top: 6px; }
.qty button {
  width: 32px; height: 32px; border-radius: 999px; border: 1px solid var(--line); background: transparent; cursor: pointer; font-size: 1.05rem; line-height: 1;
}
.qty button:hover { border-color: var(--brass); }
.qty output { min-width: 26px; text-align: center; font-weight: 600; }
.line-total { font: 500 1.1rem/1 var(--serif); color: var(--brass-hi); white-space: nowrap; }
.cart-empty { padding: 48px 0; text-align: center; color: var(--smoke); display: grid; gap: 18px; justify-items: center; }
.cart-empty[hidden] { display: none; }
.cart-foot { padding: 18px 22px 22px; border-top: 1px solid var(--line); display: grid; gap: 14px; background: var(--leather); }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; }
.cart-total strong { font: 500 1.7rem/1 var(--serif); color: var(--brass-hi); }
.pick { border: 0; padding: 0; margin: 0; gap: 8px; }
.pick label { display: flex; align-items: center; gap: 10px; font-weight: 500; cursor: pointer; }
.pick input { accent-color: var(--brass); width: 18px; height: 18px; min-height: 0; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 80;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--bone); color: var(--leather); font-weight: 600; font-size: .93rem;
  padding: 12px 20px; border-radius: 14px; width: max-content; max-width: calc(100% - 32px); text-align: center;
  transition: opacity .25s, transform .25s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .shelf { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .menu-btn { display: grid; }
  .nav {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 8px var(--gutter) 20px;
    background: var(--leather); border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav.open { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 14px 0; font-size: 1.1rem; color: var(--bone); border-bottom: 1px solid var(--line-soft); }
  .header-actions { margin-left: auto; }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-mirror { max-width: 380px; width: 82%; margin-inline: auto; order: -1; }
  .hero-mirror .mirror-glass { aspect-ratio: 400 / 440; }
  .price-list { columns: 1; }
  .shelf { grid-template-columns: repeat(2, 1fr); gap: 40px 18px; }
  .booking-grid, .contact-grid { grid-template-columns: 1fr; }
  .booking-mirror { display: none; }
}
@media (max-width: 480px) {
  .brand-name em { display: none; }
  .hero-facts { gap: 28px; }
  .hero-cta .btn { flex: 1 1 auto; }
  .product-stage svg { width: 70%; }
  .product-buy { flex-direction: column; align-items: stretch; }
  .add-btn { width: 100%; }
  .price-meta { flex-wrap: wrap; }
  .field-row { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .mirror-line path { stroke-dashoffset: 0; }
  .hero-mirror .mirror-glass { opacity: 1; }
}
