/* ============================================================
   PATIO STYLE · Foundry design system (Brass + Warm, locked)
   Shared across every production page. Modern CSS for 2026:
   custom properties, fluid type via clamp(), logical properties,
   :has(), scroll-driven + IntersectionObserver reveals, and a
   full prefers-reduced-motion path.
   ============================================================ */

/* ---- Tokens ---- */
:root {
  /* Brand foundations */
  --charcoal: #111111;
  --charcoal-mid: #1a1a1a;
  --brass: #c8a96e;
  --brass-light: #d4ba85;
  --brass-dark: #9c8047;
  --brass-dark-hover: #7a6438;
  --cream: #f0f0f0;
  --warm-white: #f7f7f7;
  --paper: #faf7f1;
  --paper-warm: #f1ece0;
  --stone: #d4d4d4;
  --stone-dark: #888888;

  /* Brass + Warm theme accents (locked). On dark sections the accent
     steps up to brass-light for stronger contrast against charcoal. */
  --text-primary: #1a1a1a;
  --text-secondary: #4a4540;
  --text-muted: #888888;
  --accent: var(--brass-dark);
  --accent-hover: var(--brass-dark-hover);
  --accent-on-dark: var(--brass-light);
  /* Aliases mirroring the approved homepage's token names so the shared
     nav/footer/mobile-cta below stay byte-identical to index.html. */
  --accent-primary: var(--brass-dark);
  --accent-primary-hover: var(--brass-dark-hover);
  --accent-italic: var(--brass-light);
  --divider-on-light: var(--brass-dark);
  --divider-on-dark: var(--brass-light);
  --link-hover-light: var(--brass-dark);
  --link-hover-dark: var(--brass-light);
  --footer-key-color: var(--brass-dark);
  --border: rgba(17, 17, 17, 0.08);
  --border-strong: rgba(17, 17, 17, 0.18);
  --border-on-dark: rgba(255, 255, 255, 0.14);

  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.12);

  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 12px;

  /* Fluid type scale */
  --step--1: clamp(0.83rem, 0.8rem + 0.15vw, 0.92rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.5vw, 1.5rem);
  --step-2: clamp(1.5rem, 1.3rem + 1vw, 2.1rem);
  --step-3: clamp(1.9rem, 1.5rem + 2vw, 3rem);
  --step-4: clamp(2.4rem, 1.7rem + 3.4vw, 4.5rem);

  --container: 1320px;
  --container-wide: 1480px;
  --nav-h: 84px;

  --ease: cubic-bezier(0.25, 1, 0.5, 1);
}

/* ---- Reset / base ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
body {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: var(--step-0);
  line-height: 1.7;
  font-weight: 400;
  color: var(--text-primary);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }
:focus-visible { outline: 2px solid var(--brass-dark); outline-offset: 3px; }

h1, h2, h3, h4 {
  font-family: 'Archivo', system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  text-wrap: balance;
}
p { text-wrap: pretty; }
.serif {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 500;
  color: var(--brass-dark);
}

/* ---- Layout helpers ---- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 2.5rem); }
.container-wide { max-width: var(--container-wide); }
.section { padding-block: clamp(3.5rem, 7vw, 7rem); }
.section-dark { background: var(--charcoal); color: rgba(255, 255, 255, 0.85); }
.section-warm { background: var(--paper-warm); }
.center { text-align: center; }
.stack > * + * { margin-top: 1rem; }

/* ---- Eyebrow + dividers ---- */
.eyebrow {
  font-family: 'Archivo', sans-serif;
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}
.eyebrow::before { content: ''; width: 30px; height: 1px; background: currentColor; }
.eyebrow.center { justify-content: center; }
.section-dark .eyebrow { color: var(--accent-on-dark); }
.divider { width: 48px; height: 1px; background: var(--brass-dark); margin: 1.25rem 0; }
.divider.center { margin-inline: auto; }
.section-dark .divider { background: var(--brass-light); }

