/* Root */
:root {
  --bg: #F7F3EC;
  --surface: #FFFFFF;
  --text: #1F1B16;
  --muted: #5E554B;
  --accent: #A64B22;
  --accentText: #F7F3EC;
  --plateBg: #1F1B16;
  --plateText: #F7F3EC;
  --line: #E4DACA;
  --radiusCard: 18px;
  --radiusBtn: 12px;
  --padSide: clamp(16px, 4vw, 40px);
  --gap: 24px;
  --fontHead: Georgia, 'Times New Roman', serif;
  --fontBody: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* 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;
  min-height: 100%;
}

/* Background layer */
body::before {
  content: "";
  position: fixed;
  inset: -20%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(38% 42% at 12% 8%, rgb(166 75 34 / 0.18), transparent 70%),
    radial-gradient(34% 38% at 88% 18%, rgb(166 75 34 / 0.14), transparent 70%),
    radial-gradient(42% 46% at 78% 82%, rgb(166 75 34 / 0.16), transparent 72%),
    radial-gradient(30% 34% at 8% 88%, rgb(166 75 34 / 0.12), transparent 70%);
  filter: blur(4px);
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--fontHead);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  overflow-wrap: break-word;
}

h1 { font-size: clamp(2.4rem, 4.6vw + 0.6rem, 4.6rem); line-height: 1.06; }
h2 { font-size: clamp(1.8rem, 2.6vw + 0.8rem, 3rem); line-height: 1.15; }
h3 { font-size: clamp(1.2rem, 1rem + 0.6vw, 1.5rem); }

p { margin: 0 0 1em; max-width: 68ch; }

a { color: var(--accent); }
a:hover { color: #7d3717; }

/* Layout */
.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: var(--padSide);
}

.wrapNarrow { max-width: 760px; }

.block {
  background: var(--surface);
  border-radius: var(--radiusCard);
  margin: 0 var(--padSide) clamp(48px, 6vw, 96px);
  padding: clamp(32px, 5vw, 80px) 0;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.06), 0 12px 32px rgb(0 0 0 / 0.08);
  overflow: hidden;
}

@media (max-width: 479px) {
  .block { margin-inline: 12px; }
}

.blockTitle { margin-bottom: 8px; }

.blockLead {
  color: var(--muted);
  max-width: 62ch;
  margin-bottom: clamp(28px, 4vw, 44px);
}

/* Skip link */
.skipLine {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 100;
  background: var(--plateBg);
  color: var(--plateText);
  padding: 10px 18px;
  border-radius: var(--radiusBtn);
}
.skipLine:focus { left: 8px; color: var(--plateText); }

/* Header */
.topBar {
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 40;
}

.topStrip {
  background: var(--plateBg);
  color: var(--plateText);
  font-size: 0.875rem;
}

.topStripIn {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-block: 6px;
}

.topStripTxt { margin: 0; color: var(--plateText); }
.topStripTxt a { color: var(--plateText); text-decoration: underline; text-underline-offset: 3px; }
.topStripTxt a:hover { color: #fff; }

.topBarIn {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding-block: 14px;
  min-height: 72px;
}

.brandMark {
  font-family: var(--fontHead);
  font-size: clamp(1.1rem, 1rem + 0.6vw, 1.45rem);
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
}
.brandMark:hover { color: var(--accent); }

.menuSide {
  display: flex;
  gap: clamp(12px, 2vw, 28px);
}
.menuSide:last-of-type { justify-content: flex-end; }

.menuLink {
  position: relative;
  color: var(--text);
  text-decoration: none;
  font-size: 1rem;
  padding: 6px 2px 10px;
}

.menuLink::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.menuLink:hover::after,
.menuLink:focus-visible::after,
.menuLink[aria-current="page"]::after { transform: scaleX(1); }

.menuLink::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -3px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  transform: translate(-50%, 4px) scale(0);
  transition: transform 0.25s ease;
}
.menuLink[aria-current="page"]::before { transform: translate(-50%, 0) scale(1); }

