:root {
  --cream: #fffaf0;
  --cream-deep: #f6edda;
  --green: #2e6745;
  --green-dark: #204b32;
  --green-footer: #1d4a31;
  --gold: #966708;
  --gold-deep: #956708;
  --gold-line: #d6a53a;
  --gold-light: #f5d67e;
  --contact: #f3e3bd;
  --ink: #1c2a21;
  --muted: #536358;
  --white: #ffffff;
  --border: rgba(137, 111, 52, 0.22);
  --shadow: 0 18px 40px rgba(79, 59, 14, 0.12);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(255, 237, 194, 0.85), transparent 28%),
    linear-gradient(180deg, #fffcf4 0%, var(--cream) 34%, #fbf3e1 100%);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

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

section[id] {
  scroll-margin-top: 88px;
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  padding: 12px 16px;
  border-radius: 999px;
  background: var(--green-dark);
  color: var(--gold-light);
  z-index: 40;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(255, 250, 240, 0.93);
  border-bottom: 1px solid rgba(141, 112, 49, 0.15);
}

.header-row {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  max-width: 420px;
  color: var(--gold-deep);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.25;
  letter-spacing: 0.03em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.95rem;
}

.main-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.nav-call {
  padding: 0 16px;
  border-radius: 999px;
  color: var(--gold-light);
  background: var(--green-dark);
  font-weight: 700;
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: clamp(620px, 78svh, 860px);
  background: #c88725;
}

.hero-photo {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 46% 50%;
  pointer-events: none;
  user-select: none;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(30, 17, 3, 0.02) 0%, rgba(30, 17, 3, 0.02) 43%, rgba(49, 26, 4, 0.28) 64%, rgba(49, 26, 4, 0.5) 100%),
    linear-gradient(180deg, rgba(255, 244, 219, 0.08) 0%, rgba(55, 31, 5, 0.03) 48%, rgba(46, 25, 4, 0.2) 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at 12% 22%, rgba(255, 244, 181, 0.2), rgba(255, 244, 181, 0) 28%);
  pointer-events: none;
}

.hero-sun {
  display: none;
}

.hero-grid {
  position: relative;
  z-index: 2;
  min-height: clamp(620px, 78svh, 860px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 610px);
  grid-template-rows: 1fr auto;
  align-items: center;
  gap: clamp(20px, 4vw, 54px);
  padding-top: clamp(54px, 8vh, 92px);
  padding-bottom: clamp(46px, 8vh, 82px);
}

.hero-copy {
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  max-width: 610px;
  margin: 0;
  text-align: right;
  justify-self: end;
}

.eyebrow {
  margin: 0 0 clamp(12px, 1.6vw, 20px);
  font-size: clamp(0.72rem, 0.42vw + 0.64rem, 0.98rem);
  letter-spacing: clamp(0.13em, 0.35vw, 0.2em);
  text-transform: uppercase;
  font-weight: 700;
  color: #fff4d1;
  text-shadow: 0 2px 12px rgba(45, 24, 2, 0.5);
}

.hero h1 {
  margin: 0 0 clamp(16px, 2vw, 24px);
  color: #fff4da;
  font-size: clamp(3.5rem, 5.6vw, 6.5rem);
  line-height: 0.92;
  letter-spacing: -0.06em;
  text-shadow: 0 4px 22px rgba(41, 22, 3, 0.5);
}

.lead {
  max-width: 540px;
  margin: 0 0 0 auto;
  color: #fff8e9;
  font-size: clamp(1rem, 0.45vw + 0.9rem, 1.18rem);
  line-height: 1.58;
  text-shadow: 0 2px 14px rgba(42, 24, 4, 0.46);
}

.hero-cta,
.prefooter-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-cta {
  grid-column: 2;
  grid-row: 2;
  width: min(100%, 520px);
  margin-left: auto;
  justify-content: flex-end;
  gap: clamp(10px, 1.4vw, 16px);
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px clamp(18px, 2vw, 28px);
  border-radius: 999px;
  font-weight: 700;
  font-size: clamp(0.92rem, 0.25vw + 0.86rem, 1.02rem);
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--green-dark);
  color: var(--gold-light);
  box-shadow: 0 16px 28px rgba(24, 61, 40, 0.16);
}

.button-secondary {
  border-color: rgba(150, 103, 8, 0.35);
  background: rgba(255, 255, 255, 0.78);
  color: #74520d;
  box-shadow: 0 14px 26px rgba(78, 48, 8, 0.1);
}

