/* === CSS RESET & BASE NORMALIZATION === */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}

main, section, article, aside, nav, footer, header {
  display: block;
}
html {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  background-color: #F5F7FA;
  color: #1F333F;
  font-size: 16px;
  scroll-behavior: smooth;
}
body {
  line-height: 1.65;
  min-height: 100vh;
  background: #F5F7FA;
}
img {
  max-width: 100%;
  vertical-align: middle;
  object-fit: contain;
}
a {
  color: #19527B;
  text-decoration: none;
  transition: color 0.25s;
  word-break: break-word;
}
a:hover, a:focus {
  color: #4BB88B;
  outline: none;
}
ul, ol {
  margin-left: 24px;
  margin-bottom: 16px;
}
li {
  margin-bottom: 8px;
}
strong {
  font-weight: bold;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #19527B;
  line-height: 1.15;
}
h1 {font-size: 2.5rem; margin-bottom: 24px;}
h2 {font-size: 2rem; margin-bottom: 18px;}
h3 {font-size: 1.25rem; margin-bottom: 12px;}
h4, h5, h6 {font-size: 1.1rem;}
p {
  font-size: 1rem;
  margin-bottom: 16px;
  color: #222F38;
}
blockquote {
  margin: 0 0 10px 0;
  padding: 0;
  font-style: italic;
  color: #19527B;
}

/* === LAYOUT: CONTAINERS, SECTIONS, SPACING === */
.container {
  width: 100%;
  max-width: 1080px;
  padding: 0 20px;
  margin: 0 auto;
}
.section {  /* mandatory spacing */
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  gap: 20px;
}

/* ============= FLEXBOX PATTERNS ============= */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 4px 24px rgba(25, 82, 123, 0.07);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap:16px;
}
.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;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #F5F7FA;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(25,82,123,0.08);
  margin-bottom: 20px; /* CRITICAL - add spacing between cards */
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  flex: 1 1 250px;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 2px 12px rgba(25, 82, 123, 0.08);
  padding: 28px 22px 24px 22px;
  min-width: 210px;
  margin-bottom: 20px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.feature-item img {
  width: 46px;
  height: 46px;
  margin-bottom: 6px;
}
.feature-item:hover, .feature-item:focus {
  box-shadow: 0 6px 24px rgba(76, 184, 139, 0.13);
  transform: translateY(-3px) scale(1.02);
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 8px;
  justify-content: flex-start;
}

/* ============ BUTTONS & CTA ============ */
.cta-btn {
  display: inline-block;
  background: linear-gradient(90deg, #19527B 50%, #4BB88B 100%);
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1.15rem;
  border: none;
  border-radius: 28px;
  padding: 15px 36px;
  box-shadow: 0 2px 10px rgba(25,82,123,0.10);
  letter-spacing: 0.02em;
  margin: 12px 0 0 0;
  cursor: pointer;
  transition: background 0.25s, box-shadow 0.18s, transform 0.18s;
}
.cta-btn:hover, .cta-btn:focus {
  background: linear-gradient(90deg, #4BB88B 30%, #19527B 90%);
  color: #fff;
  box-shadow: 0 8px 24px rgba(76,184,139,0.18);
  transform: translateY(-2px) scale(1.04);
  outline: none;
}

/* ================= HEADER/NAVIGATION ================ */
header {
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 12px rgba(25,82,123,0.06);
  padding: 0 20px;
  position: relative;
  z-index: 101;
  display: flex;
  align-items: center;
}
header > a {
  margin: 12px 15px 12px 0;
  display: flex;
  align-items: center;
}
header img[alt="EchoClean"] {
  height: 48px;
  width: auto;
}
header nav {
  display: flex;
  gap: 24px;
  flex: 1 1 auto;
  align-items: center;
}
header nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: #19527B;
  font-weight: 500;
  padding: 7px 12px;
  border-radius: 6px;
  transition: background 0.16s, color 0.18s;
}
header nav a:hover, header nav a:focus {
  background: #4BB88B;
  color: #fff;
  outline: none;
}
header .cta-btn {
  margin-left: 18px;
}

/* Burger menu button */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.1rem;
  cursor: pointer;
  color: #19527B;
  margin-left: 20px;
  z-index: 202;
  transition: color 0.2s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  color: #4BB88B;
  outline: none;
}

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  box-shadow: 0 4px 32px rgba(25,82,123,0.15);
  transform: translateX(-100%);
  transition: transform 0.33s cubic-bezier(0.5,0,0.2,1);
  z-index: 204;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 36px 32px 32px 28px;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #19527B;
  font-size: 2.1rem;
  position: absolute;
  top: 18px;
  right: 28px;
  cursor: pointer;
  z-index: 207;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #4BB88B;
  outline: none;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 48px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.28rem;
  color: #19527B;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 14px 0 14px 8px;
  border-radius: 8px;
  transition: background 0.17s, color 0.14s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #4BB88B;
  color: #fff;
  outline:none;
}

