/* CSS RESET & NORMALIZE ------------------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  font-size: 16px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  font-family: 'Roboto', Georgia, Times, 'Times New Roman', serif;
  background: #FAFAF9;
  color: #2D3633;
  min-height: 100vh;
  font-size: 1rem;
  letter-spacing: 0.01em;
}
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: #245C6E;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover,
a:focus {
  color: #217146;
  text-decoration: underline;
}
ul, ol {
  padding-left: 1.5em;
  margin-bottom: 20px;
}
li {
  margin-bottom: 8px;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}
:focus {
  outline: 2px solid #245C6E;
  outline-offset: 2px;
}

/* TYPOGRAPHY --------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Georgia, 'Times New Roman', Times, serif;
  font-weight: 700;
  color: #183340;
  line-height: 1.22;
  margin-bottom: 20px;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
  letter-spacing: 0.01em;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 14px;
}
h4, h5, h6 {
  font-size: 1.1rem;
}
p {
  font-size: 1.125rem;
  margin-bottom: 18px;
  color: #2D3633;
  font-family: 'Roboto', Georgia, Times, 'Times New Roman', serif;
}
strong {
  font-weight: 600;
}

/* CONTAINERS & LAYOUT ------------------------------------------------ */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #FFF;
  border-radius: 18px;
  box-shadow: 0 2px 16px 0 rgba(33, 39, 53, 0.06);
}

/* FLEXBOX - CARDS & GRIDS -------------------------------------------- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 2px 14px 0 rgba(33, 39, 53, 0.06);
  margin-bottom: 20px;
  padding: 32px 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover {
  box-shadow: 0 6px 32px 0 rgba(33, 39, 53, 0.10);
  transform: translateY(-4px) scale(1.01);
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.testimonial-card {
  background: #E3F1F8;
  color: #183340;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 2px 10px 0 rgba(33,39,53,0.06);
  margin-bottom: 20px;
  transition: box-shadow 0.15s, transform 0.14s;
}
.testimonial-card p {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: #183340;
  font-style: italic;
}
.testimonial-card strong {
  font-size: 1rem;
  color: #245C6E;
}
.testimonial-card:hover {
  box-shadow: 0 4px 28px 0 rgba(33, 39, 53, 0.12);
  transform: translateY(-2px);
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Feature/Service custom grids -------------------------------------- */
.feature-grid,
.feature-list,
.service-category-list,
.residential-services-list,
.commercial-services-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 18px;
}
.feature-grid > .feature,
.feature-list > li,
.service-category-list > li,
.residential-services-list > li,
.commercial-services-list > li {
  background: #FFF;
  border-radius: 13px;
  box-shadow: 0 2px 10px 0 rgba(33, 39, 53, 0.06);
  padding: 24px 20px 18px 20px;
  min-width: 220px;
  flex: 1 1 340px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.17s, transform 0.19s;
}
.feature-grid > .feature:hover {
  box-shadow: 0 8px 30px 0 rgba(33, 39, 53, 0.13);
  transform: translateY(-3px);
}
.feature-grid img,
.feature-list img {
  width: 40px;
  height: 40px;
  margin-bottom: 10px;
}

