/* ===========================================================
   A2Z Environmental LLC — site styles
   Built by CNY Webs. Design system: industrial safety / red brand.
   =========================================================== */

:root {
  /* Brand */
  --red:        #9E0C13;   /* primary brand red (header, accents) — deep, matches logo */
  --red-dark:   #7E0810;   /* buttons */
  --red-darker: #5F060C;   /* button hover */
  --ink:        #1A1A1A;   /* headings + strong text */
  --body:       #3F4247;   /* body copy */
  --muted:      #6B6F76;   /* secondary text */
  --slate:      #27313B;   /* footer */
  --slate-2:    #1C242D;   /* footer deep / bottom bar */
  --paper:      #FFFFFF;
  --mist:       #F4F5F6;   /* alternating section bg */
  --line:       #E4E6E8;   /* hairlines / borders */

  --font-display: 'Archivo', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  --maxw: 1180px;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(20,24,30,.10);
  --shadow-sm: 0 4px 14px rgba(20,24,30,.08);
  --section-y: clamp(3.5rem, 7vw, 6rem);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--body);
  background: var(--paper);
  line-height: 1.65;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--red-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { padding-left: 1.1rem; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.08;
  letter-spacing: -0.015em;
  font-weight: 800;
}

/* ---------- layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 1.25rem; }
.section   { padding-block: var(--section-y); }
.section--mist { background: var(--mist); }
.narrow { max-width: 820px; }

.eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .01em;
  color: var(--red);
  margin-bottom: .5rem;
}
.section-head { margin-bottom: 2.5rem; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); }
.section-head p { color: var(--muted); max-width: 60ch; margin-top: .6rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  padding: .85rem 1.6rem; border-radius: 6px; border: 2px solid transparent;
  cursor: pointer; transition: background .18s ease, color .18s ease, border-color .18s ease;
  text-decoration: none; line-height: 1;
}
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--red-dark); color: #fff; }
.btn--primary:hover { background: var(--red-darker); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn--ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn--outline { background: transparent; color: var(--red-dark); border-color: var(--red-dark); }
.btn--outline:hover { background: var(--red-dark); color: #fff; }

/* ===========================================================
   HEADER
   =========================================================== */
