/* -----------------------------
   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;
}
html {
  height: 100%;
  scroll-behavior: smooth;
}
body {
  background: #F5F3F0;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  color: #1A2433;
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a {
  color: #15425C;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover,
a:focus {
  color: #FBBC36;
}
ul, ol {
  padding-left: 1.3em;
  margin-bottom: 1.2em;
}
h1, h2, h3, h4 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #15425C;
  font-weight: 700;
}
h1 { font-size: 2.5rem; margin-bottom: 20px; }
h2 { font-size: 2rem; margin-bottom: 20px; }
h3 { font-size: 1.25rem; margin-bottom: 10px; }
h4 { font-size: 1.1rem; margin-bottom: 8px; }
img { max-width: 100%; display: block; height: auto; }

::-webkit-input-placeholder { color: #616B7D; opacity: 1; }
::-moz-placeholder { color: #616B7D; opacity: 1; }
:-ms-input-placeholder { color: #616B7D; opacity: 1; }
::placeholder { color: #616B7D; opacity: 1; }

button, input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
}

/* -------------------
   LAYOUT & CONTAINER
---------------------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 16px 0 rgba(21,66,92,0.06);
  display: flex;
  flex-direction: column;
}

/* -------------------
   HEADER & NAVIGATION
---------------------- */
header {
  background: #15425C;
  padding-top: 0;
  padding-bottom: 0;
  color: #fff;
  border-bottom: 1px solid #E2E6EB;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
  gap: 0;
}
.desktop-nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
.desktop-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background 0.18s, color 0.18s;
}
.desktop-nav a:hover,
.desktop-nav a:focus {
  background: #1A577D;
  color: #FBBC36;
}
.cta-primary {
  background: #FBBC36;
  color: #15425C !important;
  font-weight: 700 !important;
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 10px 26px;
  border-radius: 30px;
  box-shadow: 0 1px 5px rgba(21,66,92,0.07);
  border: none;
  outline: none;
  margin-left: 12px;
  font-size: 1.08rem;
  letter-spacing: 0.01em;
  transition: background 0.16s, color 0.16s, box-shadow 0.2s;
  cursor: pointer;
}
.cta-primary:hover,
.cta-primary:focus {
  background: #ffca56;
  color: #15425C;
  box-shadow: 0 2px 10px rgba(21,66,92,0.12);
}
.cta-secondary {
  background: #fff;
  color: #15425C !important;
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 10px 22px;
  border-radius: 24px;
  border: 2px solid #15425C;
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.16s, color 0.16s, border-color 0.16s;
  cursor: pointer;
}
.cta-secondary:hover,
.cta-secondary:focus {
  background: #F0F7FB;
  color: #15425C;
  border-color: #FBBC36;
}
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 2.1rem;
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  margin-left: 18px;
  cursor: pointer;
  transition: background 0.16s;
  z-index: 21;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: #1A577D;
}
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(21,66,92,0.97);
  z-index: 100;
  transition: transform 0.3s cubic-bezier(.77,0,.18,1), opacity 0.23s;
  opacity: 0;
  pointer-events: none;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 0;
}
.mobile-menu.open {
  display: flex;
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
  animation: mobileMenuSlideIn 0.36s cubic-bezier(.77,0,.18,1);
}
@keyframes mobileMenuSlideIn {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}
.mobile-menu-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: #fff;
  color: #15425C;
  border: none;
  font-size: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 120;
  box-shadow: 0 6px 20px rgba(21,66,92,0.13);
  transition: background 0.14s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: #F5F3F0;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 82px 40px 28px 40px;
  width: 100vw;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.4rem;
  font-weight: 500;
  padding: 8px 0;
  border-radius: 8px;
  transition: background 0.13s, color 0.13s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  color: #FBBC36;
  background: #193857;
}

/* Hide desktop nav and show mobile burger on mobile */
@media (max-width: 1024px) {
  .desktop-nav { display: none !important; }
  .mobile-menu-toggle { display: inline-block; }
}
@media (min-width: 1025px) {
  .mobile-menu { display: none !important; }
  .mobile-menu-toggle { display: none !important; }
}



