/* The website engine's styles. Colors, fonts and corners come from the
   site's settings as CSS variables (engine.js applyTheme). */

:root {
  --c-background: #faf7f2; --c-surface: #ffffff; --c-raised: #f1ebe2; --c-border: #e2d9cc;
  --c-text: #2b2420; --c-muted: #6b5f55; --c-primary: #8a4b2d; --c-onPrimary: #ffffff;
  --c-accent: #4f7a6a; --c-danger: #b3261e;
  --font-display: Georgia, serif; --font-body: system-ui, sans-serif;
  --radius: 14px; --radius-btn: 10px;
  --bg-image: none; --bg-opacity: 0.15; --bg-size: auto; --bg-repeat: repeat;
  --wrap: 1120px; --gutter: clamp(16px, 4vw, 32px); --space: clamp(56px, 9vw, 104px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--c-background); color: var(--c-text);
  font-family: var(--font-body); font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: var(--bg-image); background-size: var(--bg-size); background-repeat: var(--bg-repeat);
  background-position: center; opacity: var(--bg-opacity);
}
img { max-width: 100%; display: block; }
a { color: var(--c-primary); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 0.5em; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
.muted { color: var(--c-muted); }
.icon { width: 1.15em; height: 1.15em; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 2px; }

.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--c-surface); color: var(--c-text); padding: 8px 14px; border-radius: var(--radius-btn); }
.skip-link:focus { left: 8px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
.center { text-align: center; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.split.top { align-items: start; }
.split.reverse > :first-child { order: 2; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: var(--radius-btn); border: 2px solid var(--c-primary);
  font: 600 16px/1.2 var(--font-body); text-decoration: none; cursor: pointer; transition: transform .15s, filter .15s, background .15s;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.06); }
.btn:disabled { opacity: .6; cursor: default; transform: none; }
.btn-primary { background: var(--c-primary); color: var(--c-onPrimary); }
.btn-secondary { background: transparent; color: var(--c-primary); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.center .btn-row { justify-content: center; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--c-border);
  background: color-mix(in srgb, var(--c-background) 88%, transparent); backdrop-filter: blur(10px);
}
.header-inner { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--c-text); text-decoration: none; margin-right: auto; min-width: 0; }
.brand-logo { height: 42px; width: auto; max-width: 180px; object-fit: contain; }
.brand-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: var(--radius-btn); background: var(--c-primary); color: var(--c-onPrimary); }
.brand-name { font: 700 20px/1.1 var(--font-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav-link { color: var(--c-text); text-decoration: none; padding: 8px 12px; border-radius: var(--radius-btn); font-weight: 500; }
.nav-link:hover { background: var(--c-raised); }
.nav-link[aria-current="page"] { color: var(--c-primary); font-weight: 700; }
.nav .btn { margin-left: 8px; padding: 9px 18px; }
.menu-toggle { display: none; background: none; border: 1px solid var(--c-border); color: var(--c-text); border-radius: var(--radius-btn); padding: 8px; cursor: pointer; }
.menu-toggle .icon { width: 22px; height: 22px; }

/* Sections */
.sec { padding: var(--space) 0; position: relative; }
.sec.tinted { background: var(--c-raised); }
.sec-head { max-width: 720px; margin-bottom: 40px; }
.center .sec-head, .sec-head.center { margin-inline: auto; }
.sec-heading { font-size: clamp(30px, 4.2vw, 46px); }
.sec-intro { color: var(--c-muted); font-size: 18px; }

/* Hero */
.sec-hero { padding: clamp(64px, 11vw, 140px) 0; }
.hero-heading { font-size: clamp(38px, 6.4vw, 72px); margin-bottom: 0.35em; }
.hero-lead { font-size: clamp(18px, 2vw, 21px); color: var(--c-muted); }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: 13px; font-weight: 700; color: var(--c-accent); margin-bottom: 14px; }
.hero-image { width: 100%; border-radius: var(--radius); object-fit: cover; box-shadow: 0 24px 60px -30px rgb(0 0 0 / .45); }
.center .hero-image { margin-top: 48px; max-height: 520px; }
.split .hero-image { aspect-ratio: 4 / 5; }
.layout-cover { color: #fff; min-height: min(86vh, 760px); display: flex; align-items: center; overflow: hidden; }
.hero-cover-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero-cover-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(0 0 0 / .72), rgb(0 0 0 / .35)); }
.layout-cover .wrap { position: relative; }
.layout-cover .hero-text { max-width: 640px; }
.layout-cover .hero-lead { color: rgb(255 255 255 / .88); }
.layout-cover .eyebrow { color: #fff; }
.layout-cover .btn-secondary { color: #fff; border-color: #fff; }

/* About */
.about-image { width: 100%; border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; }
.prose p { font-size: 18px; }

/* Cards (services, testimonials) */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.card { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); overflow: hidden; margin: 0; display: flex; flex-direction: column; }
.card-image { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.card-body { padding: 24px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-body h3 { font-size: 22px; margin: 0; }
.card-body .price { margin-top: auto; padding-top: 10px; }
.card-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: var(--radius-btn); background: var(--c-raised); color: var(--c-primary); margin-bottom: 8px; }
.card-icon .icon { width: 24px; height: 24px; }
.price { font-weight: 700; color: var(--c-primary); }

.price-list { list-style: none; margin: 0; padding: 0; }
.price-list li { padding: 18px 0; border-bottom: 1px dashed var(--c-border); }
.price-row { display: flex; align-items: baseline; gap: 10px; }
.price-name { font: 700 20px/1.3 var(--font-display); }
.price-dots { flex: 1; border-bottom: 2px dotted var(--c-border); transform: translateY(-5px); min-width: 20px; }
.price-list p { margin: 4px 0 0; }

.quote { padding: 28px; gap: 14px; }
.quote-mark { width: 32px; height: 32px; color: var(--c-accent); }
.quote blockquote { margin: 0; font-size: 18px; }
.quote figcaption { margin-top: auto; }

/* Gallery */
.gallery { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.gallery.cols-2 { grid-template-columns: repeat(2, 1fr); }
.gallery.cols-3 { grid-template-columns: repeat(3, 1fr); }
.gallery.cols-4 { grid-template-columns: repeat(4, 1fr); }
.gallery-item { display: block; width: 100%; padding: 0; border: 0; background: var(--c-raised); border-radius: var(--radius); overflow: hidden; cursor: zoom-in; }
.gallery-item img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .35s; }
.gallery-item:hover img { transform: scale(1.04); }
.caption { font-size: 14px; color: var(--c-muted); margin: 8px 2px 0; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgb(0 0 0 / .88); }
.lightbox figure { margin: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 56px 16px; }
.lightbox-image { max-width: min(1100px, 100%); max-height: 80vh; object-fit: contain; border-radius: 6px; }
.lightbox-caption { color: #fff; margin-top: 12px; text-align: center; }
.lightbox button { position: absolute; background: rgb(255 255 255 / .12); color: #fff; border: 0; border-radius: 999px; width: 46px; height: 46px; display: grid; place-items: center; cursor: pointer; }
.lightbox button .icon { width: 24px; height: 24px; }
.lightbox-close { top: 14px; right: 14px; }
.lightbox-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 12px; top: 50%; transform: translateY(-50%); }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); }
.faq summary { cursor: pointer; padding: 18px 22px; font-weight: 600; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; line-height: 1; color: var(--c-primary); }
.faq details[open] summary::after { content: "–"; }
.faq-answer { padding: 0 22px 20px; color: var(--c-muted); }

/* Call to action */
.cta-band {
  display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
  background: var(--c-primary); color: var(--c-onPrimary); border-radius: var(--radius); padding: clamp(32px, 5vw, 56px);
}
.cta-band .sec-heading { font-size: clamp(28px, 3.6vw, 40px); }
.cta-band .btn-primary { background: var(--c-onPrimary); color: var(--c-primary); border-color: var(--c-onPrimary); }

/* Contact */
.contact-form { display: grid; gap: 16px; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
.field input, .field textarea {
  font: 400 16px/1.5 var(--font-body); color: var(--c-text); background: var(--c-background);
  border: 1px solid var(--c-border); border-radius: var(--radius-btn); padding: 11px 14px; width: 100%;
}
.field textarea { resize: vertical; }
.contact-form .btn { justify-self: start; }
.form-status { margin: 0; color: var(--c-muted); min-height: 1.4em; }
.contact-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.contact-lines li { display: flex; gap: 12px; align-items: flex-start; }
.contact-lines .icon { color: var(--c-primary); margin-top: 4px; }
.contact-lines a { color: inherit; }
.contact-details { display: grid; gap: 24px; font-size: 18px; }
.social { list-style: none; margin: 16px 0 0; padding: 0; display: flex; gap: 10px; flex-wrap: wrap; }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--c-border); color: var(--c-text); }
.social a:hover { color: var(--c-primary); border-color: var(--c-primary); }

