:root {
  --bg: #f7efe7;
  --surface: rgba(255, 250, 245, 0.86);
  --surface-2: #fff8f2;
  --surface-3: #f2e4d8;
  --surface-4: #ead7c8;
  --text: #22160f;
  --muted: #6d5a4d;
  --soft: #907c6e;
  --primary: #b56a44;
  --secondary: #8d4e30;
  --tertiary: #3e261d;
  --shadow: 0 24px 70px rgba(77, 49, 32, 0.1);
  --radius-xl: 30px;
  --radius-lg: 24px;
  --radius-md: 18px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Manrope', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(242, 214, 192, 0.3), transparent 22%),
    radial-gradient(circle at top left, rgba(255, 244, 233, 0.82), transparent 28%),
    var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

input,
select,
textarea,
button {
  appearance: none;
}

body.has-cookie-modal {
  overflow: hidden;
}

#custom-cookie-slot {
  position: relative;
  z-index: 50;
}

.overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(24, 14, 9, 0.45);
  backdrop-filter: blur(6px);
  z-index: 9998;
}

.dialog-box {
  width: min(100%, 520px);
  padding: 28px;
  border-radius: 26px;
  background: #fffaf5;
  border: 1px solid rgba(59, 37, 26, 0.08);
  box-shadow: 0 28px 80px rgba(30, 18, 12, 0.22);
  text-align: left;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
}

.dialog-box h2 {
  margin: 0 0 12px;
  font-size: 2rem;
  line-height: 1.05;
}

.dialog-box p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.7;
}

.buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.buttons button {
  min-width: 118px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 0;
  font-weight: 700;
  cursor: pointer;
}

.buttons .accept {
  background: var(--tertiary);
  color: #fff;
}

.buttons .deny {
  background: #efe2d5;
  color: var(--text);
}

