/* Mt. Washington Village — single-page site
   Palette drawn from the Village sign: cream, sign orange, deep brown. */

:root {
  --cream: #faf6ee;
  --cream-2: #f2ebdd;
  --paper: #ffffff;
  --brown: #351c05;
  --brown-2: #5a3a1e;
  --ink: #2b2118;
  --muted: #6d5d4f;
  --orange: #d9661f;
  --orange-dark: #b44f12;
  --green: #2f5a3a;
  --line: #e4d9c6;
  --wrap: 1160px;
  --header-h: 68px;
  --serif: "PT Serif", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--orange-dark); }
a:hover { color: var(--brown); }

h1, h2, h3, h4 { font-family: var(--serif); color: var(--brown); line-height: 1.2; margin: 0; }

p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 200;
  background: var(--brown); color: #fff; padding: 8px 14px; border-radius: 6px;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(53, 28, 5, .97);
  color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .25);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }

.brand { display: flex; flex-direction: column; text-decoration: none; color: #fff; line-height: 1.15; }
.brand:hover { color: #fff; }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 1.2rem; letter-spacing: .04em; text-transform: uppercase; }
.brand-tag { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: #f2b98f; }

.site-nav { display: flex; gap: 4px; }
.site-nav a {
  color: #f4ece0; text-decoration: none; font-weight: 600; font-size: .95rem;
  padding: 8px 12px; border-radius: 6px; transition: background .15s, color .15s;
}
.site-nav a:hover, .site-nav a.is-current { background: rgba(255, 255, 255, .1); color: #fff; }

.nav-toggle {
  display: none; background: none; border: 0; padding: 10px; cursor: pointer;
  width: 44px; height: 44px; flex-direction: column; justify-content: center; gap: 5px;
}
.nav-toggle span { display: block; height: 2px; width: 24px; background: #fff; border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 8px 16px 16px;
    background: var(--brown);
    border-top: 1px solid rgba(255, 255, 255, .1);
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 12px 8px; border-bottom: 1px solid rgba(255, 255, 255, .08); border-radius: 0; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: min(78vh, 640px);
  display: flex; align-items: flex-end;
  color: #fff; overflow: hidden; background: var(--brown);
}
.hero-slides img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1.2s ease;
}
.hero-slides img.is-active { opacity: 1; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(30, 15, 3, .15) 0%, rgba(30, 15, 3, .35) 45%, rgba(30, 15, 3, .85) 100%);
}
.hero-content { position: relative; padding-top: 120px; padding-bottom: 56px; }
.hero h1 { color: #fff; text-shadow: 0 2px 16px rgba(0, 0, 0, .35); font-size: clamp(2.3rem, 6vw, 4.2rem); letter-spacing: .01em; }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: .82rem; font-weight: 700; color: #f6c39d; margin-bottom: .6em; }
.hero-lede { font-size: clamp(1.05rem, 2vw, 1.3rem); max-width: 40ch; margin-top: .6em; color: #f7efe4; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.4em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 22px; border-radius: 999px;
  font-weight: 700; text-decoration: none; font-size: 1rem;
  transition: background .15s, color .15s, border-color .15s;
  border: 2px solid transparent;
}
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-dark); color: #fff; }
.btn-ghost { border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--brown); }

.text-link { font-weight: 700; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
@media (max-width: 720px) { .section { padding: 52px 0; } }
.section-alt { background: var(--cream-2); }
.section-dark { background: var(--brown); color: #f4ece0; }
.section-dark .section-title { color: #fff; }

.section-title { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin-bottom: .5em; }
.section-intro { color: var(--muted); max-width: 62ch; }

/* About */
.about-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 1.5fr 1fr; gap: 64px; } }
.about-sign { margin: 0; justify-self: center; }
.about-sign img { border-radius: 4px; width: 100%; max-width: 380px; height: auto; }
.lead { font-family: var(--serif); font-size: 1.22rem; color: var(--brown-2); }

/* ---------- Directory ---------- */
.dir-controls {
  position: sticky; top: var(--header-h); z-index: 20;
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between;
  margin: 28px 0 8px; padding: 12px 0;
  background: var(--cream-2);
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font: inherit; font-size: .92rem; font-weight: 600; cursor: pointer;
  padding: 7px 14px; border-radius: 999px;
  border: 0; background: var(--paper); color: var(--brown-2);
  transition: background .15s, color .15s, border-color .15s;
}
.chip:hover { background: #fff3e8; }
.chip.is-active { background: var(--brown); color: #fff; }

.search { flex: 1 1 260px; max-width: 360px; }
.search input {
  width: 100%; font: inherit; font-size: .95rem;
  padding: 9px 14px 9px 38px; border-radius: 999px;
  border: 0; background-color: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%236d5d4f' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='7' cy='7' r='5'/%3E%3Cpath d='M11 11l3.5 3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: 14px center;
}
.search input:focus { outline: 2px solid var(--orange); outline-offset: 0; }
@media (max-width: 720px) {
  .dir-controls { position: static; }
  .search { max-width: none; }
}

.dir-empty { padding: 24px; text-align: center; color: var(--muted); background: var(--paper); margin-top: 20px; }

.dir-group { margin-top: 40px; }
.group-title { font-size: 1.5rem; margin-bottom: .35em; }
.group-intro { color: var(--muted); max-width: 70ch; }
.subgroup-title { font-size: 1.15rem; margin: 32px 0 0; color: var(--brown-2); }

.cards { display: grid; gap: 16px; margin-top: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.card {
  background: var(--paper); border-radius: 4px;
  padding: 22px 22px 20px;
  display: flex; flex-direction: column;
}
.card h4 { font-size: 1.12rem; margin-bottom: .35em; }
.card p { font-size: .96rem; margin-bottom: .7em; }
.card .meta { font-size: .9rem; color: var(--muted); font-weight: 600; }
.card .meta a { color: var(--muted); text-decoration: none; white-space: nowrap; }
.card .meta a:hover { color: var(--orange-dark); text-decoration: underline; }
.card-link { margin-top: auto; font-weight: 700; font-size: .92rem; text-decoration: none; word-break: break-word; }
.card-link::after { content: " \2197"; }
.card-link:hover { text-decoration: underline; }

.practitioners { list-style: none; margin: 0; padding: 0; }
.practitioners li { padding: 10px 0; border-top: 1px solid var(--line); font-size: .95rem; }
.practitioners li:first-child { border-top: 0; padding-top: 2px; }
.practitioners li strong { color: var(--brown); display: block; }
.practitioners li > a[href^="tel"] { color: var(--muted); font-weight: 600; text-decoration: none; font-size: .9rem; }
.practitioners li span { display: block; color: var(--ink); margin-top: 2px; }
.practitioners .card-link { display: inline-block; margin-top: 4px; }

.card.is-hidden, .dir-group.is-hidden, .subgroup-title.is-hidden { display: none; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); margin-top: 24px; }
.gallery-item { display: block; overflow: hidden; border-radius: 4px; aspect-ratio: 3 / 2; background: var(--cream-2); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.gallery-item:hover img { transform: scale(1.04); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(15, 8, 2, .92);
  display: flex; align-items: center; justify-content: center; padding: 56px 16px;
}
.lightbox[hidden] { display: none; }
.lb-img { max-width: min(100%, 1000px); max-height: 100%; object-fit: contain; }
.lightbox button {
  position: absolute; background: rgba(255, 255, 255, .12); color: #fff; border: 0; cursor: pointer;
  width: 48px; height: 48px; border-radius: 50%; font-size: 2rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.lightbox button:hover { background: rgba(255, 255, 255, .25); }
.lb-close { top: 12px; right: 12px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; color: #d8ccbd; font-size: .9rem; margin: 0; }

/* ---------- Events ---------- */
.events-inner { text-align: center; max-width: 760px; }
.events-inner p { font-size: 1.1rem; }
.events-contact { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 20px; }
.events-contact .btn-ghost { word-break: break-all; }

/* ---------- Visit ---------- */
.visit-grid { display: grid; gap: 40px; }
@media (min-width: 960px) { .visit-grid { grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; } }
.callout {
  display: inline-flex; flex-direction: column; padding: 12px 18px; margin: 4px 0 24px;
  background: var(--paper); border-radius: 4px;
}
.callout-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 700; }
.callout-value { font-family: var(--serif); font-size: 1.2rem; color: var(--brown); font-weight: 700; }
.sub-title { font-size: 1.25rem; margin-bottom: .6em; }
.steps { margin: 0; padding-left: 0; list-style: none; counter-reset: step; }
.steps li { position: relative; padding: 0 0 14px 44px; counter-increment: step; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--orange); color: #fff; font-weight: 700; font-size: .9rem;
  display: flex; align-items: center; justify-content: center;
}
.map-wrap iframe { width: 100%; aspect-ratio: 4 / 3; border: 0; border-radius: 4px; display: block; margin-bottom: 10px; background: var(--cream-2); }

/* ---------- Footer ---------- */
.site-footer { background: #1f1003; color: #cfc2b2; padding: 40px 0 24px; font-size: .95rem; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-start; }
.footer-brand { font-family: var(--serif); font-weight: 700; color: #fff; font-size: 1.15rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: .3em; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-nav a { color: #f2b98f; text-decoration: none; font-weight: 600; }
.footer-nav a:hover { color: #fff; }
.footer-legal { margin-top: 24px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .85rem; color: #a3958a; }
.footer-legal p { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-slides img, .gallery-item img { transition: none; }
}