.button-dark {
  background: rgba(29, 74, 49, 0.92);
  color: var(--gold-light);
}

.services,
.gallery-section,
.steps-section,
.contact-section {
  padding: 84px 0;
}

.services {
  background: linear-gradient(180deg, rgba(247, 221, 160, 0.82) 0, var(--cream) 86px);
}

.section-tag {
  margin: 0 0 10px;
  color: #9c7010;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.section-tag-light {
  color: #f1cf74;
}

h2 {
  margin: 0 0 18px;
  color: var(--green-dark);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
}

.section-copy {
  max-width: 720px;
  margin: 0 0 28px;
  color: var(--muted);
  line-height: 1.7;
}

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

.service-card,
.step-card,
.gallery-card {
  border-radius: var(--radius-md);
}

.service-card {
  display: grid;
  gap: 12px;
  min-height: 190px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.78);
  border-top: 4px solid var(--gold-line);
  box-shadow: var(--shadow);
}

.service-card strong {
  color: #7a560b;
  font-size: 1.2rem;
}

.service-card span {
  color: var(--muted);
  line-height: 1.55;
}

.machinery {
  padding: 30px 0 84px;
}

.machinery-panel {
  padding: 44px;
  border-radius: var(--radius-lg);
  color: var(--white);
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  box-shadow: 0 22px 44px rgba(25, 69, 44, 0.18);
}

.machinery-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 42px;
  align-items: center;
}

.machinery-copy h2 {
  color: var(--gold-light);
}

.machinery-copy p {
  margin: 0 0 18px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.92);
}

.equipment-list {
  margin: 0 0 24px;
  padding-left: 20px;
  line-height: 1.8;
}

.photo-placeholder {
  min-height: 320px;
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
  color: #f7e5ac;
  font-weight: 700;
  border-radius: var(--radius-md);
  background:
    linear-gradient(145deg, rgba(100, 136, 112, 0.95), rgba(187, 134, 34, 0.95)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent);
}

.gallery-section {
  background: linear-gradient(180deg, var(--cream-deep) 0%, rgba(255, 250, 240, 0.94) 100%);
}

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

.gallery-card {
  aspect-ratio: 4 / 3;
  display: grid;
  align-content: end;
  gap: 6px;
  padding: 22px;
  color: var(--white);
  background:
    linear-gradient(180deg, rgba(18, 32, 24, 0.08), rgba(18, 32, 24, 0.72)),
    linear-gradient(145deg, rgba(104, 128, 94, 0.94), rgba(192, 142, 49, 0.98));
  box-shadow: var(--shadow);
}

.gallery-card span {
  font-size: 1.2rem;
  font-weight: 700;
}

.gallery-card small {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.84);
}

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

.step-card {
  padding: 22px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
}

.step-number {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--gold-line);
  font-weight: 700;
}

.step-card h3 {
  margin: 16px 0 12px;
  color: var(--green-dark);
  font-size: 1.2rem;
}

.step-card p {
  margin: 0;
  line-height: 1.65;
  color: var(--muted);
}

.contact-section {
  background: linear-gradient(180deg, rgba(255, 250, 240, 0.96), var(--contact));
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 38px;
  align-items: start;
}

.contact-copy p {
  margin: 0 0 16px;
  line-height: 1.7;
}

.phone-link {
  display: inline-block;
  margin: 4px 0 18px;
  color: var(--green-dark);
  font-size: clamp(1.7rem, 4vw, 2.2rem);
  font-weight: 700;
}

.contact-note,
.form-fallback {
  color: var(--muted);
  font-size: 0.94rem;
}

.lead-form {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field {
  display: grid;
}

.field-wide {
  grid-column: 1 / -1;
}

.field label {
  margin-bottom: 8px;
  font-size: 0.95rem;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid rgba(96, 111, 100, 0.5);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
}

.field textarea {
  min-height: 126px;
  resize: vertical;
}

.field-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
  color: #6a726b;
  font-size: 0.84rem;
}

.field-error {
  min-height: 1.25rem;
  margin: 6px 0 0;
  color: #aa2e29;
  font-size: 0.9rem;
}

