:root {
  --dark: #182720;
  --green: #294d3d;
  --gold: #d6a65e;
  --gold-on-light: #775320;
  --header-height: 80px;
  --cream: #f8f5ef;
}

* {
  box-sizing: border-box;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 8px);
}

body {
  margin: 0px;
  font-family: Arial, Helvetica, sans-serif;
  color: rgb(37, 52, 43);
  background: var(--cream);
  line-height: 1.6;
}

header {
  position: sticky;
  top: 0px;
  background: var(--dark);
  color: white;
  z-index: 2;
  box-shadow: rgba(0, 0, 0, 0.2) 0px 2px 12px;
}

.nav {
  max-width: 1180px;
  margin: auto;
  padding: 16px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.brand {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 1px;
  color: white;
  text-decoration: none;
}

.brand span {
  color: var(--gold);
}

nav {
  display: flex;
  gap: 22px;
  align-items: center;
}

nav a {
  color: white;
  text-decoration: none;
  font-size: 14px;
}

a:hover {
  opacity: 0.85;
}

.btn {
  display: inline-block;
  padding: 13px 22px;
  background: var(--gold);
  border: 0px;
  border-radius: 4px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  color: rgb(23, 38, 31) !important;
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 620px;
  background: var(--dark);
  display: flex;
  align-items: center;
  color: white;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(18, 34, 25, 0.91), rgba(18, 34, 25, 0.333));
}

.wrap {
  max-width: 1180px;
  margin: auto;
  padding: 0px 22px;
}

.hero h1 {
  font-family: Georgia, serif;
  font-size: clamp(42px, 6vw, 75px);
  line-height: 1.09;
  max-width: 760px;
  margin: 12px 0px 24px;
}

.hero p {
  max-width: 610px;
  font-size: 19px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
}

/* Buttons with an icon: icon and label centered on one line. */
.btn:has(.icon),
.call-bar a {
  gap: 8px;
}

.btn:has(.icon) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon {
  flex: none;
  vertical-align: middle;
}

/* Secondary button: outlined, no fill. White on the dark hero. */
.btn-outline {
  background: transparent;
  color: white !important;
  box-shadow: inset 0 0 0 2px var(--gold);
}

.btn-outline:hover {
  background: rgba(214, 166, 94, 0.15);
  opacity: 1;
}

/* Green outline on light backgrounds. */
.contact .btn-outline,
.thanks .btn-outline {
  color: var(--green) !important;
  box-shadow: inset 0 0 0 2px var(--green);
}

.contact .btn-outline:hover,
.thanks .btn-outline:hover {
  background: rgba(41, 77, 61, 0.08);
}

.contact-number {
  margin: 0 0 12px;
  font-size: 25px;
  font-weight: 800;
  color: var(--green);
}

/* Some phone browsers still wrap a detected number in their own link;
   keep it looking like the plain text it is. */
.contact-number a {
  color: inherit;
  text-decoration: none;
}

.contact-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 18px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--gold-on-light);
  font-size: 13px;
  font-weight: 800;
}

.hero .eyebrow,
.dark .eyebrow {
  color: var(--gold);
}

section {
  padding: 78px 0px;
}

h2 {
  font-family: Georgia, serif;
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.2;
  margin: 10px 0px 20px;
}

.intro {
  max-width: 730px;
  color: rgb(97, 112, 103);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 35px;
}

.service {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: rgba(23, 37, 28, 0.07) 0px 7px 22px;
}

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

.service div {
  padding: 24px;
}

.service h3 {
  font-family: Georgia, serif;
  font-size: 25px;
  margin: 0px 0px 8px;
}

.service p {
  margin: 0px;
  color: rgb(91, 106, 97);
}

