/*
  BASE TEMPLATE STYLESHEET — plain CSS, no preprocessor, no build step.
  Visual direction: dark + copper — same design language as
  template/warm-editorial/style.css (Fraunces + Inter, generous
  spacing, soft depth, one scroll reveal), rebuilt on a dark palette to
  suit a mobile barber's own dark/copper flyer branding.

  Mobile-first: every rule below applies to a phone by default. The one
  media query near the bottom widens things for tablet/desktop — it only
  adds room, it never restructures the mobile layout.

  REBRANDING A BUILD: everything in this file references the custom
  properties below, so a new business's palette/type is a one-block edit
  to :root. You should rarely need to touch anything past that block.
*/

:root {
  /* ---- Type -----------------------------------------------------
     Same pairing as warm-editorial: Fraunces (display) + Inter (body/UI).
     Swap either family name here; if you swap in a different Google
     Font, update the <link> tag in index.html too. */
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  /* ---- Color ------------------------------------------------------
     Warm near-black + a single copper accent. To rebrand: change
     --color-accent to match the business's own palette — pick a shade
     dark enough that white text stays readable on it (same rule as
     warm-editorial: if you can't tell at a glance whether it's "dark
     enough", keep white text off it and use it for text-on-dark only). */
  --color-bg: #1c1712;          /* page background — warm near-black */
  --color-surface: #2a2119;     /* card / alternate-section background */
  --color-ink: #f3e9dc;         /* primary text — warm off-white */
  --color-muted: #b7a690;       /* secondary text */
  --color-border: #3c3226;
  --color-accent: #a8632f;      /* THE swap-per-business color — buttons, accents, prices */
  --color-accent-ink: #fff8f0;  /* text/icon color when sitting on top of --color-accent */

  /* ---- Depth --------------------------------------------------------
     Dark UI needs more contrast in its shadows to read at all — these
     are deliberately stronger/blacker than warm-editorial's. */
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 14px 36px rgba(0, 0, 0, 0.55);

  /* ---- Rhythm ---------------------------------------------------
     Generous vertical spacing is intentional — it's what separates
     this from a wireframe. Don't tighten --space-section below ~4rem. */
  --space-section: 6rem;
  --space-inline: 1.5rem;
  --radius: 16px;
  --wrap: 620px;
}

/* -------------------------------------------------------------------
   RESET / BASE
------------------------------------------------------------------- */
* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--color-bg); /* prevents a flash of the wrong color on overscroll bounce */
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--color-ink);
}

p { margin: 0 0 1em; color: var(--color-muted); }

a { color: var(--color-ink); }

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

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--space-inline);
}

section { padding: var(--space-section) 0; border-bottom: 1px solid var(--color-border); }
section:last-of-type { border-bottom: none; }

/* -------------------------------------------------------------------
   MOTION — identical mechanics to warm-editorial.
------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal, .btn, .card {
    transition: none !important;
  }
  .reveal { opacity: 1; transform: none; }
}

.btn, .card {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:active, .card:active { transform: scale(0.97); }

/* -------------------------------------------------------------------
   HERO — full-bleed photo (optional), name over a scrim.
   Same --hero-photo / --hero-min-height mechanism as warm-editorial —
   see index.html's comment for how to set or omit it. Gradient
   fallback here is dark-to-copper instead of warm terracotta.
------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: var(--hero-min-height, auto);
  display: flex;
  align-items: flex-end;
  color: #fff;
  background-image:
    linear-gradient(180deg, rgba(10,8,6,0.25) 0%, rgba(8,6,4,0.88) 88%),
    var(--hero-photo, none),
    radial-gradient(120% 90% at 20% 10%, #6b4527 0%, #2c1d10 55%, #120d08 100%);
  background-size: cover, cover, cover;
  background-position: center, center, center;
  background-repeat: no-repeat, no-repeat, no-repeat;
}

.hero-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 3rem var(--space-inline) 3.5rem;
  width: 100%;
}

.hero-eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  color: #e3c4a0;
  margin-bottom: 0.75rem;
}

.hero h1 { font-size: clamp(2.4rem, 8vw, 3.4rem); color: #fff; }

.hero .tagline {
  color: #eaded0;
  font-size: 1.1rem;
  max-width: 34ch;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;              /* thumb-sized tap target */
  padding: 0.9rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.98rem;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-accent-ink);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.35);
  backdrop-filter: blur(4px);
}

