:root {
  color-scheme: light;
  --ink: #252520;
  --body: #494640;
  --dim: #665f55;
  --white: #fff;
  --warm: #f7f5f2;
  --line: #e3ddd5;
  --dark: #252520;
  --dark-surface: #33332c;
  --light-text: #e6e2d9;
  --accent: #a4401e;
  --accent-hover: #823014;
  --accent-light: #ffaf8a;
  --heading: "Playfair Display", Georgia, serif;
  --body-font: "Source Sans 3", system-ui, sans-serif;
  --shadow: 0 8px 26px rgb(51 40 30 / 9%);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 5rem; }
body {
  margin: 0;
  background: var(--white);
  color: var(--body);
  font: 1.0625rem/1.55 var(--body-font);
}

h1, h2, h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--heading);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.16;
}

h1 { font-size: clamp(3.35rem, 8.3vw, 6.35rem); }
h2 { font-size: clamp(2.15rem, 5vw, 3.2rem); }
h3 { font-size: 1.43rem; }
p { margin: 0; }
a { color: var(--accent); text-underline-offset: .2em; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid #6a7350; outline-offset: 4px; }
img { display: block; max-width: 100%; }
button, input, select { font: inherit; }
[hidden] { display: none !important; }

.sr-only, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link:focus {
  position: fixed;
  inset: .5rem auto auto .5rem;
  z-index: 20;
  background: var(--white);
  padding: .5rem 1rem;
}

.wrap { width: min(100% - 3rem, 73rem); margin-inline: auto; }
.site-header { color: var(--white); background: var(--dark); }
.header-inner, .footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; }
.header-inner { min-height: 4.25rem; }
.wordmark {
  color: inherit;
  font: 700 1.55rem/1.1 var(--heading);
  text-decoration: none;
  white-space: nowrap;
}

.wordmark:hover { color: var(--accent-light); }
.site-nav {
  position: sticky;
  top: 0;
  z-index: 5;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.site-nav ul, .site-footer ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav ul { gap: clamp(.85rem, 3.1vw, 2.4rem); }
.site-nav a, .site-footer nav a { text-decoration: none; }
.site-nav a {
  display: block;
  padding: .86rem .1rem;
  color: var(--ink);
  font-size: .9375rem;
  font-weight: 700;
  white-space: nowrap;
}

.site-nav a:hover { color: var(--accent); }
.button {
  display: inline-flex;
  min-height: 3.1rem;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: .65rem 1.35rem;
  background: var(--accent);
  color: var(--white);
  cursor: pointer;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background-color .18s ease, color .18s ease;
}

.button:hover { background: var(--accent-hover); color: var(--white); }
.button-small { min-height: 2.6rem; padding: .48rem .95rem; }
.button-outline { border-color: rgb(255 255 255 / 70%); background: transparent; }
.button-outline:hover { background: var(--white); color: var(--ink); }
.dark :focus-visible, .site-header :focus-visible, .site-footer :focus-visible, .hero :focus-visible { outline-color: var(--accent-light); }

.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: clamp(37rem, 75svh, 52rem);
  isolation: isolate;
  overflow: hidden;
  background: #41433a;
  color: var(--white);
}

.hero-image, .hero::after { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-image { z-index: -2; object-fit: cover; object-position: center 45%; }
.hero::after {
  z-index: -1;
  background: linear-gradient(90deg, rgb(29 30 25 / 91%) 0%, rgb(30 31 27 / 76%) 33%, rgb(30 31 27 / 36%) 62%, rgb(30 31 27 / 8%) 100%);
  content: "";
}

.hero-inner { padding-block: 4.4rem; }
.hero h1 { color: var(--white); }
.hero h1 span { color: var(--accent-light); }
.hero-inner > p {
  max-width: 30rem;
  margin-top: 1.3rem;
  color: var(--light-text);
  font-size: clamp(1.15rem, 2.3vw, 1.38rem);
}

.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.hero-price {
  display: grid;
  max-width: 26rem;
  gap: .1rem;
  margin-top: 2.1rem;
  padding: .8rem 1rem;
  border-left: 3px solid var(--accent-light);
  background: rgb(32 32 25 / 58%);
}

.hero-price strong { font-size: 1.35rem; }
.hero-price span { font-size: .9375rem; color: var(--light-text); }

.section { padding-block: clamp(3.6rem, 8vw, 6rem); }
.surface { background: var(--warm); }
.dark { background: var(--dark); color: var(--light-text); }
.dark h2, .dark h3 { color: var(--white); }
.section-heading { max-width: 43rem; margin: 0 auto clamp(1.85rem, 4vw, 2.65rem); text-align: center; }
.section-heading::before, .calculator-grid > div::before {
  display: block;
  width: 3.5rem;
  height: 3px;
  margin: 0 auto 1.15rem;
  background: var(--accent);
  content: "";
}

.section-heading p { max-width: 37rem; margin: .85rem auto 0; }
.dark .section-heading::before, .calculator-grid > div::before { background: var(--accent-light); }
.service-grid, .info-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.35rem; }
.service-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.service-card > img { width: 100%; height: auto; aspect-ratio: 1.75; object-fit: cover; background: var(--warm); }
.card-body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 1.35rem; }
.card-body p { margin: .6rem 0 1rem; }
.card-body a { margin-top: auto; font-weight: 700; }
.table-frame, .price-note, .price-sources { width: min(100%, 55rem); margin-inline: auto; }
.table-frame { overflow: hidden; border: 1px solid var(--line); border-radius: 5px; background: var(--white); }
table { width: 100%; border-collapse: collapse; }
th, td { padding: .9rem clamp(.8rem, 3vw, 1.35rem); vertical-align: middle; text-align: left; }
thead { background: var(--dark); color: var(--white); }
tbody tr + tr { border-top: 1px solid var(--line); }
tbody tr:target { background: #fff1e9; }
tbody th { color: var(--ink); }
tbody td { width: 38%; color: var(--accent); font-weight: 700; }
table small { display: block; margin-top: .13rem; color: var(--dim); font-size: .875rem; font-weight: 400; }
.price-note { margin-top: .95rem; }
.price-sources { margin-top: .7rem; }
.price-sources summary { width: fit-content; color: var(--accent); cursor: pointer; font-weight: 700; }
.price-sources ul { margin-block: .45rem 0; padding-inline-start: 1.3rem; }

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.45rem;
  margin: 0;
  padding: 0;
  counter-reset: step;
  list-style: none;
}

