/* -------------------------------------------------------
   Emblelavia - Professional Corporate Style (Flexbox Only)
   Author: Senior CSS Developer & UI Designer
-------------------------------------------------------- */
/* ------------ 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-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  font-family: 'Roboto', Arial, sans-serif;
  color: #22323E;
  background: #FFFFFF;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
a {
  color: #255D71;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #4C7D47;
}
ul, ol {
  margin: 16px 0;
  padding-left: 32px;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
  border: none;
}
button, input, select, textarea {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  border: none;
  outline: none;
  background: none;
  color: inherit;
}
button, .cta-button {
  cursor: pointer;
}
*, *::before, *::after {
  box-sizing: inherit;
}

/* ------------ TYPOGRAPHY ------------ */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  color: #255D71;
  font-weight: 700;
  letter-spacing: -1px;
}
h1 {
  font-size: 2.3rem;
  margin-bottom: 16px;
  line-height: 1.2;
}
h2 {
  font-size: 1.75rem;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: #255D71;
}
h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}
p, li, blockquote, cite {
  font-size: 1rem;
  margin-bottom: 12px;
  font-family: 'Roboto', Arial, sans-serif;
  color: #22323E;
  line-height: 1.7;
}
blockquote {
  border-left: 4px solid #255D71;
  padding-left: 15px;
  font-style: italic;
  background: #F5F6FA;
  color: #22323E;
}
cite {
  display: block;
  margin-top: 12px;
  font-size: 0.98rem;
  font-style: normal;
  color: #255D71;
}
strong {
  font-weight: bold;
  color: #255D71;
}

/* ------------ CONTAINER & SPACING ------------ */
.container {
  width: 100%;
  padding: 0 18px;
  margin: 0 auto;
  max-width: 1240px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}
/* SECTION SPACING (MANDATORY) */
section {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 14px 0 rgba(34,50,62,0.05);
  margin-bottom: 60px;
  padding: 40px 20px;
  transition: box-shadow 0.2s;
}
section:last-of-type {
  margin-bottom: 30px;
}

/* ------------ NAVIGATION HEADER ------------ */
header {
  width: 100%;
  background: #255D71;
  color: #fff;
  box-shadow: 0 2px 14px 0 rgba(34,50,62,0.08);
}
.nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  gap: 20px;
  padding: 10px 0;
}
.nav-header nav {
  display: flex;
  align-items: center;
  gap: 26px;
}
header nav a {
  color: #fff;
  font-weight: 500;
  font-size: 1rem;
  padding: 6px 10px;
  border-radius: 6px;
  transition: background 0.18s, color 0.2s;
}
header nav a:hover, header nav a:focus {
  background: #4C7D47;
  color: #fff;
}
.cta-button {
  display: inline-block;
  background: #4C7D47;
  color: #fff;
  border-radius: 6px;
  padding: 12px 28px;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  box-shadow: 0 3px 12px 0 rgba(76,125,71,0.08);
  letter-spacing: 0.1px;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
  border: none;
}
.cta-button:hover, .cta-button:focus {
  background: #255D71;
  color: #fff;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 16px 0 rgba(34,93,113,0.13);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  padding: 10px;
  margin-left: 12px;
  transition: background 0.16s;
  border-radius: 6px;
  z-index: 101;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: #22323E;
  color: #fff;
}

/* ------------ MOBILE MENU ------------ */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #22323E;
  color: #fff;
  z-index: 9999;
  transform: translateX(-100vw);
  transition: transform 0.4s cubic-bezier(0.4, 0.1, 0.2, 1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 0;
  box-shadow: 0 15px 60px 0 rgba(34,50,62,0.17);
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 2.2rem;
  color: #fff;
  margin: 18px 22px 6px 0;
  border-radius: 4px;
  transition: background 0.13s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #4C7D47;
}
.mobile-nav {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 16px 30px 30px 30px;
  gap: 10px;
}
.mobile-nav a {
  font-size: 1.09rem;
  color: #fff;
  padding: 12px 0;
  border-bottom: 1px solid #3B5260;
  border-radius: 0;
  text-align: left;
  font-weight: 500;
  outline: none;
  transition: background 0.11s, color 0.13s;
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: #255D71;
  color: #82B67A;
}

