/* Oriel Dental Atelier — concept demo by Prime Studio
   Art direction: "in good light". Warm bone paper, deep pine ink, one clay accent.
   Arched frames echo the oriel / jharokha window the clinic is named after. */

:root {
  --paper: #f6f2eb;
  --paper-2: #ede6da;
  --paper-3: #e3dacb;
  --ink: #1b2724;
  --ink-2: #4c5753;
  --line: #d6ccbc;
  --line-strong: #b9ad99;
  --accent: #9c4327;
  --accent-ink: #fff8f1;
  --accent-soft: #f1ddd2;
  --pine: #1e3832;
  --pine-2: #27463f;
  --on-pine: #ece6da;
  --on-pine-2: #b8c4be;
  --ok: #2f6b4f;
  --err: #a3261b;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --maxw: 1240px;
  --gut: clamp(16px, 4vw, 48px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
button, input, select, textarea { font: inherit; color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; margin: 0; letter-spacing: -0.012em; }
h1 { font-size: clamp(2.5rem, 5.6vw, 4.5rem); line-height: 1.04; }
h2 { font-size: clamp(1.875rem, 3.4vw, 2.75rem); line-height: 1.1; }
h3 { font-size: 1.375rem; line-height: 1.2; }
em { font-style: italic; }
h1 em, h2 em { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--accent-soft); }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gut); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: var(--radius); }
.skip:focus { top: 12px; }

