/* RESET & BASE  -------------------------------*/
html {
  box-sizing: border-box;
  font-size: 16px;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  min-height: 100vh;
  font-family: 'Roboto', Arial, sans-serif;
  background: #F5F6F0;
  color: #24543C;
  line-height: 1.68;
  font-size: 1rem;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: #F5F6F0;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}
a {
  color: #4AA173;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #24543C;
  text-decoration: underline;
}
ul, ol {
  padding-left: 24px;
  margin-top: 8px;
  margin-bottom: 16px;
}
li {
  margin-bottom: 8px;
}
strong {
  font-weight: 600;
}

/* CSS VARIABLES (with fallback) */
:root {
  --color-primary: #24543C;
  --color-secondary: #F5F6F0;
  --color-accent: #69C59A;
  --color-accent2: #4AA173;
  --color-pastel-yellow: #FFFBE6;
  --color-pastel-pink: #FFE6F3;
  --color-pastel-blue: #E6F3FF;
  --color-pastel-green: #E9FBEA;
  --color-pastel-purple: #F0E6FF;
  --shadow-card: 0 2px 18px rgba(44,86,67,0.10);
  --radius-big: 32px;
  --radius: 20px;
  --radius-small: 10px;
}

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

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-secondary);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
  position: relative;
  padding: 32px 24px;
  flex: 1 1 280px;
  transition: transform 0.15s, box-shadow 0.18s;
}
.card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 6px 30px rgba(44,86,67,0.12);
}

.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 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 32px;
  background: var(--color-pastel-yellow);
  border-radius: 22px;
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
  min-width: 0;
  color: #222;
}
.testimonial-card p {
  font-size: 1.1rem;
  color: #222;
}
.testimonial-card cite {
  font-style: normal;
  font-size: 0.98rem;
  color: #555;
}

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

/* PASTEL GRADIENTS (subtle, not main bg)*/
.hero {
  background: linear-gradient(90deg, #E9FBEA 0%, #E6F3FF 100%);
  padding: 64px 0 44px 0;
  border-radius: 0 0 var(--radius-big) var(--radius-big);
  min-height: 320px;
}

/* TYPOGRAPHY ----------------------------*/
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin: 0 0 12px 0;
  color: #24543C;
  line-height: 1.14;
}
h1 {
  font-size: 2.8rem;
}
h2 {
  font-size: 2rem;
}
h3 {
  font-size: 1.38rem;
}
h4 {
  font-size: 1.16rem;
}
p,
li {
  font-size: 1.01rem;
  font-family: 'Roboto', Arial, sans-serif;
  color: #2a3830;
}
.cite, cite {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 0.96rem;
  color: #708370;
}

/* BUTTONS, CTA ---------------------------*/
.cta-btn, button, .mobile-menu-toggle, .mobile-menu-close {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent2, #4AA173);
  color: #fff;
  border: none;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 1.1rem;
  font-weight: 600;
  transition: background 0.17s, box-shadow 0.16s, transform 0.13s;
  box-shadow: 0 1px 7px rgba(44,86,67,0.07);
  cursor: pointer;
  outline: none;
  gap: 8px;
}
.cta-btn:hover, .cta-btn:focus {
  background: #24543C;
  color: #fff;
  box-shadow: 0 6px 18px rgba(68,186,159,0.12);
  transform: translateY(-2px) scale(1.015);
}
button:disabled, .cta-btn:disabled {
  opacity: 0.6;
  pointer-events: none;
}

/* NAVIGATION ---------------------------*/
header {
  background: #fff;
  box-shadow: 0 1px 12px rgba(36,84,60,0.06);
  padding: 0;
  z-index: 50;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 76px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1.07rem;
  padding: 8px 0 8px 0;
  color: #24543C;
  opacity: 0.93;
  position: relative;
  border-bottom: 2px solid transparent;
  transition: color 0.16s, border 0.23s;
}
.main-nav a:hover, .main-nav a:focus {
  color: #4AA173;
  border-bottom: 2px solid #69C59A;
}

/* MOBILE NAVIGATION -------------------------*/
.mobile-menu-toggle {
  position: fixed;
  top: 21px;
  right: 22px;
  z-index: 280;
  width: 48px;
  height: 48px;
  background: #E6F3FF;
  color: #24543C;
  border-radius: 100%;
  border: none;
  box-shadow: 0 1px 7px rgba(36,84,60,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.1rem;
  cursor: pointer;
  transition: background 0.16s, box-shadow 0.16s;
}
.mobile-menu-toggle:active {
  background: #FFE6F3;
}
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(233,251,234,0.96);
  transform: translateX(100%);
  transition: transform 0.36s cubic-bezier(.7,.2,.3,1); 
  z-index: 9999;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  top: 36px;
  right: 26px;
  font-size: 2.4rem;
  background: none;
  color: #24543C;
  border: none;
}
.mobile-nav {
  margin-top: 88px;
  background: #fff;
  border-radius: var(--radius-big) 0 0 var(--radius-big);
  padding: 48px 36px 32px 36px;
  box-shadow: -8px 0 44px rgba(44,86,67,0.09);
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 240px;
  max-width: 88vw;
}
.mobile-nav a {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1.19rem;
  color: #24543C;
  padding: 14px 0;
  border-radius: var(--radius);
  transition: background 0.16s, color 0.12s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #E6F3FF;
  color: #4AA173;
}

