/* ====== 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,
main,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;
}
html {
  box-sizing: border-box;
  height: 100%;
}
*, *::before, *::after {
  box-sizing: inherit;
  -webkit-tap-highlight-color: transparent;
}
body {
  min-height: 100vh;
  line-height: 1.5;
  background: #F5F7FA;
  color: #164772;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
}
img, picture, video {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: #164772;
  text-decoration: none;
  transition: color 0.18s linear;
}
a:focus {
  outline: 2px solid #24B365;
  outline-offset: 2px;
}
ul, ol {
  list-style: none;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: 100%;
  line-height: 1.1;
  border-radius: 0;
  border: none;
  outline: none;
}

/* ====== BRAND COLOR VARIABLES ====== */
:root {
  --color-primary: #164772;
  --color-secondary: #F5F7FA;
  --color-bg: #FFFFFF;
  --color-accent: #24B365;
  --color-accent-dark: #167c41;
  --color-on-primary: #FFFFFF;
  --color-on-secondary: #164772;
  --color-shadow: rgba(22,71,114,0.08);
}

/* ====== TYPOGRAPHY ====== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 900;
  letter-spacing: 0.01em;
  color: #164772;
  margin-bottom: 16px;
}
h1 {
  font-size: 2.5rem;
  line-height: 1.15;
}
h2 {
  font-size: 2rem;
  line-height: 1.15;
}
h3 {
  font-size: 1.5rem;
  line-height: 1.2;
}
h4 {
  font-size: 1.125rem;
  font-weight: 800;
}
h5, h6 {
  font-size: 1rem;
}
p, li {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  color: #164772;
  margin-bottom: 12px;
  font-weight: 400;
}
strong, b {
  font-weight: 700;
}

/* ====== CONTAINER LAYOUTS ====== */
.container {
  width: 100%;
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
  box-sizing: border-box;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}

/* ====== FLEXBOX UTILITY LAYOUTS ====== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #FFFFFF;
  border-radius: 24px;
  box-shadow: 0 4px 16px var(--color-shadow);
  padding: 32px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s;
}
.card:hover {
  box-shadow: 0 8px 32px rgba(36,179,101,0.11), 0 2px 8px var(--color-shadow);
  z-index: 2;
}
.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;
  border-radius: 18px;
  background: #FFFFFF;
  box-shadow: 0 2px 12px var(--color-shadow);
  margin-bottom: 20px;
  min-width: 0;
  flex: 1 1 260px;
}
.testimonial-card p {
  font-size: 1.06rem;
  color: #222d38;
  font-style: italic;
  margin-bottom: 0;
}
.testimonial-card strong {
  color: #24B365;
  font-size: 1rem;
  margin-left: 14px;
  font-weight: 700;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ====== MAIN STRUCTURE ====== */