.dark {
  background: var(--dark);
  color: white;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.split img {
  width: 100%;
  border-radius: 8px;
  max-height: 460px;
  object-fit: cover;
}

.dark p {
  color: rgb(212, 223, 214);
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.features strong {
  display: block;
  color: var(--gold);
  font-size: 19px;
}

.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 65px;
}

form {
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: rgba(0, 0, 0, 0.067) 0px 8px 25px;
}

label {
  display: block;
  font-weight: 700;
  margin: 0px 0px 6px;
}

input, textarea, select {
  width: 100%;
  padding: 12px;
  margin-bottom: 17px;
  border: 1px solid rgb(203, 209, 202);
  border-radius: 4px;
  font: inherit;
}

textarea {
  min-height: 110px;
}

footer {
  background: rgb(16, 29, 22);
  color: rgb(211, 221, 212);
  padding: 30px 0px;
  text-align: center;
}

footer a {
  color: rgb(233, 189, 123);
}

.contact-link {
  color: var(--green);
  font-weight: 700;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.optional {
  font-weight: 400;
  color: #66736a;
}

.field-hint {
  margin: -12px 0px 17px;
  font-size: 13px;
  color: #66736a;
}

.form-note {
  font-size: 12px;
  color: #66736a;
}

.form-status {
  margin-top: 4px;
  padding: 14px 16px;
  border-radius: 4px;
  border-left: 4px solid;
}

.form-status:focus {
  outline: none;
}

.form-status--success {
  background: #eef5ef;
  border-color: var(--green);
}

.form-status--error {
  background: #fbf0e6;
  border-color: #a4521f;
}

.form-status--pending {
  background: #f7f0e3;
  border-color: var(--gold);
}

.link-button {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-weight: 700;
  color: var(--green);
  text-decoration: underline;
  cursor: pointer;
}

.link-button:disabled {
  cursor: default;
  text-decoration: none;
}

.form-status a {
  color: var(--green);
  font-weight: 700;
}

.thanks {
  max-width: 760px;
}

.thanks h1 {
  font-family: Georgia, serif;
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.2;
  margin: 10px 0px 20px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.call-bar {
  display: none;
}

@media (max-width: 850px) {
  nav {
    gap: 10px;
    flex-wrap: wrap;
  }
  nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding-inline: 4px;
    font-size: 15px;
  }
  nav .btn {
    display: inline-flex;
  }
  .nav {
    flex-wrap: wrap;
  }
  .grid, .features {
    grid-template-columns: 1fr 1fr;
  }
  .split, .contact {
    grid-template-columns: 1fr;
  }
  .hero {
    min-height: 560px;
  }

  /* The sticky call bar below offers the same two buttons at these widths. */
  .hero-contact {
    display: none !important;
  }

  /* Tap-to-call: calls and texts are how most contractor leads arrive. */
  body {
    padding-bottom: calc(64px + env(safe-area-inset-bottom));
  }
  .call-bar {
    position: fixed;
    inset: auto 0 0;
    z-index: 3;
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 10px;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    background: var(--dark);
    box-shadow: rgba(0, 0, 0, 0.25) 0px -2px 12px;
  }
  .call-bar a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border-radius: 4px;
    font-size: clamp(14px, 4.3vw, 16px);
    font-weight: 800;
    white-space: nowrap;
    text-decoration: none;
    color: rgb(23, 38, 31);
    background: var(--gold);
  }
  .call-bar a + a {
    color: white;
    background: transparent;
    border: 2px solid var(--gold);
  }
  /* Keep the bar from covering the field being typed into above the keyboard. */
  body:has(form :focus) .call-bar {
    display: none;
  }
}

/* Stacked header: brand on top, nav spread across the full width below.
   Below 730px the two no longer fit side by side. */
@media (max-width: 730px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding-block: 8px;
  }

  .brand {
    font-size: clamp(15px, 4vw, 18px);
    letter-spacing: 0.5px;
  }

  nav {
    gap: 2px;
    width: 100%;
    justify-content: space-between;
  }

  nav a {
    display: inline-flex;
    align-items: center;
    min-width: 44px;
    min-height: 44px;
    padding-inline: 6px;
    font-size: clamp(13px, 3.8vw, 14px);
  }

  nav .btn {
    display: inline-flex;
    padding: 8px;
  }
}

@media (max-width: 580px) {
  .grid, .features {
    grid-template-columns: 1fr;
  }
  section {
    padding: 55px 0px;
  }
  .hero {
    min-height: 550px;
  }
  .hero p {
    font-size: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
