:root {
  color-scheme: light;
  font-family: "Segoe UI", system-ui, sans-serif;
  color: #172d25;
  background: #f8f9f4;
  --ink: #172d25;
  --dim: #4a5c54;
  --deep: #102520;
  --lime: #d5f877;
  --paper: #f8f9f4;
  --line: #dbe3d9;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; line-height: 1.55; }
a { color: inherit; }
button, input { font: inherit; }
button { cursor: pointer; }
img { display: block; width: 100%; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.06; }
:focus-visible { outline: 3px solid #528119; outline-offset: 4px; }
[hidden] { display: none !important; }
[id] { scroll-margin-top: 1.25rem; }
.wrap { width: min(100% - 4rem, 73.75rem); margin-inline: auto; }

.skip-link {
  position: absolute;
  z-index: 5;
  top: 0.75rem;
  left: 0.75rem;
  transform: translateY(-175%);
  background: var(--lime);
  color: #142920;
  font-weight: 700;
  padding: 0.5rem 1rem;
}
.skip-link:focus { transform: none; }

.hero {
  position: relative;
  isolation: isolate;
  min-height: 44rem;
  display: grid;
  grid-template-rows: auto 1fr;
  color: white;
  background: #173b32 url("assets/valley.webp") center 54% / cover no-repeat;
}
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 26, 22, 0.88) 0%, rgba(8, 26, 22, 0.63) 37%, rgba(8, 26, 22, 0.15) 77%),
    linear-gradient(0deg, rgba(8, 26, 22, 0.60), transparent 26%, transparent 78%, rgba(8, 26, 22, 0.38));
}
.hero :focus-visible, .estimate-section :focus-visible, .site-footer :focus-visible { outline-color: var(--lime); }

.site-header {
  min-height: 5.5rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
  border-bottom: 1px solid #ffffff35;
}
.brand {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 750;
  letter-spacing: -0.045em;
  white-space: nowrap;
}
.brand strong { color: var(--lime); font-weight: inherit; }
.brand-mark {
  width: 1.6rem;
  height: 1.6rem;
  position: relative;
  display: grid;
  grid-template: repeat(2, 1fr) / repeat(2, 1fr);
  gap: 0.3rem;
  color: var(--lime);
  flex: none;
  transform: rotate(45deg) scale(0.85);
}
.brand-mark i { border: 2px solid currentColor; border-radius: 1.5px; }
.brand-mark i:nth-child(2), .brand-mark i:nth-child(3) { background: currentColor; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(1rem, 4vw, 2.5rem); }
.site-nav a { text-decoration: none; color: #f2f6ee; font-weight: 600; }
.site-nav a:hover { color: var(--lime); }
.header-action { justify-self: end; }
.language-nav { display: flex; align-items: center; justify-self: end; gap: 0.2rem; }
.language-nav a {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  padding-inline: 0.45rem;
  border-radius: 0.3rem;
  color: #f2f6ee;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
}
.language-nav a:hover, .language-nav a[aria-current="page"] { color: var(--lime); }
.language-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 0.28em; }

.button {
  min-height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.125rem;
  border: 1px solid transparent;
  border-radius: 0.4rem;
  text-decoration: none;
  text-align: center;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.25;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}
