/* Theme */
:root {
  --bg: #F7F3EC;
  --surface: #FFFFFF;
  --text: #1F1B16;
  --muted: #5E554B;
  --accent: #A64B22;
  --accentText: #FFFFFF;
  --plateBg: #1F1B16;
  --plateText: #F7F3EC;
  --line: #E5DFD3;
  --fontHead: 'Iowan Old Style', 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, serif;
  --fontBody: system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --radiusBtn: 10px;
  --radiusCard: 14px;
  --shadowSoft: 0 1px 2px rgb(0 0 0 / .06), 0 12px 32px rgb(0 0 0 / .08);
  --padX: clamp(16px, 4vw, 40px);
}

/* Base */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--fontBody);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--fontHead); font-weight: 700; line-height: 1.12; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 4.6vw + 0.6rem, 4.6rem); line-height: 1.08; }
h2 { font-size: clamp(1.8rem, 2.6vw + 0.8rem, 3rem); line-height: 1.15; margin: 0 0 12px; }
h3 { font-size: 1.3rem; margin: 0 0 8px; }
p { margin: 0 0 12px; max-width: 68ch; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
ul, ol { padding-left: 1.2em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skipLink {
  position: absolute; left: -9999px; top: 0;
  background: var(--plateBg); color: var(--plateText);
  padding: 10px 18px; z-index: 200; border-radius: 0 0 var(--radiusBtn) 0;
}
.skipLink:focus { left: 0; }

.pageWrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--padX); }
.block { padding: clamp(64px, 9vw, 128px) 0; position: relative; }

/* Background shapes */
.block::before, .block::after {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  opacity: .5;
}
.servicesBlock::before {
  width: 340px; height: 340px; border-radius: 50%;
  background: rgb(166 75 34 / .05);
  top: 60px; right: -100px;
}
.processBlock::after {
  width: 380px; height: 380px; border-radius: 190px 190px 0 0;
  background: rgb(31 27 22 / .05);
  bottom: 0; left: -160px;
}
.faqBlock::before {
  width: 300px; height: 300px; border-radius: 50%;
  background: rgb(166 75 34 / .07);
  bottom: 60px; right: -140px;
}
.block .pageWrap { position: relative; z-index: 1; }

/* Announcement */
.annBar {
  background: var(--plateBg); color: var(--plateText);
  padding: 12px 24px; display: flex; gap: 16px;
  align-items: center; justify-content: space-between; flex-wrap: wrap;
  font-size: .92rem;
}
.annText { margin: 0; max-width: none; }
.annClose {
  background: none; border: 1px solid var(--plateText); color: var(--plateText);
  font: inherit; font-size: .85rem; padding: 4px 12px;
  border-radius: var(--radiusBtn); cursor: pointer;
}
.annClose:hover { background: rgb(247 243 236 / .15); }

/* Header */
.topBar {
  position: sticky; top: 0; z-index: 100;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  min-height: 72px; padding: 10px var(--padX);
  background: transparent; transition: background-color .3s ease, box-shadow .3s ease;
}
.topBar.hasBg {
  background: rgb(247 243 236 / .96);
  box-shadow: 0 1px 0 var(--line);
}
.topBarMail { display: flex; }
.mailLink { font-size: .92rem; color: var(--muted); text-decoration: none; }
.mailLink:hover { color: var(--accent); text-decoration: underline; }
.brandMark {
  font-family: var(--fontHead); font-weight: 700; font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  color: var(--text); text-decoration: none; text-align: center; white-space: nowrap;
}
.brandMark:hover { color: var(--accent); }
.topBarAction { display: flex; justify-content: flex-end; }
.navToggle {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--line); color: var(--text);
  font: inherit; font-size: .95rem; font-weight: 600;
  padding: 10px 18px; border-radius: var(--radiusBtn); cursor: pointer;
  transition: border-radius .25s ease, border-color .25s ease;
}
.navToggle:hover { border-color: var(--accent); border-radius: 20px; }
.navToggle:active { box-shadow: none; }
.navToggleLine {
  width: 18px; height: 2px; background: var(--text);
  box-shadow: 0 5px 0 var(--text), 0 -5px 0 var(--text);
}
.navToggleText { display: inline; }