/* Cookie Consent Banner --------------------------------------------- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  background: #245C6E;
  color: #fff;
  box-shadow: 0 -2px 14px 0 rgba(33, 39, 53, 0.12);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px 16px;
  animation: fadeInUp 0.7s cubic-bezier(.4,0,.2,1);
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(36px); }
  to { opacity: 1; transform: translateY(0); }
}
.cookie-banner p {
  color: #fff;
  font-size: 1rem;
  margin-right: 10px;
}
.cookie-banner .cookie-buttons {
  display: flex;
  gap: 12px;
}
.cookie-banner button {
  font-family: 'Montserrat', Georgia, serif;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 7px;
  background: #E3F1F8;
  color: #245C6E;
  border: 1px solid #E3F1F8;
  box-shadow: none;
  cursor: pointer;
  font-size: 1rem;
  margin: 0;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.cookie-banner button:hover,
.cookie-banner button:focus {
  background: #5FB773;
  color: #fff;
}
.cookie-banner .cookie-settings {
  background: #fff;
  color: #245C6E;
  border: 1px solid #E3F1F8;
}
.cookie-banner .cookie-settings:hover {
  background: #245C6E;
  color: #fff;
}

/* Cookie Modal ------------------------------------------------------ */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 10000;
  background: rgba(33,39,53,.4);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  animation: fadeIn 0.25s cubic-bezier(.4,0,.2,1);
}
@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  color: #183340;
  border-radius: 15px;
  padding: 40px 28px 32px 28px;
  box-shadow: 0 8px 40px 0 rgba(33,39,53,0.2);
  min-width: 90vw;
  max-width: 390px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: popIn 0.28s cubic-bezier(.4,0,.2,1);
}
@keyframes popIn {
  0% { opacity: 0; transform: scale(.98); }
  100% { opacity: 1; transform: scale(1); }
}
.cookie-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.cookie-modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #245C6E;
  cursor: pointer;
  padding: 2px 8px;
  border-radius: 5px;
  transition: background 0.1s;
}
.cookie-modal-close:hover {
  background: #E3F1F8;
}
.cookie-category-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 1rem;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cookie-category label {
  font-weight: 600;
  font-family: 'Montserrat', Georgia, serif;
}
.cookie-toggle {
  accent-color: #217146;
  width: 18px;
  height: 18px;
}
.cookie-modal-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.cookie-modal-actions button {
  min-width: 120px;
  padding: 10px 0;
}

/* HEADER ----------------------------------------------------------- */
header {
  background: #fff;
  box-shadow: 0 1px 12px 0 rgba(33,39,53,0.06);
}
.header-top {
  background: #245C6E;
  color: #fff;
}
.logo {
  display: flex;
  align-items: center;
  padding: 14px 0;
  height: 48px;
}
.logo img {
  height: 38px;
  width: auto;
  display: block;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
.main-nav a {
  font-family: 'Montserrat', Georgia, serif;
  font-size: 1rem;
  color: #245C6E;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 8px 0;
  transition: color 0.16s;
  border-bottom: 2px solid transparent;
}
.main-nav a.button-primary {
  background: #5FB773;
  color: #fff;
  padding: 10px 20px;
  border-radius: 7px;
  margin-left: 20px;
  font-weight: 700;
  box-shadow: 0 6px 22px 0 rgba(94,183,115,0.07);
  border-bottom: none;
  transition: background 0.18s, color 0.18s, box-shadow 0.17s;
}
.main-nav a.button-primary:hover {
  background: #217146;
  color: #fff;
  box-shadow: 0 3px 12px 0 rgba(33, 113, 70, 0.14);
}
.main-nav a:hover,
.main-nav a:focus {
  color: #217146;
  border-bottom: 2px solid #217146;
}

/* Mobile Nav --------------------------------------------------------- */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: #245C6E;
  cursor: pointer;
  margin-left: 16px;
  border-radius: 6px;
  padding: 4px 10px;
  transition: background 0.18s;
  z-index: 300;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: #E3F1F8;
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: 100vw;
  background: #fff;
  z-index: 2000;
  transform: translateX(-100vw);
  transition: transform 0.35s cubic-bezier(.36,.2,.08,1.01);
  box-shadow: 3px 0 26px 0 rgba(33,39,53,0.11);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding-top: 20px;
  padding-left: 0;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  color: #245C6E;
  font-size: 2rem;
  border: none;
  align-self: flex-end;
  margin-right: 22px;
  margin-bottom: 20px;
  border-radius: 5px;
  padding: 2px 10px;
  transition: background 0.14s;
  cursor: pointer;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: #E3F1F8;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0 30px;
}
.mobile-nav a {
  font-family: 'Montserrat', Georgia, serif;
  font-size: 1.15rem;
  color: #245C6E;
  padding: 14px 0;
  border-bottom: 1px solid #E3F1F8;
  font-weight: 500;
  transition: color 0.17s, background 0.13s;
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: #E3F1F8;
  color: #217146;
  border-radius: 5px;
}