/* ---------- Honesty ribbon ---------- */
.ribbon { background: var(--ink); color: #f3eee6; font-size: 0.8125rem; line-height: 1.4; }
.ribbon p { margin: 0; padding: 9px var(--gut); text-align: center; }
.ribbon a { color: #f6c9ad; font-weight: 600; text-decoration: underline; display: inline-block; padding: 13px 6px; margin: -13px 0; }
.ribbon a:focus-visible { outline-color: #f6c9ad; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--paper); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.is-stuck { border-bottom-color: var(--line); }
.header-row { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; color: var(--ink); min-height: 44px; }
.brand svg { height: 40px; width: auto; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.nav a:not(.btn) { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; text-decoration: none; font-size: 0.9688rem; color: var(--ink); border-radius: var(--radius); }
.nav a:not(.btn):hover { background: var(--paper-2); }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 0.45em; }
.nav-toggle { display: none; margin-left: auto; min-height: 44px; min-width: 44px; padding: 0 14px; border: 1px solid var(--line-strong); background: transparent; border-radius: 999px; cursor: pointer; align-items: center; gap: 8px; font-size: 0.9375rem; }
.nav-toggle svg { width: 18px; height: 18px; }

@media (max-width: 860px) {
  .js .nav-toggle { display: inline-flex; }
  .js .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px var(--gut) 20px; flex-direction: column; align-items: stretch; }
  .js .nav.is-open { display: flex; }
  .js .nav ul { flex-direction: column; }
  .js .nav a:not(.btn) { display: flex; padding: 0 4px; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1.0625rem; }
  .js .nav .btn { margin-top: 12px; }
  .header-row { min-height: 64px; position: static; }
  .site-header .wrap { position: relative; }
  .brand svg { height: 36px; }
  html:not(.js) .header-row { flex-wrap: wrap; padding: 8px 0; }
  html:not(.js) .nav { width: 100%; flex-wrap: wrap; }
}

/* ---------- Buttons & links ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent; font-weight: 600; font-size: 0.9688rem; text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease); white-space: nowrap; }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #853823; }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.btn-small { min-height: 44px; padding: 0 18px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; min-height: 44px; border-bottom: 1px solid currentColor; }
.link-arrow svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }

.kicker { display: inline-flex; align-items: center; gap: 12px; font-size: 0.875rem; font-weight: 600; color: var(--accent); margin: 0 0 18px; letter-spacing: 0.01em; }
.kicker::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.lead { font-size: clamp(1.125rem, 1.6vw, 1.25rem); line-height: 1.55; color: var(--ink-2); max-width: 38em; }
.muted { color: var(--ink-2); }
.small { font-size: 0.875rem; }
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.02em; padding: 4px 10px; border-radius: 999px; background: var(--paper-2); color: var(--ink-2); border: 1px solid var(--line); }
.tag-accent { background: var(--accent-soft); color: #7d321c; border-color: #e5c4b4; }

.section { padding: clamp(72px, 10vw, 128px) 0; }
.section-tight { padding: clamp(48px, 7vw, 88px) 0; }
.section-alt { background: var(--paper-2); }
.section-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px 48px; align-items: end; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head .lead { margin: 0; }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; } }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* ---------- Arched frames ---------- */
.arch { position: relative; overflow: hidden; background: var(--paper-3); border-radius: 50% 50% 0 0 / 40% 40% 0 0; }
.arch img { width: 100%; height: 100%; object-fit: cover; }
.arch-wide { border-radius: 50% 50% 0 0 / 66% 66% 0 0; }

/* ---------- Hero ---------- */
.hero { padding: clamp(32px, 6vw, 72px) 0 clamp(56px, 8vw, 96px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.hero h1 { margin-bottom: 28px; max-width: 11em; }
.hero .lead { margin-bottom: 36px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.hero-figure { margin: 0; }
.hero-figure .arch { aspect-ratio: 4 / 5; }
.hero-figure figcaption { margin-top: 14px; font-size: 0.8125rem; color: var(--ink-2); }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: clamp(48px, 7vw, 80px) 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.facts li { padding: 20px 24px 0 0; display: flex; gap: 12px; align-items: flex-start; font-size: 0.9375rem; color: var(--ink-2); }
.facts li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.facts strong { display: block; color: var(--ink); font-weight: 600; }
.facts svg { width: 22px; height: 22px; flex: none; margin-top: 2px; color: var(--accent); }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-figure { max-width: 420px; }
  .facts { grid-template-columns: 1fr; }
  .facts li, .facts li + li { padding: 16px 0; border-left: 0; border-bottom: 1px solid var(--line); }
}

.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ink-2); margin-right: 6px; vertical-align: middle; }
.status-dot.is-open { background: var(--ok); }

/* ---------- Approach ---------- */
.approach { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 7vw, 112px); align-items: start; }
.approach-figure { margin: 0; position: sticky; top: 110px; }
.approach-figure .arch { aspect-ratio: 4 / 5; }
.approach-figure figcaption { margin-top: 14px; font-size: 0.8125rem; color: var(--ink-2); }
.promises { list-style: none; margin: 40px 0 0; padding: 0; counter-reset: p; }
.promises li { counter-increment: p; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 4px 16px; padding: 28px 0; border-top: 1px solid var(--line); }
.promises li::before { content: counter(p, decimal-leading-zero); font-family: var(--serif); font-size: 1.25rem; color: var(--accent); grid-row: span 2; line-height: 1.3; }
.promises h3 { font-size: 1.375rem; }
.promises p { margin: 6px 0 0; color: var(--ink-2); }
.aside-note { margin-top: 32px; padding: 24px 0 0; border-top: 1px solid var(--line); font-family: var(--serif); font-style: italic; font-size: 1.1875rem; line-height: 1.5; color: var(--ink-2); }
@media (max-width: 860px) {
  .approach { grid-template-columns: 1fr; }
  .approach-figure { position: static; max-width: 420px; }
}

/* ---------- Treatment index (home) ---------- */
.index { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--ink); }
.index-col { padding: 24px 24px 8px 0; }
.index-col + .index-col { padding-left: 24px; border-left: 1px solid var(--line); }
.index-col h3 { font-style: italic; font-size: 1.625rem; margin-bottom: 4px; }
.index-col > p { font-size: 0.875rem; color: var(--ink-2); margin-bottom: 16px; min-height: 2.8em; }
.index-col ul { list-style: none; margin: 0; padding: 0; }
.index-col li a { display: flex; align-items: baseline; gap: 8px; padding: 11px 0; text-decoration: none; border-top: 1px solid var(--line); min-height: 44px; }
.index-col li a:hover .ix-name { text-decoration: underline; }
.ix-name { flex: 1 1 auto; font-weight: 500; }
.ix-price { flex: none; font-size: 0.875rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.index-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; margin-top: 32px; }
@media (max-width: 1024px) {
  .index { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .index-col:nth-child(3) { padding-left: 0; border-left: 0; }
  .index-col:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 16px; }
}
@media (max-width: 600px) {
  .index { grid-template-columns: 1fr; }
  .index-col, .index-col + .index-col { padding-left: 0; border-left: 0; padding-right: 0; }
  .index-col + .index-col { border-top: 1px solid var(--line); margin-top: 16px; }
  .index-col > p { min-height: 0; }
}