/* Nav overlay */
.navPanel {
  position: fixed; inset: 0; z-index: 90;
  background: var(--plateBg); color: var(--plateText);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .3s ease, transform .3s ease, visibility .3s;
  padding: 90px var(--padX) 40px;
}
.navPanel.isOpen { opacity: 1; visibility: visible; transform: translateY(0); }
.navCols {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(24px, 6vw, 80px);
  max-width: 1000px; width: 100%;
}
.navList { list-style: none; margin: 0; padding: 0; }
.navList li + li { border-top: 1px solid rgb(247 243 236 / .2); }
.menuLink {
  display: block; padding: 14px 0; color: var(--plateText);
  font-family: var(--fontHead); font-size: clamp(1.5rem, 3vw, 2.2rem);
  text-decoration: none; transition: padding-left .25s ease, color .25s ease;
}
.menuLink:hover, .menuLink[aria-current="page"] { color: #E8A87C; padding-left: 12px; }
.navSideLabel {
  margin: 0 0 12px; font-size: .9rem; color: rgb(247 243 236 / .75);
  text-transform: uppercase; letter-spacing: .08em;
}
.navSide ul { list-style: none; margin: 0; padding: 0; }
.navSide li { padding: 8px 0; border-bottom: 1px solid rgb(247 243 236 / .15); }
.navSide a { color: var(--plateText); }
.navSide span { display: inline-block; min-width: 84px; color: rgb(247 243 236 / .7); font-size: .9rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 26px; border: none; cursor: pointer;
  font: inherit; font-weight: 600; font-size: 1rem;
  color: var(--accentText); text-decoration: none;
  background: linear-gradient(135deg, #B85B2E 0%, var(--accent) 55%, #8C3D1B 100%);
  background-size: 180% 180%; background-position: 0% 50%;
  border-radius: var(--radiusBtn);
  box-shadow: var(--shadowSoft);
  transition: background-position .35s ease, border-radius .25s ease, box-shadow .2s ease;
}
.btn:hover { background-position: 100% 50%; border-radius: 22px; }
.btn:focus-visible { outline: 3px solid var(--plateBg); outline-offset: 2px; }
.btn:active { box-shadow: none; }
.btnGhost {
  background: transparent; color: var(--accent);
  border: 2px solid var(--accent); box-shadow: none;
}
.btnGhost:hover { background: var(--accent); color: var(--accentText); }

/* Hero */
.heroBlock { padding-top: clamp(32px, 6vw, 72px); }
.lead {
  font-family: var(--fontBody);
  font-size: clamp(1.1rem, 0.4vw + 1rem, 1.25rem);
  line-height: 1.5; font-weight: 500; color: var(--muted);
  max-width: 52ch; margin: 0 0 20px;
}
.heroHeadline { margin: 0 0 16px; letter-spacing: -0.02em; }
.heroText { color: var(--muted); font-size: 1.1rem; margin-bottom: 28px; }
.heroPhoto {
  margin-top: clamp(32px, 5vw, 56px); border-radius: 20px; overflow: hidden;
}
.heroPhoto img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* Section heads */
.blockTitle { margin-bottom: 12px; }
.blockIntro { color: var(--muted); max-width: 62ch; margin-bottom: clamp(24px, 4vw, 40px); }
.blockMore { margin-top: 28px; color: var(--muted); font-size: 1rem; line-height: 1.6; max-width: none; }
.blockMore a { color: var(--accent); text-underline-offset: 3px; }
.blockMore a + a, .blockMore a:not(:first-child) { margin-left: 8px; }

/* Reveal */
html.jsOn .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
html.jsOn .reveal.isShown { opacity: 1; transform: none; }

/* Form */
.formBlock { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.leadForm {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px;
  max-width: 820px;
}
.formField { display: flex; flex-direction: column; gap: 6px; }
.formField:nth-child(n + 8) { grid-column: 1 / -1; }
.formLabel { font-weight: 600; font-size: .95rem; }
.formInput, .formArea {
  font: inherit; color: var(--text); width: 100%;
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radiusBtn); padding: 12px 14px; min-height: 48px;
  transition: border-color .2s ease, border-radius .2s ease;
}
.formArea { min-height: 120px; resize: vertical; }
.formInput:hover, .formArea:hover { border-color: var(--muted); }
.formInput:focus-visible, .formArea:focus-visible {
  outline: none; border-color: var(--accent); border-radius: 16px;
  box-shadow: 0 0 0 3px rgb(166 75 34 / .18);
}
.formInput::placeholder { color: var(--muted); opacity: 1; }
.fieldError .formInput, .fieldError .formArea { border-color: #9A2B12; }
.formCheck { grid-column: 1 / -1; display: flex; gap: 10px; align-items: flex-start; }
.formCheck input { width: 20px; height: 20px; flex-shrink: 0; margin: 2px 0 0; accent-color: var(--accent); }
.formCheck label { font-size: .95rem; color: var(--muted); }
.formNote { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: .92rem; }
.formBtn { grid-column: 1 / -1; justify-self: start; }
.leadForm.isSending .formBtn { opacity: .65; pointer-events: none; }

/* Cards */
.cardRow { display: grid; grid-template-columns: 1fr; gap: 24px; grid-auto-rows: 1fr; }
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radiusCard); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .3s ease, box-shadow .3s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadowSoft); }
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.cardBody { padding: 26px 28px 28px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.cardBody h3 { margin: 0; }
.cardBody p { color: var(--muted); margin: 0; flex: 1; }
.cardWide img { aspect-ratio: 16 / 9; }

/* Tabs */
.tabsBar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.tabBtn {
  font: inherit; font-weight: 600; font-size: .95rem;
  background: transparent; color: var(--muted);
  border: 1px solid var(--line); border-radius: var(--radiusBtn);
  padding: 10px 16px; cursor: pointer; min-height: 44px;
  transition: border-radius .25s ease, color .2s ease, border-color .2s ease;
}
.tabBtn:hover { color: var(--accent); border-color: var(--accent); border-radius: 18px; }
.tabBtn:focus-visible { outline: 3px solid var(--plateBg); outline-offset: 2px; }
.tabBtn:active { box-shadow: none; }
.tabBtn[aria-selected="true"] { background: var(--plateBg); color: var(--plateText); border-color: var(--plateBg); }
.tabPanel.isHidden { display: none; }

/* Process */
.processCols { display: grid; grid-template-columns: 1fr; gap: clamp(24px, 5vw, 56px); align-items: center; }
.processList { list-style: none; counter-reset: step; margin: 0; padding: 0; }
.processList li {
  counter-increment: step; position: relative;
  padding: 20px 0 20px 64px; border-top: 1px solid var(--line);
}
.processList li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: 18px;
  font-family: var(--fontHead); font-size: 1.6rem; font-weight: 700; color: var(--accent);
}
.processList p { color: var(--muted); margin: 0; }
.processPhoto img {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover;
  border-radius: 160px 160px var(--radiusCard) var(--radiusCard);
}