/* ---------------------------
   HOMEPAGE HERO/SUBHEADLINE
---------------------------- */
.subheadline {
  font-size: 1.15rem;
  font-family: 'Open Sans', Arial, sans-serif;
  color: #1A2433;
  margin-bottom: 28px;
}

/* ----------------------
   FEATURES & CONTENT FLEX
------------------------- */
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
  justify-content: flex-start;
}
.features-grid > div {
  flex: 1 1 250px;
  background: #F7FAFD;
  border: 1px solid #E2E6EB;
  border-radius: 12px;
  box-shadow: 0 2px 7px rgba(21,66,92,0.05);
  padding: 28px 20px 22px 20px;
  min-width: 220px;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  transition: box-shadow 0.19s;
}
.features-grid > div:hover {
  box-shadow: 0 6px 24px rgba(21,66,92,0.13);
}
.features-details ul {
  list-style-type: disc;
  font-size: 1.05rem;
  color: #245379;
  margin-bottom: 0;
}
.features-details li {
  margin-bottom: 10px;
}

/* -------------------
   SERVICES & CARDS
---------------------- */
.services-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 18px;
  list-style: none;
  justify-content: flex-start;
}
.services-list li {
  background: #F7FAFD;
  padding: 14px 26px;
  border-radius: 22px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.06rem;
  margin-bottom: 0;
  color: #15425C;
  font-weight: 500;
  border: 1px solid #E2E6EB;
  box-shadow: 0 2px 6px rgba(21,66,92,0.03);
  transition: box-shadow 0.18s;
}
.services-list li:hover {
  box-shadow: 0 6px 12px rgba(21,66,92,0.10);
}
.service-list-detail {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 24px;
  justify-content: flex-start;
}
.service-list-detail > div {
  background: #fff;
  border: 1px solid #E2E6EB;
  border-radius: 14px;
  box-shadow: 0 2px 7px rgba(21,66,92,0.05);
  padding: 24px 20px 18px 20px;
  min-width: 240px;
  flex: 1 1 260px;
  max-width: 360px;
}

/* ----------------------
   TEXT SECTIONS & GRID
------------------------- */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: #1A2433;
}
.values-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 0;
}
.values-grid > div {
  flex: 1 1 190px;
  background: #F5F7FA;
  border-radius: 12px;
  padding: 24px 18px;
  box-shadow: 0 1px 7px rgba(21,66,92,0.05);
  border: 1px solid #E2E6EB;
}

.projects-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.projects-list > div {
  flex: 1 1 250px;
  min-width: 220px;
  max-width: 360px;
  background: #fff;
  border: 1px solid #E2E6EB;
  border-radius: 10px;
  box-shadow: 0 2px 7px rgba(21,66,92,0.05);
  padding: 20px 16px;
  margin-bottom: 20px;
  margin-right: 0;
}

ol {
  margin-left: 1.6em;
}

/* -------------------
   CTA SECTIONS
---------------------- */
.cta-section {
  background: #F7FAFD;
  border-radius: 14px;
  box-shadow: 0 1px 10px rgba(21,66,92,0.08);
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}
.confirmation-message {
  background: #F7FAFD;
  border-radius: 12px;
  padding: 28px 22px;
  color: #1A2433;
  box-shadow: 0 2px 10px rgba(21,66,92,0.07);
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: flex-start;
}
.form-hint {
  background: #F8F5F0;
  border-left: 4px solid #FBBC36;
  border-radius: 0 8px 8px 0;
  padding: 16px 22px;
  margin-top: 15px;
  color: #1A2433;
}
.secondary {
  font-size: 0.97rem;
  color: #5F6C7B;
  font-style: italic;
}

/* -------------------
   TESTIMONIALS & REVIEWS
---------------------- */
.testimonials-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 24px 24px 20px 24px;
  background: #FAFAFD;
  border: 1px solid #E2E6EB;
  border-radius: 14px;
  margin-bottom: 20px;
  box-shadow: 0 1px 8px rgba(21,66,92,0.07);
  min-width: 260px;
  max-width: 400px;
  flex: 1 1 265px;
  color: #173353;
  transition: box-shadow 0.16s;
}
.testimonial-card:hover {
  box-shadow: 0 5px 20px rgba(21,66,92,0.13);
}
.testimonial-card p {
  font-size: 1.05rem;
  color: #1A2433;
}
.testimonial-info span {
  font-size: 0.98rem;
  font-style: italic;
  color: #15425C;
  font-weight: 500;
}

