:root {
  --green: #606c56;
  --black: #000000;
  --white: #ffffff;
  --muted: rgba(255, 255, 255, 0.78);
  --card-border: #eef0f5;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
  --accent: #ff9900;
  --accent-600: #e28800;

  --hero-bg: url("image7.jpg");
  --hero-overlay: rgba(0, 0, 0, 0.38);

  /* second background image (extends to Our Work) */
  --hero2-bg: url("image9.jpeg");

  /* NEW: base spacing token for tighter mobile control */
  --space: clamp(16px, 2.5vw, 24px);
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
  background: var(--green);
  color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent; /* remove flash on tap */
}
img {
  max-width: 100%;
  display: block;
}
a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: min(1100px, 92vw);
  margin-inline: auto;
  padding-inline: 0.5rem;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--black);
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
  padding-top: env(safe-area-inset-top); /* iOS notch safe area */
}

.nav-icon {
  display: none;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  gap: 0.75rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.2px;
}
.brand .brand-mark {
  height: 52px;
  width: auto;
  border-radius: 6px;
}
.nav-links {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}
/* .nav-bar {
    display: none;
} */
.nav-links-mobile a {
  display: none;
}

.nav-links a {
  color: var(--white);
  opacity: 0.9;
  line-height: 1;
}

.nav-links a:hover {
  opacity: 1;
}
.cta-btn {
  background: var(--accent);
  color: var(--white);
  padding: 0.6rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(255, 153, 0, 0.25);
  min-height: 44px; /* comfortable tap target */
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cta-btn:hover {
  background: var(--accent-600);
}

.hero {
  background: linear-gradient(var(--hero-overlay), var(--hero-overlay)),
    var(--hero-bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--white);
  padding: clamp(56px, 7vw, 96px) 0;
}
.hero-inner {
  display: grid;
  gap: 1rem;
}
.hero h1 {
  margin: 0 0 0.3rem;
  font-size: clamp(1.9rem, 4.8vw, 3rem);
  line-height: 1.1;
  letter-spacing: 0.2px;
  text-align: center; /* centered heading */
  text-wrap: balance; /* nicer multi-line titles on mobile */
}
/* Bigger + whiter + centered ONLY for the hero paragraph */
.hero p {
  color: rgba(255, 255, 255, 0.95); /* more white */
  max-width: 65ch;
  margin-inline: auto; /* center block */
  text-align: center; /* center text */
  font-size: clamp(1.2rem, 2vw, 1.5rem); /* bigger */
}

/* carry image9 background down to Our Work (Services + Industries only) */
.bg-to-gallery {
  background: linear-gradient(var(--hero-overlay), var(--hero-overlay)),
    var(--hero2-bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

section {
  padding: clamp(28px, 5vw, 56px) 0;
}
h2 {
  color: var(--white);
  font-size: clamp(1.4rem, 3.6vw, 2rem);
  margin: 0 0 0.6rem;
  text-wrap: balance;
}
.lead {
  color: var(--muted);
  margin: 0 0 1rem;
}

.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 1rem;
}
.card {
  background: var(--white);
  color: var(--black);
  border-radius: var(--radius);
  padding: 1.1rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--card-border);
}
.card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  color: var(--black);
}
.card p {
  margin: 0;
  color: #333;
}

.list {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}
.list li {
  background: var(--white);
  color: var(--black);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 0.7rem 0.9rem;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
}

/* GALLERY */
.gallery {
  background: var(--black);
  border-top: 1px solid #333;
}
.gallery h2,
.gallery p {
  color: var(--white);
}
.gallery-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 1rem;
  grid-auto-flow: row dense;
}
.gallery-grid figure {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
}
.gallery-grid img {
  width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 0.2s ease-in-out;
  display: block;
}
.gallery-grid img:hover {
  transform: scale(1.02);
}
.gallery-grid figcaption {
  padding: 0.55rem 0.7rem;
  font-size: 0.9rem;
  color: #555;
  min-height: 2.2em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* CONTACT */
.contact {
  background: var(--black);
  border-top: 1px solid rgba(0, 0, 0, 0.15);
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}
.contact-card {
  background: var(--white);
  color: var(--black);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center; /* center card contents */
}
.contact h2 {
  text-align: center;
} /* center heading */
.contact-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center; /* center buttons row */
}
.contact-card p {
  text-align: center;
} /* center hours line */

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: var(--white);
  padding: 0.6rem 1rem;
  border-radius: 10px;
  font-weight: 800;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: background 0.2s ease-in-out;
  min-height: 48px; /* larger touch target on mobile */
}
.contact-btn:hover {
  background: var(--accent-600);
}
.contact-btn:focus-visible {
  outline: 3px solid #ffd699;
  outline-offset: 2px;
}

footer {
  background: var(--black);
  color: var(--white);
  padding: 28px 0;
  text-align: center;
}
footer small {
  color: #aaa;
}

.pill {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
  color: var(--white);
  font-weight: 700;
  font-size: 0.78rem;
}

/* NEW: Service Locations split layout */
.service-locations .split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  align-items: center;
}
.service-locations .split-media img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--card-border);
}

/* Bigger font ONLY for Service Locations text */
.service-locations .lead {
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
}
.service-locations .split-content p:not(.lead) {
  font-size: clamp(1.05rem, 2vw, 1.4rem);
  line-height: 1.7;
}

/* ========================= */
/* MOBILE-ONLY ENHANCEMENTS  */
/* ========================= */
@media (max-width: 640px) {
  .container {
    padding-inline: 0.9rem;
  }

  .brand .brand-mark {
    height: 44px;
  }
  /* .nav-icon {
    display: block;
    max-width: 35px;
  } */
  .nav {
    padding: 0.5rem 0;
  }
  /* .nav-bar {
    display: none;
  } */
  .nav-links {
    display: none;
    gap: 0.5rem;
  }
  .nav-links a {
    display: none;
    padding: 0.5rem 0.6rem;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
  }

  .nav-links-mobile a {
    padding: 0.5rem 0.6rem;
    min-height: 40px;
    font-size: 1.4vh;
    display: inline-flex;
    align-items: center;
  }

  /* Stack grids to a single column for easier reading */
  .grid {
    grid-template-columns: 1fr;
  }
  .list {
    grid-template-columns: 1fr;
  }

  /* Denser gallery for mobile without overloading */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
  .gallery-grid figcaption {
    font-size: 0.85rem;
  }

  /* Stack Service Area split */
  .service-locations .split {
    grid-template-columns: 1fr;
  }

  /* Full-width contact buttons */
  .contact-buttons a {
    flex: 1 1 100%;
    justify-content: center;
  }

  /* Add a little extra vertical rhythm */
  section {
    padding: calc(var(--space) + 6px) 0;
  }

  /* Prevent text from hugging edges on tiny screens */
  .hero p {
    padding-inline: 0.25rem;
  }
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .gallery-grid img:hover {
    transform: none;
  }
}
