:root {
  --green: #2D6A4F;
  --green-dark: #1F5A42;
  --green-light: #52B788;
  --grey: #475569;
  --muted: #64748B;
  --orange: #F59E0B;
  --offwhite: #F7FAF9;
  --surface: #FFFFFF;
  --text: #1A1A1A;
  --text-light: #0F172A;
  --gradient-start: #1F5A42;
  --gradient-end: #2D6A4F;
  /* New earth tone colors for agricultural feel */
  --earth-brown: #8B4513;
  --field-tan: #D2B48C;
  --sky-blue: #4682B4;
  --mud-brown: #A0522D;
  --radius: 12px;
  --container: 1080px;
  scroll-padding-top: 72px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  color: var(--text);
  background: var(--offwhite);
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: "Rubik", system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
}

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

.container { max-width: var(--container); margin-inline: auto; padding: 0 16px; }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 8px; top: 8px; background: #fff; padding: 8px 12px; border: 2px solid var(--orange); border-radius: 6px; z-index: 100; }

/* Screen-reader only utility */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.site-header { background: #fff; border-bottom: 1px solid #e5e7eb; position: sticky; top: 0; z-index: 40; }
.site-header .container { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; gap: 12px; align-items: center; padding: 12px 16px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--green-dark); }
.brand .logo { font-size: 1.25rem; }
.site-nav { display: none; gap: 16px; }
.site-nav a { color: var(--muted); font-weight: 600; text-decoration: none; }
.site-nav a:hover { text-decoration: underline; }

.header-cta { grid-column: 1 / -1; grid-row: 2; justify-self: center; display: flex; gap: 8px; align-items: center; font-weight: 600; flex-wrap: nowrap; gap: 12px; }
.header-cta .divider { color: #94a3b8; }
.header-cta a { white-space: nowrap; display: inline-flex; align-items: center; }

@media (min-width: 768px) {
  .site-header .container { grid-template-columns: 1fr auto 1fr; grid-template-rows: auto auto; }
  .site-nav { display: flex; justify-content: center; }
}

.hero { padding: 48px 0 16px; text-align: center; background:
  radial-gradient(800px 400px at -10% -20%, rgba(255,255,255,0.08), transparent 60%),
  linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  color: #fff;
}
.hero h1 { font-size: 2rem; line-height: 1.2; margin: 8px 0 12px; color: #fff; }
.hero p { margin: 0 0 16px; font-size: 1.1rem; color: #E2E8F0; }
.cta-group { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

.btn { 
  display: inline-block; 
  padding: 12px 18px; 
  border-radius: 999px; 
  border: 2px solid var(--green); 
  color: #fff; 
  background: var(--green); 
  text-decoration: none; 
  font-weight: 700; 
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.btn:hover { 
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(45, 106, 79, 0.3);
}
.btn:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.btn.btn-secondary { 
  background: transparent; 
  color: var(--green); 
  border-color: var(--green); 
}
.btn.btn-secondary:hover {
  background: var(--green);
  color: white;
  box-shadow: 0 4px 12px rgba(45, 106, 79, 0.3);
}
/* Improve contrast: dark text on amber background */
.btn.btn-primary { 
  background: var(--orange); 
  border-color: var(--orange); 
  color: #1F2937; 
}
.btn.btn-primary:hover {
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}


.section { padding: 32px 0; }
.section h2 { font-size: 1.6rem; margin: 0 0 12px; color: var(--green-dark); text-align: center; }
.section .actions { text-align: center; margin-top: 8px; }
/* Optional alternating background stripe */
.section--alt { background: #fff; }
/* Center Contact section content */
  #contact { text-align: center; }
  #contact .btn { margin-inline: 6px; }
  #areas { text-align: center; }

.cards { display: grid; grid-template-columns: 1fr; gap: 16px; }
.card { 
  background: #fff; 
  border: 1px solid #e5e7eb; 
  border-radius: var(--radius); 
  padding: 16px; 
  transition: all 0.3s ease;
  position: relative;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border-color: var(--green-light);
}

/* Service-specific color accents */
.card:nth-child(1) { border-left: 4px solid var(--earth-brown); } /* Digger */
.card:nth-child(2) { border-left: 4px solid var(--mud-brown); }   /* Trucking */
.card:nth-child(3) { border-left: 4px solid var(--green); }       /* Spraying */
.card:nth-child(4) { border-left: 4px solid var(--sky-blue); }    /* Water */
.card:nth-child(5) { border-left: 4px solid var(--orange); }      /* Tractor */
.card:nth-child(6) { border-left: 4px solid var(--grey); }        /* Handyman */
.card:nth-child(7) { border-left: 4px solid var(--green-dark); }  /* Farm Sitting */
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cards { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { .cards { grid-template-columns: repeat(4, 1fr); } }

/* Service card figure visuals */
  .card-figure {
    position: relative;
    aspect-ratio: 4 / 3;
    margin: 12px 0 0;
    border-radius: var(--radius);
    overflow: hidden;
    background: linear-gradient(#374151, #111827);
    display: grid;
    place-items: center;
  }
  .card-figure img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    /* Visually enlarge icons (assets have transparent margins); overflow on parent crops excess */
    transform: scale(1.25);
    transform-origin: center;
  }
  .card-figure::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.35), rgba(0,0,0,0));
    pointer-events: none;
  }
  .card-figure__label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    z-index: 1;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0,0,0,0.6);
    letter-spacing: 0.2px;
    background: rgba(17, 24, 39, 0.45);
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.9rem;
  }
.map-embed {
  width: 100%;
  aspect-ratio: 16 / 6; /* wide map */
  border-radius: var(--radius);
  border: 1px solid #e5e7eb;
  overflow: hidden;
  background: #e2e8f0;
}
.map-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.map-embed img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}



.content-box { padding-inline: 1rem; }
ul { padding-left: 1.1em; }
.small { color: #64748b; font-size: .9rem; }

/* Featured Work Section */
.featured-work { 
  text-align: center; 
}

.featured-work .container {
  position: relative;
  padding-left: 0;
  padding-right: 0;
  max-width: none;
  text-align: center;
}
.section-subtitle {
  color: var(--muted);
  font-style: italic;
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.work-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  align-items: flex-start;
  margin: 2rem 0;
  padding: 0;
}

.work-item {
  flex: 0 0 280px;
  max-width: 280px;
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
}

.work-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.work-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.work-item:hover img {
  transform: scale(1.05);
}

.work-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: white;
  padding: 1rem;
  font-weight: 600;
  text-align: center;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.work-item:hover .work-overlay {
  transform: translateY(0);
}

@media (max-width: 768px) {
  .work-preview {
    flex-direction: column;
    align-items: center;
    max-width: 320px;
  }
  
  .work-item {
    flex: 0 0 280px;
    width: 280px;
  }
}

@media (max-width: 480px) {
  .work-preview {
    max-width: 260px;
  }
  
  .work-item {
    flex: 0 0 240px;
    width: 240px;
    max-width: 240px;
  }
}

@media (min-width: 768px) {
  .hero h1 { font-size: 2.5rem; }
  .section { padding: 56px 0; }
}
@media (min-width: 1280px) {
  .section { padding: 72px 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
