/* Vars */
:root {
  --bg: #F6F2EA;
  --surface: #FFFFFF;
  --text: #14213D;
  --muted: #4D5870;
  --accent: #9A4F14;
  --accent-text: #FFFFFF;
  --plate-bg: #14213D;
  --plate-text: #F6F2EA;
  --line: #E3DBC9;
  --font-head: Georgia, 'Times New Roman', serif;
  --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --radius-card: 20px;
  --radius-btn: 999px;
  --shadow-soft: 0 1px 2px rgb(0 0 0 / .06), 0 12px 32px rgb(0 0 0 / .08);
  --pad-side: clamp(16px, 4vw, 40px);
  --pad-section: clamp(64px, 9vw, 128px);
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(1200px 700px at 85% -10%, rgb(255 255 255 / .55), transparent 60%),
    radial-gradient(900px 600px at -10% 40%, rgb(154 79 20 / .07), transparent 55%),
    radial-gradient(1000px 700px at 110% 90%, rgb(20 33 61 / .06), transparent 60%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .35;
  background-image:
    radial-gradient(rgb(20 33 61 / .05) 1px, transparent 1px),
    radial-gradient(rgb(154 79 20 / .04) 1px, transparent 1px);
  background-size: 7px 7px, 11px 11px;
  background-position: 0 0, 3px 5px;
  z-index: 0;
}
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.4rem, 4.6vw + 0.6rem, 4.6rem); line-height: 1.08; letter-spacing: -0.02em; font-weight: 800; }
h2 { font-size: clamp(1.8rem, 2.6vw + 0.8rem, 3rem); }
h3 { font-size: clamp(1.2rem, 1rem + 0.6vw, 1.5rem); }
p { margin: 0 0 1em; max-width: 68ch; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #7A3D0F; }
img { max-width: 100%; height: auto; display: block; }
ul { padding-left: 1.2em; }
.u-muted { color: var(--muted); }
.u-visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}
.u-skip {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--surface); color: var(--text);
  padding: 12px 20px; border-radius: var(--radius-btn);
  border: 2px solid var(--accent); transition: top .2s ease;
}
.u-skip:focus { top: 12px; }

/* Layout */
.l-wrap { max-width: 1200px; margin: 0 auto; padding-inline: var(--pad-side); position: relative; z-index: 1; }
.l-section { padding-block: var(--pad-section); position: relative; }
.l-section.has-alt { background-color: var(--surface); background-image: linear-gradient(180deg, rgb(246 242 234 / .4), transparent 40%); }
.l-section-lead { font-size: clamp(1.05rem, 1rem + 0.4vw, 1.3rem); color: var(--muted); max-width: 62ch; margin-bottom: 2.5rem; }

