:root {
  --primary: #2c4a3e;
  --accent: #6b8f71;
  --bg: #f5f4f0;
  --surface: #ffffff;
  --text: #1a1a1a;
  --muted: #6b6b6b;
  --line: #dde3d9;
  --shadow: 0 18px 50px rgba(26, 26, 26, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Source Sans 3", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.section {
  padding: 88px 0;
}

.section.alt {
  background: var(--surface);
}

.section-heading {
  max-width: 720px;
  margin: 0 0 34px;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--primary);
  font-family: Raleway, Arial, sans-serif;
  line-height: 1.12;
}

h1 {
  font-size: clamp(2.15rem, 4vw, 3.9rem);
}

h2 {
  font-size: clamp(1.65rem, 2.5vw, 2.35rem);
}

h3 {
  font-size: 1.25rem;
}

p {
  margin: 0 0 1rem;
}

.muted {
  color: var(--muted);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border: 2px solid var(--primary);
  border-radius: 3px;
  background: var(--primary);
  color: #fff;
  font-family: Raleway, Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.button:hover {
  border-color: var(--accent);
  background: var(--accent);
}

.button.secondary {
  background: transparent;
  color: var(--primary);
}

.button.secondary:hover {
  background: var(--primary);
  color: #fff;
}

.hero .button.secondary {
  border-color: rgba(255, 255, 255, 0.82);
  color: #fff;
}

.hero .button.secondary:hover {
  border-color: #fff;
  background: #fff;
  color: var(--primary);
}

/* === Navigation === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid rgba(44, 74, 62, 0.12);
  box-shadow: 0 8px 24px rgba(44, 74, 62, 0.06);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--primary);
  font-family: Raleway, Arial, sans-serif;
  font-weight: 700;
  text-decoration: none;
}

.brand img {
  width: 92px;
  height: auto;
}

.brand span {
  max-width: 210px;
  font-size: 0.78rem;
  line-height: 1.25;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--surface);
  color: var(--primary);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-family: Raleway, Arial, sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
}

.site-nav a {
  padding: 8px 0;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--accent);
  border-color: var(--accent);
}

/* === Hero === */
.hero,
.page-hero {
  position: relative;
  isolation: isolate;
  background: var(--primary) url("../img/P1080510.JPG") center / cover no-repeat;
  color: #fff;
}

.hero::before,
.page-hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: linear-gradient(90deg, rgba(28, 52, 43, 0.83), rgba(28, 52, 43, 0.45) 54%, rgba(28, 52, 43, 0.18));
}

.hero .container {
  display: grid;
  align-items: center;
  min-height: 650px;
  padding: 86px 0;
}

.hero-content {
  max-width: 720px;
}

.hero h1,
.page-hero h1,
.hero p,
.page-hero p {
  color: #fff;
}

.hero p,
.page-hero p {
  max-width: 640px;
  margin-top: 22px;
  font-size: 1.18rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.page-hero .container {
  min-height: 360px;
  padding: 72px 0;
}

.page-hero.compact .container {
  min-height: 300px;
}

/* === Content Blocks === */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.86fr);
  gap: 58px;
  align-items: center;
}

.split.reverse {
  grid-template-columns: minmax(300px, 0.86fr) minmax(0, 1fr);
}

.split.reverse .copy {
  order: 2;
}

.feature-image {
  min-height: 360px;
  overflow: hidden;
  border-radius: 3px;
  box-shadow: var(--shadow);
}

.feature-image img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.card,
.service-card,
.category-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 3px;
  box-shadow: 0 10px 26px rgba(44, 74, 62, 0.05);
}

.card,
.category-card {
  padding: 28px;
}

.card h3,
.service-card h3,
.category-card h3 {
  margin-bottom: 10px;
}

.card p,
.service-card p,
.category-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.service-list {
  display: grid;
  gap: 34px;
}

.service-card {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  overflow: hidden;
}

.service-card:nth-child(even) .service-media {
  order: 2;
}

.service-media img {
  width: 100%;
  height: 100%;
  min-height: 310px;
  object-fit: cover;
}

.service-copy {
  padding: 38px;
}

.service-copy ul,
.category-list {
  margin: 18px 0 0;
  padding-left: 20px;
}

.service-copy li {
  margin: 8px 0;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.band {
  background: var(--primary);
  color: #fff;
}

.band .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.band h2,
.band p {
  color: #fff;
}

.band p {
  margin: 8px 0 0;
}

/* === Contact === */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.7fr);
  gap: 40px;
  align-items: start;
}

.contact-form,
.contact-panel {
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 3px;
  box-shadow: 0 10px 26px rgba(44, 74, 62, 0.05);
}

.form-row {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

label {
  color: var(--primary);
  font-family: Raleway, Arial, sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #cdd6cb;
  border-radius: 3px;
  background: #fff;
  color: var(--text);
  font: inherit;
  padding: 12px 13px;
}

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

.thank-you {
  display: none;
  padding: 26px;
  background: #edf4ec;
  border: 1px solid var(--accent);
  color: var(--primary);
  font-weight: 700;
}

.thank-you.visible {
  display: block;
}

/* === Footer === */
.site-footer {
  background: #20372f;
  color: #fff;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr);
  gap: 50px;
  padding: 54px 0;
}

.footer-brand img {
  width: 98px;
  margin-bottom: 16px;
  background: #fff;
}

.footer-brand p,
.site-footer a,
.signup label {
  color: rgba(255, 255, 255, 0.82);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  margin-bottom: 24px;
}

.footer-links a {
  text-decoration: none;
}

.footer-links a:hover {
  color: #fff;
}

.signup {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.signup label {
  grid-column: 1 / -1;
}

.footer-bottom {
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.92rem;
}

@media (max-width: 860px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 82px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 10px 20px 22px;
    background: #fff;
    border-bottom: 1px solid var(--line);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    width: 100%;
    padding: 13px 0;
  }

  .hero .container {
    min-height: 560px;
  }

  .split,
  .split.reverse,
  .service-card,
  .contact-grid,
  .footer-main {
    grid-template-columns: 1fr;
  }

  .split.reverse .copy,
  .service-card:nth-child(even) .service-media {
    order: initial;
  }

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

  .band .container {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 17px;
  }

  .container {
    width: min(100% - 28px, 1120px);
  }

  .section {
    padding: 62px 0;
  }

  .brand span {
    display: none;
  }

  .brand img {
    width: 76px;
  }

  .nav-wrap {
    min-height: 72px;
  }

  .site-nav {
    top: 72px;
  }

  .hero .container {
    min-height: 530px;
    padding: 62px 0;
  }

  .page-hero .container {
    min-height: 280px;
  }

  .card-grid,
  .category-grid,
  .signup {
    grid-template-columns: 1fr;
  }

  .service-copy,
  .contact-form,
  .contact-panel {
    padding: 24px;
  }
}