.topbar { background: #fff; border-bottom: 1px solid var(--line); font-size: .9rem; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 46px; }
.topbar a { color: var(--body); }
.topbar-left { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.topbar-left a { display: inline-flex; align-items: center; gap: .45rem; }
.topbar-left svg { width: 15px; height: 15px; color: var(--red); flex: none; }
.topbar-social { display: flex; align-items: center; gap: .9rem; }
.topbar-social a { color: var(--ink); display: inline-flex; }
.topbar-social svg { width: 16px; height: 16px; }

.nav { background: var(--red); position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 10px rgba(0,0,0,.12); }
.nav .container { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; min-height: 78px; }
/* logo is monochrome; force it solid white so it reads on the red bar
   (matches how the original site displayed it) */
.nav-logo img { height: 64px; width: auto; filter: brightness(0) invert(1); }
.nav-links { display: flex; align-items: center; gap: 1.6rem; list-style: none; padding: 0; margin: 0; }
.nav-links a {
  color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  text-transform: capitalize; padding: .4rem 0; position: relative; text-decoration: none;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: #fff; transform: scaleX(0); transform-origin: left; transition: transform .2s ease;
}
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-cta { display: flex; align-items: center; gap: .9rem; }
.nav-cta .btn { background: #fff; color: var(--red-dark); border-color: #fff; padding: .7rem 1.25rem; }
.nav-cta .btn:hover { background: rgba(255,255,255,.88); }

.nav-toggle {
  display: none; background: transparent; border: 0; cursor: pointer; padding: .4rem;
  color: #fff;
}
.nav-toggle svg { width: 30px; height: 30px; }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .nav-logo img { height: 50px; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0; background: var(--red);
    flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 1.25rem 1.25rem;
    box-shadow: var(--shadow); display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { border-top: 1px solid rgba(255,255,255,.18); }
  .nav-links a { display: block; padding: .85rem 0; }
  .nav-links a::after { display: none; }
  .nav-cta .btn-call-text { display: none; }
}

/* ===========================================================
   HERO
   =========================================================== */
.hero { position: relative; background: #111; color: #fff; overflow: hidden; display: flex; align-items: center; min-height: clamp(520px, 72vh, 720px); }
.hero > .container { width: 100%; }
.hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(8,8,8,.94) 0%, rgba(8,8,8,.74) 46%, rgba(8,8,8,.30) 78%, rgba(8,8,8,.22) 100%);
}
.hero-inner { position: relative; z-index: 2; padding-block: clamp(3rem, 8vw, 5rem); max-width: 680px; }
.hero h1 { color: #fff; font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 800; }
.hero p { margin-top: 1.1rem; font-size: 1.2rem; color: rgba(255,255,255,.88); max-width: 46ch; }
.hero-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .9rem; }

/* credential strip */
.cred { background: var(--slate); color: #fff; }
.cred .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; padding-block: 1.1rem; }
.cred-item { display: flex; align-items: center; gap: .6rem; font-family: var(--font-display); font-weight: 600; font-size: .98rem; }
.cred-item svg { width: 20px; height: 20px; color: #fff; flex: none; opacity: .9; }

/* ===========================================================
   SERVICES (cards)
   =========================================================== */
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
@media (max-width: 960px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .svc-grid { grid-template-columns: 1fr; } }

.svc-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; transition: box-shadow .2s ease, transform .2s ease;
}
.svc-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.svc-card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.svc-card-body { padding: 1.25rem 1.25rem 1.4rem; display: flex; flex-direction: column; flex: 1; border-top: 3px solid var(--red); }
.svc-card h3 { font-size: 1.22rem; margin-bottom: .6rem; }
.svc-card ul { color: var(--body); font-size: .96rem; margin: 0 0 1.1rem; padding-left: 1.05rem; }
.svc-card ul li { margin-bottom: .35rem; }
.svc-card .svc-more { margin-top: auto; font-family: var(--font-display); font-weight: 700; color: var(--red-dark); }

/* ===========================================================
   ABOUT (split)
   =========================================================== */
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split--rev { grid-template-columns: 1.1fr 1fr; }
@media (max-width: 860px) { .split, .split--rev { grid-template-columns: 1fr; } }
.split-media { position: relative; }
.split-media img { border-radius: var(--radius); width: 100%; object-fit: cover; }
.badge {
  position: absolute; left: -14px; bottom: -14px; width: 118px; height: 118px; border-radius: 50%;
  background: var(--red-dark); color: #fff; display: grid; place-content: center; text-align: center;
  font-family: var(--font-display); font-weight: 700; line-height: 1.15; padding: 1rem; box-shadow: var(--shadow);
}
.badge b { font-size: 1.7rem; display: block; }
.split-body h2 { font-size: clamp(1.8rem, 3.8vw, 2.6rem); margin-bottom: 1rem; }
.split-body p { margin-bottom: 1rem; }
.contact-inline { list-style: none; padding: 0; margin: 1.2rem 0 1.6rem; display: grid; gap: .55rem; }
.contact-inline li { display: flex; align-items: center; gap: .6rem; font-weight: 600; color: var(--ink); }
.contact-inline svg { width: 18px; height: 18px; color: var(--red); flex: none; }

/* ===========================================================
   GALLERY
   =========================================================== */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 760px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
.gallery-grid figure { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--mist); }
.gallery-grid img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; transition: transform .35s ease; }
.gallery-grid figure:hover img { transform: scale(1.04); }
.gallery-grid .wide { grid-column: span 2; }
@media (max-width: 760px) { .gallery-grid .wide { grid-column: span 2; } }

/* ===========================================================
   REVIEWS
   =========================================================== */