.button-primary { background: var(--lime); color: #172717; }
.button-primary:hover { background: #e5ffa4; }
.button-quiet { color: #fff; border-color: #ffffff70; background: #1025205e; }
.button-quiet:hover { background: #173a32; border-color: #e1f3e3; }
.button-outline { color: var(--ink); background: transparent; border-color: #aab9ac; }
.button-outline:hover { background: #e8efe3; }

.hero-inner {
  position: relative;
  display: grid;
  align-items: center;
  padding-block: 4.75rem 6.1rem;
}
.hero-copy { max-width: 44rem; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 1.5rem;
  color: #e1f0de;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.signal { width: 0.55rem; height: 0.55rem; background: var(--lime); border-radius: 50%; }
.hero h1 {
  font-weight: 760;
  font-size: clamp(3.1rem, 6.4vw, 6.35rem);
  line-height: 0.99;
  letter-spacing: -0.073em;
}
.hero h1 em { color: var(--lime); font-style: normal; }
.hero-description {
  margin-top: 1.5rem;
  max-width: 30rem;
  font-size: clamp(1.075rem, 2vw, 1.25rem);
  color: #e0eae2;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.hero-actions .button { min-height: 3.5rem; padding-inline: 1.4rem; }
.hero-caption {
  position: absolute;
  bottom: 1.4rem;
  right: 0;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: #ecf6ed;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
}
.frame-mark {
  width: 0.7rem;
  height: 0.7rem;
  border: 1px solid currentColor;
  transform: rotate(45deg) scale(0.75);
}

.section { padding-block: clamp(3.5rem, 7vw, 6rem); }
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-bottom: 2rem;
}
.section-heading h2 {
  font-size: clamp(2.4rem, 4vw, 4.1rem);
  letter-spacing: -0.068em;
  font-weight: 750;
}
.section-heading > p { max-width: 25.5rem; color: var(--dim); }
.service-grid, .format-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.service, .format {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  overflow: hidden;
  background: #fff;
}
.service-image {
  aspect-ratio: 1.62;
  background-position: center;
  background-size: cover;
  background-color: #456650;
}
.property { background-image: url("assets/property.webp"); }
.land { background-image: url("assets/land.webp"); }
.hotel { background-image: url("assets/hotel.webp"); }
.service-content, .format-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: start;
  padding: 1.3rem 1.25rem 1.2rem;
}
.service h3, .format h3 { font-size: clamp(1.25rem, 2.3vw, 1.65rem); font-weight: 740; letter-spacing: -0.045em; }
.service-content > p, .format-content > p:not(.format-time) { color: var(--dim); margin-block: 0.55rem 1rem; }
.text-link {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  margin-top: auto;
  font-weight: 700;
  font-size: 0.9375rem;
  color: #294c31;
  text-underline-offset: 0.27em;
  text-decoration-color: #789778;
}
.text-link:hover { color: #487239; text-decoration-thickness: 2px; }
.photo-note { color: var(--dim); font-size: 0.875rem; margin-top: 1rem; }

.formats-section { background: #eaf0e8; }
.format { background: #f8faf6; }
.format-visual {
  position: relative;
  min-height: 9.25rem;
  display: grid;
  place-items: center;
  isolation: isolate;
  overflow: hidden;
  color: var(--lime);
  background-color: #233e35;
  background-image: radial-gradient(#d7f4b43b 1px, transparent 1px);
  background-size: 0.9rem 0.9rem;
}
.visual-overview { background-color: #314b3b; }
.visual-promo { background-color: #1a3535; }
.format-visual > span:last-child {
  position: absolute;
  bottom: 0.75rem;
  right: 0.85rem;
  font-family: ui-monospace, monospace;
  font-size: 0.8125rem;
}
.aspect-frame {
  display: block;
  border: 1px solid #d5f877d4;
  border-radius: 0.2rem;
  background: #d5f87713;
  box-shadow: 0 0 0 0.45rem #0b211b55;
}
.aspect-vertical { height: 6.2rem; aspect-ratio: 9 / 16; }
.aspect-wide { height: 5rem; aspect-ratio: 16 / 9; }
.visual-promo .aspect-wide { height: 5.45rem; }
.format-time {
  margin-bottom: 0.55rem;
  color: #3c6047;
  font-size: 0.875rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.format-content { padding-bottom: 1rem; }
.format details { width: 100%; border-top: 1px solid var(--line); margin: auto 0 0.3rem; }
.format summary {
  min-height: 2.75rem;
  padding-block: 0.6rem;
  color: #294c31;
  cursor: pointer;
  font-size: 0.9375rem;
  font-weight: 700;
}
.format details p { padding-bottom: 0.6rem; color: var(--dim); }
.format .text-link { margin-top: 0; }

.estimate-section { background: var(--deep); color: #f6faf3; }
.estimate-section .section-heading p { color: #c4d4c9; }
.calculator {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  border: 1px solid #527064;
  border-radius: 0.8rem;
  background: #162e27;
}
.calculator-form, .estimate-summary { padding: clamp(1.3rem, 3.5vw, 2.3rem); min-width: 0; }
.calculator-form { display: grid; align-content: start; gap: 1.65rem; }
.calculator-form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.calculator-form legend { font-weight: 700; padding: 0; margin-bottom: 0.6rem; }
.choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; }
.object-choices { grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr)); }
.choices label { position: relative; cursor: pointer; }
.choices input { position: absolute; opacity: 0; margin: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; }
.choices span {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 2.85rem;
  height: 100%;
  padding: 0.45rem 0.3rem;
  color: #e2ece3;
  border: 1px solid #688275;
  border-radius: 0.35rem;
  font-size: 0.875rem;
  font-weight: 650;
}
.choices label:hover span { background: #284639; }
.choices input:checked + span { color: #efffc4; border-color: var(--lime); background: #3a5332; }
.choices input:focus-visible + span { outline: 2px solid var(--lime); outline-offset: 3px; }
.extras label {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 2.75rem;
  cursor: pointer;
}
.extras input { margin: 0; width: 1.1rem; height: 1.1rem; accent-color: var(--lime); flex: none; }
.estimate-summary {
  border-radius: 0 0.75rem 0.75rem 0;
  background: #1d392f;
  border-left: 1px solid #527064;
}
.summary-label { color: #d7e5db; font-weight: 650; }
.total {
  margin-block: 0.1rem;
  color: var(--lime);
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  font-weight: 740;
  line-height: 1.12;
  letter-spacing: -0.055em;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.muted, .rate-note { color: #c6d8cc; font-size: 0.875rem; }
.rate-note { margin-top: 0.65rem; }
.breakdown { list-style: none; padding: 0; margin: 1rem 0 1.25rem; border-top: 1px solid #557468; font-size: 0.9375rem; }
.breakdown li {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 0.5rem 1rem;
  padding-block: 0.5rem;
  border-bottom: 1px solid #557468;
}
.breakdown li > span:last-child { text-align: right; color: #d8e9db; overflow-wrap: anywhere; }
.contact-section { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem 2rem; }
.contact-section h2 { font-size: clamp(2rem, 4vw, 3.25rem); letter-spacing: -0.05em; }
.contact-section p { margin-top: 0.6rem; color: var(--dim); }
.contact-links { display: flex; flex-wrap: wrap; gap: 0.65rem; font-style: normal; }
.site-footer { background: #0b1c18; color: #f6faf3; }
.footer-content { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem 2rem; padding-block: 1.6rem; }
.footer-content p { color: #c1d0c7; font-size: 0.875rem; }

dialog {
  position: fixed;
  padding: 0;
  width: min(34rem, calc(100% - 1.5rem));
  max-width: none;
  max-height: calc(100% - 1.5rem);
  overflow-y: auto;
  border: 1px solid #829587;
  border-radius: 0.75rem;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 1.5rem 4rem #0718127a;
}
dialog::backdrop { background: #091e17b8; }
body:has(dialog[open]) { overflow: hidden; }
.rates-form { padding: clamp(1.1rem, 4vw, 1.85rem); }
.rates-header { display: flex; align-items: start; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.9rem; }
.rates-header h2 { margin-top: 0.15rem; font-size: 1.8rem; letter-spacing: -0.04em; }
.rates-header p { margin-top: 0.5rem; color: var(--dim); font-size: 0.9375rem; }
.close-button {
  flex: none;
  width: 2.75rem;
  min-height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: 0.4rem;
  background: #edf2eb;
  color: var(--ink);
  font-size: 1.55rem;
  line-height: 1;
}
.close-button:hover { background: #e1ebdd; }
.rates-group {
  min-width: 0;
  margin: 0 0 0.8rem;
  padding: 0.35rem 0.8rem 0.4rem;
  border: 1px solid var(--line);
  border-radius: 0.35rem;
}
.rates-group legend { padding-inline: 0.25rem; font-weight: 700; font-size: 0.9375rem; }
.rate-row { display: grid; grid-template-columns: minmax(0, 1fr) clamp(5rem, 27vw, 8.5rem); align-items: center; gap: 0.4rem; margin-bottom: 0.3rem; }
.rate-row input {
  min-width: 0;
  width: 100%;
  min-height: 2.75rem;
  border: 1px solid #8ca092;
  border-radius: 0.3rem;
  padding: 0.35rem 0.55rem;
  color: var(--ink);
  background: #fff;
}
.rate-row input[aria-invalid="true"] { border: 2px solid #9a3223; }
.error-message { color: #862a1d; margin-top: 0.75rem; }
.rates-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1rem; }
.rates-actions .button-primary { border-color: #5b742f; }

@media (max-width: 58rem) {
  .section-heading { align-items: start; }
  .section-heading > p { max-width: 21rem; }
  .service-content, .format-content { padding-inline: 0.95rem; }
  .hero { min-height: 40rem; }
}

@media (max-width: 54rem) {
  .site-header { grid-template-columns: 1fr auto auto; gap: 0.55rem 1rem; padding-block: 0.9rem 0.55rem; }
  .site-nav { grid-row: 2; grid-column: 1 / -1; gap: 0.1rem 1.25rem; }
  .site-nav a { display: flex; align-items: center; min-height: 2.5rem; }
}

@media (max-width: 43rem) {
  .wrap { width: calc(100% - 2rem); }
  .site-header {
    min-height: auto;
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .site-nav { font-size: 0.9375rem; }
  .header-action { display: none; }
  .brand { font-size: 1.06rem; gap: 0.4rem; }
  .brand-mark { width: 1.4rem; height: 1.4rem; }
  .hero { min-height: 37rem; background-position: 61% 52%; }
  .hero-inner { padding-block: 3.25rem 5.2rem; }
  .hero::before {
    background: linear-gradient(90deg, rgba(8, 26, 22, 0.84), rgba(8, 26, 22, 0.55) 70%, rgba(8, 26, 22, 0.37)),
      linear-gradient(0deg, rgba(8, 26, 22, 0.59), transparent 38%);
  }
  .hero h1 { font-size: clamp(2.9rem, 9.8vw, 4.45rem); }
  .hero-description { max-width: 24rem; }
  .hero-caption { bottom: 1.05rem; }
  .section-heading { display: block; margin-bottom: 1.4rem; }
  .section-heading > p { margin-top: 0.7rem; max-width: 30rem; }
  .service-grid, .format-grid { grid-template-columns: 1fr; }
  .service-image { aspect-ratio: 1.83; }
  .service-content, .format-content { padding-inline: 1.05rem; }
  .calculator { grid-template-columns: 1fr; }
  .estimate-summary { border-left: 0; border-top: 1px solid #527064; border-radius: 0 0 0.75rem 0.75rem; }
  .contact-links { display: grid; width: 100%; }
  .footer-content { flex-wrap: wrap; }
}

@media (max-width: 28rem) {
  .hero-actions { display: grid; grid-template-columns: 1fr; }
}

@media (max-width: 24rem) {
  .object-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .object-choices label:first-child { grid-column: span 2; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0s !important; }
}
