/* ===== CSS RESET & NORMALIZE ===== */
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: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html { line-height: 1.15; -webkit-text-size-adjust: 100%; }
body {
  background: #F6F8FC;
  color: #22313F;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 16px;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #164370;
}
h1 { font-size: 2.75rem; line-height: 1.15; margin-bottom: 24px; }
h2 { font-size: 2rem; line-height: 1.2; margin-bottom: 20px; }
h3 { font-size: 1.3rem; line-height: 1.3; margin-bottom: 14px; }
h4, h5, h6 { font-size: 1.1rem; }
p, ul, ol, li { color: #22313F; font-size: 1rem; line-height: 1.7; }
p { margin-bottom: 18px; }
ul, ol { margin-bottom: 18px; margin-left: 1.3em; }
li { margin-bottom: 0.5em; }
a { color: #164370; text-decoration: none; transition: color 0.2s; }
a:hover, a:focus { color: #24A87B; text-decoration: underline; }
img { max-width: 100%; display: block; border-radius: 6px; }
strong, b { font-weight: 700; }

/* ===== BASE STRUCTURE ===== */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 18px;
  box-sizing: border-box;
}
.content-wrapper {
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
}

/* ===== HEADER & NAVIGATION ===== */
header {
  background: #fff;
  border-bottom: 2px solid #164370;
  position: sticky;
  top: 0;
  z-index: 1000;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  min-height: 76px;
}
header img[alt="Ecos FSPALA Design"] {
  height: 40px;
  margin-right: 34px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  padding: 8px 0;
  color: #164370;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 1.1px;
  transition: color 0.25s;
}
.main-nav a:hover,
.main-nav a:focus {
  color: #24A87B;
}
.cta-button {
  background: #24A87B;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.02rem;
  font-weight: 700;
  padding: 11px 30px;
  border: none;
  border-radius: 28px;
  box-shadow: 0 3px 16px 0 rgba(36, 168, 123, 0.09);
  cursor: pointer;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-left: 20px;
  outline: none;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
  display: inline-block;
}
.cta-button.secondary {
  background: #164370;
  color: #fff;
}
.cta-button:hover, .cta-button:focus {
  background: #164370;
  color: #fff;
  box-shadow: 0 6px 24px rgba(22,67,112,0.10);
}

/* Hide mobile menu toggle on desktop, show nav */
.mobile-menu-toggle {
  display: none;
}
.mobile-menu {
  display: none;
}

/* ===== HERO SECTIONS ===== */
.hero {
  background: #F6F8FC url('../assets/bg-hero-geometric.svg') top right no-repeat;
  min-height: 330px;
  display: flex;
  align-items: center;
  margin-bottom: 60px;
  padding: 40px 0 0 0;
}
.hero .content-wrapper {
  gap: 20px;
  align-items: flex-start;
  justify-content: center;
}
.hero h1 {
  font-size: 2.9rem;
  line-height: 1.14;
  color: #164370;
  letter-spacing: 0.5px;
}
.hero p {
  font-size: 1.17rem;
  color: #22313F;
  margin-bottom: 28px;
}

/* ===== SECTION, LAYOUT, CARDS ===== */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}
section:last-child {
  margin-bottom: 0;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 9px;
  box-shadow: 0 3px 16px 0 rgba(22,67,112,0.06);
  padding: 26px 22px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

/* ===== FLEX GRIDS ===== */
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.content-grid > * {
  flex: 1 1 260px;
  min-width: 220px;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.text-image-section > * {
  flex: 1 1 340px;
}

.feature-grid, .service-grid, .service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.feature-grid > .feature-item,
.service-grid > .service-item,
.service-list > .service-item {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 5px 16px 0 rgba(22,67,112,0.05);
  padding: 28px 20px 22px 20px;
  position: relative;
  flex: 1 1 220px;
  min-width: 210px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  transition: box-shadow 0.18s, transform 0.18s;
  margin-bottom: 20px;
}
.feature-item img,
.service-item img {
  height: 45px;
  width: 45px;
  object-fit: contain;
  background: #eaf0f7;
  padding: 8px;
  border-radius: 12px;
  margin-bottom: 12px;
}
.feature-item:hover, .service-item:hover {
  box-shadow: 0 10px 26px 0 rgba(36,168,123,0.12);
  transform: translateY(-4px) scale(1.03);
  z-index: 2;
}

/* ===== FEATURE/USP/BENEFITS LISTS ===== */
.benefits-list, .usp-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 22px 0 0 0;
  padding: 0 0 0 18px;
}
.features {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

/* ===== TESTIMONIALS ===== */
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  padding: 24px 0 0 0;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 32px 0 rgba(22,67,112,0.06);
  padding: 20px 28px;
  min-width: 260px;
  max-width: 430px;
  margin-bottom: 20px;
  flex: 1 1 280px;
  border-left: 5px solid #24A87B;
  font-style: italic;
  transition: box-shadow 0.17s;
}
.testimonial-card:hover {
  box-shadow: 0 16px 48px 0 rgba(36,168,123,0.13);
}
.testimonial-card p {
  font-size: 1.05rem;
  color: #22313F;
  margin-bottom: 8px;
}
.testimonial-card .client {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.98rem;
  color: #164370;
  margin-top: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.testimonials > .container > .content-wrapper > .testimonial-card {
  margin-bottom: 24px;
}

.client-logos {
  display: flex;
  align-items: center;
  gap: 32px;
  margin: 26px 0 0 0;
}

/* ===== CONTACT DETAILS ===== */
.contact-details, .contact-info {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  margin-bottom: 24px;
}
.contact-details img, .contact-info img {
  width: 32px;
  height: 32px;
  margin-right: 10px;
  background: #eaf0f7;
  border-radius: 7px;
  padding: 4px;
}
.contact-details p, .contact-info p {
  margin-bottom: 0;
  display: flex;
  align-items: center;
  font-size: 1.03rem;
  min-width: 215px;
}
.directions {
  margin-top: 14px;
}

/* ===== LEGAL SECTIONS ===== */
.legal {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 18px 0 rgba(22,67,112,0.03);
  margin-bottom: 60px;
  padding: 38px 24px;
}
section.legal:last-child {
  margin-bottom: 0;
}

/* ===== CTA SECTIONS ===== */
.cta {
  background: #164370;
  border-radius: 16px;
  color: #fff;
  text-align: center;
  margin-bottom: 60px;
  padding: 38px 24px;
}
.cta h2,
.cta p {
  color: #fff;
}
.cta .cta-button {
  background: #24A87B;
  color: #fff;
  margin: 38px auto 0 auto;
  box-shadow: 0 3px 16px 0 rgba(36,168,123,0.14);
}

/* ===== FOOTER ===== */
footer {
  background: #164370;
  color: #fff;
  padding: 32px 0 12px 0;
  border-top: 4px solid #24A87B;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.footer-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-bottom: 8px;
}
.footer-nav a {
  color: #fff;
  opacity: 0.88;
  font-size: 0.97rem;
  font-family: 'Montserrat', Arial, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s, opacity 0.2s;
}
.footer-nav a:hover,
.footer-nav a:focus { color: #24A87B; opacity: 1; }

.social-links {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 8px;
}
.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #24A87B;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  transition: background 0.18s;
}
.social-links a:hover { background: #fff; }
.social-links img { width: 18px; height: 18px; }

.copyright {
  font-size: 0.92rem;
  color: #eaf0f7;
}

/* ===== MOBILE MENU (BURGER NAV) ===== */
@media (max-width: 1100px) {
  header .container { gap: 16px; }
  .main-nav { gap: 19px; }
  .footer-nav { gap: 13px; }
}
@media (max-width: 900px) {
  header .container { flex-wrap: wrap; }
}
@media (max-width: 820px) {
  .main-nav, .cta-button { display: none; }
  .mobile-menu-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 2.2rem;
    color: #164370;
    padding: 6px 12px;
    cursor: pointer;
    z-index: 1301;
    position: relative;
    margin-left: 18px;
    transition: color 0.23s;
  }
  .mobile-menu-toggle:hover { color: #24A87B; }

  .mobile-menu {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #fff;
    z-index: 1800;
    padding: 0;
    transform: translateX(-100%);
    transition: transform 0.33s cubic-bezier(0.55,0,0.3,1);
    box-shadow: 6px 0 48px 0 rgba(22,67,112,0.15);
    overflow-y: auto;
  }
  .mobile-menu.open { transform: translateX(0); }
  .mobile-menu-close {
    align-self: flex-end;
    font-size: 2.3rem;
    background: none;
    border: none;
    color: #164370;
    margin: 22px 22px 0 0;
    padding: 0;
    cursor: pointer;
    z-index: 1302;
    transition: color 0.2s;
  }
  .mobile-menu-close:hover { color: #24A87B; }
  .mobile-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 26px;
    padding: 42px 32px 0 36px;
  }
  .mobile-nav a {
    color: #164370;
    font-weight: 600;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 1.22rem;
    letter-spacing: 1.5px;
    padding: 4px 0;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border 0.18s;
  }
  .mobile-nav a:hover {
    color: #24A87B;
    border-bottom: 2px solid #24A87B;
  }
}

/* Slide overlay for mobile menu */
.mobile-menu {
  will-change: transform;
}

/* ===== COOKIE BANNER & MODAL ===== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  background: #fff;
  box-shadow: 0 -2px 18px 0 rgba(22,67,112,0.07);
  z-index: 2222;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 22px 18px;
  border-top: 3px solid #24A87B;
  min-width: 230px;
  animation: cookieBannerIn 0.4s cubic-bezier(0.62,0,0.26,1);
}
@keyframes cookieBannerIn {
  from { transform: translateY(100%); opacity: 0.2; }
  to   { transform: translateY(0);   opacity: 1; }
}
.cookie-banner p {
  font-size: 1.01rem;
  color: #22313F;
  margin-bottom: 0;
}
.cookie-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 7px;
}
.cookie-banner button, .cookie-banner .cookie-settings-btn {
  border: none;
  border-radius: 30px;
  padding: 9px 26px;
  background: #24A87B;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  margin: 0;
  transition: background 0.2s, color 0.2s, box-shadow 0.17s;
  box-shadow: 0 2px 8px rgba(36,168,123,0.11);
}
.cookie-banner button.reject {
  background: #164370;
}
.cookie-banner button.settings, .cookie-banner .cookie-settings-btn {
  background: #fff;
  color: #24A87B;
  border: 1.5px solid #24A87B;
  box-shadow: none;
}
.cookie-banner button:hover,
.cookie-banner button:focus,
.cookie-banner .cookie-settings-btn:hover {
  background: #22313F;
  color: #fff;
  box-shadow: 0 6px 26px rgba(36,168,123,0.08);
}

/* Cookie modal overlay */
.cookie-modal-overlay {
  position: fixed;
  top:0; left:0; right:0; bottom:0;
  background: rgba(34,49,63,0.35);
  z-index: 3032;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.35s cubic-bezier(0.72,0,0.29,1);
}
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 40px 0 rgba(22,67,112,0.14);
  max-width: 420px;
  width: 94vw;
  padding: 36px 26px 26px 26px;
  z-index: 3200;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: modalIn 0.3s cubic-bezier(0.62,0,0.26,1);
  position: relative;
}
@keyframes modalIn {
  from { transform: scale(0.93) translateY(20%); opacity: 0; }
  to   { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal h3 {
  font-size: 1.28rem;
  margin-bottom: 14px;
  color: #164370;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 10px;
}
.cookie-modal label {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.04rem;
}
.cookie-category .switch {
  width: 48px;
  height: 28px;
  display: inline-block;
  position: relative;
}
.switch input { display: none; }
.switch-slider {
  position: absolute;
  top: 0; left: 0;
  width: 48px; height: 28px;
  border-radius: 28px;
  background: #e5edf2;
  transition: background 0.17s;
}
.switch input:checked + .switch-slider { background: #24A87B; }
.switch-slider:before {
  content: '';
  position: absolute;
  left: 4px; top: 4px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.23s cubic-bezier(0.5,0,0.3,1);
}
.switch input:checked + .switch-slider:before {
  transform: translateX(20px);
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 16px;
  margin-top: 18px;
  justify-content: flex-end;
}
.cookie-modal button {
  padding: 8px 24px;
  font-size: 1rem;
  border-radius: 28px;
}
.cookie-modal .close-modal {
  position: absolute;
  top: 16px; right: 18px;
  font-size: 1.7rem;
  background: none;
  border: none;
  color: #164370;
  cursor: pointer;
  transition: color 0.23s;
}
.cookie-modal .close-modal:hover { color: #24A87B; }

/* ===== GEOMETRIC / STRUCTURED DECORATIVE ===== */
.hero, section {
  position: relative;
}
.hero:before, .hero:after, section:before {
  content: '';
  display: block;
  position: absolute;
  pointer-events: none;
  opacity: 0.07;
  z-index: 0;
}
.hero:before {
  top: 15px; right: 40px;
  width: 110px; height: 110px;
  background: #24A87B;
  clip-path: polygon(0 0, 75% 14%, 100% 86%, 52% 100%, 0 75%);
}
.hero:after {
  bottom: 22px; left: 22px;
  width: 70px; height: 70px;
  background: #164370;
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
}
section:before {
  top: 18px; left: 28px;
  width: 56px; height: 56px;
  background: #24A87B;
  border-radius: 18% 82% 66% 34%/68% 32% 68% 32%;
}

/* ===== VISUAL ENHANCEMENTS ===== */
.card, .testimonial-card, .feature-item, .service-item, .contact-details, .content-grid > *, .legal {
  border-radius: 12px;
  box-shadow: 0 6px 30px 0 rgba(22,67,112,0.06);
}

/* ===== TYPOGRAPHIC SCALE & VISUAL HIERARCHY ===== */
h1 { font-size: 2.75rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.3rem; }
p, li, a, button { font-size: 1rem; }

/* ===== MISCELLANEOUS SPACING & UTILITY ===== */
.section { margin-bottom: 60px; padding: 40px 20px; }
.card-container, .feature-grid, .service-grid, .service-list, .testimonial-slider {
  gap: 24px;
}
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }
.text-image-section { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.testimonial-card { display: flex; align-items: center; gap: 20px; padding: 20px; }
.content-grid { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; }
.card { margin-bottom: 20px; position: relative; }

/* ===== MEDIA QUERIES: MOBILE-FIRST RESPONSIVENESS ===== */
@media (max-width: 1060px) {
  .content-grid, .feature-grid, .service-grid, .service-list {
    flex-direction: column;
    gap: 20px;
  }
  .testimonial-slider {
    flex-direction: column;
    gap: 18px;
  }
}
@media (max-width: 820px) {
  header .container {
    height: auto;
    min-height: 64px;
    padding: 16px 13px;
  }
  .hero h1 { font-size: 2.1rem; }
  .feature-item, .service-item, .testimonial-card { min-width: 0; }
  .footer-nav { flex-direction: column; align-items: center; gap: 7px; }
  .client-logos { gap: 16px; }
}
@media (max-width: 750px) {
  .container { padding: 0 7px; }
  .hero, section, .legal, .cta {
    padding: 24px 6px;
    min-height: unset;
  }
  .client-logos { flex-wrap: wrap; }
}
@media (max-width: 600px) {
  .content-wrapper {
    gap: 11px;
  }
  .hero .content-wrapper, .cta .content-wrapper {
    text-align: left;
    align-items: flex-start;
    gap: 13px;
  }
  .footer-nav, .social-links { flex-direction: column; align-items: center; }
  .feature-item, .service-item, .testimonial-card {
    padding: 14px 9px;
  }
}
@media (max-width: 530px) {
  h1 { font-size: 1.35rem; }
  h2 { font-size: 1.12rem; }
  .hero {
    min-height: unset;
    padding: 18px 0 0 0;
  }
  .contact-details, .contact-info { gap: 0; flex-direction: column; align-items: flex-start; }
  .cookie-modal, .legal { padding: 19px 5px; }
}
@media (max-width: 420px) {
  .cta-button, .cookie-banner button {
    padding: 9px 7px;
    font-size: 0.97rem;
  }
  .cookie-banner { min-width: 160px; }
}
/* Flex-direction for text-image-section on mobile */
@media (max-width: 768px) {
  .text-image-section { flex-direction: column; align-items: flex-start; gap: 18px; }
}

/* ===== FOCUS VISIBLE STYLES ===== */
a:focus, button:focus, .cta-button:focus {
  outline: 2px solid #24A87B;
  outline-offset: 3px;
}

/* ===== Print minimalist styles (optional) ===== */
@media print {
  * { background: #fff !important; color: #000 !important; box-shadow:none !important; }
  nav, .mobile-menu-toggle, .mobile-menu, .cookie-banner, .cookie-modal-overlay, .social-links { display: none !important; }
  .container { max-width: 100%; }
}