/* HERO SECTION ------------------------------------------------------- */
.hero {
  padding: 56px 0 56px 0;
  background: #E3F1F8;
  border-radius: 0 0 32px 32px;
  margin-bottom: 44px;
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 26px;
}
.hero h1 {
  color: #245C6E;
  font-size: 2.3rem;
  letter-spacing: 0.03em;
}
.hero p {
  font-size: 1.2rem;
  color: #245C6E;
}

/* Buttons ------------------------------------------------------------ */
.button-primary, .button-primary:visited {
  font-family: 'Montserrat', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 12px 26px;
  color: #fff;
  background: #5FB773;
  border-radius: 7px;
  transition: background 0.16s, color 0.16s, box-shadow 0.13s;
  box-shadow: 0 5px 18px 0 rgba(95,183,115,0.09);
  border: none;
  display: inline-block;
  margin-top: 12px;
  min-width: 180px;
  letter-spacing: 0.012em;
  text-align: center;
  cursor: pointer;
}
.button-primary:hover, .button-primary:focus {
  background: #217146;
  color: #fff;
  box-shadow: 0 6px 18px 0 rgba(33,113,70,0.17);
}

.cta {
  background: #245C6E;
  color: #fff;
  border-radius: 18px;
}
.cta h2 {
  color: #fff;
}
.cta p {
  color: #E3F1F8;
}

/* Pricing Table ------------------------------------------------------ */
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  box-shadow: 0 2px 12px 0 rgba(33,39,53,0.08);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 32px;
  font-size: 1rem;
}
.pricing-table th,
.pricing-table td {
  border: 1px solid #E3F1F8;
  padding: 16px 12px;
  text-align: left;
}
.pricing-table th {
  background: #E3F1F8;
  font-family: 'Montserrat', Georgia, serif;
  font-weight: 700;
  color: #245C6E;
}
.pricing-table tbody tr:nth-child(even) {
  background: #F8FCFE;
}