.menuBtn {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: var(--radiusBtn);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.menuBtnBars, .menuBtnBars::before, .menuBtnBars::after {
  width: 20px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.menuBtnBars { position: relative; display: inline-block; }
.menuBtnBars::before, .menuBtnBars::after {
  content: "";
  position: absolute;
  left: 0;
}
.menuBtnBars::before { top: -6px; }
.menuBtnBars::after { top: 6px; }
.menuBtn[aria-expanded="true"] .menuBtnBars { background: transparent; }
.menuBtn[aria-expanded="true"] .menuBtnBars::before { transform: translateY(6px) rotate(45deg); }
.menuBtn[aria-expanded="true"] .menuBtnBars::after { transform: translateY(-6px) rotate(-45deg); }

.menuOverlay {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: var(--plateBg);
  display: none;
  align-items: center;
}
.menuOverlay.isOpen { display: block; }

.menuOverlayIn {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 128px;
}
.menuOverlay .menuLink {
  color: var(--plateText);
  font-family: var(--fontHead);
  font-size: clamp(1.6rem, 6vw, 2.4rem);
  padding: 6px 0;
}
.menuOverlay .menuLink::after,
.menuOverlay .menuLink::before { background: var(--bg); }

@media (max-width: 899px) {
  .topBarIn { grid-template-columns: 1fr auto; }
  .menuSide { display: none; }
  .menuBtn { display: inline-flex; justify-self: end; }
  .brandMark { justify-self: start; text-align: left; }
}

/* Hero */
#start { padding-top: clamp(32px, 5vw, 80px); margin-top: clamp(16px, 3vw, 32px); }

.heroKicker {
  color: var(--muted);
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  margin-bottom: 12px;
}

.mainHead {
  font-size: clamp(2.6rem, 5.2vw + 1rem, 5.4rem);
  max-width: 18ch;
  margin-bottom: clamp(24px, 3vw, 36px);
}

.heroCols {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 4vw, 48px);
  align-items: start;
}

.heroShot {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radiusCard);
}

.heroLead { margin-top: 20px; max-width: 60ch; }

.heroMedia .mainBtn { margin: 12px 24px 12px 0; }

@media (max-width: 1023px) {
  .heroCols { grid-template-columns: 1fr; }
}

/* Buttons */
.mainBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 26px;
  border: none;
  border-radius: var(--radiusBtn);
  background: linear-gradient(120deg, var(--accent), #8a3d1a 60%, var(--accent));
  background-size: 220% 100%;
  background-position: 0% 50%;
  color: var(--accentText);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-position 0.35s ease, transform 0.15s ease;
}
.mainBtn:hover { background-position: 100% 50%; color: var(--accentText); }
.mainBtn:focus-visible { outline: 3px solid var(--text); outline-offset: 2px; }
.mainBtn:active { transform: translateY(1px); }

