/* Shared styles for every template. Colours, fonts and corner radius come from the theme in site-config.php. */
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { font-family: var(--fb); color: var(--ink); background: var(--bg); line-height: 1.65; -webkit-font-smoothing: antialiased; }
h1, h2, h3, .h3 { font-family: var(--fh); line-height: 1.15; letter-spacing: -0.01em; }
img, svg { max-width: 100%; }
ul { list-style: none; padding: 0; }
a { color: var(--primary); }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 22px; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; color: #000; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.icon { flex: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 9px; padding: 13px 24px; border-radius: calc(var(--radius) + 2px); font: 700 .95rem var(--fb); text-decoration: none; border: 2px solid var(--ink); color: var(--ink); background: transparent; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s; }
.btn:hover { transform: translateY(-2px); }
.btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 8px 20px rgba(0,0,0,.18); }
.btn.light { background: #fff; border-color: #fff; color: var(--dark); }
.btn.ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.btn.ghost:hover { background: rgba(255,255,255,.12); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* Top bar */
.topbar { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid rgba(0,0,0,.08); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--radius); background: var(--primary); color: #fff; font: 800 1.2rem var(--fh); }
.brand-name { font: 700 1.15rem var(--fh); }
.site-nav ul { display: flex; align-items: center; gap: 28px; }
.site-nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.site-nav a:not(.btn):hover, .site-nav a[aria-current="page"] { color: var(--primary); border-bottom-color: var(--primary); }
.menu-cta .btn { padding: 10px 18px; }
.nav-toggle { display: none; }

/* Hero */
.hero { background: var(--dark); color: #fff; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(700px 400px at 85% 20%, color-mix(in srgb, var(--primary) 60%, transparent), transparent 70%); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding-top: 72px; padding-bottom: 72px; }
.eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.eyebrow.dark { color: var(--primary); }
.hero h1 { font-size: clamp(2.2rem, 5.2vw, 3.7rem); font-weight: 800; }
.hero-text { margin: 20px 0 28px; max-width: 46ch; font-size: 1.1rem; color: rgba(255,255,255,.85); }
.hero-art { position: relative; min-height: 340px; border-radius: calc(var(--radius) * 2); background: linear-gradient(150deg, var(--primary), var(--dark) 90%) center / cover; border: 1px solid rgba(255,255,255,.18); display: grid; place-items: center; box-shadow: 0 30px 60px rgba(0,0,0,.35); }
.emblem { color: rgba(255,255,255,.22); }
.emblem .icon { width: 160px; height: 160px; stroke-width: 1.2; }
.hero-chips { position: absolute; left: 16px; right: 16px; bottom: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.hero-chips li { display: inline-flex; align-items: center; gap: 7px; background: rgba(255,255,255,.95); color: var(--dark); font-size: .8rem; font-weight: 700; padding: 7px 12px; border-radius: 99px; }
.hero-chips .icon { color: var(--primary); }
.hero-center .hero-grid { grid-template-columns: 1fr; text-align: center; justify-items: center; }
.hero-center .hero-art { display: none; }
.hero-center .btns { justify-content: center; }

/* Sections */
.section { padding: 72px 0; }
.section.tight { padding: 40px 0 72px; }
.section.alt { background: var(--soft); }
.section h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); font-weight: 800; margin-bottom: 14px; }
.lead { color: var(--muted); font-size: 1.05rem; max-width: 60ch; margin-bottom: 20px; }
.more { margin-top: 30px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.center { text-align: center; }
.page-top { padding: 56px 0 8px; background: var(--soft); border-bottom: 1px solid rgba(0,0,0,.06); padding-bottom: 36px; }
.page-top h1 { font-size: clamp(2rem, 4.4vw, 3rem); font-weight: 800; }
.page-top .lead { margin: 14px 0 0; }

.feat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 30px; }
.feat-icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: var(--radius); background: var(--primary); color: #fff; margin-bottom: 14px; }
.feat-grid h3, .card h3, .card .h3 { font-size: 1.12rem; font-weight: 700; margin-bottom: 6px; }
.feat-grid p, .card p { color: var(--muted); font-size: .95rem; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; margin-top: 28px; }
.card { background: #fff; border: 1px solid rgba(0,0,0,.07); border-radius: calc(var(--radius) * 1.5); padding: 26px; box-shadow: 0 10px 30px rgba(0,0,0,.05); transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(0,0,0,.1); }
.price { margin-top: 12px; font-weight: 800; color: var(--primary) !important; font-size: 1rem !important; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid rgba(0,0,0,.08); font-weight: 600; }
.ticks .icon { color: var(--primary); margin-top: 3px; }
.ticks.box { background: var(--soft); border-radius: calc(var(--radius) * 1.5); padding: 8px 22px; margin-bottom: 24px; }
.prose p { margin-bottom: 16px; max-width: 62ch; }
.prose.narrow { max-width: 760px; }
.prose h2.h3 { font-size: 1.25rem; margin: 28px 0 8px; }
.fine { color: var(--muted); font-size: .85rem; }

/* Call to action */
.cta { background: linear-gradient(120deg, var(--dark), color-mix(in srgb, var(--primary) 70%, var(--dark))); color: #fff; padding: 64px 0; }
.cta h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); font-weight: 800; margin-bottom: 10px; }
.cta p { color: rgba(255,255,255,.85); margin-bottom: 22px; max-width: 46ch; }
.cta.slim { padding: 48px 0; }
.cta.slim .btn { margin-top: 12px; }
.hours { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); border-radius: calc(var(--radius) * 1.5); padding: 22px 24px; }
.hours h3 { display: flex; align-items: center; gap: 8px; font-size: 1.05rem; margin-bottom: 10px; }
.hours dl div { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.15); font-size: .95rem; }
.hours dl div:last-child { border-bottom: 0; }
.hours dd { font-weight: 700; }
.hours.light { background: #fff; color: var(--ink); border-color: rgba(0,0,0,.08); margin-top: 24px; }
.hours.light dl div { border-bottom-color: rgba(0,0,0,.08); }

/* Contact */
.contact-list { display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .icon { color: var(--primary); margin-top: 3px; }
.contact-list b { display: block; }
.contact-list a { color: var(--ink); }
.form { background: #fff; border: 1px solid rgba(0,0,0,.08); border-radius: calc(var(--radius) * 1.5); padding: 28px; box-shadow: 0 10px 30px rgba(0,0,0,.06); display: grid; gap: 6px; }
.form h2.h3 { font-size: 1.3rem; margin-bottom: 8px; }
.form label { font-weight: 600; font-size: .9rem; margin-top: 8px; }
.form input, .form textarea { font: inherit; padding: 12px 14px; border: 1.5px solid #cfd2da; border-radius: var(--radius); background: #fff; color: var(--ink); width: 100%; }
.form input:focus-visible, .form textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; border-color: var(--primary); }
.form .btn { margin-top: 14px; justify-content: center; }
.notice { padding: 12px 14px; border-radius: var(--radius); font-weight: 600; font-size: .92rem; }
.notice.ok { background: #e4f6ea; color: #17642f; }
.notice.bad { background: #fde8e8; color: #9b1c1c; }
.trap { position: absolute; left: -9999px; }

/* Footer */
.footer { background: var(--dark); color: rgba(255,255,255,.85); padding-top: 52px; }
.foot { display: grid; grid-template-columns: 1.3fr 1fr 1.4fr; gap: 36px; padding-bottom: 32px; }
.foot-name { font: 700 1.25rem var(--fh); color: #fff; margin-bottom: 8px; }
.foot-text { font-size: .92rem; max-width: 34ch; }
.foot-head { font-weight: 700; color: #fff; margin-bottom: 12px; }
.foot-links { display: grid; gap: 10px; font-size: .92rem; }
.foot-links a { color: rgba(255,255,255,.85); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.foot-links a:hover { color: var(--accent); }
.socials { display: flex; gap: 10px; margin-top: 16px; }
.socials a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: #fff; border: 1px solid rgba(255,255,255,.3); }
.socials a:hover { color: var(--accent); border-color: var(--accent); }
.legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; border-top: 1px solid rgba(255,255,255,.15); padding-top: 18px; padding-bottom: 22px; font-size: .82rem; color: rgba(255,255,255,.65); }
.legal a { color: rgba(255,255,255,.9); }

@media (max-width: 900px) {
  .hero-grid, .two, .foot { grid-template-columns: 1fr; }
  .hero-art { min-height: 240px; }
  .two { gap: 32px; }
}
@media (max-width: 760px) {
  .nav-toggle { display: grid; gap: 5px; width: 44px; height: 44px; place-content: center; background: none; border: 1px solid rgba(0,0,0,.2); border-radius: 10px; cursor: pointer; }
  .nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
  .js .site-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid rgba(0,0,0,.1); display: none; padding: 6px 22px 18px; box-shadow: 0 16px 24px rgba(0,0,0,.1); }
  .js .topbar.open .site-nav { display: block; }
  .js .topbar.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .js .topbar.open .nav-toggle span:nth-child(2) { opacity: 0; }
  .js .topbar.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav li a:not(.btn) { display: block; padding: 14px 0; border-bottom: 1px solid rgba(0,0,0,.08); }
  .menu-cta { margin-top: 14px; }
  .menu-cta .btn { width: 100%; justify-content: center; }
  .brand-name { font-size: 1rem; }
  .section { padding: 52px 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn, .card, .nav-toggle span { transition: none; } }
