/* ==========================================================================
   Art Knapp Surrey — simple single-page static site
   No frameworks, no external assets. Mobile first.
   ========================================================================== */

:root {
  --green-900: #1b3d26;
  --green-700: #2a5d38;
  --green-500: #3f8752;
  --green-100: #e6efe6;
  --ochre: #c08a2e;
  --ochre-dark: #a2731f;
  --cream: #faf8f3;
  --paper: #ffffff;
  --ink: #22281f;
  --ink-soft: #4d554a;
  --line: #e2e0d7;
  --radius: 14px;
  --shadow: 0 8px 28px rgba(27, 61, 38, 0.10);
  --wrap: 1080px;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-head: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(16px, 1.02vw + 12px, 17.5px);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--green-700); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--ochre-dark); }

h1, h2, h3 { font-family: var(--font-head); line-height: 1.2; color: var(--green-900); }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

.sr-only {
  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: 1rem; top: -3rem;
  background: var(--green-900); color: #fff;
  padding: .6rem 1rem; border-radius: 0 0 8px 8px;
  z-index: 100; transition: top .15s ease;
}
.skip-link:focus { top: 0; color: #fff; }

/* ------------------------------- header ------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 248, 243, .92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 68px;
}

.brand { display: flex; align-items: center; text-decoration: none; }
.brand-logo { display: block; height: 42px; width: auto; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--paper); cursor: pointer;
  position: relative;
}
.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 20px; height: 2px; background: var(--green-900);
  transform: translate(-50%, -50%);
}
.nav-toggle-bar::before { transform: translate(-50%, -7px); }
.nav-toggle-bar::after { transform: translate(-50%, 7px); }

.primary-nav { display: flex; align-items: center; gap: .3rem; }
.primary-nav a {
  display: inline-block; padding: .5rem .6rem; border-radius: 8px;
  color: var(--ink); text-decoration: none; font-size: .9rem; font-weight: 600;
  white-space: nowrap;
}
.primary-nav a:hover { background: var(--green-100); color: var(--green-900); }
.primary-nav a[aria-current="page"] { color: var(--green-700); background: var(--green-100); }
.primary-nav .nav-call {
  margin-left: .35rem;
  background: var(--green-700); color: #fff;
}
.primary-nav .nav-call:hover { background: var(--green-900); color: #fff; }

/* ------------------------------- pages -------------------------------- */
.page { padding: clamp(2.2rem, 6vw, 3.6rem) 0 clamp(2.6rem, 7vw, 4.4rem); }

/* With JS: only the active page shows. Without JS: every page stays in the
   document flow, so non-JavaScript crawlers still read all the content. */
.js .page { display: none; }
.js .page.active { display: block; animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.eyebrow {
  margin: 0 0 .4rem; font-size: .78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .16em; color: var(--ochre-dark);
}

.page-head { max-width: 60ch; margin-bottom: 2rem; }
.page-head h1 { font-size: clamp(1.8rem, 4.4vw, 2.7rem); margin: 0 0 .6rem; }
.lede { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--ink-soft); margin: 0; }

.section-title {
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  margin: 2.6rem 0 1rem; padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}

/* -------------------------------- hero -------------------------------- */
/* The home page starts with the hero, so drop its top padding. */
.page#home { padding-top: 0; }

.hero {
  background:
    radial-gradient(1200px 420px at 12% -10%, rgba(63,135,82,.22), transparent 60%),
    linear-gradient(180deg, #f1f6ef 0%, var(--cream) 100%);
  border-bottom: 1px solid var(--line);
  padding: clamp(2.4rem, 7vw, 4.4rem) 0 clamp(2rem, 5vw, 3rem);
  margin-bottom: clamp(1.6rem, 4vw, 2.4rem);
}
.hero-inner { max-width: 46rem; }
.hero h1 { font-size: clamp(1.75rem, 4.6vw, 2.85rem); margin: .2rem 0 .9rem; }
.hero .lede { margin-bottom: 1.6rem; }

.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; }

.btn {
  display: inline-block; padding: .72rem 1.25rem; border-radius: 999px;
  font-weight: 700; font-size: .95rem; text-decoration: none;
  border: 1px solid transparent; transition: transform .12s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--green-700); color: #fff; }
.btn-primary:hover { background: var(--green-900); color: #fff; }
.btn-ghost { background: transparent; color: var(--green-900); border-color: var(--green-700); }
.btn-ghost:hover { background: var(--green-100); color: var(--green-900); }

/* --------------------------- quick facts ------------------------------ */
.quick-facts {
  list-style: none; margin: 0 0 2.4rem; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow);
}
@media (min-width: 900px) { .quick-facts { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 430px) { .quick-facts { grid-template-columns: 1fr; } }
.quick-facts li { background: var(--paper); padding: 1.1rem 1.2rem; }
.qf-label { display: block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--ochre-dark); }
.qf-value { display: block; font-family: var(--font-head); font-size: 1.22rem; color: var(--green-900); margin: .2rem 0 .1rem; }
.qf-note { display: block; font-size: .85rem; color: var(--ink-soft); }

/* ------------------------------ cards --------------------------------- */
.highlights {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem; margin-bottom: 2.4rem;
}
.card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.4rem 1.5rem;
  box-shadow: var(--shadow);
}
.card h3 { margin: 0 0 .5rem; font-size: 1.25rem; }
.card p { margin: 0; color: var(--ink-soft); font-size: .96rem; }