.steps li { border-top: 1px solid var(--line); padding-top: 1rem; counter-increment: step; }
.steps li::before {
  display: block;
  margin-bottom: .5rem;
  color: var(--accent);
  content: counter(step, decimal-leading-zero);
  font: 700 1.55rem/1 var(--heading);
}

.steps p, .info-grid p { margin-top: .55rem; }
.info-grid article { border-radius: 5px; padding: 1.45rem; }
.dark .info-grid article { border: 1px solid #57574d; border-left: 3px solid var(--accent-light); background: var(--dark-surface); }
.examples article { border: 1px solid var(--line); background: var(--white); box-shadow: var(--shadow); }
.examples strong, .examples small { display: block; }
.examples strong { margin-top: .85rem; color: var(--accent); font-size: 1.35rem; }
.examples small { margin-top: .2rem; color: var(--dim); font-size: .875rem; }
.faq-wrap { max-width: 55rem; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  display: flex;
  min-height: 3.5rem;
  gap: .75rem;
  align-items: center;
  justify-content: space-between;
  padding: .83rem .3rem;
  color: var(--ink);
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  width: .75rem;
  height: .75rem;
  flex: 0 0 .75rem;
  background:
    linear-gradient(var(--accent), var(--accent)) center / 100% 2px no-repeat,
    linear-gradient(var(--accent), var(--accent)) center / 2px 100% no-repeat;
  content: "";
}
.faq-list details[open] summary::after { background-size: 100% 2px, 0 0; }
.faq-list details p { padding: 0 1.7rem 1rem .3rem; }

.calculator-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(2rem, 7vw, 5.5rem); align-items: start; }
.calculator-grid > div::before { margin-inline: 0; }
.calculator-intro { margin: .85rem 0 1.3rem; max-width: 30rem; }
.calculator-grid form { display: grid; max-width: 34rem; gap: .55rem; }
.calculator-grid label { color: var(--white); font-weight: 700; }
.calculator-grid input:not([type="checkbox"]), .calculator-grid select {
  width: 100%;
  min-height: 2.85rem;
  padding: .55rem .8rem;
  border: 1px solid #807e73;
  border-radius: 4px;
  background: var(--dark-surface);
  color: var(--white);
  color-scheme: dark;
}

.calculator-grid label[for="felulet"] { margin-top: .4rem; }
.field-note { color: var(--light-text); font-size: .875rem; }
.checkbox-label { display: flex; gap: .6rem; align-items: flex-start; margin: .45rem 0 .65rem; }
.checkbox-label input { width: 1.15rem; height: 1.15rem; margin: .25rem 0 0; flex: 0 0 auto; accent-color: var(--accent); }
.estimate {
  display: block;
  padding: .8rem 1rem;
  border-left: 3px solid var(--accent-light);
  margin-top: .45rem;
  background: var(--dark-surface);
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 700;
}

.calculator-aside {
  max-width: 31rem;
  margin-top: 2.35rem;
  padding: clamp(1.15rem, 4vw, 1.85rem);
  border: 1px solid #57574d;
  border-radius: 4px;
  background: var(--dark-surface);
}

.calculator-aside p { margin-top: .85rem; }
.calculator-aside a { display: inline-block; margin-top: 1rem; color: var(--accent-light); }
.dark noscript a { color: var(--accent-light); }
.site-footer { padding-block: 2.3rem; background: #1c1c18; color: var(--light-text); }
.site-footer p { margin-top: .5rem; font-size: .9375rem; }
.site-footer ul { flex-wrap: wrap; gap: .5rem 1.35rem; }
.site-footer a { color: var(--white); }
.site-footer a:hover { color: var(--accent-light); }

@media (max-width: 53rem) {
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 43rem) {
  html { scroll-padding-top: 6rem; }
  .wrap { width: calc(100% - 2rem); }
  .header-inner { min-height: 3.75rem; }
  .site-nav ul { flex-wrap: wrap; gap: 0 .9rem; padding-block: .3rem; }
  .site-nav a { padding-block: .37rem; }
  .hero { min-height: 34rem; }
  .hero-image { object-position: 64% center; }
  .hero::after { background: linear-gradient(90deg, rgb(29 30 25 / 89%), rgb(29 30 25 / 70%) 57%, rgb(29 30 25 / 43%)); }
  .info-grid, .calculator-grid { grid-template-columns: 1fr; }
  .calculator-aside { margin-top: 0; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 31rem) {
  .service-grid { grid-template-columns: 1fr; }
  .hero-inner { padding-block: 3rem; }
  .actions { display: grid; width: min(100%, 18rem); }
  th, td { padding: .7rem .65rem; }
}

/* Keep navigation usable on devices with motion reduction enabled. */
@media (prefers-reduced-motion: reduce) {
  .button { transition: none; }
}
