/* Rapid Gents Salon — concept by Beans Digital
   Palette: vintage barber. Cream paper, espresso ink, brass, barber-pole red. */

@view-transition { navigation: auto; }

:root {
  --paper: #f6eedd;
  --paper-deep: #efe3c9;
  --ink: #221711;
  --ink-soft: #4a3a2c;
  --brass: #a96f2e;
  --brass-bright: #c98a3b;
  --pole-red: #7e2a1c;
  --line: rgba(34, 23, 17, 0.18);
  --radius: 10px;
  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Karla", "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, iframe { max-width: 100%; }

a { color: var(--pole-red); text-decoration-thickness: 1px; text-underline-offset: 3px; }

.wrap { width: min(1080px, 100% - 2.5rem); margin-inline: auto; }

/* Concept banner */
.concept-banner {
  background: var(--ink);
  color: var(--paper);
  font-size: 0.8125rem;
  text-align: center;
  padding: 0.5rem 1rem;
  letter-spacing: 0.02em;
}
.concept-banner a { color: var(--brass-bright); }

/* Barber pole stripe */
.pole-strip {
  height: 10px;
  background: repeating-linear-gradient(
    -45deg,
    var(--pole-red) 0 14px,
    var(--paper) 14px 28px,
    var(--brass) 28px 42px,
    var(--paper) 42px 56px
  );
  background-size: 200% 100%;
  animation: pole-scroll 18s linear infinite;
}
@keyframes pole-scroll {
  from { background-position: 0 0; }
  to { background-position: -158px 0; }
}

/* Header */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 238, 221, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
}
.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  view-transition-name: brand;
}
.brand .brand-pole {
  width: 12px;
  height: 30px;
  border-radius: 6px;
  border: 1.5px solid var(--ink);
  background: repeating-linear-gradient(
    -45deg,
    var(--pole-red) 0 6px,
    var(--paper) 6px 12px,
    var(--brass) 12px 18px,
    var(--paper) 18px 24px
  );
  background-size: 100% 300%;
  animation: pole-rise 6s linear infinite;
}
@keyframes pole-rise {
  from { background-position: 0 0; }
  to { background-position: 0 -68px; }
}
.brand small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--brass);
}

nav.site-nav { display: flex; align-items: center; gap: 1.4rem; }
nav.site-nav a {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}
nav.site-nav a:hover { color: var(--pole-red); }
nav.site-nav a[aria-current="page"] {
  color: var(--pole-red);
  border-bottom-color: var(--pole-red);
}
.nav-cta {
  background: var(--ink);
  color: var(--paper) !important;
  padding: 0.55rem 1.1rem !important;
  border-radius: 999px;
  border-bottom: none !important;
}
.nav-cta:hover { background: var(--pole-red); color: var(--paper) !important; }

/* Mobile nav */
.nav-toggle {
  display: none;
  background: none;
  border: 1.5px solid var(--ink);
  border-radius: 8px;
  padding: 0.45rem 0.7rem;
  font: inherit;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  nav.site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 2px solid var(--ink);
    padding: 0.5rem 1.25rem 1.25rem;
  }
  nav.site-nav.open { display: flex; }
  nav.site-nav a { padding: 0.8rem 0; border-bottom: 1px solid var(--line); }
  .nav-cta { margin-top: 0.9rem; text-align: center; border-radius: 10px; }
  /* JS-off fallback: show nav when toggle is focused via :target-free approach */
  .no-js nav.site-nav { display: flex; position: static; border-bottom: none; }
  .no-js .nav-toggle { display: none; }
}

/* Hero */
.hero {
  padding: 4.5rem 0 4rem;
  text-align: center;
  position: relative;
}
.hero .eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 1.2rem;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7.5vw, 4.8rem);
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -0.015em;
  max-width: 18ch;
  margin-inline: auto;
}
.hero h1 em {
  font-style: italic;
  color: var(--pole-red);
}
.hero .lede {
  max-width: 54ch;
  margin: 1.4rem auto 0;
  color: var(--ink-soft);
  font-size: 1.125rem;
}
.hero-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  margin: 2rem auto 0;
  color: var(--brass);
}
.hero-ornament::before,
.hero-ornament::after {
  content: "";
  width: 72px;
  height: 1px;
  background: var(--brass);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  margin-top: 2.2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: var(--pole-red); border-color: var(--pole-red); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

/* Marquee */
.marquee {
  border-block: 1.5px solid var(--ink);
  background: var(--paper-deep);
  overflow: hidden;
  padding: 0.7rem 0;
  white-space: nowrap;
}
.marquee-track {
  display: inline-block;
  animation: marquee 30s linear infinite;
}
.marquee span {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--ink-soft);
  padding: 0 1.6rem;
}
.marquee span::after {
  content: "✂";
  color: var(--brass);
  padding-left: 3.2rem;
  font-style: normal;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Sections */
section { padding: 4rem 0; }
.section-head { max-width: 640px; margin-bottom: 2.4rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.kicker {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 0.7rem;
}
h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4.5vw, 2.6rem);
  line-height: 1.12;
  font-weight: 700;
}
.section-head p { color: var(--ink-soft); margin-top: 0.9rem; }

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 1.3rem;
}
.ticket {
  background: var(--paper-deep);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.ticket:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 0 -4px var(--brass);
}
.ticket .ticket-num {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--brass);
  font-size: 0.95rem;
  margin-bottom: 0.8rem;
}
.ticket h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin-bottom: 0.6rem;
}
.ticket p { color: var(--ink-soft); font-size: 0.98rem; }
.ticket .svc-icon { width: 42px; height: 42px; margin-bottom: 1rem; color: var(--pole-red); }

