/* ============================================================
   Emerald Environmental Technologies — full stylesheet
   (responsive, with mobile footer matched to the reference image)
   ============================================================ */

:root {
  --green: #40ae49;          /* rgb(64,174,73) */
  --green-dark: #3ca145;     /* rgb(60,161,69) credit bar */
  --ink: #000;
  --text: #606060;           /* rgb(96,96,96) */
  --text-muted: rgb(96, 96, 96);
  --dark: #1f2622;
  --max: 980px;
  --site-width: 980px;
  --topbar-h: 41px;
  --font: Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding: 0;
  min-width: 0;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
p { margin: 0 0 16px; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 { margin: 0; }

.container {
  width: min(calc(100% - 32px), var(--max));
  margin-inline: auto;
  position: relative;
}

h1, h2 { font-family: var(--font); color: var(--ink); margin: 0 0 16px; }
h2 { font-size: 26px; font-weight: 700; line-height: 1.35; }
.green { color: var(--green); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 3px;
  text-decoration: none;
  max-width: 100%;
  transition: background-color .2s, border-color .2s, color .2s;
}
.btn--green {
  background: var(--green);
  border: 2px solid #000;
  color: #fff;
  font-family: var(--font);
  font-weight: 800;
  font-size: 18px;
}
.btn--green:hover { border-color: #fff; }

.btn--flyer {
  background: var(--green);
  border: 0;
  color: #fff;
  font-family: var(--font);
  font-weight: 400;
  font-size: 16px;
  padding: 14px 28px;
}
.btn--flyer svg { width: 20px; height: 20px; fill: currentColor; }
.btn--flyer:hover { background: #fff; color: var(--green); box-shadow: inset 0 0 0 1px var(--green); }

/* ===== Feature strip ===== */
.features { background: rgb(64, 174, 73); color: #fff; padding: 24px 0; }
.features__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.feature { display: flex; align-items: center; gap: 16px; }
.feature img { flex: none; width: 72px; height: 72px; object-fit: cover; }
.feature p { margin: 0; font-weight: 700; line-height: 1.6; }
.feature a { text-decoration: none; }
.feature a:hover { text-decoration: underline; }

/* ===== Hero ===== */
.hero {
  min-height: 412px;
  display: flex;
  align-items: center;
  background: #333 url("images/hero-bg.jpg") center / cover no-repeat;
  padding: 48px 0;
}
.hero__panel {
  max-width: 950px;
  background-color: #40ae498a;
  padding: 25px;
  border-radius: 5px;
}
.hero__panel p {
  font-family: var(--font);
  font-size: 26px;
  font-weight: 800;
  line-height: 1.3;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .6);
}

/* ===== Intro ===== */
.intro { padding: 48px 0; }
.intro__box { max-width: 850px; }
.intro h1 { color: var(--green); font-size: 30px; font-weight: 700; line-height: 1.2; }
.intro hr { border: 0; border-top: 2px solid var(--green); margin: 0 0 20px; }

/* ===== CTA band ===== */
.cta {
  min-height: 220px;
  display: flex;
  align-items: center;
  background: #2c3b30 url("images/cta-bg.jpg") center / cover no-repeat;
  padding: 40px 0;
  text-align: center;
}
.cta h2 {
  color: #fff;
  font-weight: 800;
  max-width: 720px;
  margin-inline: auto;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .6);
}

/* ===== Service ===== */
.service { padding: 56px 0; }
.service__grid {
  display: grid;
  grid-template-columns: minmax(0, 430px) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}
.service__grid img { width: 100%; object-fit: cover; }

/* ===== Testimonials ===== */
.testimonials { padding: 40px 0; }
.testimonial { max-width: 720px; margin: 0 auto; text-align: center; }
.testimonial__bg { max-width: 720px; margin: 0 auto; text-align: center; background: rgb(117 123 117 / 19%); }
.testimonial img { margin: 0 auto 12px; }
.testimonial blockquote { margin: 0 0 12px; font-size: 18px; font-weight: 400; line-height: 1.5; color: var(--ink); }
.testimonial figcaption { font-size: 12px; font-weight: 400; color: var(--green); }

.testimonials {
  background: #e8f5e9;
  padding: 60px 0 80px;
  text-align: center;
}
.testimonials__title {
  max-width: 780px;
  margin: 0 auto 50px;
  font-size: 28px;
  font-weight: 700;
  text-align: left;
}
.testimonial__card {
  background: rgba(64, 174, 73, 0.12);
  max-width: 780px;
  margin: 40px auto 0;
  padding: 50px 40px 30px;
  border-radius: 4px;
  position: relative;
  text-align: center;
}
.testimonial__icon {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
}
.testimonial__icon img { display: block; width: 80px; height: auto; }
.testimonial__quote { margin: 0 0 16px; font-size: 18px; line-height: 1.6; color: #1a1a1a; }
.testimonial__author { font-size: 14px; font-weight: 500; color: var(--green); }

#testi-container {
  background: rgba(64, 174, 73, 0.19);
  width: 100%;
  padding: 50px;
}
.testimonial__header {
  width: 50%;
  align-items: center;
  align-content: center;
  margin-right: auto;
  margin-left: auto;
}

/* ===== FAQ ===== */
.faq { padding: 40px 0 56px; }
.faq .container > div, .faq__box { padding: 32px; }
.faq h2 { font-weight: 800; }
.faq details { border-bottom: 1px solid #ccc; padding: 24px 0; }
.faq summary {
  cursor: pointer;
  font-size: 18px;
  font-weight: 400;
  color: var(--ink);
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 24px;
  height: 24px;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 8.5l7 7 7-7' fill='none' stroke='%23000' stroke-width='1'/%3E%3C/svg%3E");
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(180deg); }
.faq details p { margin: 16px 0 0; }

/* ===== Fixed top bar ===== */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--topbar-h);
  background: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-right: 108px;
  line-height: 19.2px;
}
.topbar-group { display: flex; align-items: center; gap: 6px; }
.topbar-label { color: #fff; }
.topbar-sep { color: #fff; padding: 0 4px; }
.topbar a { color: #000; }
.topbar svg { width: 16px; height: 16px; fill: #fff; flex-shrink: 0; }

/* ===== Header ===== */
.site-header {
  padding-top: var(--topbar-h);
  margin-top: 4px;
  background: #fff;
}
.site-header .container {
  min-height: 109px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  position: static;
  flex: 0 1 257px;
  min-width: 0;
  font-size: 24px;
  line-height: 1.2;
  color: #000;
}
.logo .accent { color: var(--green); }

.main-nav { position: static; width: auto; min-width: 0; }
.main-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 16px;
}
.main-nav li { margin: 0; }
.main-nav a {
  display: block;
  padding: 5px 0;
  font-size: 16px;
  line-height: 1.2em;
  color: #000;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color .08s linear, border-color .08s linear;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--green);
  border-bottom-color: var(--green);
}
.main-nav a[aria-current="page"] { font-weight: 700; }

/* ===== Footer ===== */
.site-footer { background: var(--green); color: #fff; font-size: 12px; line-height: 19.2px; }

.footer-main .container {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .9fr) minmax(0, 1fr) minmax(120px, .65fr);
  gap: 24px;
  padding: 43px 24px;
  min-height: 200px;
}
.footer-main strong { font-weight: 700; }
.footer-main .company { font-size: 14px; color: #000; }
.footer-main .hours { margin-top: 14px; }
.footer-main .col2 > * + * { margin-top: 8px; }
.footer-main .col2 .email-link { color: #000; text-decoration: underline; }
.footer-main .col2 .social { margin-top: 14px; display: block; width: 15px; height: 25px; }
.footer-main .col2 .social svg { width: 15px; height: 25px; fill: #f3f3f3; display: block; }
.footer-main .col3 { padding-top: 0; }
.footer-main .col3 img { display: block; width: 133px; height: 133px; object-fit: cover; margin-top: 12px; }
.footer-main .col4 img {
  display: block;
  width: 156px; height: 155px;
  object-fit: cover;
  border-radius: 50%;
}
.footer-credit { background: var(--green-dark); text-align: center; padding: 7px 0; }
.footer-credit a {
  font-family: var(--font);
  font-weight: 300;
  font-size: 14px;
  line-height: 1.4em;
  color: #fff;
  text-decoration: underline;
}

/* ===== Responsive: tablet ===== */
@media (max-width: 980px) {
  .topbar {
    padding: 8px 16px;
    height: auto;
    min-height: var(--topbar-h);
  }
  .site-header { margin-top: 0; }
  .site-header .container {
    min-height: 100px;
    padding-block: 16px;
  }
  .main-nav ul { gap: 8px 12px; }

  .footer-main .container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-main .col3 img,
  .footer-main .col4 img {
    max-width: 100%;
    height: auto;
  }

  #testi-container { padding: 32px; }
  .testimonial__header { width: min(100%, 780px); }
}

@media (max-width: 820px) {
  .features__grid,
  .service__grid { grid-template-columns: minmax(0, 1fr); }
  .features__grid { gap: 20px; }
  .service__grid { gap: 24px; }

  .site-header .container {
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    text-align: center;
  }
  .logo { flex: none; width: auto; max-width: 100%; }
  .main-nav { width: 100%; }
  .main-nav ul { justify-content: center; }

  .hero { min-height: 300px; padding: 36px 0; }
  .hero__panel { padding: 20px; }
  .hero__panel p { font-size: clamp(20px, 4vw, 26px); }

  .cta { min-height: 180px; padding: 32px 0; }
  .intro, .service { padding-block: 36px; }

  .faq .container > div, .faq__box { padding: 20px; }

  .testimonials { padding: 44px 0 56px; }
  .testimonials__title {
    font-size: clamp(22px, 3.5vw, 28px);
    margin-bottom: 36px;
  }
  .testimonial__card { padding: 44px 24px 28px; }
  #testi-container { padding: 24px; }
}

/* ===== Mobile slide-in navigation ===== */
.menu-toggle {
  display: none;
  width: 44px;
  height: 40px;
  padding: 8px;
  border: 0;
  background: transparent;
  cursor: pointer;
  flex: 0 0 44px;
}
.menu-toggle span {
  display: block;
  width: 25px;
  height: 2.5px;
  margin: 5px auto;
  border-radius: 2px;
  background: #000;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.menu-overlay.is-open { opacity: 1; visibility: visible; }

@media (max-width: 600px) {
  /* keep the contact bar visible on the page */
  .topbar {
    position: relative;
    top: auto; left: auto; right: auto;
    z-index: 1;
    height: auto;
    min-height: var(--topbar-h);
    padding: 8px 12px;
  }
  .topbar-group {
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 6px;
  }

  .site-header { margin-top: 0; padding-top: 0; position: relative; z-index: auto; }
  .site-header .container {
    min-height: 100px;
    padding-block: 16px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    text-align: left;
  }
  .logo {
    flex: 1 1 auto;
    width: auto;
    max-width: calc(100% - 60px);
    font-size: 21px;
    line-height: 1.25;
  }
  .menu-toggle {
    display: block;
    position: relative;
    z-index: 1202;
    flex: 0 0 44px;
    order: 2;
  }
  .menu-toggle[aria-expanded="true"] {
    position: fixed;
    top: 16px;
    right: 16px;
  }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

  .main-nav {
    display: block;
    position: fixed;
    top: 0; right: 0; bottom: 0; left: auto;
    z-index: 1201;
    height: 100vh;
    height: 100dvh;
    padding: 100px 24px 32px;
    margin: 0;
    overflow-y: auto;
    background: #fff;
    box-shadow: -8px 0 24px rgba(0, 0, 0, 0.12);
    transform: translateX(105%);
    visibility: hidden;
    transition: transform 0.3s ease, visibility 0.3s ease;
  }
  .main-nav.is-open {
    transform: translateX(0);
    visibility: visible;
  }
  .main-nav ul {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 0;
  }
  .main-nav li { display: block; width: 100%; }
  .main-nav a {
    display: block;
    padding: 16px 0;
    border: 0;
    font-size: 18px;
    line-height: 1.4;
    font-weight: 400;
    color: #000;
    white-space: normal;
  }
  .main-nav a:hover,
  .main-nav a:focus-visible,
  .main-nav a[aria-current="page"] {
    color: var(--green);
    border: 0;
    background: transparent;
  }
  .main-nav a[aria-current="page"] { font-weight: 400; }

  body.menu-open { overflow: hidden; }

  .features__grid,
  .service__grid { grid-template-columns: minmax(0, 1fr); }
  .features__grid { gap: 45px; }
  .service__grid { gap: 24px; }

  .hero { min-height: 260px; padding: 28px 0; }
  .hero__panel { padding: 16px; }
  .hero__panel p { font-size: 20px; }

  .intro, .service { padding-block: 28px; }
  .intro h1 { font-size: clamp(23px, 7vw, 30px); }

  .cta { min-height: 0; padding: 32px 0; }

  .faq { padding: 28px 0 36px; }
  .faq .container > div, .faq__box { padding: 16px; }
  .faq details { padding: 18px 0; }
  .faq summary { font-size: 16px; gap: 12px; }

  .testimonial__card { padding: 40px 16px 22px; }
  .testimonial__icon img { width: 64px; }
  .testimonial__quote,
  .testimonial blockquote { font-size: 16px; }
  #testi-container { padding: 18px 14px; }
}

/* ===== Mobile header: contact boxes like the reference ===== */
@media (max-width: 600px) {
  /* thin green strip at the very top */
  .topbar {
    position: relative;
    height: 24px;
    min-height: 24px;
    padding: 0;
    background: var(--green);
    display: block;
    overflow: hidden;
  }
  .topbar-group { display: none; }

  .site-header { margin: 0; padding: 0; background: #fff; }
  .site-header .container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 10px;
    row-gap: 14px;
    min-height: 0;
    padding: 10px 12px 14px;
  }
  /* phone box (left half) */
  .site-header .container::before {
    content: "☎ 01 9039202";
    grid-column: 1;
    grid-row: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    width: calc(100% / 2);
    height: 44px;
    padding: 0 6px;
    border-radius: 3px;
    background: var(--green);
    color: #fff;
    font-size: 16px;
    line-height: 1.2;
    white-space: nowrap;
  }
  /* email box (right half) */
  .site-header .container::after {
    content: "✉ emeraldinfo@yahoo.com";
    position: absolute;
    top: 10px;
    right: 12px;
    width: calc(100% / 2);
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border-radius: 3px;
    background: var(--green);
    color: #fff;
    font-size: clamp(9px, 2.8vw, 12px);
    line-height: 1.2;
    white-space: nowrap;
  }
  .logo {
    grid-column: 1;
    grid-row: 2;
    max-width: 100%;
    width: auto;
    font-size: x-large;
    line-height: 1.3;
    text-align: center;
  }
  .menu-toggle {
    grid-column: 2;
    grid-row: 2;
    justify-self: end;
    align-self: center;
    display: block;
  }
}

/* ============================================================
   ===== Footer on mobile — single centered column (like the
   reference image): company name, address, phone, email,
   hours, Facebook icon, Google-review text + QR code, seal.
   ============================================================ */
@media (max-width: 600px) {
  .site-footer { text-align: center; font-size: 18px;}

  .footer-main .container {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 0;
    padding: 32px 16px 28px;
    min-height: 0;
  }

  /* 1) company name — dark and bold */
  .footer-main .company {
    font-size: 15px;
    font-weight: 700;
    color: #000;
  }

  /* 2) address (col1) */
  .footer-main .col1 {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
  }
  .footer-main .hours { margin-top: 12px; }

  /* 3) phone + email + hours (col2) */
  .footer-main .col2 {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
  }
  .footer-main .col2 > * + * { margin-top: 6px; }
  .footer-main .col2 .email-link { color: #000; }
  .footer-main .col2 .hours { margin-top: 10px; }

  /* 4) Facebook icon */
  .footer-main .col2 .social { margin: 18px auto 0; }

  /* 5) Google-review text + QR code (col3) */
  .footer-main .col3 {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
  }
  .footer-main .col3 img {
    margin: 0 auto;
    width: 133px;
    height: 133px;
  }

  /* 6) circular seal (col4) */
  .footer-main .col4 { margin-top: 24px; }
  .footer-main .col4 img {
    margin: 0 auto;
    width: 132px;
    height: 132px;
    border-radius: 50%;
  }

  /* credit bar */
  .footer-credit { padding: 10px 12px; }
  .footer-credit a { font-size: 12px; }
}

/* ===== Accessibility: reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .menu-overlay,
  .main-nav,
  .menu-toggle span { transition: none; }
}