/* ===== HERO, CTAs, Page Section Gradients ===== */
section {
  width: 100%;
  margin-bottom: 60px;
  padding: 40px 0;
  position: relative;
  background: none;
}
section:first-child {
  background: linear-gradient(90deg, #F5F7FA 70%, #4BB88B 250%);
  border-bottom-left-radius: 26px;
  border-bottom-right-radius: 26px;
}

/* ========== TESTIMONIALS =========== */
.testimonial-card {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 4px 24px rgba(25,82,123,0.07);
  padding: 28px 26px;
  margin-bottom: 20px;
  color: #19527B;
  font-size: 1rem;
  font-style: italic;
  position: relative;
  transition: box-shadow 0.2s;
}
.testimonial-card strong {
  color: #4BB88B;
  font-style: normal;
  font-size: 0.98rem;
}
.testimonial-card:hover {
  box-shadow: 0 7px 34px rgba(25,82,123,0.13);
}

/* ========== TABLES =========== */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  box-shadow: 0 2px 10px rgba(89, 181, 146, 0.10);
  border-radius: 12px;
  margin: 26px 0;
  overflow: hidden;
}
thead tr {
  background: #19527B;
}
th, td {
  text-align: left;
  padding: 14px 18px;
  color: #1f333f;
  font-size: 1rem;
}
th {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
}
tbody tr {
  border-top: 1.5px solid #F5F7FA;
}
tbody tr:nth-child(even) {
  background: #F5F7FA;
}

/* ========== FOOTER =========== */
footer {
  width: 100%;
  background: #19527B;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: center;
  padding: 44px 0 26px 0;
  font-size: 1rem;
  margin-top: 80px;
  box-shadow: 0 -2px 16px rgba(25,82,123,0.08);
}
footer > div {
  margin-bottom: 12px;
}
footer img[alt="EchoClean"] {
  height: 38px;
  width: auto;
}
footer nav {
  display: flex;
  gap: 18px;
  margin-bottom: 8px;
}
footer nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  opacity: 0.92;
  font-weight: 500;
  transition: color 0.18s;
}
footer nav a:hover, footer nav a:focus {
  color: #4BB88B;
  text-decoration: underline;
  outline: none;
}
footer address {
  font-style: normal;
  font-size: 1rem;
  color: #F5F7FA;
  opacity: 0.97;
  text-align: center;
  line-height: 1.6;
}

/* ========== FORMS =========== */
input, textarea, select {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  border: 1.5px solid #19527B;
  border-radius: 8px;
  padding: 11px 15px;
  margin-bottom: 12px;
  background: #fff;
  color: #1f333f;
  transition: border 0.18s, box-shadow 0.18s;
}
input:focus, textarea:focus, select:focus {
  border-color: #4BB88B;
  box-shadow: 0 2px 8px rgba(76, 184, 139, 0.13);
  outline: none;
}
label {
  font-size: 1rem;
  font-weight: 600;
  color: #19527B;
  margin-bottom:6px;
}

