/*
  BASE TEMPLATE STYLESHEET — plain CSS, no preprocessor, no build step.
  Visual direction: "Warm Editorial" — chosen after comparing three
  directions in design-directions/ (this one, plus a runner-up kept
  there for reference).

  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 -----------------------------------------------------
     Display font (name, headings): Fraunces — a warm, slightly quirky
     serif with real personality, loaded from Google Fonts in index.html.
     Body/UI font: Inter — a plain, highly legible grotesque for anything
     that isn't a headline. 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 neutrals plus a single accent color. To rebrand: change
     --color-accent to match the business's own palette (a logo color,
     a sign color, anything from their photos) — pick a shade dark
     enough to keep white text readable on it (roughly: if you can't
     tell at a glance whether it's "dark enough", keep white text off
     it and use it only for outlines/text-on-light instead). */
  --color-bg: #fbf7f2;          /* page background — warm ivory */
  --color-surface: #f3ece3;     /* card / alternate-section background */
  --color-ink: #241f1b;         /* primary text — warm near-black */
  --color-muted: #6b615a;       /* secondary text */
  --color-border: #e4d9cc;
  --color-accent: #a8431f;      /* THE swap-per-business color — buttons, links, accents */
  --color-accent-ink: #fff7f0;  /* text/icon color when sitting on top of --color-accent */

  /* ---- Depth --------------------------------------------------------
     Soft, warm-tinted shadows — never pure black, it reads harsh
     against warm neutrals. Two sizes: small for cards, larger for
     floating elements like the hero buttons. */
  --shadow-sm: 0 2px 8px rgba(36, 31, 27, 0.08);
  --shadow-md: 0 12px 32px rgba(36, 31, 27, 0.16);

  /* ---- 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 white flash 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;
}

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

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

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; }

/* -------------------------------------------------------------------
   MOTION — one gentle scroll reveal, plain CSS + the IntersectionObserver
   in index.html. No animation library. Respects reduced-motion: anyone
   with that preference sees every section already in place, no fade.
------------------------------------------------------------------- */
.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; }
}

/* tap feedback — buttons and cards compress slightly on press */
.btn, .card {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:active, .card:active { transform: scale(0.97); }

/* -------------------------------------------------------------------
   HERO — full-bleed photo, name over a scrim.
   Layer order (top to bottom): dark scrim for legibility, the business
   photo (via --hero-photo, set inline in index.html), a warm gradient
   fallback so the hero still looks intentional with no photo at all.

   Height: driven by --hero-min-height, also set inline alongside
   --hero-photo. With a real photo, index.html sets both together
   (92vh) — a full-bleed photo earns that much canvas. With no photo,
   neither is set, so this falls back to `auto`: the hero is only as
   tall as its own padding + text need, instead of reserving most of
   the viewport for an empty gradient.
------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: var(--hero-min-height, auto);
  display: flex;
  align-items: flex-end;
  color: #fff;
  background-image:
    linear-gradient(180deg, rgba(36,26,18,0.15) 0%, rgba(24,17,12,0.86) 88%),
    var(--hero-photo, none),
    radial-gradient(120% 90% at 20% 10%, #d98a5f 0%, #a8431f 45%, #4a2415 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: #f0d2bd;
  margin-bottom: 0.75rem;
}

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

.hero .tagline {
  color: #f1e3d8;
  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.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.5);
  backdrop-filter: blur(4px);
}

/* -------------------------------------------------------------------
   Shared section heading size (services / hours / location / contact / photos)
------------------------------------------------------------------- */
.services h2, .hours h2, .location h2, .contact h2, .photos h2 {
  font-size: 1.9rem;
}

/* -------------------------------------------------------------------
   SERVICES
------------------------------------------------------------------- */
.service-grid {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.card {
  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;
}

/* -------------------------------------------------------------------
   HOURS
------------------------------------------------------------------- */
.hours { background: var(--color-surface); }

.hours-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
  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;
}

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

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

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

/* -------------------------------------------------------------------
   LOCATION
------------------------------------------------------------------- */
.address { color: var(--color-muted); }

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

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

/* -------------------------------------------------------------------
   CONTACT
------------------------------------------------------------------- */
.contact-row {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-top: 1.5rem;
}

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

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

.photo-grid img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  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);
  }
}