/* ---------- Doctors ---------- */
.doctors { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.doctor { display: grid; grid-template-columns: 120px minmax(0, 4fr) minmax(0, 6fr); gap: 20px 40px; padding: 36px 0; border-bottom: 1px solid var(--line); align-items: start; }
.monogram { width: 104px; height: 128px; color: var(--ink); }
.monogram .bg { fill: var(--paper); stroke: var(--line-strong); }
.monogram text { font-family: var(--serif); font-size: 40px; fill: var(--ink); }
.doctor h3 { font-size: 1.75rem; margin-bottom: 6px; }
.doctor .role { color: var(--accent); font-weight: 600; font-size: 0.9375rem; margin: 0 0 12px; }
.doctor dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; font-size: 0.875rem; }
.doctor dt { color: var(--ink-2); }
.doctor dd { margin: 0; }
.doctor .bio { margin: 0; font-size: 1.0625rem; }
.doctor .bio + .link-arrow { margin-top: 12px; }
@media (max-width: 860px) {
  .doctor { grid-template-columns: 88px minmax(0, 1fr); }
  .monogram { width: 80px; height: 98px; }
  .doctor-text { grid-column: 1 / -1; }
}

/* ---------- Planner teaser ---------- */
.teaser { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.mini-timeline { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.mini-timeline .mt-row { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; align-items: center; padding: 8px 0; font-size: 0.875rem; }
.mini-timeline .mt-track { position: relative; height: 12px; background: var(--paper-2); border-radius: 999px; }
.mini-timeline .mt-bar { position: absolute; top: 0; bottom: 0; border-radius: 999px; background: var(--pine); }
.mini-timeline .mt-bar.accent { background: var(--accent); }
.mini-timeline .mt-axis { display: flex; justify-content: space-between; margin: 12px 0 0 124px; font-size: 0.75rem; color: var(--ink-2); }
@media (max-width: 860px) { .teaser { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .mini-timeline .mt-row { grid-template-columns: 88px minmax(0, 1fr); } .mini-timeline .mt-axis { margin-left: 100px; } }

/* ---------- Reviews ---------- */
.reviews { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 0 clamp(32px, 6vw, 80px); }
.review { margin: 0; padding: 28px 0; border-top: 1px solid var(--line); }
.review blockquote { margin: 14px 0 16px; font-family: var(--serif); font-size: 1.375rem; line-height: 1.4; }
.review.feature { grid-row: span 2; border-top-color: var(--ink); }
.review.feature blockquote { font-size: clamp(1.75rem, 3vw, 2.375rem); line-height: 1.22; }
.review figcaption { font-size: 0.875rem; color: var(--ink-2); }
@media (max-width: 860px) { .reviews { grid-template-columns: 1fr; } .review.feature { grid-row: auto; } }

/* ---------- Visit ---------- */
.visit { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.hours { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hours caption { text-align: left; font-family: var(--serif); font-size: 1.375rem; padding-bottom: 12px; }
.hours th, .hours td { text-align: left; padding: 12px 0; border-top: 1px solid var(--line); font-weight: 400; }
.hours td { text-align: right; }
.hours tr.is-today th, .hours tr.is-today td { font-weight: 600; }
.hours tr.is-today th::after { content: " · today"; color: var(--accent); font-weight: 600; }
.address { font-style: normal; margin: 28px 0 0; }
.contact-lines { list-style: none; margin: 16px 0 0; padding: 0; }
.contact-lines li { display: flex; gap: 12px; align-items: flex-start; padding: 6px 0; }
.contact-lines svg { width: 20px; height: 20px; flex: none; margin-top: 3px; color: var(--accent); }
.map { margin: 0; }
.map > svg { width: 100%; height: auto; aspect-ratio: 640 / 420; border-radius: var(--radius); border: 1px solid var(--line); }
.map figcaption { margin-top: 12px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; align-items: center; font-size: 0.875rem; color: var(--ink-2); }
@media (max-width: 860px) { .visit { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .map > svg { aspect-ratio: 1 / 1; } }

/* ---------- CTA band ---------- */
.cta-band { padding: clamp(64px, 9vw, 112px) 0; border-top: 1px solid var(--line); }
.cta-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end; }
.cta-inner h2 { max-width: 16em; }
.cta-inner p { margin: 16px 0 0; }
@media (max-width: 760px) { .cta-inner { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--pine); color: var(--on-pine); padding: 64px 0 32px; font-size: 0.9375rem; }
.site-footer a { color: var(--on-pine); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2fr)); gap: 32px; }
.footer-grid h2 { font-family: var(--sans); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.02em; color: var(--on-pine-2); margin-bottom: 12px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li a { display: inline-flex; min-height: 44px; align-items: center; text-decoration: none; }
.footer-grid li a:hover { text-decoration: underline; }
.footer-brand svg { height: 44px; width: auto; color: var(--on-pine); margin-bottom: 16px; }
.footer-brand p { color: var(--on-pine-2); max-width: 26em; }
.footer-legal { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--pine-2); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; color: var(--on-pine-2); font-size: 0.8125rem; }
.footer-legal a { color: #f6c9ad; font-weight: 600; display: inline-block; padding: 12px 4px; margin: -12px 0; }
.site-footer :focus-visible { outline-color: #f6c9ad; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------- Page header (inner pages) ---------- */
.page-head { padding: clamp(40px, 7vw, 88px) 0 clamp(32px, 5vw, 56px); }
.page-head h1 { font-size: clamp(2.375rem, 5vw, 4rem); max-width: 14em; margin-bottom: 20px; }
.page-head .lead { margin: 0; }
.page-banner { margin: 0 0 clamp(40px, 6vw, 72px); }
.page-banner .arch-wide { aspect-ratio: 2 / 1; max-height: 520px; width: 100%; }
@media (max-width: 600px) { .page-banner .arch-wide { aspect-ratio: 4 / 3; border-radius: 50% 50% 0 0 / 38% 38% 0 0; } }

/* ---------- Treatments list ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 32px; padding: 0; border: 0; }
.filters legend { width: 100%; font-size: 0.875rem; color: var(--ink-2); margin-bottom: 10px; padding: 0; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 0.9375rem; transition: background-color .15s, color .15s, border-color .15s; }
.chip input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.chip:hover span { border-color: var(--ink); }
.price-note { font-size: 0.875rem; color: var(--ink-2); margin: -12px 0 24px; }
.tx-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.tx { border-bottom: 1px solid var(--line); }
.tx[hidden] { display: none; }
.tx summary { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr) auto 44px; gap: 8px 24px; align-items: center; padding: 22px 0; cursor: pointer; min-height: 44px; }
.tx summary::-webkit-details-marker { display: none; }
.tx-title { display: flex; flex-direction: column; gap: 4px; font-size: clamp(1.375rem, 2.2vw, 1.75rem); line-height: 1.2; }
.tx-sub { font-family: var(--sans); font-size: 0.9375rem; color: var(--ink-2); letter-spacing: 0; }
.tx-price { text-align: right; font-variant-numeric: tabular-nums; }
.tx-price small { display: block; font-size: 0.75rem; color: var(--ink-2); }
.tx-price strong { font-family: var(--serif); font-weight: 400; font-size: 1.375rem; }
.tx-chev { width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 50%; display: grid; place-items: center; transition: transform .25s var(--ease), background-color .2s; }
.tx-chev svg { width: 18px; height: 18px; }
.tx[open] .tx-chev { transform: rotate(180deg); background: var(--paper-2); }
.tx summary:hover .tx-chev { border-color: var(--ink); }
.tx-body { padding: 0 0 32px; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 24px 48px; }
.tx-body p { margin: 0 0 16px; }
.tx-facts { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 0; font-size: 0.9375rem; }
.tx-facts dt, .tx-facts dd { padding: 10px 0; border-top: 1px solid var(--line); margin: 0; }
.tx-facts dt { color: var(--ink-2); padding-right: 20px; }
@media (max-width: 760px) {
  .tx summary { grid-template-columns: minmax(0, 1fr) 44px; }
  .tx-price { grid-column: 1; grid-row: 2; text-align: left; }
  .tx-chev { grid-column: 2; grid-row: 1 / span 2; }
  .tx-body { grid-template-columns: 1fr; }
}
.empty-filter { padding: 24px 0; color: var(--ink-2); }

/* ---------- Forms (shared) ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; }
.field label, .field .label { font-weight: 600; font-size: 0.9375rem; }
.field .hint { font-size: 0.8125rem; color: var(--ink-2); }
.input { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: #fffdf9; font-size: 1rem; transition: border-color .15s, box-shadow .15s; }
textarea.input { min-height: 120px; resize: vertical; }
.input:hover { border-color: var(--ink-2); }
.input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--accent-soft); }
.input[aria-invalid="true"] { border-color: var(--err); }
.error { color: var(--err); font-size: 0.875rem; font-weight: 600; display: flex; gap: 6px; align-items: center; min-height: 0; }
.error:empty { display: none; }
.error svg { width: 16px; height: 16px; flex: none; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.notice { display: flex; gap: 12px; padding: 16px 18px; border-radius: var(--radius); background: var(--paper-2); border: 1px solid var(--line); font-size: 0.9375rem; }
.notice svg { width: 20px; height: 20px; flex: none; margin-top: 2px; color: var(--accent); }
.notice p { margin: 0; }
.notice-ok { background: #e7efe9; border-color: #bcd2c4; }
.notice-ok svg { color: var(--ok); }

/* ---------- Booking ---------- */
.book-layout { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(32px, 5vw, 72px); align-items: start; padding-bottom: clamp(72px, 10vw, 120px); }
@media (max-width: 960px) { .book-layout { grid-template-columns: 1fr; } }
.steps { list-style: none; margin: 0 0 40px; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; counter-reset: s; }
.steps li { counter-increment: s; font-size: 0.8125rem; color: var(--ink-2); padding-top: 12px; border-top: 3px solid var(--line); transition: border-color .3s var(--ease), color .3s; }
.steps li::before { content: counter(s) " "; font-weight: 600; }
.steps li.is-done { border-top-color: var(--pine); color: var(--ink); }
.steps li.is-current { border-top-color: var(--accent); color: var(--ink); font-weight: 600; }
@media (max-width: 600px) { .steps li span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } .steps li { text-align: left; } }
.step-panel { border: 0; padding: 0; margin: 0; min-width: 0; }
.step-panel > h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); margin-bottom: 8px; }
.step-panel > h2:focus { outline: none; }
.step-panel > h2:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
.step-intro { color: var(--ink-2); margin-bottom: 28px; }
.js .step-panel.is-entering { animation: stepIn .38s var(--ease) both; }
@keyframes stepIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.options { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.options.one-col { grid-template-columns: 1fr; }
@media (max-width: 600px) { .options { grid-template-columns: 1fr; } }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt label { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 4px 14px; align-items: start; padding: 16px 18px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: #fffdf9; cursor: pointer; min-height: 64px; transition: border-color .15s, background-color .15s, box-shadow .15s; }
.opt label:hover { border-color: var(--ink); }
.opt .dot { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--ink-2); margin-top: 2px; display: grid; place-items: center; }
.opt .dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); transform: scale(0); transition: transform .2s var(--ease); }
.opt input:checked + label { border-color: var(--accent); background: #fbf2ec; box-shadow: inset 0 0 0 1px var(--accent); }
.opt input:checked + label .dot { border-color: var(--accent); }
.opt input:checked + label .dot::after { transform: scale(1); }
.opt input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 3px; }
.opt input:disabled + label { opacity: .5; cursor: not-allowed; }
.opt-name { font-weight: 600; }
.opt-meta { grid-column: 2; font-size: 0.875rem; color: var(--ink-2); }
.opt-side { grid-column: 3; grid-row: 1; font-size: 0.875rem; color: var(--ink-2); text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

.cal-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.cal-head h3 { font-size: 1.25rem; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; border: 0; padding: 0; margin: 0; }
.cal .dow { font-size: 0.75rem; color: var(--ink-2); text-align: center; padding-bottom: 4px; font-weight: 600; }
.day { position: relative; }
.day input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.day label { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 60px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: #fffdf9; cursor: pointer; font-variant-numeric: tabular-nums; transition: border-color .15s, background-color .15s; padding: 4px 0; }
.day label .d { font-family: var(--serif); font-size: 1.375rem; line-height: 1.1; }
.day label .m { font-size: 0.75rem; color: var(--ink-2); }
.day label:hover { border-color: var(--ink); }
.day input:checked + label { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.day input:checked + label .m { color: var(--paper-3); }
.day input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }
.day input:disabled + label { background: transparent; border-style: dashed; border-color: var(--line); color: var(--ink-2); cursor: not-allowed; }
.day input:disabled + label .d { text-decoration: line-through; text-decoration-thickness: 1px; }
.day.is-today label::after { content: ""; position: absolute; bottom: 6px; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }
.day-pad { min-height: 1px; }
@media (max-width: 480px) { .cal { gap: 4px; } .day label { min-height: 52px; } .day label .d { font-size: 1.1875rem; } }
.legend { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 0.8125rem; color: var(--ink-2); margin: 14px 0 0; padding: 0; list-style: none; }
.legend li { display: flex; align-items: center; gap: 8px; }
.legend i { width: 14px; height: 14px; border-radius: 3px; border: 1px solid var(--line-strong); background: #fffdf9; }
.legend i.off { border-style: dashed; background: transparent; }
.legend i.sel { background: var(--ink); border-color: var(--ink); }

.slots-wrap { margin-top: 36px; }
.slots-wrap h3 { font-size: 1.25rem; margin-bottom: 4px; }
.slot-group { border: 0; padding: 0; margin: 16px 0 0; }
.slot-group legend { font-size: 0.8125rem; font-weight: 600; color: var(--ink-2); margin-bottom: 8px; padding: 0; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.slot { position: relative; }
.slot input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.slot label { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 48px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: #fffdf9; cursor: pointer; font-variant-numeric: tabular-nums; font-weight: 600; transition: border-color .15s, background-color .15s; }
.slot label small { font-weight: 400; font-size: 0.75rem; color: var(--ink-2); }
.slot label:hover { border-color: var(--ink); }
.slot input:checked + label { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.slot input:focus-visible + label { outline: 2px solid var(--ink); outline-offset: 2px; }
.slot input:disabled + label { background: transparent; border-style: dashed; border-color: var(--line); color: var(--ink-2); cursor: not-allowed; font-weight: 400; }

.step-actions { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); }
.step-actions .spacer { flex: 1; }
.step-error { margin-top: 16px; }

.summary-card { position: sticky; top: 100px; border: 1px solid var(--line); border-radius: var(--radius); background: #fffdf9; padding: 24px; }
.summary-card h2 { font-size: 1.375rem; margin-bottom: 16px; }
.summary-card dl { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); font-size: 0.9375rem; }
.summary-card dt, .summary-card dd { padding: 10px 0; border-top: 1px solid var(--line); margin: 0; }
.summary-card dt { color: var(--ink-2); padding-right: 16px; }
.summary-card dd { text-align: right; overflow-wrap: anywhere; }
.summary-card .notice { margin-top: 20px; font-size: 0.875rem; }
@media (max-width: 960px) { .summary-card { position: static; } }

.review-list { margin: 0; border-top: 1px solid var(--ink); }
.review-row { display: grid; grid-template-columns: 160px minmax(0, 1fr) auto; gap: 8px 20px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.review-row dt { color: var(--ink-2); font-size: 0.9375rem; }
.review-row dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.edit-btn { background: none; border: 0; color: var(--accent); font-weight: 600; text-decoration: underline; cursor: pointer; min-height: 44px; min-width: 44px; padding: 0 8px; }
@media (max-width: 600px) { .review-row { grid-template-columns: minmax(0, 1fr) auto; } .review-row dd { grid-column: 1; } .review-row .edit-btn { grid-column: 2; grid-row: 1 / span 2; } }

.confirm { text-align: left; }
.confirm-mark { width: 64px; height: 64px; color: var(--ok); margin-bottom: 20px; }
.ref { display: inline-block; font-family: var(--serif); font-size: clamp(2rem, 5vw, 3rem); letter-spacing: 0.04em; padding: 8px 0; border-bottom: 2px solid var(--accent); margin: 8px 0 24px; overflow-wrap: anywhere; }
.confirm .notice { margin: 24px 0; }

/* ---------- Planner ---------- */
.planner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: start; padding-bottom: clamp(72px, 10vw, 120px); }
@media (max-width: 960px) { .planner { grid-template-columns: 1fr; } }
.concerns { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.concern { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.check { display: flex; gap: 14px; align-items: flex-start; cursor: pointer; min-height: 44px; }
.check input { appearance: none; -webkit-appearance: none; width: 24px; height: 24px; flex: none; margin: 1px 0 0; border: 1.5px solid var(--ink-2); border-radius: 4px; background: #fffdf9; display: grid; place-items: center; cursor: pointer; }
.check input::after { content: ""; width: 12px; height: 7px; border-left: 2px solid var(--accent-ink); border-bottom: 2px solid var(--accent-ink); transform: rotate(-45deg) scale(0); margin-top: -3px; transition: transform .15s var(--ease); }
.check input:checked { background: var(--accent); border-color: var(--accent); }
.check input:checked::after { transform: rotate(-45deg) scale(1); }
.check strong { display: block; font-weight: 600; }
.check span span { display: block; font-size: 0.875rem; color: var(--ink-2); }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 999px; }
.stepper button { width: 44px; height: 44px; border: 0; background: none; cursor: pointer; font-size: 1.25rem; border-radius: 50%; }
.stepper button:disabled { opacity: .35; cursor: not-allowed; }
.stepper output { min-width: 28px; text-align: center; font-variant-numeric: tabular-nums; font-weight: 600; }
.stepper[hidden] { display: none; }
.plan-out { border: 1px solid var(--line); border-radius: var(--radius); background: #fffdf9; padding: clamp(20px, 3vw, 32px); }
.plan-total { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; align-items: baseline; padding-bottom: 20px; border-bottom: 1px solid var(--ink); }
.plan-total .amt { font-family: var(--serif); font-size: clamp(1.75rem, 3.6vw, 2.5rem); line-height: 1.1; font-variant-numeric: tabular-nums; }
.plan-total .dur { color: var(--ink-2); }
.gantt { margin: 24px 0 8px; }
.g-row { display: grid; grid-template-columns: minmax(110px, 2fr) minmax(0, 5fr); gap: 14px; align-items: center; padding: 7px 0; font-size: 0.875rem; }
.g-label { line-height: 1.3; }
.g-track { position: relative; height: 14px; background: var(--paper-2); border-radius: 999px; }
.g-bar { position: absolute; top: 0; bottom: 0; border-radius: 999px; background: var(--pine); min-width: 10px; transition: left .4s var(--ease), width .4s var(--ease); }
.g-bar.accent { background: var(--accent); }
.g-axis { display: grid; grid-template-columns: minmax(110px, 2fr) minmax(0, 5fr); gap: 14px; font-size: 0.75rem; color: var(--ink-2); margin-top: 6px; }
.g-ticks { position: relative; height: 18px; }
.g-ticks span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.g-ticks span:first-child { transform: none; }
.g-ticks span:last-child { transform: translateX(-100%); }
.plan-lines { list-style: none; margin: 20px 0 0; padding: 0; }
.plan-lines li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 0.9375rem; }
.plan-lines li span:last-child { font-variant-numeric: tabular-nums; text-align: right; }
.plan-lines small { grid-column: 1 / -1; color: var(--ink-2); font-size: 0.8125rem; }
.plan-empty { color: var(--ink-2); padding: 24px 0; }
.plan-actions { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin-top: 24px; }
@media (max-width: 480px) { .g-row, .g-axis { grid-template-columns: 96px minmax(0, 1fr); gap: 10px; } }

/* ---------- Visit page ---------- */
.ways { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.ways li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.ways svg { width: 22px; height: 22px; color: var(--accent); margin-top: 3px; }
.ways strong { display: block; }
.ways p { margin: 2px 0 0; color: var(--ink-2); font-size: 0.9375rem; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }

/* ---------- 404 ---------- */
.nf { padding-top: clamp(64px, 12vw, 160px); padding-bottom: clamp(64px, 12vw, 160px); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: center; }
.nf svg.big-arch { width: 100%; max-width: 360px; justify-self: center; }
@media (max-width: 760px) { .nf { grid-template-columns: 1fr; } .nf svg.big-arch { max-width: 200px; justify-self: start; } }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal img { opacity: 0; transform: scale(1.04); transition: opacity .9s var(--ease), transform 1.2s var(--ease); }
  .js .reveal.is-in img { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