/* Header */
.l-header { position: relative; z-index: 10; }
.l-header-top { background: var(--plate-bg); color: var(--plate-text); }
.l-header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.l-header-top .l-header-row { min-height: 44px; flex-wrap: wrap; padding-block: 4px; }
.c-header-contact { color: var(--plate-text); font-size: 15px; text-decoration: none; opacity: .92; }
.c-header-contact:hover { opacity: 1; color: #FFFFFF; text-decoration: underline; text-decoration-thickness: 2px; }
.l-header-main { background: var(--surface); border-bottom: 1px solid var(--line); }
.l-header-base { min-height: 72px; gap: 20px; padding-block: 12px; flex-wrap: wrap; }
.c-brand {
  font-family: var(--font-head); font-weight: 700; font-size: clamp(1.05rem, 1rem + 0.5vw, 1.4rem);
  color: var(--text); text-decoration: none; letter-spacing: 0;
}
.c-brand:hover { color: var(--accent); }
.c-brand-foot { margin: 0 0 12px; }
.c-menu { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.c-menu-list { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; }
.c-menu-link {
  display: inline-block; padding: 8px 18px; border: 1.5px solid var(--line);
  border-radius: var(--radius-btn); text-decoration: none;
  color: var(--text); font-size: 16px; background: transparent;
  transition: border-color .2s ease, color .2s ease, background-color .2s ease;
}
.c-menu-link:hover { border-color: var(--accent); color: var(--accent); text-decoration: underline; text-decoration-thickness: 3px; }
.c-menu-link:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.c-menu-link[aria-current="page"], .c-menu-link.is-active { background: var(--plate-bg); color: var(--plate-text); border-color: var(--plate-bg); }
.c-menu-btn { display: none; }
@media (max-width: 767px) {
  .l-header-base { padding: 12px 20px; flex-wrap: nowrap; align-items: center; }
  .l-header-top .l-header-row { padding: 10px 20px; }
  .l-hero { padding-top: 28px; }
  .l-hero-copy h1 { font-size: 34px; line-height: 1.2; margin-bottom: 12px; }
  .l-hero-copy > * + * { margin-top: 16px; }
  .l-hero-media { margin-top: 20px; }
  .l-hero-note.c-plate { margin: 4px 0; width: 100%; }
  .l-hero-cta { width: 100%; max-width: 320px; }
  .c-menu-btn {
    display: inline-flex; flex-direction: column; gap: 4px;
    width: 46px; height: 44px; padding: 10px;
    background: var(--bg); border: 1.5px solid var(--line); border-radius: 10px; cursor: pointer;
  }
  .c-menu-btn-bar { display: block; width: 100%; height: 2.5px; background: var(--text); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
  .c-menu-list {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 8px;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: 16px var(--pad-side) 20px; margin: 0;
    transform: translateY(-110%); opacity: 0; visibility: hidden;
    transition: transform .3s ease, opacity .3s ease, visibility .3s;
  }
  .has-menu-open .c-menu-list { transform: translateY(0); opacity: 1; visibility: visible; }
  .has-menu-open .c-menu-btn-bar:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .has-menu-open .c-menu-btn-bar:nth-child(2) { opacity: 0; }
  .has-menu-open .c-menu-btn-bar:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
  .l-header { position: relative; }
  .l-header-main { position: static; }
}

/* Hero */
.l-hero { padding-top: clamp(40px, 6vw, 80px); }
.l-hero-grid { display: grid; gap: clamp(24px, 4vw, 56px); align-items: center; }
.l-hero-copy { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.l-hero-media img { width: 100%; max-height: 100%; }
.l-hero.has-tint { background: linear-gradient(120deg, rgb(227 219 201 / .5), transparent 70%); }
.l-hero-lead { font-size: clamp(1.1rem, 1rem + 0.6vw, 1.4rem); color: var(--muted); }
.l-hero-note { max-width: 46ch; }
.l-hero-note.c-plate { font-size: 1rem; line-height: 1.6; padding: 24px 28px; border-radius: 16px; max-width: 520px; }
.l-hero-media img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius-card); box-shadow: var(--shadow-soft); }
.u-accent { display: block; }
.u-accent-word { color: var(--accent); font-style: italic; }
@media (min-width: 900px) { .l-hero-grid { grid-template-columns: 1fr 1fr; } }
.l-hero-cta { margin-top: 8px; }

/* Steps */
.l-steps-grid { display: grid; gap: 24px; margin-bottom: clamp(32px, 5vw, 56px); align-content: start; grid-auto-rows: 1fr; }
.c-steps-value {
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(3.25rem, 2.5rem + 2.5vw, 4rem); line-height: 1;
  color: var(--accent); margin: 0 0 .25em;
}
.l-steps-media { margin: 0; }
.l-steps-media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-card); }
.l-steps-media figcaption { margin-top: 12px; font-size: 14px; color: var(--muted); }
@media (min-width: 640px) { .l-steps-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .l-steps-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .l-steps-media { max-width: 1100px; margin-inline: auto; width: 100%; } }