/* Plate */
.plate { background: var(--plateBg); color: var(--plateText); }
.plate::before, .plate::after { content: none; }
.plateTitle { color: var(--plateText); }
.plateCols { display: grid; grid-template-columns: 1fr; gap: 20px; }
.plateCols p { color: rgb(247 243 236 / .88); margin: 0; }
.plate a { color: #E8A87C; }

/* Prices */
.priceGrid { display: grid; grid-template-columns: 1fr; gap: 24px; }
.priceCard { text-align: left; }
.priceTag {
  font-family: var(--fontHead); font-size: 1.15rem; font-weight: 700;
  color: var(--accent); margin: 4px 0 16px;
}
.priceList { list-style: none; margin: 0 0 20px; padding: 0; }
.priceList li { padding: 8px 0 8px 22px; position: relative; color: var(--muted); border-bottom: 1px solid var(--line); }
.priceList li::before {
  content: ""; position: absolute; left: 0; top: 16px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
}
.priceCard.isFeatured {
  border: 2px solid var(--accent);
  box-shadow: var(--shadowSoft);
}
.priceCard.isFeatured .priceList li { color: var(--text); }
.priceCard .btn { margin-top: auto; }

/* FAQ */
.faqBox { max-width: 760px; }
.faqBox details {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radiusCard); margin-bottom: 12px; padding: 0;
}
.faqBox summary {
  cursor: pointer; padding: 18px 24px;
  font-family: var(--fontHead); font-weight: 650; font-size: 1.1rem;
  list-style: none; transition: color .2s ease;
}
.faqBox summary::-webkit-details-marker { display: none; }
.faqBox summary::before { content: "+ "; color: var(--accent); }
.faqBox details[open] summary::before { content: "− "; }
.faqBox summary:hover { color: var(--accent); }
.faqBox details p { padding: 0 24px 20px; color: var(--muted); margin: 0; }