/* FAQ --------------------------------------------------------------- */
.faq {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.faq-item {
  background: #fff;
  border-radius: 10px;
  padding: 22px 18px;
  box-shadow: 0 2px 8px 0 rgba(33,39,53,0.06);
}
.faq-item h3 {
  font-size: 1.1rem;
  color: #245C6E;
}

/* Footer ------------------------------------------------------------ */
footer {
  background: #245C6E;
  color: #fff;
  padding: 56px 0 0 0;
  border-top-left-radius: 42px;
  border-top-right-radius: 42px;
  margin-top: 70px;
}
.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 30px;
}
.logo-footer {
  display: flex;
  align-items: center;
}
.logo-footer img {
  height: 32px;
  margin-bottom: 18px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-nav a {
  color: #E3F1F8;
  font-family: 'Montserrat', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 0;
  margin: 0;
}
.footer-nav a:hover,
.footer-nav a:focus {
  color: #5FB773;
}
.footer-address,
.footer-contact,
.footer-hours {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  color: #E3F1F8;
  margin-bottom: 14px;
}
.footer-address img,
.footer-contact img,
.footer-hours img {
  width: 20px;
  height: 20px;
  margin-left: 0;
}

/* Misc: Lists in About/Team/Quality --------------------------------- */
.team-roles,
.quality-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.quality-list img {
  width: 22px;
  height: 22px;
  margin-right: 8px;
  vertical-align: middle;
}
.trust-seals {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.trust-seals img {
  width: 38px;
  height: 38px;
}
.trust-seals span {
  color: #245C6E;
  font-weight: bold;
  font-family: 'Montserrat', Georgia, serif;
  font-size: 1rem;
}

.guarantee-summary {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #E3F1F8;
  color: #245C6E;
  border-radius: 10px;
  padding: 20px 18px;
  margin-top: 24px;
  font-size: 1.07rem;
}
.guarantee-summary img {
  width: 32px;
  height: 32px;
}

/* Success Message --------------------------------------------------- */
.success-message {
  background: #E3F1F8;
  color: #245C6E;
  padding: 18px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 1.11rem;
}
.next-steps {
  margin-bottom: 24px;
}
.next-steps ul {
  margin-bottom: 10px;
}
.contact-thank-info {
  font-size: 1rem;
  color: #245C6E;
  background: #F8FCFE;
  padding: 10px 14px;
  border-radius: 7px;
  margin-bottom: 18px;
}

/* Contact section blocks -------------------------------------------- */
.contact-blocks {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  margin-bottom: 24px;
}
.contact-blocks > div {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px 0 rgba(33,39,53,0.06);
  padding: 14px 18px;
  min-width: 170px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.cta-text p {
  color: #245C6E;
  font-size: 1.09rem;
}

/* SLIDER/Tabs for Testimonials (basic stack for now) ---------------- */
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

/* Animations -------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .button-primary,
  .main-nav a,
  .card,
  .feature,
  .testimonial-card {
    transition: box-shadow 0.18s, background 0.16s, color 0.16s, transform 0.13s, border-radius 0.15s;
  }
}

/* MEDIA QUERIES - RESPONSIVENESS ------------------------------------ */
@media (max-width: 1100px) {
  .footer-content {
    flex-wrap: wrap;
    gap: 26px;
  }
}
@media (max-width: 900px) {
  .container {
    max-width: 99vw;
    padding: 0 10px;
  }
}
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  .container {
    padding: 0 8px;
  }
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .footer-content {
    flex-direction: column;
    gap: 26px;
    padding-bottom: 20px;
    align-items: flex-start;
  }
  .card-container,
  .testimonial-slider,
  .feature-grid,
  .feature-list,
  .service-category-list,
  .residential-services-list,
  .commercial-services-list,
  .work-process-steps,
  .section {
    flex-direction: column;
    gap: 20px;
  }
  .hero {
    padding: 34px 0 32px 0;
    border-radius: 0 0 20px 20px;
    margin-bottom: 18px;
  }
  .pricing-table th, .pricing-table td {
    font-size: 0.95rem;
    padding: 10px 6px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 14px;
  }
  .contact-blocks {
    flex-direction: column;
    gap: 13px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
}
@media (max-width: 540px) {
  html { font-size: 14px; }
  body { font-size: 1rem; }
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.23rem; }
  .section {
    margin-bottom: 32px;
    padding: 18px 2px;
  }
  .testimonial-card {
    padding: 9px;
  }
  .cookie-modal {
    min-width: 98vw;
    max-width: 98vw;
    padding: 16px 6px 14px 6px;
  }
}

/* Spacing for min 20px between all cards/sections -------------------- */
.section + .section,
.section + .cta,
.section + footer,
.cta + .section {
  margin-top: 20px;
}
.card + .card,
.testimonial-card + .testimonial-card,
.faq-item + .faq-item {
  margin-top: 20px;
}

/* Utility ----------------------------------------------------------- */
.text-center { text-align: center; }
.mt-2 { margin-top: 20px !important; }
.mt-4 { margin-top: 40px !important; }

/* Accessibility ----------------------------------------------------- */
@media (prefers-contrast: more) {
  .button-primary,
  .main-nav a,
  .footer-nav a,
  .cookie-banner {
    text-shadow: 0 0 3px #fff;
    border-width: 2px !important;
  }
}

/* END OF STYLE ------------------------------------------------------ */