header {
  background: var(--color-primary);
  color: var(--color-on-primary);
  width: 100%;
  z-index: 200;
  box-shadow: 0 2px 12px var(--color-shadow);
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
  gap: 24px;
  position: relative;
}
header img {
  height: 48px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: #FFFFFF;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 6px 0;
  transition: color 0.23s;
  border-bottom: 3px solid transparent;
}
.main-nav a:hover, .main-nav a:focus {
  color: #24B365;
  border-bottom: 3px solid #24B365;
}
.cta-btn {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 800;
  font-size: 1.10rem;
  padding: 13px 32px;
  background: linear-gradient(90deg, #24B365 80%, #167c41 100%);
  color: #FFFFFF;
  border: none;
  border-radius: 32px;
  cursor: pointer;
  box-shadow: 0 2px 8px var(--color-shadow);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-left: 24px;
  transition: background 0.19s, color 0.17s, box-shadow 0.18s;
  display: inline-block;
  position: relative;
}
.cta-btn:hover, .cta-btn:focus {
  background: linear-gradient(90deg, #167c41 80%, #24B365 100%);
  color: #fff;
  box-shadow: 0 4px 20px rgba(36,179,101,0.18), 0 1px 4px var(--color-shadow);
}
/* Burger Menu Button */
.mobile-menu-toggle {
  display: none;
  font-size: 2.1rem;
  background: transparent;
  color: #fff;
  border: none;
  cursor: pointer;
  margin-left: 14px;
  padding: 7px 12px;
  border-radius: 10px;
  transition: background 0.15s;
  z-index: 400;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: rgba(36,179,101,0.19);
}

/* ====== MOBILE MENU STYLES ====== */
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: #164772;
  z-index: 5000;
  transform: translateX(-100vw);
  transition: transform 0.37s cubic-bezier(0.6,0.14,0,1);
  box-shadow: 0 12px 40px 0 rgba(0,0,0,0.11);
  padding: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  font-size: 2rem;
  color: #FFFFFF;
  background: transparent;
  border: none;
  padding: 14px 22px 14px 9px;
  align-self: flex-end;
  cursor: pointer;
  transition: background 0.13s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: rgba(36,179,101,0.17);
  border-radius: 12px;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  align-items: flex-start;
  padding: 24px 0 0 45px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.2rem;
  font-weight: bold;
  color: #FFF;
  padding: 11px 0;
  text-transform: uppercase;
  border-left: 4px solid transparent;
  width: 100%;
  transition: color 0.21s, border-color 0.23s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #24B365;
  border-left: 4px solid #24B365;
  background: rgba(36,179,101,0.05);
  border-radius: 0 20px 20px 0;
}

/* ====== MAIN & SECTIONS ====== */
main {
  flex: 1 0 auto;
  width: 100%;
  background: var(--color-secondary);
}
section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 4px 32px var(--color-shadow);
  padding: 40px 36px;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.text-section {
  background: #F5F7FA;
  box-shadow: none;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  align-items: flex-start;
  margin-bottom: 10px;
}
.feature-grid li, .feature-grid div {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border-radius: 16px;
  padding: 19px 25px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1.09rem;
  color: #164772;
  box-shadow: 0 2px 10px rgba(36,179,101,0.07);
  transition: box-shadow 0.18s;
}
.feature-grid li:hover, .feature-grid div:hover {
  box-shadow: 0 4px 20px rgba(36,179,101,0.17);
}
.service-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: stretch;
  justify-content: flex-start;
}
.service-cards > div {
  flex: 1 1 240px;
  min-width: 230px;
  background: #F5F7FA;
  border-radius: 20px;
  box-shadow: 0 1px 7px var(--color-shadow);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow 0.18s;
}
.service-cards > div:hover {
  box-shadow: 0 8px 20px #24B36533;
  z-index: 2;
}
.service-cta {
  margin-top: 10px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: bold;
  color: #24B365;
  text-transform: uppercase;
  font-size: 1rem;
  letter-spacing: 0.03em;
  transition: color 0.18s;
}
.service-cta:hover, .service-cta:focus {
  color: #167c41;
  text-decoration: underline;
}

.testimonial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.contact-details, .office-hours, .location-map {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  flex-direction: column;
  margin-bottom: 18px;
}

/* ====== FOOTER ====== */
footer {
  width: 100%;
  background: var(--color-primary);
  color: #fff;
  padding: 30px 0 15px 0;
  box-shadow: 0 -4px 20px var(--color-shadow);
  font-size: 1rem;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}
.footer-links {
  display: flex;
  gap: 28px;
  margin-bottom: 7px;
  flex-wrap: wrap;
}
.footer-links a {
  color: #FFFFFF;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  letter-spacing: 0.01em;
  font-size: 1rem;
  text-transform: uppercase;
  transition: color 0.18s;
}
.footer-links a:hover, .footer-links a:focus {
  color: #24B365;
  text-decoration: underline;
}
.footer-contact {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  align-items: flex-start;
  margin-bottom: 10px;
}
.footer-contact p {
  color: #FFF;
  font-size: 1rem;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 9px;
}
footer p {
  margin-bottom: 0;
  color: #fff;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 0.98rem;
}