/* Inner pages */
.pageHead { padding-top: clamp(40px, 6vw, 72px); padding-bottom: 0; }
.prose { max-width: 760px; }
.prose h2 { margin-top: 40px; }
.prose ol li, .prose ul li { margin-bottom: 8px; }
.prose table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: .95rem; }
.prose th { font-weight: 650; }
.keyBox {
  background: var(--surface); border-left: 4px solid var(--accent);
  border-radius: 0 var(--radiusCard) var(--radiusCard) 0;
  padding: 20px 24px; margin-bottom: 32px;
}
.galleryGrid { display: grid; grid-template-columns: 1fr; gap: 24px; }
.galleryGrid img { border-radius: var(--radiusCard); object-fit: cover; width: 100%; }
.archTop img { border-radius: 180px 180px var(--radiusCard) var(--radiusCard); }

/* Thanks & 404 */
.confirmBox { max-width: 760px; }
.bigNote {
  font-family: var(--fontHead); font-size: clamp(1.8rem, 3vw + 0.6rem, 3rem);
  line-height: 1.2; font-weight: 700; color: var(--accent);
  margin: 16px 0 24px;
}
.linkRow { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 28px; }

/* Dock */
.dockBar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
  display: none; padding: 10px var(--padX) calc(10px + env(safe-area-inset-bottom));
  background: rgb(247 243 236 / .96); border-top: 1px solid var(--line);
}
.dockBar .dockLink { width: 100%; }

/* Footer */
.siteFooter { background: var(--surface); border-top: 1px solid var(--line); padding: clamp(48px, 6vw, 80px) 0 32px; }
.footerGrid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 24px; margin-bottom: 40px; }
.footerHeading { font-weight: 650; margin: 0 0 12px; font-size: .95rem; }
.footerList { list-style: none; margin: 0; padding: 0; }
.footerList li { padding: 4px 0; }
.footerList a { color: var(--muted); text-decoration: none; font-size: .95rem; }
.footerList a:hover { color: var(--accent); text-decoration: underline; }
.siteFooter address { font-style: normal; font-size: .95rem; color: var(--muted); }
.siteFooter address p { margin: 0 0 8px; max-width: none; }
.siteFooter ul { list-style: none; margin: 0; padding: 0; }
.siteFooter ul li { padding: 3px 0; font-size: .95rem; }
.siteFooter ul span { display: inline-block; min-width: 76px; color: var(--muted); }
.footerCopy { border-top: 1px solid var(--line); padding-top: 20px; margin: 0; color: var(--muted); font-size: .9rem; }

/* Breakpoints */
@media (max-width: 1279px) {
  .navCols { max-width: 860px; }
}
@media (max-width: 1023px) {
  .processCols { grid-template-columns: 1fr 1fr; }
  .processPhoto img { aspect-ratio: 4 / 3; border-radius: var(--radiusCard); }
  .footerGrid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 839px) {
  .navCols { grid-template-columns: 1fr; gap: 32px; }
  .processCols { grid-template-columns: 1fr; }
  .leadForm { grid-template-columns: 1fr; }
  .plateCols { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .dockBar { display: block; }
  .footerGrid { grid-template-columns: 1fr; }
  .galleryGrid { grid-template-columns: 1fr; }
}
@media (max-width: 639px) {
  .cardRow { grid-template-columns: 1fr; gap: 16px; }
  .priceGrid { grid-template-columns: 1fr; }
  .topBar { grid-template-columns: auto 1fr auto; min-height: 64px; padding: 8px 20px; }
  .topBarMail { display: none; }
  .brandMark { text-align: left; }
  .navToggle { padding: 10px 20px; font-size: 15px; }
  .heroPhoto { border-radius: 14px; }
  .heroBlock { padding-bottom: 40px; }
  body { padding-bottom: 76px; }
}
@media (min-width: 640px) {
  .cardRow { grid-template-columns: repeat(2, 1fr); }
  .priceGrid { grid-template-columns: repeat(2, 1fr); }
  .galleryGrid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .cardRow { grid-template-columns: repeat(3, 1fr); }
  .priceGrid { grid-template-columns: repeat(3, 1fr); }
  .plateCols { grid-template-columns: 1fr 1fr; gap: 32px; }
  .galleryGrid { grid-template-columns: repeat(3, 1fr); }
}

/* Motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  html.jsOn .reveal { opacity: 1; transform: none; }
}

/* Section overflow and card media */
.servicesBlock, .processBlock, .faqBlock { overflow: hidden; }
.card img { width: 100%; height: 200px; aspect-ratio: auto; object-fit: cover; }
.cardWide img { height: 240px; }
.formBtn { width: 100%; max-width: 360px; }