/* ------------ FOOTER ------------ */
footer {
  background: #22323E;
  color: #fff;
  padding: 0;
  border-top: 2px solid #255D71;
  font-size: 1rem;
}
.footer {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  justify-content: space-between;
  align-items: flex-start;
  padding: 34px 0 28px 0;
  margin-top: 34px;
}
.footer > a {
  display: flex;
  align-items: flex-start;
  min-width: 88px;
  margin-bottom: 12px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 0;
  min-width: 215px;
}
.footer-nav a {
  color: #d2dde1;
  font-size: 1rem;
  transition: color 0.18s;
  margin: 1px 0;
}
.footer-nav a:hover,
.footer-nav a:focus {
  color: #82B67A;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.footer-contact p {
  color: #c4ccdb;
  font-size: 0.98rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ------------ MAIN FEATURES GRID & FLEX UTILS ------------ */
.features-grid,
.card-container, .card-grid, .content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.features-grid > div,
.card-container > .card, .card-grid > .card, .content-grid > div {
  background: #FAFBFC;
  border-radius: 14px;
  box-shadow: 0 1px 7px 0 rgba(34,93,113,0.07);
  padding: 24px 18px 18px 18px;
  flex: 1 1 230px;
  min-width: 210px;
  max-width: 330px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.18s, transform 0.17s;
}
.features-grid > div:hover,
.card-container > .card:hover,
.card-grid > .card:hover {
  box-shadow: 0 5px 28px 0 rgba(34,93,113,0.13);
  transform: translateY(-4px) scale(1.015);
}

.card {
  margin-bottom: 20px;
  position: relative;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  align-items: flex-start;
}

.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: #ffffff;
  box-shadow: 0 2px 12px 0 rgba(34,93,113,0.08);
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  flex: 1 1 300px;
  min-width: 260px;
  margin-bottom: 20px;
  border-left: 5px solid #255D71;
  transition: box-shadow 0.2s, border-color 0.14s;
}
.testimonial-card:hover {
  box-shadow: 0 7px 26px 0 rgba(34,93,113,0.14);
  border-color: #4C7D47;
}
.testimonial-rating {
  display: flex;
  align-items: center;
  gap: 2px;
}
.testimonial-card blockquote {
  background: none;
  border-left: none;
  color: #22323E;
  font-size: 1.02rem;
  margin-bottom: 0;
}
.testimonial-card cite {
  color: #255D71;
  font-style: normal;
  margin-top: 6px;
}

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

/* Blog pagination and categories */
.blog-pagination {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}
.blog-pagination nav {
  display: flex;
  gap: 10px;
}
.blog-pagination a {
  display: inline-block;
  background: #E9E6E3;
  color: #255D71;
  border-radius: 5px;
  padding: 7px 16px;
  font-weight: 500;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  transition: background 0.16s, color 0.16s;
}
.blog-pagination a[aria-current="page"] {
  background: #255D71;
  color: #FFF;
  font-weight: 600;
}
.blog-pagination a:hover {
  background: #4C7D47;
  color: #fff;
}
.blog-categories {
  margin-top: 18px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 1rem;
}
.blog-categories a {
  border-radius: 5px;
  padding: 5px 13px;
  background: #E9E6E3;
  color: #22323E;
  transition: background 0.15s, color 0.14s;
}
.blog-categories a:hover,
.blog-categories a:focus {
  background: #255D71;
  color: #fff;
}

/* Contact */
.contact-details,
.google-map-placeholder {
  background: #FAFBFC;
  border-radius: 9px;
  padding: 19px 10px 19px 19px;
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 220px;
  flex: 1 1 220px;
}
.contact-details img {
  vertical-align: middle;
  margin-right: 5px;
}

.google-map-placeholder p {
  display: flex;
  align-items: center;
  gap: 7px;
}

/* ------------ BUTTONS & INTERACTIONS ------------ */
button, .cta-button {
  background: #4C7D47;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 12px 26px;
  font-size: 1rem;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 600;
  transition: background 0.18s, color 0.19s, transform 0.11s;
  box-shadow: 0 2px 8px 0 rgba(76,125,71,0.07);
}
button:hover,
button:focus,
.cta-button:hover,
.cta-button:focus {
  background: #255D71;
  color: #fff;
}

button:active,
.cta-button:active {
  transform: scale(0.97);
}