/* Services */
.l-services-grid { display: grid; gap: clamp(28px, 4vw, 56px); align-items: start; }
.l-services-list { list-style: none; margin: 0; padding: 0; }
.l-services-list li { padding: 20px 0; border-bottom: 1px solid var(--line); }
.l-services-list h3 a { display: inline-block; font-size: 18px; line-height: 1.35; }
.l-services-list li:first-child { border-top: 1px solid var(--line); }
.l-services-list h3 { margin-bottom: .3em; }
.l-services-list h3 a { color: var(--text); text-decoration: none; border-bottom: 2px solid var(--accent); transition: color .2s ease, border-color .2s ease; }
.l-services-list h3 a:hover { color: var(--accent); }
.l-services-media { margin: 0; }
.l-services-media img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius-card); box-shadow: var(--shadow-soft); }
@media (min-width: 900px) { .l-services-grid { grid-template-columns: 1.2fr .8fr; } .l-services-media { max-width: 480px; justify-self: end; } }

/* FAQ */
.l-faq-layout { max-width: 720px; margin-inline: auto; }
.c-faq { display: grid; gap: 12px; }
.c-faq-item {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card);
  padding: 6px 24px; box-shadow: 0 1px 2px rgb(0 0 0 / .05);
  transition: box-shadow .25s ease;
}
.c-faq-item:hover, .c-faq-item[open] { box-shadow: 0 2px 4px rgb(154 79 20 / .08), 0 14px 34px rgb(154 79 20 / .12); }
.c-faq-item summary {
  cursor: pointer; font-family: var(--font-head); font-weight: 700;
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem);
  padding: 16px 0; list-style: none; position: relative; padding-right: 34px;
}
.c-faq-item summary::-webkit-details-marker { display: none; }
.c-faq-item summary::after {
  content: ""; position: absolute; right: 4px; top: 50%; width: 10px; height: 10px;
  border-right: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent);
  transform: translateY(-70%) rotate(45deg); transition: transform .25s ease;
}
.c-faq-item[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.c-faq-item summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
.c-faq-item p { margin: 0 0 18px; }

/* Gallery */
.l-gallery-grid { display: grid; gap: clamp(24px, 4vw, 48px); align-items: center; }
.l-gallery-item { margin: 0; }
.l-gallery-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-card); padding: 14px; background: var(--bg); border: 1px solid var(--line); }
@media (min-width: 860px) { .l-gallery-grid { grid-template-columns: 1fr 1fr; } }

/* Form */
.l-form-layout { display: grid; gap: clamp(28px, 4vw, 56px); align-items: start; }
@media (min-width: 900px) { .l-form-layout { grid-template-columns: 1fr 1.1fr; } }
.c-form-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); padding: clamp(20px, 3vw, 36px); box-shadow: var(--shadow-soft); }
.c-form { display: grid; gap: 18px; }
.c-field { display: grid; gap: 6px; }
.c-field-label { font-weight: 600; font-size: 15px; }
.c-input {
  font: inherit; color: var(--text); background: var(--bg);
  border: 1.5px solid var(--line); border-radius: 12px;
  padding: 12px 16px; min-height: 48px; width: 100%;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.c-input::placeholder { color: #5A6478; opacity: 1; }
.c-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgb(154 79 20 / .2); }
.is-invalid .c-input, .c-input.is-invalid { border-color: #A32B0E; box-shadow: 0 0 0 3px rgb(163 43 14 / .15); }
.c-textarea { min-height: 120px; resize: vertical; }
.c-check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--muted); }
.c-check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.c-check input:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.c-form-note { font-size: 14px; color: var(--muted); margin: 0; }