.mainBtn.btnLight {
  background: linear-gradient(120deg, var(--bg), #fff 55%, var(--bg));
  background-size: 220% 100%;
  color: var(--text);
}
.mainBtn.btnLight:hover { color: var(--text); }

.quietLink {
  display: inline-block;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  color: var(--text);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 4px;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  background: none;
  border: none;
  padding: 0;
  transition: color 0.2s ease, transform 0.15s ease;
}
.quietLink:hover { color: var(--accent); text-decoration-color: var(--accent); }
.quietLink:focus-visible { outline: 3px solid var(--text); outline-offset: 3px; border-radius: 4px; }
.quietLink:active { transform: translateY(1px); }

.quietOnDark { color: var(--plateText); text-decoration-color: var(--bg); }
.quietOnDark:hover { color: var(--bg); }

/* Tiles */
.stepGrid, .tileSet {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 1fr;
  align-items: stretch;
  gap: var(--gap);
  margin-bottom: clamp(28px, 4vw, 44px);
}

.tile {
  background: var(--bg);
  border-radius: var(--radiusCard);
  padding: clamp(24px, 3vw, 32px);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgb(31 27 22 / 0.14);
}

.tileTitle { margin-bottom: 8px; }
.tileText { color: var(--muted); margin: 0; }
.tileText a { color: var(--accent); }

.darkPlate {
  background: var(--plateBg);
  color: var(--plateText);
}
.darkPlate .tileTitle { color: var(--plateText); }
.darkPlate .tileText { color: #d9d2c6; }

.stepNum {
  font-family: var(--fontHead);
  font-size: clamp(3rem, 4vw + 1rem, 4.6rem);
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 12px;
}
.darkPlate .stepNum { color: var(--bg); }

/* Photos */
.stepPhoto, .tilePhoto { position: relative; }

.stepPhoto img, .tilePhoto img {
  width: 100%;
  object-fit: cover;
  border-radius: var(--radiusCard);
  transition: transform 0.5s ease;
}
.stepPhoto { max-width: 100%; margin: 0 16px 16px 0; }
.stepPhoto img { aspect-ratio: 16 / 9; }

.photoPad {
  position: absolute;
  inset: 16px -16px -16px 16px;
  background: var(--accent);
  opacity: 0.25;
  border-radius: var(--radiusCard);
  z-index: 0;
}
.stepPhoto img, .tilePhoto img { position: relative; z-index: 1; }

.tilePhoto img { aspect-ratio: 4 / 5; }
.tilePhoto { overflow: visible; margin: 16px 0 0 16px; }
.tilePhoto:hover img { transform: scale(1.04); }
.tile:hover .stepPhoto img { transform: none; }
.stepPhoto:hover img { transform: scale(1.03); }

.photoPadAlt { inset: -16px 16px 16px -16px; background: var(--plateBg); opacity: 0.15; }

/* Prices */
.packSwitch {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  background: var(--bg);
  border-radius: var(--radiusBtn);
  padding: 4px;
  margin-bottom: 24px;
}

.packTab {
  min-height: 44px;
  padding: 0 22px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}
.packTab:hover { color: var(--accent); }
.packTab:focus-visible { outline: 3px solid var(--text); outline-offset: 2px; }
.packTab:active { transform: translateY(1px); }
.packTab[aria-selected="true"] { background: var(--plateBg); color: var(--plateText); }

.packPanel { max-width: 760px; }

.packPrice {
  margin-top: 16px;
  font-weight: 700;
  color: var(--accent);
}

/* FAQ */
.qaList { display: flex; flex-direction: column; gap: 12px; max-width: 760px; }

.qaList details {
  background: var(--bg);
  border-radius: var(--radiusCard);
  padding: 18px 24px;
  transition: background 0.25s ease;
}
.qaList details[open] { background: var(--surface); box-shadow: 0 1px 2px rgb(0 0 0 / 0.06); }

.qaList summary {
  cursor: pointer;
  font-weight: 600;
  font-family: var(--fontHead);
  font-size: 1.15rem;
  list-style-position: outside;
}
.qaList summary:focus-visible { outline: 3px solid var(--text); outline-offset: 2px; border-radius: 4px; }
.qaList details p { margin: 12px 0 0; color: var(--muted); }

/* Contact plate */
.contactPlate {
  border-radius: var(--radiusCard);
  padding: clamp(32px, 5vw, 56px);
}

.plateTitle { color: var(--plateText); }
.plateText { color: #d9d2c6; }

.plateContacts ul { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 32px; }
.plateContacts li { color: #d9d2c6; }
.plateContacts span { color: var(--bg); margin-right: 6px; }
.plateContacts a { color: var(--plateText); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.plateContacts a:hover { color: #fff; }

/* Form */
.leadBox {
  background: var(--bg);
  border-radius: var(--radiusCard);
  padding: clamp(20px, 3vw, 28px);
  max-width: 420px;
}
#start .leadBox { background: var(--bg); }

.leadTitle { font-size: clamp(1.4rem, 1.2rem + 0.6vw, 1.9rem); }
.leadText { color: var(--muted); }

.leadBox form { display: flex; flex-direction: column; gap: 14px; }

.fieldRow { display: flex; flex-direction: column; gap: 6px; }

.fieldTag { font-weight: 600; font-size: 0.95rem; }

.fieldBox {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radiusBtn);
  background: var(--surface);
  color: var(--text);
  font: inherit;
}
.fieldBox::placeholder { color: #857a6d; }
.fieldBox:focus { outline: 3px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }

.fieldArea { resize: vertical; min-height: 110px; }

.fieldCheck { display: flex; gap: 10px; align-items: flex-start; font-size: 0.95rem; }
.fieldCheck input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--accent); }
.fieldCheck label { max-width: 60ch; }

.fieldRow.isInvalid .fieldBox,
.fieldCheck.isInvalid input { border-color: var(--accent); outline: 2px solid var(--accent); }

.leadHint { font-size: 0.875rem; color: var(--muted); margin: 0; }

.leadBtn {
  align-self: stretch;
  width: 100%;
  min-height: 48px;
  padding: 14px 24px;
  margin-top: 4px;
}
form.isLocked .leadBtn { opacity: 0.7; pointer-events: none; }

/* Footer */
.foot {
  background: var(--plateBg);
  color: #d9d2c6;
  margin-top: clamp(24px, 4vw, 48px);
  padding: clamp(40px, 6vw, 72px) 0 24px;
}

.footGrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(24px, 3vw, 40px);
  padding-bottom: 40px;
}

.footHead {
  color: var(--plateText);
  font-family: var(--fontHead);
  font-weight: 700;
  margin-bottom: 14px;
}

.footLinks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }

.footLink { color: #d9d2c6; text-decoration: none; }
.footLink:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }

.foot address { font-style: normal; }
.foot address p { margin: 0 0 8px; color: #d9d2c6; }
.footCol ul { list-style: none; margin: 0; padding: 0; }
.footCol li { margin-bottom: 8px; }
.footCol span { color: #b7ad9e; margin-right: 6px; }
.footCol a { color: var(--plateText); }

.footBottom {
  border-top: 1px solid rgb(247 243 236 / 0.18);
  padding-top: 20px;
}
.footCopy { margin: 0; font-size: 0.95rem; color: #b7ad9e; }

@media (max-width: 899px) { .footGrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 479px) { .footGrid { grid-template-columns: 1fr; } }

/* Inner pages */
.pageHead { padding-bottom: clamp(24px, 4vw, 40px); }
.pageHead h1 { max-width: 20ch; }
.pageIntro { color: var(--muted); max-width: 62ch; }

.copy { max-width: 760px; }
.copy h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2.2rem); margin-top: 2em; }
.copy h3 { margin-top: 1.6em; }
.copy ul, .copy ol { padding-left: 1.4em; }
.copy li { margin-bottom: 8px; }
.copy table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 0.95rem;
}
.copy th, .copy td {
  border: 1px solid var(--line);
  padding: 10px 14px;
  text-align: left;
}
.copy th { background: var(--bg); }

.tocList { list-style: none; padding: 0; margin: 0 0 8px; display: flex; flex-direction: column; gap: 10px; }
.tocList a { font-weight: 600; }

/* Contacts page */
.contactList { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-direction: column; gap: 12px; }
.contactList span { color: var(--muted); margin-right: 8px; }

/* Thank-you & 404 */
.doneBox, .errBox { text-align: left; max-width: 760px; }
.doneLinks, .errLinks { display: flex; flex-wrap: wrap; gap: 12px 28px; list-style: none; padding: 0; margin: 24px 0 0; }
.doneLinks a, .errLinks a { font-weight: 600; }

.bigMark {
  font-family: var(--fontHead);
  font-size: clamp(3.4rem, 6vw + 1rem, 6.8rem);
  line-height: 1;
  color: var(--accent);
}

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

/* Breakpoints */
@media (max-width: 1279px) {
  .stepGrid, .tileSet { gap: 20px; }
}

@media (max-width: 1023px) {
  .heroCols { grid-template-columns: 1fr; }
  .leadBox { max-width: 420px; }
}

@media (max-width: 899px) {
  .menuSide { display: none; }
  .menuBtn { display: inline-flex; }
  .topBarIn { grid-template-columns: 1fr auto; }
  .brandMark { justify-self: start; }
}

@media (max-width: 767px) {
  .stepGrid, .tileSet { grid-template-columns: 1fr; }
  .footGrid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 639px) {
  .block { margin-inline: 12px; }
  .heroMedia .mainBtn { margin-right: 0; }
}

@media (max-width: 479px) {
  .footGrid { grid-template-columns: 1fr; }
  .topStripIn { justify-content: center; }
  .packSwitch { width: 100%; }
  .packTab { flex: 1; }
}

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

/* Mobile hero and form tuning */
@media (max-width: 767px) {
  .mainHead {
    font-size: clamp(2rem, 9vw, 3.2rem);
    line-height: 1.15;
    max-width: 22ch;
  }
  .heroLead { max-width: 34ch; }
  .heroShot { aspect-ratio: 16 / 10; }
}

@media (max-width: 639px) {
  .leadBox { padding: 20px; }
  .fieldCheck { margin-bottom: 2px; }
  .leadBtn { margin-top: 0; }
}

@media (max-width: 479px) {
  .mainHead { font-size: clamp(1.9rem, 8.5vw, 2.4rem); }
}

/* Header overflow fixes */
.topBarIn > * { min-width: 0; }

@media (max-width: 639px) {
  .menuBtn { padding: 0 14px; }
  .menuBtnTxt {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
  }
  .brandMark { white-space: normal; line-height: 1.25; }
}

/* Anchor offset for sticky header */
section[id] { scroll-margin-top: 120px; }

/* Overlay under sticky header */
.menuOverlay { z-index: 30; }
.menuOverlay .menuLink { max-width: 100%; }