/* ---- Headings scale ---- */
.h-hero { font-size: var(--step-4); letter-spacing: -0.03em; line-height: 0.98; }
.h-section { font-size: var(--step-3); }
.h-card { font-size: var(--step-1); }
.lead { font-size: var(--step-1); color: var(--text-secondary); font-family: 'Cormorant Garamond', serif; font-style: italic; line-height: 1.45; }
.section-dark .lead { color: rgba(255, 255, 255, 0.78); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  font-family: 'Archivo', sans-serif; font-weight: 600;
  font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 1rem 1.85rem; border-radius: var(--radius-sm);
  border: 1px solid transparent; white-space: nowrap;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.15s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-outline { background: transparent; color: var(--text-primary); border-color: var(--text-primary); }
.btn-outline:hover { background: var(--text-primary); color: #fff; }
.btn-on-dark { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.45); }
.btn-on-dark:hover { background: #fff; color: var(--charcoal); border-color: #fff; }
.btn-light { background: var(--paper); color: var(--charcoal); border-color: var(--paper); }
.btn-light:hover { background: #fff; border-color: #fff; }

/* ---- Skip link (a11y) ---- */
.skip-link {
  position: absolute; left: 0.5rem; top: -3rem; z-index: 2000;
  background: var(--charcoal); color: #fff; padding: 0.6rem 1rem; border-radius: var(--radius-sm);
  font-family: 'Archivo', sans-serif; font-size: 0.8rem;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 0.5rem; }

/* ---- Sticky nav (centered split layout — matches the approved homepage) ----
   Transparent over the dark hero with white links, swaps to a solid paper
   bar with the dark logo once scrolled. Markup: .nav-left / .nav-logo
   (.logo-light + .logo-dark) / .nav-right, toggled by the `scrolled` class. */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 2.25rem 3rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  background: transparent;
  transition: all 0.4s ease;
}
.nav.scrolled {
  padding: 1.15rem 3rem;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-left, .nav-right { display: flex; align-items: center; gap: 2.5rem; }
.nav-left { justify-self: start; }
.nav-right { justify-self: end; }
.nav a.nav-link {
  font-family: 'Archivo', sans-serif;
  font-size: 0.85rem; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  transition: color 0.3s ease;
  text-shadow: 0 1px 8px rgba(0,0,0,0.4);
}
.nav a.nav-link:hover { color: var(--brass-light); }
.nav a.nav-link[aria-current="page"] { color: var(--brass-light); }
.nav.scrolled a.nav-link { color: var(--text-secondary); text-shadow: none; }
.nav.scrolled a.nav-link:hover,
.nav.scrolled a.nav-link[aria-current="page"] { color: var(--link-hover-light); }
.nav-logo {
  display: inline-flex; align-items: center; justify-content: center;
  text-align: center;
}
.nav-logo img { height: 84px; width: auto; transition: height 0.4s ease; filter: drop-shadow(0 2px 12px rgba(0,0,0,0.35)); }
.nav-logo .logo-dark { display: none; }
.nav.scrolled .nav-logo .logo-light { display: none; }
.nav.scrolled .nav-logo .logo-dark { display: block; }
.nav.scrolled .nav-logo img { height: 64px; filter: none; }
@media (max-width: 900px) {
  .nav { grid-template-columns: 1fr auto 1fr; padding: 1.75rem 1.5rem; }
  .nav.scrolled { padding: 1rem 1.5rem; }
  .nav-left, .nav-right { gap: 1rem; }
  .nav-left a.nav-link:not(:first-child), .nav-right a.nav-link:not(:last-child) { display: none; }
  .nav-logo img { height: 66px; }
  .nav.scrolled .nav-logo img { height: 52px; }
}
@media (max-width: 540px) {
  .nav-left, .nav-right .nav-link { display: none; }
  .nav-right { gap: 0; }
}

/* ---- Footer (centered — matches the approved homepage) ---- */
.footer { background: #111111; color: rgba(255,255,255,0.68); padding: 4.5rem 2rem 2rem; }
.footer-inner { max-width: 1180px; margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.15fr; gap: 3rem; padding-bottom: 2.75rem; border-bottom: 1px solid rgba(255,255,255,0.09); }
.footer-logo { font-family: 'Cormorant Garamond', serif; font-style: italic; font-weight: 500; font-size: 1.7rem; letter-spacing: 0.06em; color: #fff; text-transform: uppercase; }
.footer-logo b { font-family: 'Archivo', sans-serif; font-style: normal; font-weight: 700; letter-spacing: 0.14em; font-size: 0.82em; }
.footer-tagline { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 1.05rem; line-height: 1.5; color: var(--brass-light); max-width: 30ch; margin: 0.9rem 0 0; }
.footer-social { display: flex; gap: 0.7rem; margin-top: 1.4rem; }
.footer-social a { width: 38px; height: 38px; border: 1px solid rgba(255,255,255,0.18); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.65); transition: all 0.2s ease; }
.footer-social a:hover { border-color: var(--brass); color: var(--brass-light); }
.footer-social a svg { width: 17px; height: 17px; fill: currentColor; display: block; }
.footer-cta { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 1.6rem; padding: 0.72rem 1.4rem; background: var(--brass); color: #1a1a1a; font-family: 'Archivo', sans-serif; font-weight: 700; font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none; border-radius: 2px; transition: background 0.2s ease; }
.footer-cta:hover { background: var(--brass-light); }
.footer-col h4 { font-family: 'Archivo', sans-serif; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--brass-light); margin: 0 0 1.1rem; }
.footer-col a { display: block; color: rgba(255,255,255,0.66); text-decoration: none; font-size: 0.9rem; padding: 0.42rem 0; transition: color 0.18s ease, padding 0.18s ease; }
.footer-col a:hover { color: #fff; padding-left: 4px; }
.footer-visit .row { margin-bottom: 1rem; }
.footer-visit .k { font-family: 'Archivo', sans-serif; font-size: 0.62rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--footer-key-color); margin-bottom: 0.35rem; }
.footer-visit .v { font-size: 0.9rem; line-height: 1.5; color: rgba(255,255,255,0.8); }
.footer-visit .v a { color: rgba(255,255,255,0.8); text-decoration: none; }
.footer-visit .v a:hover { color: var(--brass-light); }
.footer-visit .hours-line { display: flex; justify-content: space-between; max-width: 200px; }
.footer-visit .hours-line span:last-child { color: #fff; font-variant-numeric: tabular-nums; }
.footer-visit .dir { display: inline-block; margin-top: 0.3rem; color: var(--brass-light); font-size: 0.85rem; text-decoration: none; }
.footer-visit .dir:hover { text-decoration: underline; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; max-width: 1180px; margin: 1.6rem auto 0; font-size: 0.78rem; color: rgba(255,255,255,0.5); }
.footer-bottom .legal a { color: rgba(255,255,255,0.5); text-decoration: none; margin-left: 1.1rem; }
.footer-bottom .legal a:first-child { margin-left: 0; }
.footer-bottom .legal a:hover { color: var(--brass-light); }
.footer-bottom .credit a { color: rgba(255,255,255,0.72); text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.25); transition: color 0.15s ease, border-color 0.15s ease; }
.footer-bottom .credit a:hover { color: var(--brass); border-color: var(--brass); }
@media (max-width: 860px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 0.6rem; }
}
@media (max-width: 520px) { .footer-top { grid-template-columns: 1fr; } }

/* ---- Sticky mobile CTA (matches the approved homepage) ---- */
.mobile-cta {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 998;
  display: none; align-items: center; gap: 0.55rem;
  padding: 0.55rem 0.85rem; height: 60px;
  background: #fff; box-shadow: 0 -2px 20px rgba(0,0,0,0.12);
  transform: translateY(110%);
  transition: transform 0.35s var(--ease);
  border-top: 1px solid var(--border);
}
.mobile-cta.is-visible { transform: translateY(0); }
.mobile-cta a {
  flex: 1; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.4rem; border-radius: 8px;
  font-family: 'Archivo', sans-serif;
  font-size: 0.74rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  transition: all 0.2s ease;
}
.mobile-cta a i { font-size: 1rem; }
.mobile-cta .visit { background: var(--accent-primary); color: #fff; border: 1px solid var(--accent-primary); }
.mobile-cta .visit:hover { background: var(--accent-primary-hover); border-color: var(--accent-primary-hover); }
.mobile-cta .call { background: transparent; color: var(--accent-primary); border: 1px solid var(--accent-primary); }
.mobile-cta .call:hover { background: var(--accent-primary); color: #fff; }
@media (max-width: 768px) {
  .mobile-cta { display: flex; }
  body { padding-bottom: 60px; }
}

/* ---- Category-page hero text legibility ----
   Hero copy sits over per-page photos that can be bright. A soft, large-blur
   shadow keeps the white headline and breadcrumb readable on any image without
   dulling the photo. Pages set color/size inline; none set text-shadow, so this
   applies cleanly with no override. */
.phero-inner { text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9), 0 2px 10px rgba(0, 0, 0, 0.75), 0 4px 34px rgba(0, 0, 0, 0.6); }
.phero-inner .btn { text-shadow: none; }

/* ---- Scroll reveal ---- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}