/* -------------
   FOOTER STYLES
---------------- */
footer {
  background: #15425C;
  color: #fff;
  margin-top: 40px;
  padding: 40px 0 32px 0;
}
footer .container {
  flex-wrap: wrap;
  gap: 32px;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-brand { flex: 0 0 140px; margin-bottom: 18px; }
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 12px;
}
.footer-links a {
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  transition: color 0.15s;
}
.footer-links a:hover,
.footer-links a:focus {
  color: #FBBC36;
}
.footer-contact {
  font-size: 0.98rem;
  margin-bottom: 14px;
  color: #E5E7EA;
}
.footer-contact a {
  color: #fff;
  text-decoration: underline;
  transition: color 0.14s;
}
.footer-contact a:hover,
.footer-contact a:focus {
  color: #FBBC36;
}
.footer-contact img {
  display: inline-block;
  width: 17px;
  height: 17px;
  margin-right: 6px;
  vertical-align: middle;
}
.footer-social {
  display: flex;
  align-items: center;
  gap: 17px;
}
.footer-social a img {
  width: 30px;
  height: 30px;
  filter: invert(1) grayscale(1) brightness(1.2);
  -webkit-filter: invert(1) grayscale(1) brightness(1.2);
  transition: filter 0.13s;
}
.footer-social a:hover img {
  filter: invert(69%) sepia(49%) saturate(890%) hue-rotate(1deg) brightness(0.97);
}