.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea {
  border-color: #aa2e29;
  box-shadow: 0 0 0 3px rgba(170, 46, 41, 0.12);
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.submit-button {
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 999px;
  background: var(--green-dark);
  color: var(--gold-light);
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.18s ease;
}

.submit-button[disabled] {
  opacity: 0.72;
  cursor: progress;
}

.form-status {
  min-height: 1.4rem;
  margin: 14px 0 10px;
  font-weight: 700;
}

.form-status.is-success {
  color: var(--green-dark);
}

.form-status.is-error {
  color: #aa2e29;
}

.prefooter {
  padding: 28px 0;
  color: #173424;
  background: var(--gold-line);
}

.prefooter-row strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.5rem;
}

.prefooter-row p {
  margin: 0;
  line-height: 1.6;
}

.site-footer {
  padding: 34px 0 28px;
  color: #e4ebe6;
  background: var(--green-footer);
  border-top: 5px solid var(--gold-line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.9fr;
  gap: 24px;
}

.footer-grid strong {
  color: var(--gold-light);
}

.footer-grid p {
  margin: 10px 0 0;
  line-height: 1.65;
}

.footer-bottom {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: #c6d2c8;
  font-size: 0.88rem;
}

.mobile-call {
  display: none;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 3px solid #111111;
  outline-offset: 3px;
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 1100px) {
  .hero-grid {
    grid-template-columns: minmax(0, 0.8fr) minmax(360px, 520px);
  }

  .hero h1 {
    font-size: clamp(3rem, 6.2vw, 5rem);
  }
}

@media (max-width: 980px) {
  .main-nav {
    gap: 16px;
    font-size: 0.9rem;
  }

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

  .machinery-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: clamp(590px, 76svh, 780px);
  }

  .hero-photo {
    object-position: 38% 50%;
  }

  .hero::before {
    background:
      linear-gradient(90deg, rgba(30, 17, 3, 0.02) 0%, rgba(30, 17, 3, 0.06) 37%, rgba(49, 26, 4, 0.36) 66%, rgba(49, 26, 4, 0.58) 100%),
      linear-gradient(180deg, rgba(255, 244, 219, 0.08) 0%, rgba(55, 31, 5, 0.08) 100%);
  }

  .hero-grid {
    min-height: clamp(590px, 76svh, 780px);
    grid-template-columns: minmax(0, 0.72fr) minmax(320px, 480px);
    padding-top: clamp(46px, 7vh, 78px);
    padding-bottom: clamp(38px, 7vh, 66px);
  }

  .hero-copy,
  .hero-cta {
    max-width: 480px;
  }
}

@media (max-width: 760px) {
  .wrap {
    width: calc(100% - 28px);
  }

  .header-row {
    min-height: 72px;
    gap: 16px;
  }

  .brand {
    max-width: 230px;
    font-size: 0.86rem;
  }

  .main-nav a:not(.nav-call),
  .main-nav .nav-call {
    display: none;
  }

  .hero {
    min-height: clamp(610px, 82svh, 760px);
  }

  .hero-photo {
    object-position: 31% 50%;
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(35, 20, 4, 0.38) 0%, rgba(35, 20, 4, 0.14) 34%, rgba(35, 20, 4, 0.08) 58%, rgba(35, 20, 4, 0.54) 100%),
      linear-gradient(90deg, rgba(35, 20, 4, 0.02) 0%, rgba(35, 20, 4, 0.22) 100%);
  }

  .hero-grid {
    min-height: clamp(610px, 82svh, 760px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: clamp(18px, 5vw, 28px);
    padding-top: clamp(34px, 8vw, 56px);
    padding-bottom: clamp(28px, 8vw, 44px);
  }

  .hero-copy {
    width: min(100%, 430px);
    max-width: none;
    margin: 0 0 0 auto;
    padding: clamp(14px, 4vw, 20px);
    border-radius: 22px;
    text-align: right;
    background: linear-gradient(135deg, rgba(69, 40, 7, 0.1), rgba(69, 40, 7, 0.28));
    backdrop-filter: blur(1px);
  }

  .eyebrow {
    margin-bottom: clamp(8px, 2vw, 12px);
    font-size: clamp(0.62rem, 2vw, 0.76rem);
    letter-spacing: 0.14em;
  }

  .hero h1 {
    margin-bottom: clamp(10px, 3vw, 14px);
    font-size: clamp(2.35rem, 11vw, 3.65rem);
    line-height: 0.92;
  }

  .lead {
    font-size: clamp(0.84rem, 2.7vw, 0.98rem);
    line-height: 1.38;
  }

  .hero-cta {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: clamp(12px, 4vw, 16px);
    border-radius: 24px;
    justify-content: center;
    background: rgba(255, 250, 240, 0.82);
    box-shadow: 0 18px 40px rgba(46, 24, 4, 0.18);
    backdrop-filter: blur(7px);
  }

  .hero-cta .button {
    flex: 1 1 190px;
    min-height: 46px;
  }

  .button-secondary {
    background: rgba(255, 248, 237, 0.9);
  }

  .card-grid,
  .gallery-grid,
  .steps-grid,
  .form-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .field-wide {
    grid-column: auto;
  }

  .lead-form {
    padding: 22px;
  }

  .prefooter-row {
    align-items: flex-start;
  }

  .button-dark {
    width: 100%;
  }

  .mobile-call {
    position: fixed;
    left: 14px;
    right: 14px;
    bottom: 14px;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 12px 16px;
    border-radius: 999px;
    background: var(--green-dark);
    color: var(--gold-light);
    font-weight: 700;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
  }

  .site-footer {
    padding-bottom: 102px;
  }
}