/* Hours table */
.hours-panel {
  background: var(--ink);
  color: var(--paper);
  border-radius: 14px;
  padding: 2.4rem clamp(1.4rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2.4rem;
  align-items: center;
}
.hours-panel h2 { color: var(--paper); }
.hours-panel .big-hours {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--brass-bright);
  line-height: 1.1;
}
.hours-panel p { color: rgba(246, 238, 221, 0.75); margin-top: 0.8rem; }
table.hours {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
table.hours td, table.hours th {
  padding: 0.55rem 0.4rem;
  border-bottom: 1px solid rgba(246, 238, 221, 0.18);
  text-align: left;
}
table.hours th { font-weight: 700; color: var(--brass-bright); }
table.hours td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) {
  .hours-panel { grid-template-columns: 1fr; }
}

/* Review wall */
.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 1.3rem;
}
blockquote.review {
  background: var(--paper-deep);
  border-left: 4px solid var(--pole-red);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.5rem 1.4rem;
  font-size: 0.98rem;
  color: var(--ink-soft);
}
blockquote.review footer {
  margin-top: 0.9rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass);
}
.stars { color: var(--brass); letter-spacing: 0.15em; }

/* Stat band */
.stat-band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr));
  gap: 1rem;
  text-align: center;
  border-block: 1.5px solid var(--ink);
  padding: 2.2rem 0;
}
.stat-band .stat b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.8rem);
  color: var(--pole-red);
}
.stat-band .stat span {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* FAQ */
details.faq {
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper-deep);
  margin-bottom: 0.9rem;
  overflow: hidden;
}
details.faq summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
  padding: 1.1rem 1.3rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; color: var(--pole-red); font-size: 1.3rem; }
details.faq[open] summary::after { content: "–"; }
details.faq .faq-body { padding: 0 1.3rem 1.2rem; color: var(--ink-soft); }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2.2rem;
  align-items: start;
}
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card {
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper-deep);
  padding: 1.8rem 1.6rem;
}
.contact-card h3 { font-family: var(--font-display); font-size: 1.25rem; margin-bottom: 0.5rem; }
.contact-card + .contact-card { margin-top: 1.2rem; }
.map-frame {
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-deep);
}
.map-frame iframe { display: block; width: 100%; height: 420px; border: 0; }

/* CTA strip */
.cta-strip {
  background: var(--pole-red);
  color: var(--paper);
  text-align: center;
  padding: 4rem 0;
}
.cta-strip h2 { color: var(--paper); }
.cta-strip p { color: rgba(246, 238, 221, 0.85); margin-top: 0.8rem; }
.cta-strip .btn-paper {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
  margin-top: 1.8rem;
}
.cta-strip .btn-paper:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* Footer */
footer.site-footer {
  background: var(--ink);
  color: rgba(246, 238, 221, 0.8);
  padding: 2.8rem 0 2rem;
  font-size: 0.92rem;
}
footer.site-footer .foot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 1.8rem;
  margin-bottom: 2rem;
}
footer.site-footer h4 {
  font-family: var(--font-display);
  color: var(--paper);
  margin-bottom: 0.7rem;
  font-size: 1.05rem;
}
footer.site-footer a { color: var(--brass-bright); }
footer.site-footer ul { list-style: none; }
footer.site-footer li { margin-bottom: 0.4rem; }
.foot-legal {
  border-top: 1px solid rgba(246, 238, 221, 0.2);
  padding-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem;
  font-size: 0.85rem;
}

/* WhatsApp float */
.wa-float {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: #1fa855;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.75rem 1.15rem;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(34, 23, 17, 0.35);
  transition: transform 0.18s ease;
}
.wa-float:hover { transform: scale(1.05); }
.wa-float svg { width: 20px; height: 20px; }

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