.policy-link {
  color: var(--secondary);
  font-weight: 600;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.button-primary {
  background: linear-gradient(135deg, var(--tertiary), var(--secondary));
  color: #fff;
  box-shadow: 0 14px 28px rgba(62, 38, 29, 0.16);
}

.button-secondary {
  background: #fff;
  color: var(--text);
  border: 1px solid rgba(59, 37, 26, 0.1);
}

.site-shell {
  display: flex;
  min-height: 100vh;
}

.site-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 268px;
  padding: 28px 20px;
  background: rgba(255, 250, 245, 0.92);
  border-right: 1px solid rgba(59, 37, 26, 0.08);
  display: flex;
  flex-direction: column;
  gap: 26px;
  z-index: 30;
  backdrop-filter: blur(18px);
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #f3ddca, #fff5ec);
  color: var(--secondary);
  font-size: 1.2rem;
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong {
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-copy small,
.footer-kicker,
.section-heading__eyebrow,
.sidebar-promo__eyebrow {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-sidebar__nav {
  display: grid;
  gap: 8px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 16px;
  color: var(--muted);
  transition: 0.2s ease;
}

.sidebar-link.is-active {
  background: linear-gradient(135deg, var(--tertiary), #5a3326);
  color: #fff;
  box-shadow: 0 10px 35px rgba(62, 38, 29, 0.18);
}

.sidebar-link:hover {
  background: rgba(239, 227, 216, 0.95);
  color: var(--text);
}

.sidebar-promo {
  margin-top: auto;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(59, 37, 26, 0.08);
}

.sidebar-promo p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.7;
}

.site-main {
  margin-left: 268px;
  width: calc(100% - 268px);
  padding: 28px;
}

.mobile-topbar,
.mobile-nav {
  display: none;
}

.page-shell {
  margin-bottom: 28px;
}

.page-hero-card,
.process-card,
.quote-card,
.faq-card,
.contact-form-card,
.contact-summary,
.site-footer {
  background: var(--surface);
  border: 1px solid rgba(59, 37, 26, 0.08);
  box-shadow: var(--shadow);
}

.page-hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 28px;
  padding: 34px;
  border-radius: var(--radius-xl);
}

.page-hero-card h1,
.section-heading h2 {
  margin: 0;
  letter-spacing: -0.04em;
}

.page-hero-card h1 {
  font-size: clamp(2.3rem, 4vw, 3.8rem);
  line-height: 1.02;
}

.page-intro,
.page-side-note p,
.section-heading p,
.process-card p,
.quote-card p,
.faq-card p,
.contact-summary p,
.site-footer p {
  color: var(--muted);
  line-height: 1.8;
}

.page-intro {
  margin: 16px 0 0;
}

.page-side-note {
  padding: 22px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(59, 37, 26, 0.07);
  align-self: start;
}

.page-side-note p {
  margin: 0;
}

.content-band {
  margin-bottom: 28px;
}

.content-band--soft .content-band__inner {
  background: linear-gradient(180deg, rgba(255,255,255,0.7), rgba(255,250,245,0.9));
}

.content-band__inner {
  padding: 34px;
  border-radius: var(--radius-xl);
  background: rgba(255, 250, 245, 0.75);
  border: 1px solid rgba(59, 37, 26, 0.08);
  box-shadow: var(--shadow);
}

.section-heading {
  margin-bottom: 24px;
}

.section-heading--left {
  margin-bottom: 18px;
}

.section-heading h2 {
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  line-height: 1.08;
}

.section-heading p {
  margin: 12px 0 0;
}

.process-grid,
.quote-grid,
.faq-grid,
.contact-grid,
.site-footer__grid {
  display: grid;
  gap: 20px;
}

.process-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.process-grid--wide {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.process-card,
.quote-card,
.faq-card {
  padding: 26px;
  border-radius: var(--radius-lg);
}

.process-card h3,
.quote-card h3,
.faq-card h3,
.site-footer h2,
.site-footer h3 {
  margin: 0 0 10px;
}

.detail-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.8;
}

.quote-grid,
.faq-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.contact-grid {
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: start;
}

.contact-summary,
.contact-form-card {
  padding: 30px;
  border-radius: var(--radius-lg);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field {
  display: grid;
  gap: 8px;
}

.field span,
.checkbox-field span {
  color: var(--text);
  font-weight: 600;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(59, 37, 26, 0.1);
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
}

.field textarea {
  min-height: 160px;
  resize: vertical;
}

.field--full {
  grid-column: 1 / -1;
}

.checkbox-field {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 18px 0 20px;
  color: var(--muted);
  line-height: 1.7;
}

.checkbox-field input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  border: 1px solid rgba(59, 37, 26, 0.2);
  border-radius: 4px;
  flex: 0 0 auto;
}

.site-footer {
  padding: 30px;
  border-radius: var(--radius-xl);
}

.site-footer__grid {
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
}

.site-footer a {
  display: block;
  margin: 0 0 8px;
  color: var(--muted);
}

@media (max-width: 1100px) {
  .page-hero-card,
  .contact-grid,
  .site-footer__grid,
  .process-grid,
  .process-grid--wide,
  .quote-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 920px) {
  .site-shell {
    display: block;
  }

  .site-sidebar {
    display: none;
  }

  .site-main {
    margin-left: 0;
    width: 100%;
    padding: 18px;
  }

  .mobile-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
    padding: 16px 18px;
    background: rgba(255, 250, 245, 0.92);
    border: 1px solid rgba(59, 37, 26, 0.08);
    border-radius: 22px;
    box-shadow: var(--shadow);
  }

  .mobile-nav {
    display: none;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 18px;
    padding: 16px;
    background: rgba(255, 250, 245, 0.92);
    border: 1px solid rgba(59, 37, 26, 0.08);
    border-radius: 22px;
    box-shadow: var(--shadow);
  }

  .mobile-nav.is-open {
    display: grid;
  }

  .mobile-nav a {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 0 14px;
    border-radius: 14px;
    color: var(--muted);
  }

  .mobile-nav a.is-active {
    background: linear-gradient(135deg, var(--tertiary), #5a3326);
    color: #fff;
  }

  .nav-toggle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(59, 37, 26, 0.1);
    background: #fff;
    display: grid;
    place-items: center;
    gap: 4px;
    padding: 0;
  }

  .nav-toggle span {
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: var(--text);
    display: block;
  }
}

@media (max-width: 640px) {
  .site-main {
    padding: 14px;
  }

  .page-hero-card,
  .content-band__inner,
  .contact-summary,
  .contact-form-card,
  .site-footer {
    padding: 22px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .dialog-box {
    width: calc(100% - 24px);
    padding: 22px;
  }
}