@media (max-width: 420px) {
  .hero {
    min-height: clamp(600px, 84svh, 730px);
  }

  .hero-grid {
    min-height: clamp(600px, 84svh, 730px);
  }

  .hero-photo {
    object-position: 29% 50%;
  }

  .hero-copy {
    width: min(100%, 360px);
    padding: 14px;
  }

  .hero h1 {
    font-size: clamp(2.15rem, 11.8vw, 3.05rem);
  }

  .lead {
    font-size: clamp(0.78rem, 3vw, 0.9rem);
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-cta .button {
    width: 100%;
  }
}

/* Mobile hero compact override */
@media (max-width: 760px) {
  .hero {
    min-height: clamp(520px, 74svh, 650px);
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(35, 20, 4, 0.34) 0%, rgba(35, 20, 4, 0.12) 35%, rgba(35, 20, 4, 0.06) 58%, rgba(35, 20, 4, 0.46) 100%),
      linear-gradient(90deg, rgba(35, 20, 4, 0.02) 0%, rgba(35, 20, 4, 0.2) 100%);
  }

  .hero-grid {
    min-height: clamp(520px, 74svh, 650px);
    gap: clamp(10px, 3vw, 16px);
    padding-top: clamp(22px, 6vw, 36px);
    padding-bottom: clamp(18px, 5vw, 30px);
  }

  .hero-copy {
    width: min(100%, 370px);
    padding: clamp(10px, 3vw, 14px);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(69, 40, 7, 0.08), rgba(69, 40, 7, 0.22));
  }

  .eyebrow {
    margin-bottom: clamp(6px, 1.5vw, 9px);
    font-size: clamp(0.56rem, 1.75vw, 0.68rem);
    letter-spacing: 0.12em;
  }

  .hero h1 {
    margin-bottom: clamp(7px, 2vw, 10px);
    font-size: clamp(1.9rem, 9.2vw, 2.75rem);
    line-height: 0.94;
  }

  .lead {
    font-size: clamp(0.72rem, 2.35vw, 0.86rem);
    line-height: 1.28;
  }

  .hero-cta {
    padding: clamp(8px, 2.6vw, 11px);
    border-radius: 18px;
    gap: 8px;
    box-shadow: 0 12px 28px rgba(46, 24, 4, 0.16);
    backdrop-filter: blur(6px);
  }

  .hero-cta .button {
    flex: 1 1 140px;
    min-height: 40px;
    padding: 8px 12px;
    font-size: clamp(0.78rem, 2.2vw, 0.88rem);
  }

  .mobile-call {
    display: none;
  }

  .site-footer {
    padding-bottom: 28px;
  }
}

@media (max-width: 420px) {
  .hero {
    min-height: clamp(500px, 76svh, 620px);
  }

  .hero-grid {
    min-height: clamp(500px, 76svh, 620px);
  }

  .hero-copy {
    width: min(100%, 320px);
    padding: 10px;
  }

  .hero h1 {
    font-size: clamp(1.75rem, 10vw, 2.4rem);
  }

  .lead {
    font-size: clamp(0.7rem, 2.9vw, 0.82rem);
  }

  .hero-cta {
    flex-direction: row;
    align-items: stretch;
    flex-wrap: nowrap;
    padding: 8px;
  }

  .hero-cta .button {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    min-height: 38px;
    padding: 7px 8px;
    white-space: nowrap;
    font-size: clamp(0.72rem, 2.8vw, 0.82rem);
  }
}