/* Hours and map */
.hours { border-collapse: collapse; width: 100%; max-width: 420px; margin: 8px 0 20px; }
.hours th, .hours td { text-align: left; padding: 8px 0; border-bottom: 1px solid var(--c-border); }
.hours th { font-weight: 600; padding-right: 24px; }
.hours td { color: var(--c-muted); }
.address { display: flex; gap: 10px; align-items: flex-start; }
.address .icon { color: var(--c-primary); margin-top: 5px; }
.map { width: 100%; aspect-ratio: 4 / 3; border: 1px solid var(--c-border); border-radius: var(--radius); background: var(--c-raised); }

/* Footer */
.site-footer { background: var(--c-surface); border-top: 1px solid var(--c-border); padding: 56px 0 28px; margin-top: 0; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
.footer-name { font: 700 22px/1.2 var(--font-display); margin-bottom: 6px; }
.footer-heading { text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 700; color: var(--c-muted); margin-bottom: 12px; }
.site-footer .contact-lines { gap: 10px; }
.site-footer .hours { margin: 0; }
.site-footer .hours th, .site-footer .hours td { padding: 4px 0; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--c-border); color: var(--c-muted); }

/* News or blog */
.post-date { display: block; font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--c-accent); margin-bottom: 6px; }
.post-link { color: inherit; text-decoration: none; }
.post-link:hover { color: var(--c-primary); text-decoration: underline; }
.read-more { display: inline-flex; align-items: center; gap: 4px; margin-top: auto; padding-top: 10px; font-weight: 600; text-decoration: none; }
.post-list { list-style: none; margin: 0; padding: 0; }
.post-list li { padding: 22px 0; border-bottom: 1px solid var(--c-border); }
.post-list h3 { font-size: 24px; margin: 0 0 6px; }
.post-back { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 28px; font-weight: 600; text-decoration: none; }
.post .sec-heading { font-size: clamp(34px, 5vw, 52px); }
.post-image { width: 100%; border-radius: var(--radius); margin: 8px 0 32px; max-height: 520px; object-fit: cover; }
.post-body p { font-size: 18px; }