/* Buttons */
.c-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 28px;
  font: inherit; font-weight: 600; font-size: 16px;
  color: var(--text); background: transparent;
  border: 2px solid var(--text); border-radius: var(--radius-btn);
  text-decoration: none; cursor: pointer; position: relative; overflow: hidden;
  transition: color .25s ease, transform .15s ease, border-color .25s ease;
}
.c-btn::before {
  content: ""; position: absolute; inset: 0; background: var(--text);
  transform: scale(0); border-radius: 50%; opacity: 0;
  transition: transform .35s ease, opacity .3s ease; z-index: 0;
}
.c-btn:hover::before { transform: scale(2.4); opacity: 1; }
.c-btn:hover { color: var(--bg); border-color: var(--text); }
.c-btn > * { position: relative; z-index: 1; }
.c-btn:focus-visible { outline: 4px solid var(--accent); outline-offset: 3px; }
.c-btn:active { transform: scale(.96); }
.c-btn-solid { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.c-btn-solid::before { background: #7A3D0F; }
.c-btn-solid:hover { color: var(--accent-text); }
.is-sending { opacity: .65; pointer-events: none; }

/* Cards & plate */
.c-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card);
  padding: clamp(20px, 3vw, 32px);
  transition: transform .25s ease, box-shadow .25s ease;
}
.c-card:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgb(154 79 20 / .1), 0 16px 36px rgb(154 79 20 / .14); }
.c-card p:last-child { margin-bottom: 0; }
.c-plate {
  background: var(--plate-bg); color: var(--plate-text);
  border-radius: var(--radius-card); padding: clamp(22px, 3.5vw, 40px);
}
.c-plate h2, .c-plate h3 { color: var(--plate-text); }
.c-plate a { color: #E8C9A8; }
.c-plate a:hover { color: #FFFFFF; }
.l-contact-plate { max-width: 760px; }
.l-contact-plate ul { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.l-contact-plate li span { display: inline-block; min-width: 90px; opacity: .75; font-size: 15px; }

/* Reveal */
html:not(.has-js) .c-reveal { opacity: 1; transform: none; }
html.has-js .c-reveal { transform: translateY(26px); transition: transform .55s ease; }
html.has-js .c-reveal.is-visible { transform: translateY(0); }

/* Inner pages */
.l-page-head { padding-top: clamp(40px, 6vw, 72px); }
.l-page-head h1 { margin-bottom: .35em; }
.u-text { max-width: 760px; }
.u-text h2 { margin-top: 2em; }
.u-text ul, .u-text ol { margin: 0 0 1.2em; }
.u-text table { width: 100%; border-collapse: collapse; margin: 0 0 1.5em; font-size: 15px; }
.u-text th, .u-text td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }
.u-text th { background: var(--surface); font-family: var(--font-head); }
.l-toc { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 22px 26px; }
.l-toc a { text-decoration-thickness: 2px; }

/* Footer */
.l-footer { background: var(--plate-bg); color: var(--plate-text); padding-block: clamp(48px, 6vw, 80px) 32px; position: relative; z-index: 1; }
.l-footer-grid { display: grid; gap: 32px; }
.l-footer a { color: #E8C9A8; }
.l-footer a:hover { color: #FFFFFF; }
.l-footer-col address { font-style: normal; font-size: 15px; line-height: 1.6; opacity: .85; }
.l-footer-col address p { margin: 0 0 8px; max-width: none; }
.l-footer-title { font-size: 1.05rem; color: var(--plate-text); margin-bottom: 14px; }
.l-footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 15px; }
.l-footer-copy { margin: 20px 0 0; font-size: 14px; opacity: .7; }
.l-footer .c-plate { background: rgb(246 242 234 / .08); }
@media (min-width: 640px) { .l-footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .l-footer-grid { grid-template-columns: 2fr 1.2fr 1.6fr 1.2fr; } }

/* Misc pages */
.l-center { text-align: center; }
.l-center .u-text { margin-inline: auto; }
.l-thanks-actions, .l-404-actions { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin-top: 28px; }

/* Breakpoints */
@media (max-width: 479px) {
  .l-header-row { flex-direction: column; align-items: flex-start; }
  .l-header-base { flex-direction: row; align-items: center; }
  .l-contact-plate li span { display: block; min-width: 0; }
}
@media (min-width: 480px) {
  .c-menu-link { padding: 8px 20px; }
}
@media (min-width: 1280px) {
  .l-wrap { padding-inline: 40px; }
}

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

/* Steps balance */
@media (min-width: 1024px) {
  .l-steps-grid .c-card { padding-bottom: clamp(28px, 4vw, 44px); min-height: 100%; }
}
/* Services rhythm */
@media (max-width: 767px) {
  .l-services-list li { padding: 20px 0; }
  .l-services-list li + li { margin-top: 4px; }
}