.band {
  background: var(--green-900); color: #eaf2ea;
  border-radius: var(--radius); padding: 1.6rem 1.8rem;
  font-family: var(--font-head); font-size: clamp(1.1rem, 2.4vw, 1.45rem); line-height: 1.45;
}
.band p { margin: 0; }

/* ------------------------------- prose -------------------------------- */
.prose { max-width: 68ch; }
.prose p { margin: 0 0 1.05rem; }
.prose p:last-child { margin-bottom: 0; }

.plain-list { margin: .4rem 0 1.2rem; padding-left: 1.2rem; }
.plain-list li { margin-bottom: .35rem; }

.callout {
  margin: 2rem 0 0; padding: 1.3rem 1.5rem;
  background: var(--green-100); border-left: 4px solid var(--green-500);
  border-radius: 0 var(--radius) var(--radius) 0; max-width: 68ch;
}
.callout h3 { margin: 0 0 .4rem; font-size: 1.1rem; }
.callout p { margin: 0; color: var(--ink-soft); font-size: .96rem; }

/* ----------------------------- timeline ------------------------------- */
.timeline-note { margin-bottom: 1.4rem; }
.timeline {
  list-style: none; margin: 0; padding: 0 0 0 1.4rem;
  border-left: 2px solid var(--line);
  max-width: 68ch;
}
.timeline li { position: relative; padding: 0 0 1.4rem 1.2rem; }
.timeline li::before {
  content: ""; position: absolute; left: calc(-1.4rem - 7px); top: .45rem;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--ochre); border: 2px solid var(--cream);
}
.timeline li:last-child { padding-bottom: 0; }
.timeline-when { display: block; font-weight: 700; color: var(--green-700); font-size: .9rem; letter-spacing: .04em; }
.timeline p { margin: .1rem 0 0; color: var(--ink-soft); }

/* --------------------------- departments ------------------------------ */
.dept-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.2rem;
}
.dept {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.3rem 1.5rem 1.5rem;
  box-shadow: var(--shadow);
}
.dept h3 {
  margin: 0 0 .8rem; font-size: 1.2rem;
  padding-bottom: .6rem; border-bottom: 1px solid var(--line);
}
.dept ul { margin: 0; padding: 0; list-style: none; }
.dept li { position: relative; padding-left: 1.15rem; margin-bottom: .38rem; font-size: .95rem; color: var(--ink-soft); }
.dept li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: .42em; height: .42em; border-radius: 50%;
  background: var(--green-500);
}

/* ------------------------------- hours -------------------------------- */
.hours-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
}
.hours-card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.5rem 1.6rem;
  box-shadow: var(--shadow); border-top: 4px solid var(--green-500);
}
.hours-name { margin: 0 0 .6rem; font-size: 1.05rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ochre-dark); font-family: var(--font-body); font-weight: 700; }
.hours-big { margin: 0 0 .3rem; font-family: var(--font-head); font-size: 1.5rem; color: var(--green-900); }
.hours-sub { margin: 0; color: var(--ink-soft); font-size: .95rem; }

/* schedule tables (seasonal / holiday hours) */
.table-wrap { overflow-x: auto; margin-bottom: 1.4rem; }
.schedule { width: 100%; max-width: 640px; border-collapse: collapse; }
.schedule th,
.schedule td {
  padding: .62rem .2rem; border-bottom: 1px solid var(--line);
  text-align: left; vertical-align: top; font-size: .98rem;
}
.schedule th[scope="row"] { font-weight: 600; color: var(--ink); }
.schedule td {
  text-align: right; white-space: nowrap;
  font-weight: 600; color: var(--green-900);
}
.schedule tr:last-child th,
.schedule tr:last-child td { border-bottom: 0; }
.schedule .closed { color: #a4442f; }
.schedule .daytype {
  display: block; font-weight: 400; font-size: .78rem;
  text-transform: uppercase; letter-spacing: .09em; color: var(--ink-soft);
}
.table-note { margin: -.75rem 0 1.1rem; font-size: .9rem; color: var(--ink-soft); }

/* ------------------------------- visit -------------------------------- */
.visit-grid {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 2rem; align-items: start;
}
.visit-info h2 { margin: 0 0 .5rem; font-size: 1.6rem; }
.address {
  font-style: normal; font-family: var(--font-head);
  font-size: 1.2rem; line-height: 1.5; color: var(--ink); margin: 0 0 1rem;
}
.contact-line { margin: 0 0 .35rem; color: var(--ink-soft); }
.visit-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1.3rem 0 1.8rem; }
.visit-subhead { margin: 1.6rem 0 .5rem; font-size: 1.15rem; }
.visit-info p { max-width: 46ch; }