/* ------------ COOKIE CONSENT BANNER ------------ */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #255D71;
  color: #fff;
  font-family: 'Roboto', Arial, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 28px 20px 28px 20px;
  z-index: 12000;
  box-shadow: 0 -2px 24px 0 rgba(37,93,113,0.18);
  transform: translateY(110%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.45s cubic-bezier(.73,.01,.37,.95), opacity 0.27s;
  font-size: 1rem;
}
.cookie-banner.active {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}
.cookie-banner-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 720px;
  align-items: center;
  text-align: center;
}
.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}
.cookie-btn {
  background: #4C7D47;
  color: #fff;
  border-radius: 5px;
  border: none;
  font-weight: 600;
  padding: 8px 18px;
  font-size: 1rem;
  margin: 0 3px;
  transition: background 0.16s, color 0.12s, box-shadow 0.18s;
}
.cookie-btn.secondary {
  background: #e9e6e3;
  color: #255D71;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #255D71;
  color: #fff;
}
.cookie-btn.secondary:hover, .cookie-btn.secondary:focus {
  background: #82B67A;
  color: #fff;
}

/* Cookie Consent Modal */
.cookie-modal {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(34,50,62,0.63);
  z-index: 13000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.33s;
}
.cookie-modal.active {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal-dialog {
  background: #fff;
  color: #22323E;
  border-radius: 11px;
  box-shadow: 0 7px 34px 0 rgba(37,93,113,0.23);
  padding: 32px 18px 26px 18px;
  max-width: 540px;
  min-width: 310px;
  width: 93vw;
  display: flex;
  flex-direction: column;
  gap: 26px;
  position: relative;
}
.cookie-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: none;
  border: none;
  font-size: 1.7rem;
  color: #255D71;
  border-radius: 5px;
  transition: background 0.09s;
}
.cookie-modal-close:hover,
.cookie-modal-close:focus {
  background: #e9e6e3;
}
.cookie-modal-categories {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.cookie-modal-category {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  padding: 8px 0;
}
.cookie-switch {
  appearance: none;
  width: 40px;
  height: 22px;
  border-radius: 11px;
  background: #e9e6e3;
  position: relative;
  outline: none;
  transition: background 0.16s;
  cursor: pointer;
}
.cookie-switch:checked {
  background: #4C7D47;
}
.cookie-switch:before {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: left 0.14s;
}
.cookie-switch:checked:before {
  left: 21px;
}
.cookie-modal-category.essential label {
  opacity: 0.6;
}
.cookie-modal-category.essential .cookie-switch {
  background: #A6ADB0;
  cursor: not-allowed;
}

/* -------------- RESPONSIVE ------------ */
@media (max-width: 991px) {
  .footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 23px;
  }
  .features-grid, .card-container, .card-grid, .content-grid {
    gap: 18px;
  }
  section {
    padding: 34px 7px;
  }
}
@media (max-width: 768px) {
  .container {
    max-width: 100vw;
    padding: 0 12px;
  }
  h1 {
    font-size: 1.6rem;
  }
  h2 {
    font-size: 1.25rem;
  }
  .nav-header nav {
    display: none;
  }
  .cta-button {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .features-grid, .card-container, .card-grid, .content-grid {
    flex-direction: column;
    gap: 17px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 12px;
  }
  section {
    margin-bottom: 44px;
    padding: 23px 5px;
  }
}
@media (max-width: 600px) {
  .cookie-modal-dialog {
    max-width: 97vw;
    min-width: 0;
    padding: 14px 6px 12px 6px;
  }
  .cookie-modal-close {
    top: 9px;
    right: 9px;
  }
  .footer-contact p, .footer-nav a {
    font-size: 0.95rem;
  }
  .features-grid > div, .card-container > .card, .card-grid > .card {
    padding: 14px 7px 12px 7px;
  }
  .footer {
    padding: 19px 0 14px 0;
    gap: 11px;
  }
  .blog-pagination nav a, .blog-categories a {
    padding: 6px 9px;
    font-size: 0.96rem;
  }
}

/* ------------ MISC. UTILITIES ------------ */
.mt-0 { margin-top: 0!important; }
.mb-0 { margin-bottom: 0!important; }
.text-center { text-align: center; }
.text-right { text-align: right; }

/* Hide scroll when modal or menu open */
body.menu-open, body.cookie-modal-open {
  overflow: hidden;
  height: 100vh;
}

/* ------------ FOCUS STYLES (Accessibility) ------------ */
a:focus, button:focus, .cta-button:focus,
.cookie-btn:focus, .cookie-modal-close:focus {
  outline: 2px solid #4C7D47;
  outline-offset: 2px;
  box-shadow: 0 2px 7px 0 rgba(130,182,122,0.18);
}

/* ------------ OTHER SEMANTIC STYLES ------------ */
ul > li {
  margin-bottom: 10px;
  font-size: 1rem;
}
ul > li:last-child {
  margin-bottom: 0;
}
iframe, .google-map-placeholder {
  width: 100%;
  border-radius: 12px;
}

/* -------------- END -------------- */
