

/* =========================
   Base Reset + Global
========================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  overflow-x: hidden;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  color: #222;
  background: #fff;
}

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

/* =========================
   Layout
========================= */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem;
}

/* =========================
   Header / Nav
========================= */
.site-header {
  background: #111;
}

.site-header .container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.main-nav {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0.75rem 0;
}

.main-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
  padding: 0.25rem 0.2rem;
}

.main-nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* =========================
   Hero
========================= */
.hero {
  position: relative;
  background-image: url("../images/work/retaining-walls/IMG_5839.JPG"); /* change anytime */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  text-align: center;
  padding: 5rem 1rem;
  color: #fff;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-block;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0.75rem;
}

.hero h1 {
  font-size: 2rem;
  max-width: 750px;
  margin: 0 auto 1rem;
}

.hero p {
  max-width: 650px;
  margin: 0 auto 1.5rem;
  color: rgba(255, 255, 255, 0.92);
}

/* =========================
   Buttons
========================= */
.primary-button,
.secondary-button {
  display: inline-block;
  padding: 0.75rem 1.25rem;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.primary-button {
  background: #2f7d32;
  color: #fff;
}

.primary-button:hover {
  filter: brightness(0.95);
}

.secondary-button {
  border: 2px solid #2f7d32;
  color: #2f7d32;
  background: transparent;
}

.secondary-button:hover {
  background: rgba(47, 125, 50, 0.08);
}

/* =========================
   Services (Image Cards)
========================= */
.services {
  padding: 2.75rem 0;
}

.services h2 {
  text-align: center;
  margin-bottom: 1rem;
}

.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 1.25rem;
}

/* Clickable image card */
.image-card {
  position: relative;
  height: 220px;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #111;
}

.image-card .card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.01);
  filter: brightness(0.72);
  transition: transform 0.35s ease, filter 0.35s ease;
}

.image-card .card-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.65),
    rgba(0,0,0,0.15),
    rgba(0,0,0,0.0)
  );
}

.image-card h3 {
  margin-bottom: 0.25rem;
  font-size: 1.15rem;
}

.image-card p {
  font-size: 0.92rem;
  opacity: 0.95;
}

.image-card:hover .card-bg {
  transform: scale(1.06);
  filter: brightness(0.58);
}

/* (Fallback) plain service cards if you still use them anywhere */
.service-card {
  background: #f9f9f9;
  border: 1px solid #eee;
  padding: 1.25rem;
  border-radius: 10px;
}

.service-card h3 {
  margin-bottom: 0.5rem;
}

.service-card p {
  color: #444;
}

/* =========================
   Work Preview (Home page)
========================= */
.work-preview {
  background: #f4f6f4;
  padding: 2.75rem 0;
  text-align: center;
}

.work-preview h2 {
  margin-bottom: 0.75rem;
}

.work-preview p {
  color: #444;
  margin-bottom: 1.25rem;
}

.image-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 1.5rem 0;
}

.image-grid img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid #e8e8e8;
}

/* =========================
   Service Area
========================= */
.service-area {
  padding: 2.75rem 0;
}

.service-area h2 {
  text-align: center;
  margin-bottom: 0.75rem;
}

.service-area p {
  text-align: center;
  color: #444;
  max-width: 850px;
  margin: 0 auto;
}

/* =========================
   CTA
========================= */
.cta {
  background: #2f7d32;
  color: #fff;
  text-align: center;
  padding: 2.85rem 1rem;
}

.cta p {
  margin: 0.75rem 0 1.5rem;
  opacity: 0.95;
}

.cta .primary-button {
  background: #fff;
  color: #2f7d32;
}

/* =========================
   Footer
========================= */
.site-footer {
  background: #111;
  color: #fff;
  text-align: center;
  padding: 1.25rem 0;
}

.site-footer p + p {
  margin-top: 0.25rem;
  opacity: 0.9;
}

/* =========================
   Gallery Page / Carousels
========================= */
.gallery-section {
  margin: 2.5rem 0;
}

.gallery-section h2 {
  text-align: center;
  margin-bottom: 1rem;
}

.carousel {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e8e8e8;
  background: #f5f5f5;
}

.carousel-img {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: rgba(0,0,0,0.5);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  padding: 0.45rem 0.85rem;
  border-radius: 10px;
  cursor: pointer;
}

.carousel-btn.prev { left: 0.75rem; }
.carousel-btn.next { right: 0.75rem; }

.carousel-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.65rem;
  display: flex;
  justify-content: center;
  gap: 0.45rem;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.35);
  cursor: pointer;
}

.carousel-dot.active {
  background: rgba(255,255,255,0.95);
}

/* =========================
   Contact Page
========================= */
.contact-hero {
  text-align: center;
  margin: 1rem 0 1.5rem;
}

.contact-hero h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.contact-hero p {
  color: #444;
  max-width: 750px;
  margin: 0 auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.contact-card {
  background: #ffffff;
  border: 1px solid #eaeaea;
  border-radius: 14px;
  padding: 1.25rem;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

.contact-card h2 {
  margin-bottom: 0.5rem;
}

.contact-note {
  color: #444;
  margin-bottom: 1rem;
}

.contact-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-top: 1px solid #eeeeee;
}

.contact-row:first-of-type {
  border-top: 0;
}

.contact-label {
  font-weight: 800;
  color: #111;
}

.contact-value {
  color: #222;
  word-break: break-word;
}

.contact-value a {
  color: #2f7d32;
  text-decoration: none;
  font-weight: 700;
}

.contact-value a:hover {
  text-decoration: underline;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

/* =========================
   Desktop Enhancements
========================= */
@media (min-width: 768px) {
  .hero h1 {
    font-size: 2.7rem;
  }

  .service-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .image-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .contact-hero h1 {
    font-size: 2.5rem;
  }

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