.social-list { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.social-list a {
  display: inline-block; padding: .35rem .8rem; border: 1px solid var(--line);
  border-radius: 999px; background: var(--paper); text-decoration: none;
  font-size: .88rem; font-weight: 600; color: var(--green-700);
}
.social-list a:hover { background: var(--green-100); }

.map-card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  border-top: 4px solid var(--green-500);
  padding: 1.7rem 1.8rem; text-align: center;
}
.map-card-label {
  margin: 0 0 .5rem; font-size: .76rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .14em; color: var(--ochre-dark);
}
.map-card-address {
  margin: 0 0 1.3rem; font-family: var(--font-head);
  font-size: 1.35rem; line-height: 1.45; color: var(--green-900);
}
.map-card-note { margin: .85rem 0 0; font-size: .82rem; color: var(--ink-soft); }

/* ------------------------------- footer ------------------------------- */
.site-footer {
  background: var(--green-900); color: #d6e3d6;
  padding: 2.4rem 0 1.2rem; margin-top: 2rem;
}
.footer-inner {
  display: flex; flex-wrap: wrap; gap: 1.5rem;
  justify-content: space-between; align-items: flex-start;
}
.footer-brand { font-family: var(--font-head); font-size: 1.25rem; color: #fff; margin: 0 0 .3rem; }
.footer-meta { margin: 0 0 .2rem; font-size: .9rem; }
.footer-badge { display: block; height: 88px; width: auto; margin-top: 1.2rem; }
.site-footer a { color: #fff; text-decoration-color: rgba(255,255,255,.4); }
.site-footer a:hover { color: var(--ochre); }
.footer-nav { display: flex; flex-wrap: wrap; gap: .3rem 1rem; }
.footer-nav a { font-size: .92rem; text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }
.footer-bottom { margin-top: 1.8rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.15); }
.footer-bottom p { margin: 0; font-size: .82rem; color: #a9c0a9; }

/* --------------------------- gift certificates -------------------------- */
.gift-grid {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 2rem; align-items: start;
}
.gift-info h2 { margin: 0 0 .6rem; font-size: 1.6rem; }
.gift-info h3 { margin: 1.7rem 0 .5rem; font-size: 1.15rem; }
.gift-info p { max-width: 52ch; }

.steps { margin: 0; padding-left: 1.3rem; max-width: 52ch; }
.steps li { margin-bottom: .5rem; color: var(--ink-soft); }

.gift-form {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.5rem 1.6rem 1.6rem;
  box-shadow: var(--shadow); border-top: 4px solid var(--ochre);
}
.gift-form h2 { margin: 0 0 .2rem; font-size: 1.3rem; }
.gift-price {
  margin: 0 0 1.2rem; font-family: var(--font-head);
  font-size: 2.1rem; line-height: 1; color: var(--green-900);
}
.gift-price span {
  font-family: var(--font-body); font-size: .78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em; color: var(--ink-soft);
}

.field { margin-bottom: 1rem; }
.field label {
  display: block; margin-bottom: .3rem;
  font-size: .78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--green-900);
}
.field input {
  width: 100%; padding: .65rem .75rem; font: inherit; color: var(--ink);
  background: var(--cream); border: 1px solid var(--line); border-radius: 9px;
}
.field input:focus-visible {
  outline: 3px solid rgba(63, 135, 82, .4); outline-offset: 1px;
  border-color: var(--green-500);
}

.btn-block {
  display: block; width: 100%; text-align: center;
  border: 0; cursor: pointer; font-family: inherit;
}
.gift-secure { margin: 1rem 0 0; font-size: .82rem; color: var(--ink-soft); }

/* ------------------------------ responsive ---------------------------- */
@media (max-width: 1000px) {
  .visit-grid { grid-template-columns: 1fr; }
  .gift-grid { grid-template-columns: 1fr; }
  .visit-map { order: -1; }

  .nav-toggle { display: block; }
  .primary-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: .5rem clamp(1rem, 4vw, 2rem) 1rem;
    box-shadow: var(--shadow);
    display: none;
  }
  .primary-nav.open { display: flex; }
  .primary-nav a { padding: .8rem .6rem; border-radius: 8px; }
  .primary-nav .nav-call { margin: .5rem 0 0; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .page.active { animation: none; }
  .btn:hover { transform: none; }
}

@media print {
  .site-header, .footer-nav, .hero-actions, .visit-actions, .social-list { display: none; }
  .js .page { display: block !important; }
}
