:root {
  --color-primary: #355e3b;
  --color-primary-dark: #27462c;
  --color-primary-light: #4c7952;

  --color-accent: #ffe0e5;
  --color-accent-hover: #f5bac5;

  --color-background: #fff9f7;
  --color-surface: #ffffff;
  --color-surface-alt: #f6f5f0;

  --color-text: #25342c;
  --color-text-muted: #66736a;

  --color-border: #d7e1d6;
  --font-heading: 'Palatino Linotype', 'Book Antiqua', Palatino, Georgia, serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --radius: 5px;
  --radius-lg: 8px;
  --shadow-sm: 0 3px 16px rgb(39 70 44 / 3%);
  --shadow-md: 0 12px 32px rgb(39 70 44 / 7%);
  --transition: 180ms ease;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
* {
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 180px;
}
body {
  background: var(--color-background);
  color: var(--color-text);
  font: 400 16px/1.75 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--color-primary);
  text-decoration: none;
  text-underline-offset: 0.25em;
  transition:
    color var(--transition),
    background-color var(--transition);
}
a:hover {
  color: var(--color-primary-dark);
}
p {
  margin-bottom: 1rem;
}
h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.2;
  color: var(--color-primary-dark);
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.4rem, 5vw, 4.25rem);
  letter-spacing: -0.035em;
}
h2 {
  font-size: clamp(1.9rem, 3.3vw, 2.8rem);
  letter-spacing: -0.025em;
}
h3 {
  font-size: 1.55rem;
  letter-spacing: -0.015em;
}
h4 {
  font-size: 1.15rem;
}
::selection {
  background: var(--color-accent);
  color: var(--color-primary-dark);
}
:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 5px;
}
.hero :focus-visible,
.section-cta :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--color-accent);
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 1rem;
  z-index: 2000;
  padding: 0.75rem 1rem;
  background: var(--color-accent);
  color: var(--color-primary-dark);
}
.skip-link:focus {
  top: 1rem;
}
.container,
.footer-container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
}
.section {
  padding-block: clamp(3.5rem, 7vw, 6.5rem);
}
.section-alt {
  background: var(--color-surface-alt);
  border-block: 1px solid var(--color-border);
}
.section-header {
  max-width: 760px;
  margin: 0 auto 3.5rem;
  text-align: center;
}
.section-header::before {
  content: '';
  display: block;
  width: 42px;
  height: 3px;
  background: var(--color-accent-hover);
  margin: 0 auto 1.4rem;
}
.section-header h2 {
  margin-bottom: 1rem;
}
.section-header p {
  max-width: 600px;
  margin: 0 auto;
  color: var(--color-text-muted);
  font-size: 1.0625rem;
}
.section-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.75rem;
}
.btn,
.nav-cta {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.8rem;
  min-height: 48px;
  padding: 0.8rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: 600 0.9rem/1.4 var(--font-body);
  letter-spacing: 0.015em;
  text-align: center;
  cursor: pointer;
  transition:
    background-color var(--transition),
    border-color var(--transition),
    color var(--transition),
    box-shadow var(--transition);
}
.btn-primary,
.nav-cta {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-surface);
}
.btn-primary:hover,
.nav-cta:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: var(--color-surface);
  box-shadow: var(--shadow-sm);
}
.btn-outline {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: transparent;
}
.btn-outline:hover {
  background: var(--color-primary);
  color: var(--color-surface);
}
.btn-lg {
  min-height: 54px;
  padding: 1rem 1.8rem;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-surface);
  transition: box-shadow var(--transition);
}
.site-header.is-scrolled {
  box-shadow: var(--shadow-md);
}
.header-logo-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.header-logo-link {
  display: block;
}
.header-logo-img {
  width: 230px;
  height: auto;
}
.header-nav-row {
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.header-nav-row nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 66px;
}
.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 0.15rem;
}
.nav-links a {
  display: block;
  padding: 0.65rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text);
  border-radius: 0;
}
.nav-links > li:not(.nav-cta-mobile) > a {
  position: relative;
  background: transparent;
  transition: color var(--transition);
}
.nav-links > li:not(.nav-cta-mobile) > a::after {
  content: '';
  position: absolute;
  bottom: 0.2rem;
  left: 0.75rem;
  right: 0.75rem;
  height: 2px;
  background: var(--color-primary-light);
  transform: scaleX(0);
  transform-origin: center;
  transition:
    transform 220ms ease,
    background-color 220ms ease;
  pointer-events: none;
}
.nav-links > li:not(.nav-cta-mobile) > a:hover,
.nav-links > li:not(.nav-cta-mobile) > a:focus-visible {
  color: var(--color-primary-dark);
  background: transparent;
}
.nav-links > li:not(.nav-cta-mobile) > a:hover::after,
.nav-links > li:not(.nav-cta-mobile) > a:focus-visible::after {
  transform: scaleX(1);
}
.nav-links > li:not(.nav-cta-mobile) > a[aria-current='page'] {
  color: var(--color-primary-dark);
  background: transparent;
}
.nav-links > li:not(.nav-cta-mobile) > a[aria-current='page']::after {
  left: calc(50% - 19px);
  right: auto;
  width: 38px;
  height: 3px;
  background: var(--color-accent-hover);
  transform: scaleX(1);
}
.nav-links > li:not(.nav-cta-mobile) > a[aria-current='page']::before {
  content: '';
  position: absolute;
  z-index: 1;
  bottom: 0.2rem;
  left: calc(50% - 19px);
  width: 10px;
  height: 3px;
  background: var(--color-primary);
  pointer-events: none;
}
.nav-cta {
  white-space: nowrap;
  min-height: 42px;
  font-size: 0.82rem;
  padding: 0.65rem 1.1rem;
}
.nav-cta-mobile,
.nav-toggle {
  display: none;
}
.nav-toggle {
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  cursor: pointer;
}
.hamburger,
.hamburger::before,
.hamburger::after {
  width: 20px;
  height: 2px;
  background: var(--color-primary);
  display: block;
  position: absolute;
  left: 11px;
  top: 20px;
  transition: transform var(--transition);
}
.hamburger::before,
.hamburger::after {
  content: '';
  left: 0;
  top: -6px;
}
.hamburger::after {
  top: 6px;
}
.nav-toggle[aria-expanded='true'] .hamburger {
  background: transparent;
}
.nav-toggle[aria-expanded='true'] .hamburger::before {
  top: 0;
  transform: rotate(45deg);
}
.nav-toggle[aria-expanded='true'] .hamburger::after {
  top: 0;
  transform: rotate(-45deg);
}
.hero {
  min-height: 570px;
  display: flex;
  align-items: center;
  position: relative;
  background:
    linear-gradient(90deg, rgba(39, 70, 44, 0.96), rgba(39, 70, 44, 0.83) 45%, rgba(39, 70, 44, 0.45)),
    url('../img/hero.webp') center/cover;
  overflow: hidden;
}
.hero-content {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding: 5.5rem clamp(1.25rem, 4vw, 3rem);
  color: var(--color-surface);
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--color-accent);
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  font-weight: 600;
  margin-bottom: 1.75rem;
}
.hero-eyebrow::before {
  content: '';
  width: 32px;
  height: 1px;
  background: currentColor;
  flex-shrink: 0;
}
.hero h1 {
  font-size: clamp(3.5rem, 7vw, 6rem);
  color: var(--color-surface);
  margin-bottom: 1.25rem;
}
.hero-tagline {
  font-family: var(--font-heading);
  max-width: 600px;
  font-size: clamp(1.5rem, 2.7vw, 2.3rem);
  line-height: 1.4;
  margin-bottom: 2.5rem;
}
.hero .btn-primary,
.section-cta .btn-primary {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-primary-dark);
}
.hero .btn-primary:hover,
.section-cta .btn-primary:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
}
.page-hero {
  background: var(--color-surface-alt);
  padding-block: clamp(3.5rem, 6vw, 5.5rem);
  border-bottom: 1px solid var(--color-border);
  text-align: center;
}
.page-hero h1 {
  margin-bottom: 1rem;
}
.page-hero h1::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--color-accent-hover);
  margin: 1.5rem auto 0;
}
.page-hero p {
  max-width: 640px;
  margin: 1rem auto 0;
  font-size: 1.0625rem;
  color: var(--color-text-muted);
}
.page-hero p:empty {
  display: none;
}
.services-grid,
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}
.advantages-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.advantage-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.advantage-card {
  padding: 2rem;
}
.advantage-card h3 {
  margin-bottom: 1rem;
}
.advantage-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}
.advantage-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--color-surface-alt);
  color: var(--color-primary);
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
}
.advantage-card {
  background: transparent;
  box-shadow: none;
  padding: 1.5rem;
  border-width: 0 0 0 1px;
  border-radius: 0;
}
.advantage-card h3 {
  font-size: 1.35rem;
}
.advantage-icon {
  background: transparent;
  justify-content: flex-start;
}
.about-preview,
.about-full {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.about-text h2,
.about-text h3 {
  margin-bottom: 1.25rem;
}
.about-text p {
  color: var(--color-text-muted);
  font-size: 1.0625rem;
}
.about-text .btn {
  margin-top: 1rem;
}
.placeholder-image {
  min-height: 310px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  color: var(--color-primary);
}
.placeholder-image::before {
  content: '';
  position: absolute;
  width: 180px;
  height: 180px;
  border: 1px solid var(--color-border);
  border-radius: 50%;
}
.placeholder-image::after {
  content: '';
  position: absolute;
  bottom: 2rem;
  width: 40px;
  height: 3px;
  background: var(--color-accent-hover);
}
.placeholder-image.large {
  min-height: 400px;
}
.value-list {
  list-style: none;
  margin-top: 1.5rem;
}
.value-list li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--color-border);
}
.value-list strong {
  color: var(--color-primary-dark);
}
.contact-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: start;
}
.contact-form-container h2 {
  margin-bottom: 1.5rem;
}
.contact-info-sidebar {
  padding: 2rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}