/* -------------------------------------------------------------------
   Shared section heading size
------------------------------------------------------------------- */
.about h2, .services h2, .availability h2, .service-area h2, .at-the-shop h2, .contact h2, .photos h2 {
  font-size: 1.9rem;
}

/* -------------------------------------------------------------------
   ABOUT
------------------------------------------------------------------- */
.about-placeholder {
  border: 1px dashed var(--color-border);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  font-style: italic;
  color: var(--color-muted);
}

/* -------------------------------------------------------------------
   SERVICES — same card pattern as warm-editorial.
------------------------------------------------------------------- */
.service-grid {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.card {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.1rem 1.4rem;
  box-shadow: var(--shadow-sm);
  font-weight: 500;
  color: var(--color-ink);
}

.card-price {
  color: var(--color-accent);
  font-weight: 600;
  white-space: nowrap;
}

/* -------------------------------------------------------------------
   AVAILABILITY — a short list, not a seven-day table.
------------------------------------------------------------------- */
.availability { background: var(--color-surface); }

.availability-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.availability-list li {
  padding: 0.9rem 1.2rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-weight: 500;
}

/* -------------------------------------------------------------------
   SERVICE AREA — replaces Location. No map.
------------------------------------------------------------------- */
.service-area p {
  font-size: 1.1rem;
  color: var(--color-ink);
}

/* -------------------------------------------------------------------
   AT THE SHOP — optional. Same map-embed technique as warm-editorial's
   Location section, and the same seven-day hours-table pattern, both
   restyled for the dark palette.
------------------------------------------------------------------- */
.at-the-shop { background: var(--color-surface); }

.shop-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--color-ink);
  margin-bottom: 0.25em;
}

.at-the-shop .address {
  color: var(--color-muted);
}

.map-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  margin: 1.5rem 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}

.map-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
}

.hours-table th,
.hours-table td {
  text-align: left;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--color-border);
  font-weight: 400;
  color: var(--color-ink);
}

.hours-table th {
  color: var(--color-muted);
  width: 45%;
  font-weight: 400;
}

.hours-table td { text-align: right; font-weight: 500; }

.hours-table tr:last-child th,
.hours-table tr:last-child td {
  border-bottom: none;
}

/* -------------------------------------------------------------------
   CONTACT
------------------------------------------------------------------- */
.booking-note {
  color: var(--color-muted);
  font-size: 0.98rem;
}

.contact-row {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin: 1.25rem 0;
}

.contact-row a {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--color-ink);
  text-decoration: none;
}

.payments-note {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-bottom: 0;
}

/* -------------------------------------------------------------------
   PHOTOS
------------------------------------------------------------------- */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.photo-grid img {
  /* Natural aspect ratio, not forced to a square — a fixed crop (even a
     "favor the top" heuristic) trades one failure mode for another the
     moment a future photo isn't framed the way the heuristic assumes.
     Letting each image keep its own proportions never cuts anyone off,
     at the cost of grid cells not lining up to a uniform height — a
     fair trade for photos of actual people. */
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

/* -------------------------------------------------------------------
   FOOTER
------------------------------------------------------------------- */
.site-footer {
  padding: var(--space-inline) 0 calc(var(--space-inline) * 2);
}

.site-footer p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.85rem;
}

/* -------------------------------------------------------------------
   TABLET / DESKTOP — widen, never restructure.
------------------------------------------------------------------- */
@media (min-width: 640px) {
  .hero-actions {
    flex-direction: row;
  }

  .btn { min-width: 200px; }

  .photo-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