.reviews-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
@media (max-width: 760px) { .reviews-grid { grid-template-columns: 1fr; } }
.review {
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--red);
  border-radius: var(--radius); padding: 1.6rem 1.7rem;
}
.review .stars { color: #E8A800; letter-spacing: 2px; font-size: 1.05rem; margin-bottom: .7rem; }
.review p { color: var(--body); }
.review .who { margin-top: 1rem; font-family: var(--font-display); font-weight: 700; color: var(--ink); }
.review .where { color: var(--muted); font-size: .9rem; font-weight: 500; }

/* ===========================================================
   CTA band
   =========================================================== */
.cta-band { background: var(--red); color: #fff; }
.cta-band .container { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; padding-block: 2.6rem; }
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 3.4vw, 2.3rem); max-width: 22ch; }
.cta-band .btn { background: #fff; color: var(--red-dark); border-color: #fff; }
.cta-band .btn:hover { background: rgba(255,255,255,.9); }

/* ===========================================================
   PAGE HEADER (interior pages)
   =========================================================== */
.pagehead { background: var(--red); color: #fff; }
.pagehead .container { padding-block: clamp(2.4rem, 6vw, 4rem); }
.pagehead h1 { color: #fff; font-size: clamp(2rem, 5vw, 3.2rem); }
.pagehead p { color: rgba(255,255,255,.9); margin-top: .5rem; max-width: 60ch; }
.breadcrumb { font-size: .9rem; color: rgba(255,255,255,.8); margin-bottom: .6rem; font-weight: 600; }
.breadcrumb a { color: #fff; }

/* prose */
.prose h2 { font-size: 1.7rem; margin: 2rem 0 .8rem; }
.prose h3 { font-size: 1.3rem; margin: 1.6rem 0 .6rem; color: var(--red-dark); }
.prose p { margin-bottom: 1rem; }
.prose ul, .prose ol { margin: 0 0 1.1rem; }
.prose li { margin-bottom: .4rem; }
.prose strong { color: var(--ink); }

/* feature trio */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
@media (max-width: 760px) { .trio { grid-template-columns: 1fr; } }
.trio h3 { font-size: 1.25rem; margin-bottom: .5rem; color: var(--ink); }
.trio .n { color: var(--red); font-family: var(--font-display); font-weight: 800; }

/* service detail blocks */
.svc-detail { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem,4vw,3rem); align-items: center; margin-bottom: 3.5rem; }
.svc-detail:nth-child(even) .svc-detail-media { order: 2; }
@media (max-width: 820px){ .svc-detail { grid-template-columns: 1fr; } .svc-detail:nth-child(even) .svc-detail-media { order: 0; } }
.svc-detail-media img { border-radius: var(--radius); width: 100%; object-fit: cover; }

/* resource buttons row */
.resource-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; margin-top: 1rem; }
@media (max-width: 760px){ .resource-row { grid-template-columns: 1fr; } }
.resource-row h3 { font-size: 1.1rem; }

/* careers */
.jobs { display: grid; grid-template-columns: 1fr 1fr; gap: 1.8rem; }
@media (max-width: 820px){ .jobs { grid-template-columns: 1fr; } }
.job { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow-sm); }
.job h2 { font-size: 1.5rem; text-align: center; margin-bottom: 1.2rem; }
.job ul { color: var(--body); padding-left: 1.1rem; }
.job li { margin-bottom: .7rem; }
.job .btn { margin-top: 1.2rem; width: 100%; justify-content: center; }

/* FAQ */
.faq { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: 0; }
.faq summary {
  cursor: pointer; padding: 1.1rem 1.3rem; font-family: var(--font-display); font-weight: 700;
  color: var(--ink); font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem;
  background: #fff;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--red); font-size: 1.4rem; line-height: 1; flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq .faq-body { padding: 0 1.3rem 1.2rem; color: var(--body); }

/* contact */
.contact-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.4rem; }
@media (max-width: 760px){ .contact-cards { grid-template-columns: 1fr; } }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; text-align: center; box-shadow: var(--shadow-sm); }
.contact-card .ic { width: 52px; height: 52px; border-radius: 50%; background: var(--red); display: grid; place-content: center; margin: 0 auto 1rem; }
.contact-card .ic svg { width: 24px; height: 24px; color: #fff; }
.contact-card h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.contact-card a { font-weight: 600; word-break: break-word; }

/* ===========================================================
   FOOTER
   =========================================================== */
.footer { background: var(--slate); color: rgba(255,255,255,.82); }
.footer .container { padding-block: 3.2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 2rem; }
@media (max-width: 860px){ .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px){ .footer-grid { grid-template-columns: 1fr; } }
.footer img.flogo { height: 62px; margin-bottom: 1rem; filter: brightness(0) invert(1); }
.footer h4 { color: #fff; font-size: 1.1rem; margin-bottom: 1rem; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.footer a { color: rgba(255,255,255,.82); }
.footer a:hover { color: #fff; }
.footer .tagline { font-family: var(--font-display); font-weight: 700; color: #fff; margin: .5rem 0 1rem; }
.footer-social { display: flex; gap: .9rem; margin-top: .4rem; }
.footer-social a { color: #fff; }
.footer-social svg { width: 18px; height: 18px; }
.footer-contact li { display: flex; gap: .6rem; align-items: flex-start; margin-bottom: .6rem; }
.footer-contact svg { width: 17px; height: 17px; color: var(--red); flex: none; margin-top: .25rem; }
.footer-bottom { background: var(--slate-2); color: rgba(255,255,255,.7); font-size: .9rem; }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-block: 1.1rem; }
.footer-bottom a { color: #fff; }

/* ---------- utility ---------- */
.skip-link { position: absolute; left: -999px; top: 0; background: #fff; color: var(--ink); padding: .6rem 1rem; z-index: 100; }
.skip-link:focus { left: .5rem; top: .5rem; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }

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