.contact-info-sidebar h3 {
  margin-bottom: 1.5rem;
}
.contact-info-sidebar p {
  color: var(--color-text-muted);
  overflow-wrap: anywhere;
}
.legal-content {
  max-width: 760px;
  margin: auto;
  font-size: 1.0625rem;
}
.legal-content h2 {
  margin: 2rem 0 1rem;
}
.legal-content h2:first-child {
  margin-top: 0;
}
.legal-content p {
  color: var(--color-text-muted);
}
.legal-content ul {
  padding-left: 1.5rem;
}
.legal-content a {
  text-decoration: underline;
}
.section-cta {
  text-align: center;
  color: var(--color-surface);
  background: var(--color-primary-dark);
}
.section-cta h2 {
  color: var(--color-surface);
  margin-bottom: 1rem;
}
.section-cta p {
  margin-bottom: 2rem;
}
.site-footer {
  padding-top: 4rem;
  background: var(--color-surface-alt);
  border-top: 1px solid var(--color-border);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
}
.footer-brand-logo {
  display: inline-block;
  margin-bottom: 1rem;
}
.footer-brand-logo img {
  width: 205px;
}
.footer-brand p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}
.footer-grid h4 {
  font: 600 0.75rem/1.5 var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0.75rem 0 1.25rem;
}
.footer-grid ul {
  list-style: none;
}
.footer-grid li {
  margin-bottom: 0.55rem;
}
.footer-grid a:not(.footer-brand-logo) {
  font-size: 0.9rem;
}
.footer-grid a:hover {
  text-decoration: underline;
}
.footer-bottom {
  padding: 1.5rem 0;
  border-top: 1px solid var(--color-border);
}
.footer-bottom p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.8rem;
}
@media (max-width: 1050px) {
  .nav-links a {
    padding: 0.6rem 0.5rem;
    font-size: 0.8rem;
  }
  .advantages-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 768px) {
  html {
    scroll-padding-top: 100px;
  }
  .header-logo-inner {
    justify-content: flex-start;
  }
  .header-logo-link {
    max-width: calc(100% - 60px);
  }
  .header-logo-img {
    width: 190px;
  }
  .nav-toggle {
    display: block;
  }
  .header-nav-row {
    border-top: 0;
  }
  .header-nav-row nav {
    min-height: 0;
  }
  .nav-links {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    padding: 0.5rem 0 1rem;
    max-height: 65svh;
    overflow-y: auto;
  }
  .nav-links.active {
    display: flex;
  }
  .nav-links a {
    padding: 0.8rem 1rem;
    font-size: 0.95rem;
  }
  .nav-cta {
    display: none;
  }
  .nav-cta-mobile {
    display: block;
    margin-top: 0.5rem;
  }
  .nav-cta-mobile .btn {
    color: var(--color-surface);
    background: var(--color-primary);
    text-align: center;
  }
  .nav-cta-mobile .btn:hover {
    background: var(--color-primary-dark);
  }
  .hero {
    min-height: 490px;
  }
  .hero-content {
    padding-block: 4rem;
  }
  .hero-eyebrow {
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    gap: 0.6rem;
  }
  .hero-eyebrow::before {
    width: 18px;
  }
  .about-preview,
  .about-full,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .section-header {
    margin-bottom: 2.5rem;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
  .footer-brand {
    grid-column: 1/-1;
  }
  .placeholder-image.large {
    min-height: 300px;
  }
}
@media (max-width: 540px) {
  .services-grid,
  .advantages-grid {
    grid-template-columns: 1fr;
  }
  .hero .btn {
    width: 100%;
  }
  .hero-tagline {
    max-width: 320px;
  }
  .section-footer .btn {
    width: 100%;
  }
  .advantage-card {
    padding: 1rem 1.5rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
@media (max-width: 768px) {
  .nav-links > li:not(.nav-cta-mobile) > a::after {
    left: 1rem;
    right: auto;
    width: 28px;
    bottom: 0.35rem;
    transform-origin: left;
  }
  .nav-links > li:not(.nav-cta-mobile) > a[aria-current='page']::after {
    left: 1rem;
    width: 38px;
    bottom: 0.35rem;
  }
  .nav-links > li:not(.nav-cta-mobile) > a[aria-current='page']::before {
    left: 1rem;
    bottom: 0.35rem;
  }
}