/* ====== COOKIE CONSENT BANNER ====== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #FFFFFF;
  color: #164772;
  box-shadow: 0 -2px 18px rgba(22,71,114,0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 9500;
  padding: 26px 18px 18px 18px;
  gap: 16px;
  animation: cookieSlideIn 0.7s cubic-bezier(.7,.3,.34,1.33);
}
@keyframes cookieSlideIn {
  from { bottom: -130px; opacity: 0; } to { bottom: 0; opacity: 1; }
}
.cookie-banner p {
  font-size: 1rem;
  margin-bottom: 6px;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
}
.cookie-btn {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: bold;
  font-size: 1rem;
  padding: 11px 23px;
  border-radius: 24px;
  border: none;
  cursor: pointer;
  transition: background 0.18s, color 0.17s, box-shadow 0.14s;
  box-shadow: 0 2px 8px var(--color-shadow);
  margin-bottom: 0;
}
.cookie-btn.accept {
  background: linear-gradient(90deg, #24B365 80%, #167c41 100%);
  color: #fff;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: linear-gradient(90deg, #167c41 80%, #24B365 100%);
}
.cookie-btn.reject {
  background: #fff;
  color: #164772;
  border: 2px solid #164772;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  color: #24B365;
  border-color: #24B365;
}
.cookie-btn.settings {
  background: #164772;
  color: #fff;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #24B365;
}

/* Cookie Modal Popup */
.cookie-modal {
  display: none;
  flex-direction: column;
  align-items: flex-start;
  position: fixed;
  left: 50%;
  top: 50%;
  min-width: 320px;
  max-width: 94vw;
  background: #fff;
  color: #164772;
  border-radius: 18px;
  box-shadow: 0 4px 60px rgba(0,0,0,0.20);
  z-index: 9900;
  transform: translate(-50%, -50%) scale(0.93);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s, transform 0.26s;
  padding: 32px 30px 26px 30px;
  animation: cookieModalPopIn 0.45s cubic-bezier(.68,-0.03,.33,1.01);
}
@keyframes cookieModalPopIn {
  from { opacity: 0; transform: translate(-50%,-47%) scale(0.8); }
  to   { opacity: 1; transform: translate(-50%,-50%) scale(1); }
}
.cookie-modal.open {
  display: flex;
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}
.cookie-modal h3 {
  font-size: 1.4rem;
  margin-bottom: 18px;
  color: #164772;
}
.cookie-modal .cookie-category {
  margin-bottom: 17px;
}
.cookie-modal label {
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}
.cookie-modal input[type="checkbox"][disabled] + span {
  opacity: 0.57;
  cursor: not-allowed;
}
.cookie-modal .cookie-cats {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}
.cookie-modal .cookie-actions {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.cookie-modal .cookie-close {
  background: none;
  color: #167c41;
  border: none;
  font-size: 1.45rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  position: absolute;
  top: 10px; right: 18px;
  cursor: pointer;
  border-radius: 100%;
  padding: 0 6px;
  line-height: 1;
  transition: background 0.13s;
}
.cookie-modal .cookie-close:hover,
.cookie-modal .cookie-close:focus {
  background: #F5F7FA;
}

/* ====== BUTTONS & INTERACTIONS ====== */
button {
  cursor: pointer;
}
button:disabled, .cta-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
a {
  transition: color 0.19s;
}
a:active {
  color: #24B365;
}

/* ====== GENERIC FLEX UTILITIES (if needed) ====== */
.flex {
  display: flex;
}
.flex-row {
  flex-direction: row;
}
.flex-col {
  flex-direction: column;
}
.flex-center {
  align-items: center;
  justify-content: center;
}
.flex-between {
  justify-content: space-between;
}
.gap-20 {
  gap: 20px;
}
.gap-24 {
  gap: 24px;
}

/* ====== VISUAL DETAILS: ICONS, IMAGES & SHAPES ====== */
.feature-grid img, .footer-contact img, .contact-details img, .location-map img, .testimonial-card img, ul li img {
  width: 30px;
  height: 30px;
  margin-right: 6px;
  flex-shrink: 0;
}

/* ====== SHADOWS, RADIUS, ANIMATION MICROINTERACTIONS ====== */
.card,
.feature-grid li, .feature-grid div,
.service-cards > div,
.testimonial-card,
.content-wrapper {
  transition: box-shadow 0.19s, transform 0.14s;
}
.card:hover, .feature-grid li:hover, .feature-grid div:hover, .service-cards > div:hover, .testimonial-card:hover {
  transform: translateY(-2px) scale(1.01);
}

/* ====== RESPONSIVE DESIGN ====== */
@media (max-width: 1100px) {
  .container {
    max-width: 980px;
    padding-left: 18px;
    padding-right: 18px;
  }
  .content-wrapper {
    padding: 30px 16px;
  }
}
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.44rem;
  }
  .main-nav {
    display: none;
  }
  .cta-btn {
    margin-left: 8px;
    padding: 12px 18px;
    font-size: 1.02rem;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .feature-grid {
    flex-direction: column;
    gap: 16px;
  }
  .service-cards {
    flex-direction: column;
    gap: 18px;
  }
  .testimonial-list {
    flex-direction: column;
    gap: 16px;
  }
  .content-wrapper {
    padding: 16px 7px;
  }
  .footer-contact {
    gap: 16px;
    flex-direction: column;
  }
  .footer-links {
    gap: 13px;
  }
  section {
    padding: 26px 6px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 17px;
    align-items: flex-start;
  }
  .container {
    padding-left: 7px;
    padding-right: 7px;
  }
}
@media (max-width: 480px) {
  h1 {
    font-size: 1.3rem;
    margin-bottom: 13px;
  }
  .content-wrapper {
    padding: 10px 3px;
  }
  .feature-grid li, .feature-grid div {
    padding: 13px 8px;
    font-size: 0.98rem;
  }
  .service-cards > div {
    padding: 12px 7px;
  }
  .cookie-modal {
    padding: 21px 7px 20px 13px;
    min-width: 220px;
  }
}

/* ====== ACCESSIBILITY HIGHLIGHTS ====== */
:focus-visible {
  outline: 2px solid #24B365;
  outline-offset: 2px;
}

/* ====== END ====== */