/* Booking or shop */
.embed-frame { border: 1px solid var(--c-border); border-radius: var(--radius); overflow: hidden; background: #fff; }
.embed-frame iframe { display: block; width: 100%; border: 0; }
.embed-open { margin-top: 10px; font-size: 14px; }
.embed-card { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); text-align: center; }
.embed-card .sec-head { margin: 0 auto 22px; }

/* Pitch banner and footer credit (settings: credit) */
.credit-banner { background: var(--c-text); color: var(--c-background); font-size: 15px; }
.credit-inner { display: flex; align-items: center; justify-content: center; gap: 8px 16px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; text-align: center; }
.credit-inner p { margin: 0; font-weight: 600; }
.credit-btn { padding: 7px 16px; font-size: 14px; }
.credit-line a { color: inherit; }

/* Messages */
.boot, .problems { max-width: 720px; margin: 15vh auto; padding: 0 var(--gutter); font-family: system-ui, sans-serif; }
.problems li { margin-bottom: 6px; }

/* Phones and small tablets */
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .gallery.cols-3, .gallery.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .menu-toggle { display: inline-flex; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: var(--c-background); border-bottom: 1px solid var(--c-border); padding: 8px var(--gutter) 16px; gap: 2px;
  }
  .nav.open { display: flex; }
  .nav-link { padding: 12px; }
  .nav .btn { margin: 8px 0 0; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .field-row { grid-template-columns: 1fr; }
  .gallery.cols-2, .gallery.cols-3, .gallery.cols-4 { gap: 8px; }
  .btn-row .btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