/* ----------------------------------------------
   COOKIE CONSENT BANNER (FIXED BOTTOM, MODAL)
------------------------------------------------ */
.cookie-banner {
  position: fixed;
  left: 0; bottom: 0; right: 0;
  z-index: 3000;
  background: #fff;
  box-shadow: 0 -2px 15px 0 rgba(21,66,92,0.08);
  border-top: 2px solid #FBBC36;
  padding: 22px 16px 22px 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  font-size: 1rem;
  color: #15425C;
  animation: cookieBannerSlideIn 0.44s cubic-bezier(.77,0,.18,1);
}
@keyframes cookieBannerSlideIn {
  from { opacity: .5; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}
.cookie-banner-buttons {
  display: flex;
  gap: 14px;
}
.cookie-btn {
  background: #15425C;
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 9px 22px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  margin-right: 2px;
  cursor: pointer;
  box-shadow: 0 1.5px 7px rgba(21,66,92,0.08);
  transition: background 0.16s, color 0.16s, box-shadow 0.18s;
}
.cookie-btn:focus,
.cookie-btn:hover {
  background: #1A577D;
  color: #FBBC36;
}
.cookie-btn.cookie-accept {
  background: #FBBC36;
  color: #15425C;
  font-weight: 700;
}
.cookie-btn.cookie-accept:focus,
.cookie-btn.cookie-accept:hover {
  background: #ffca56;
  color: #15425C;
}
.cookie-btn.settings-btn {
  background: #fff;
  color: #15425C;
  border: 2px solid #15425C;
  font-weight: 700;
}
.cookie-btn.settings-btn:focus,
.cookie-btn.settings-btn:hover {
  background: #15425C;
  color: #FBBC36;
}

/* Cookie modal overlay */
.cookie-modal {
  display: none;
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  z-index: 3500;
  background: rgba(21,66,92,0.82);
  justify-content: center;
  align-items: center;
  transition: background 0.25s;
}
.cookie-modal.open {
  display: flex;
  animation: fadeIn 0.22s;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal-content {
  background: #fff;
  padding: 38px 28px 28px 28px;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(21,66,92,0.20);
  min-width: 290px;
  max-width: 400px;
  color: #15425C;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}
.cookie-modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: #fff;
  color: #15425C;
  border: 1.5px solid #E2E6EB;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1.7rem;
  cursor: pointer;
  transition: background 0.14s;
}
.cookie-modal-close:hover,
.cookie-modal-close:focus {
  background: #F7FAFD;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}
.cookie-category input[type=checkbox] {
  width: 20px;
  height: 20px;
  accent-color: #FBBC36;
}
.cookie-category label { font-size: 1.06rem; }
.cookie-category.essential label {
  color: #73807E;
}
.cookie-category.essential input[type=checkbox] {
  accent-color: #E0E0E3;
}

/* -----------------------------------
   RESPONSIVE DESIGN (MOBILE FIRST)
----------------------------------- */
@media (max-width: 1080px) {
  .container { max-width: 960px; }
  .features-grid > div,
  .projects-list > div,
  .service-list-detail > div { max-width: 46vw; }
}
@media (max-width: 800px) {
  .container { max-width: 720px; }
  .features-grid > div,
  .projects-list > div,
  .service-list-detail > div,
  .testimonial-card { min-width: 48vw; max-width: 96vw; }
  .footer-brand { flex: 0 0 100px; }
}
@media (max-width: 650px) {
  .container { max-width: 99vw; padding-left: 10px; padding-right: 10px; }
  .section { padding: 16px 6px; margin-bottom: 38px; }
  h1 { font-size: 1.69rem; margin-bottom: 13px; }
  h2 { font-size: 1.23rem; margin-bottom: 10px; }
  h3 { font-size: 1.06rem; }
  .features-grid,
  .projects-list,
  .service-list-detail,
  .testimonials-list {
    flex-direction: column;
    gap: 14px;
  }
  .footer-social a img { width: 23px; height: 23px; }
  footer .container { flex-direction: column; gap: 0; }
}

/* Card & Content Flex Responsive */
@media (max-width: 768px) {
  .features-grid, .projects-list, .service-list-detail, .testimonials-list {
    flex-direction: column;
    gap: 14px;
  }
  .section, .confirmation-message, .cta-section { padding: 18px 8px; }
  .content-wrapper { gap: 14px; }
}
@media (max-width: 480px) {
  .features-grid > div,
  .projects-list > div,
  .service-list-detail > div,
  .testimonial-card {
    min-width: 98vw;
    max-width: 98vw;
    padding-left: 10px;
    padding-right: 10px;
  }
  .footer-brand { flex: 0 0 60px; }
}

/* Text-image sections & content grid */
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section { flex-direction: column; align-items: flex-start; gap: 14px; }
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

/* Card container spacing for flexbox */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(21,66,92,0.07);
  border: 1px solid #E2E6EB;
  padding: 24px 20px;
  flex: 1 1 220px;
  min-width: 180px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

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

/* -------------
   UTILITIES
--------------- */
.text-center    { text-align: center !important; }
.text-right     { text-align: right !important; }
.fs-14         { font-size: 0.89rem !important; }
.fs-16         { font-size: 1rem !important; }
.fs-18         { font-size: 1.13rem !important; }
.fs-24         { font-size: 1.45rem !important; }
.text-accent   { color: #FBBC36 !important; }
.bg-accent     { background: #FBBC36 !important; color: #15425C !important; }
.fw-400        { font-weight: 400 !important; }
.fw-500        { font-weight: 500 !important; }
.fw-600        { font-weight: 600 !important; }

/* -------------
   ANIMATIONS & HOVERS
--------------------- */
a, button, .cta-primary, .cta-secondary, .cookie-btn {
  transition: color 0.16s, background 0.16s, border 0.15s, box-shadow 0.17s;
}
section, .card, .features-grid > div, .service-list-detail > div, .testimonial-card {
  transition: box-shadow 0.19s, background 0.14s;
}

/* -------------
   FOCUS STYLES
---------------- */
:focus {
  outline: 2px solid #FBBC36;
  outline-offset: 2px;
}

/* Prevent overlap for all flex containers */
.features-grid, .projects-list, .services-list, .service-list-detail, .card-container, .testimonials-list, .footer-links, .footer-social, .values-grid, .content-grid {
  gap: 20px;
}

/* Minimum space between all cards/sections */
.features-grid > div, .projects-list > div, .service-list-detail > div, .testimonial-card, .card {
  margin-bottom: 20px;
}

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

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