/* ========== COOKIE CONSENT BANNER ============== */
.cookie-consent-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 99998;
  width: 100%;
  max-width: 100vw;
  background: #19527B;
  color: #fff;
  font-size: 1rem;
  padding: 20px 14px 20px 32px;
  box-shadow: 0 -2px 28px rgba(0,30,45,0.11);
  display: flex;
  flex-direction: row;
  gap: 32px;
  align-items: center;
  justify-content: space-between;
  transition: transform 0.24s cubic-bezier(0.8,0,0.3,1);
}
.cookie-banner-text {
  max-width: 680px;
  font-size: 1rem;
}
.cookie-banner-btns {
  display: flex;
  gap: 15px;
  align-items: center;
}
.cookie-btn {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 9px 22px;
  border-radius: 22px;
  border: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  margin-left: 0;
}
.cookie-btn.accept {
  background: #4BB88B;
  color: #fff;
}
.cookie-btn.reject {
  background: #F5F7FA;
  color: #19527B;
  border: 1.6px solid #4BB88B;
}
.cookie-btn.settings {
  background: transparent;
  color: #fff;
  border: 1.6px solid #fff;
}
.cookie-btn:hover, .cookie-btn:focus {
  filter: brightness(0.93);
  outline: none;
  box-shadow: 0 2px 10px rgba(76,184,139,0.10);
}
.cookie-modal-backdrop {
  display: none;
  position: fixed;
  z-index: 99999;
  left: 0; top: 0; right:0; bottom:0;
  background: rgba(25, 82, 123, 0.37);
}
.cookie-modal-backdrop.active {
  display: block;
}
.cookie-modal {
  position: fixed;
  left: 50%; top: 50%;
  transform: translate(-50%,-50%) scale(0.96);
  z-index: 100001;
  background: #fff;
  color: #19527B;
  border-radius: 14px;
  box-shadow: 0 6px 38px rgba(25, 82, 123, 0.20);
  max-width: 96vw;
  width: 420px;
  padding: 34px 26px 30px 26px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.23s, transform 0.27s;
}
.cookie-modal.active {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%,-50%) scale(1);
}
.cookie-modal h2 {
  font-size: 1.35rem;
  margin-bottom: 18px;
  color: #19527B;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  gap: 10px;
}
.cookie-modal label {
  font-size: 1rem;
  font-weight: 500;
  margin: 0;
  color: #19527B;
}
.cookie-modal input[type="checkbox"] {
  accent-color: #4BB88B;
  width: 18px;
  height: 18px;
}
.cookie-modal .cookie-essential {
  opacity: 0.62;
  font-style: italic;
}
.cookie-modal .cookie-modal-buttons {
  display: flex;
  gap: 14px;
  margin-top: 22px;
}
.cookie-modal .cookie-btn {
  min-width: 94px;
}
.cookie-modal .close-modal {
  position: absolute;
  top: 18px;
  right: 22px;
  background: none;
  color: #19527B;
  border: none;
  font-size: 1.22rem;
  font-weight: 700;
  cursor: pointer;
}
.cookie-modal .close-modal:hover { color: #4BB88B; }

/* ========== MEDIA QUERIES: RESPONSIVE DESIGN ============ */
@media (max-width: 1080px) {
  .container { max-width: 98vw; }
}
@media (max-width: 900px) {
  .feature-grid {
    gap: 16px;
    flex-wrap: wrap;
  }
}
@media (max-width: 768px) {
  html { font-size: 15px; }
  header nav {
    display: none;
  }
  header .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  main, .container, .section {
    padding-left: 0;
    padding-right: 0;
  }
}
@media (max-width: 600px) {
  .container {
    padding: 0 6px;
  }
  .section {
    padding: 28px 0 24px 0;
    margin-bottom: 36px;
  }
  .feature-item {
    min-width: 163px;
    padding: 18px 10px 15px 12px;
  }
  .feature-grid {
    gap: 10px;
  }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.3rem; }
  .testimonial-card {
    padding: 18px 9px;
  }
  .cookie-consent-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 22px 7px 16px 7px;
    gap: 16px;
  }
}
@media (max-width: 500px) {
  header {
    flex-direction: row;
    flex-wrap: wrap;
    padding: 7px 6px;
    min-height: 54px;
  }
  footer {
    padding: 30px 0 16px 0;
    font-size: 0.98rem;
  }
  section {
    padding: 18px 0 10px 0;
  }
}

/* Flexbox direction switches */
@media (max-width: 900px) {
  .feature-grid, .card-container, .content-grid { flex-direction: column; }
  .feature-item { width: 100%; }
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
}

/* ================== UTILITIES ==================== */
.gap8 { gap:8px !important; } .gap16 { gap:16px !important; } .gap24 { gap:24px !important; }
.mt8 { margin-top:8px !important; } .mt16 { margin-top:16px !important; } .mb20 { margin-bottom:20px !important; }
.d-flex { display:flex !important; }
.align-center { align-items:center !important; }
.justify-between { justify-content: space-between !important; }

/* ================== VISUAL EFFECTS/ANIMATIONS =============== */
.fade-in {
  opacity: 0;
  animation: fade-in 1s 0.13s forwards;
}
@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ============== ACCENT COLOR/SECONDARY BGs ============== */
.bg-primary {
  background: #19527B !important;
  color: #fff !important;
}
.bg-accent {
  background: #4BB88B !important;
  color: #fff !important;
}
.bg-grey {
  background: #F5F7FA !important;
}

/* ========== SCROLLBAR STYLES (MODERN BROWSERS) ========== */
::-webkit-scrollbar { width:8px; background:#f3f5f7; }
::-webkit-scrollbar-thumb { background:#c4dad9; border-radius:7px; }

/* =================== PRINT ================ */
@media print {
  header, footer, .mobile-menu, .cookie-consent-banner { display: none !important; }
}