@media (max-width: 1020px) {
  .container {
    max-width: 800px;
    padding: 0 12px;
  }
}
@media (max-width: 900px) {
  header .container {
    flex-direction: column;
    gap: 18px;
    min-height: 60px;
  }
  .main-nav {
    gap: 14px;
  }
}

@media (max-width: 850px) {
  .main-nav, .cta-btn {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 851px) {
  .mobile-menu-toggle,
  .mobile-menu {
    display: none !important;
  }
}

/* FOOTER  ---------------------------------*/
footer {
  background: #fff;
  box-shadow: 0 -1px 12px rgba(36,84,60,0.07);
  margin-top: 62px;
  padding: 38px 0 44px 0;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 42px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-brand {
  display: flex;
  align-items: center;
  margin-bottom: 22px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.footer-nav a {
  font-size: 0.97rem;
  color: #24543C;
  opacity: 0.88;
  transition: color 0.12s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #69C59A;
}
.footer-contact {
  font-size: 0.97rem;
  color: #24543C;
  margin-top: 6px;
}
.footer-contact a {
  color: #4AA173;
  text-decoration: underline;
}

@media (max-width: 700px) {
  footer .container {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
}


/* BANNERS & CTA ------------------------------*/
.cta, .cta section {
  background: linear-gradient(90deg, #E6F3FF 0%, #FFE6F3 100%);
  border-radius: var(--radius);
}
.cta-btn {
  margin-top: 18px;
  display: inline-flex;
  min-width: 180px;
}

/* HERO SECTIONS  (already above) */
.hero p {
  font-size: 1.15rem;
  color: #24543C;
  opacity: 0.92;
  margin-bottom: 10px;
}

/* --------------------------------------------------------------------
   FEATURES / SERVICE / TEAM (SOFT PASTEL)
---------------------------------------------------------------------- */
.features ul, .services ul, .team ul, .values ul,
.about-short ul, .about-ecohouse ul, .about-solar ul, .smart-home-services ul {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.features ul li,
.services ul li,
.team ul li,
.values ul li, 
.about-short ul li,
.about-ecohouse ul li,
.about-solar ul li, .smart-home-services ul li {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #E9FBEA;
  border-radius: var(--radius-small);
  padding: 11px 17px;
  color: #24543C;
  font-size: 1rem;
  box-shadow: 0 1px 5px rgba(36,84,60,0.05);
  transition: background 0.16s;
}
.features ul li:hover {
  background: #E6F3FF;
}

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 28px;
}
.feature-grid > div {
  background: #E6F3FF;
  border-radius: 14px;
  padding: 21px 18px;
  min-width: 220px;
  font-size: 1.01rem;
  color: #24543C;
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 220px;
}

@media (max-width: 900px) {
  .feature-grid {
    flex-direction: column;
    gap: 18px;
  }
  .card-container, .content-grid {
    flex-direction: column;
    gap: 16px;
  }
}

/* LEGAL PAGES --------------------------------------*/
.legal {
  background: #F0E6FF;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 40px 24px;
}

/* CONFIRMATION PAGE --------------------------------*/
.confirmation .text-section {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* CONTACT PAGE -------------------------------------*/
.contact .text-section ul {
  margin: 0 0 0 0;
  gap: 13px;
  padding-left: 0;
}
.contact .text-section li {
  background: #E6F3FF;
  border-radius: var(--radius-small);
  padding: 11px 17px;
  display: flex;
  gap: 12px;
  align-items: center;
  color: #24543C;
  font-size: 1rem;
  margin: 0 0 6px 0;
}

/* UTILITIES ----------------------------------------*/
.hide {
  display: none !important;
}

/* MICRO-ANIMATIONS & STATES ------------------------*/
.card, .testimonial-card, .feature-grid > div, .services ul li {
  transition: box-shadow 0.15s, transform 0.13s;
}
.card:hover, .feature-grid > div:hover, .services ul li:hover {
  box-shadow: 0 6px 22px rgba(68,186,159,0.09);
  transform: translateY(-3px) scale(1.01);
}

.cta-btn:active, button:active {
  transform: scale(0.98) !important;
}

/* RESPONSIVE LAYOUTS & MEDIA QUERIES ---------------*/
@media (max-width: 768px) {
  .content-wrapper, .section {
    padding: 28px 4vw;
  }
  .feature-grid {
    flex-direction: column;
    gap: 14px;
  }
  .hero {
    padding: 48px 7px 34px 7px;
  }
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.45rem;
  }
  .testimonial-card {
    padding: 12px 12px;
  }
}

@media (max-width: 500px) {
  h1 {
    font-size: 1.44rem;
  }
  h2 {
    font-size: 1.08rem;
  }
  .card, .testimonial-card, .feature-grid > div {
    padding: 16px 8px;
  }
  .container {
    padding: 0 5px;
  }
}

/* FLEX LAYOUT ADJUSTMENTS ====================== */
.text-image-section {
  flex-direction: row;
}
@media(max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .main-nav {
    flex-direction: column;
    gap: 10px;
  }
}

/* SPACING & GAP ENFORCEMENT ------------------ */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  gap: 24px;
}
.card {
  margin-bottom: 20px;
}
.content-grid {
  gap: 20px;
}
.testimonial-card {
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
}
.feature-item {
  gap: 15px;
}

/* COOKIE CONSENT BANNER & MODAL =====================*/
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: #FFFFFF;
  border-top: 1.5px solid #69C59A;
  box-shadow: 0 -2px 20px rgba(36,84,60,0.07);
  padding: 18px 12px;
  display: flex;
  justify-content: center;
  z-index: 12000;
  animation: cookieBannerIn 0.6s cubic-bezier(.7,.8,0.7,1);
}
@keyframes cookieBannerIn {
  from{transform: translateY(100%); opacity:0;}
  to{transform: translateY(0); opacity:1;}
}
.cookie-banner-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: #FFE6F3;
  color: #24543C;
  padding: 22px 22px 18px 22px;
  border-radius: var(--radius);
  box-shadow: 0 2px 14px rgba(68,186,159,0.07);
  gap: 14px;
  max-width: 520px;
  width: 100%;
}
.cookie-banner-inner p {
  font-size: 1.05rem;
  margin-bottom: 5px;
}
.cookie-btn-group {
  display: flex;
  gap: 16px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.cookie-btn,
.cookie-settings-btn {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  background: #4AA173;
  color: #fff;
  border: none;
  outline: none;
  border-radius: var(--radius-small);
  padding: 10px 19px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.14s, box-shadow 0.14s;
  box-shadow: 0 1px 6px rgba(36,84,60,0.09);
}
.cookie-btn:hover, .cookie-btn:focus, .cookie-settings-btn:hover, .cookie-settings-btn:focus {
  background: #24543C;
}
.cookie-btn.reject {
  background: #FFE6F3;
  color: #24543C;
  border: 1.5px solid #69C59A;
}
.cookie-btn.reject:hover {
  background: #F0E6FF;
  color: #24543C;
}
.cookie-settings-btn {
  background: #E6F3FF;
  color: #24543C;
  border: 1.5px solid #69C59A;
}
.cookie-settings-btn:hover {
  background: #F0E6FF;
}

/* Cookie Preferences Modal */
.cookie-modal {
  position: fixed;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(36,84,60,0.15);
  z-index: 13000;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: all;
  animation: cookieFadeIn 0.33s;
}
@keyframes cookieFadeIn {
  from { opacity: 0 }
  to { opacity: 1 }
}
.cookie-modal-inner {
  background: #fff;
  color: #24543C;
  box-shadow: 0 8px 60px rgba(36,84,60,0.15);
  border-radius: var(--radius-big);
  padding: 38px 28px 28px 28px;
  width: 96vw;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  animation: modalPopIn 0.31s;
}
@keyframes modalPopIn {
  0%{ transform: translateY(40px) scale(.9); opacity:0;}
  100%{ transform:none; opacity:1;}
}
.cookie-modal-inner h2 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1.29rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #E6F3FF;
  border-radius: var(--radius-small);
  padding: 13px 12px;
}
.cookie-category.essential {
  opacity: 0.6;
}
.cookie-category label {
  font-size: 1.01rem;
  font-weight: 500;
  color: #24543C;
}
.cookie-switch {
  appearance: none;
  width: 44px;
  height: 24px;
  background: #E9FBEA;
  border-radius: 14px;
  position: relative;
  outline: none;
  transition: background 0.16s;
}
.cookie-switch:checked {
  background: #4AA173;
}
.cookie-switch::before {
  content: '';
  display: block;
  width: 22px;
  height: 22px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  left: 2px; top: 1px;
  box-shadow: 0 1px 5px rgba(83,196,148,0.13);
  transition: left 0.15s;
}
.cookie-switch:checked::before {
  left: 20px;
}
.cookie-modal-close {
  position: absolute;
  top: 14px;
  right: 24px;
  background: none;
  color: #24543C;
  border: none;
  font-size: 2rem;
  cursor: pointer;
}
.cookie-modal-actions {
  margin-top: 24px;
  display: flex;
  gap: 16px;
  justify-content: flex-end;
}

@media (max-width: 500px) {
  .cookie-banner-inner {
    padding: 10px 6px 10px 8px;
  }
  .cookie-modal-inner {
    padding: 18px 4vw;
  }
}

/* FOCUS OUTLINE FOR ACCESSIBILITY --------- */
:focus-visible {
  outline: 2.5px solid #FFA3C8;
  outline-offset: 2px;
}

/* SCROLLBAR Pastel (Not required but fits style)*/
body::-webkit-scrollbar {
  width: 10px;
  background: #E6F3FF;
}
body::-webkit-scrollbar-thumb {
  background: #D0EEDD;
  border-radius: 5px;
}

/******* END OF PASTEL FLEXBOX CSS ******/
