/* ===== CSS RESET & NORMALIZATION ===== */
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { line-height: 1.5; background: #F7F9FB; color: #22406B; }
img { max-width: 100%; display: block; border-style: none; }
a { color: inherit; text-decoration: none; transition: color 0.2s; }
ul, ol { list-style: none; }
input, button, select, textarea { font: inherit; }
button { border: none; background: none; cursor: pointer; }

/* ===== BRAND FONTS ===== */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,500&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap');

:root {
  --primary: #22406B;
  --primary-dark: #19335b;
  --secondary: #8CBD8D;
  --secondary-dark: #74a775;
  --accent: #FFFFFF;
  --gray-light: #F7F9FB;
  --gray-mid: #DBE3EA;
  --gray-dark: #3C4B61;
  --text-main: #22406B;
  --text-subtle: #5C6A80;
  --border: #DBE3EA;
  --shadow: 0 2px 10px rgba(34,64,107,0.05), 0 1.5px 6px rgba(60,75,97,0.04);
  --danger: #D9534F;
  --transition: all 0.18s cubic-bezier(.64,.09,.08,1);
  --radius-large: 14px;
  --radius-medium: 8px;
  --radius-small: 5px;
}

body {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  color: var(--text-main);
  background: var(--gray-light);
  letter-spacing: 0;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 16px;
}
h1 { font-size: 2.5rem; margin-bottom: 20px; line-height: 1.18; }
h2 { font-size: 2rem; margin-bottom: 18px; }
h3 { font-size: 1.35rem; margin-bottom: 12px; }
h4 { font-size: 1.1rem; margin-bottom: 9px; font-weight: 500; }

p, ul, ol {
  margin-bottom: 15px;
  font-size: 1rem;
}
strong, b { font-weight: 700; }
small { font-size: 0.91rem; }

/* ---- CONTAINER ---- */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
}

.content-wrapper {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

/* ===== HEADER & NAVIGATION ===== */
header {
  background: var(--accent);
  border-bottom: 1px solid var(--border);
  width: 100%;
  min-height: 70px;
  z-index: 100;
  box-shadow: 0 2px 7px rgba(34,64,107,0.03);
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  height: 78px;
  gap: 10px;
}
header nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 23px;
}
header nav a {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  padding: 7px 0;
  color: var(--text-main);
  border-bottom: 2.5px solid transparent;
  font-weight: 500;
  transition: color 0.18s, border-bottom 0.15s;
  position: relative;
}
header nav a:hover,
header nav a:focus {
  color: var(--secondary);
  border-bottom: 2.5px solid var(--secondary);
  outline: none;
}
header nav a.cta.primary {
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-medium);
  padding: 9px 22px;
  font-size: 1.05rem;
  margin-left: 12px;
  border: none;
  font-weight: 600;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
header nav a.cta.primary:hover,
header nav a.cta.primary:focus {
  background: var(--secondary);
  color: var(--primary);
}
header nav a.cta.secondary {
  background: var(--secondary);
  color: var(--primary);
  border-radius: var(--radius-medium);
  padding: 7px 17px;
  font-size: 1rem;
  margin-left: 8px;
  border: none;
  font-weight: 600;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
header nav a.cta.secondary:hover,
header nav a.cta.secondary:focus {
  background: var(--primary);
  color: #fff;
}

header .container > a img {
  height: 37px;
  width: auto;
}

.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  color: var(--primary);
  background: none;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
  transition: background 0.15s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--gray-mid);
}

/* ===== MOBILE MENU DRAWER ===== */
.mobile-menu {
  position: fixed;
  top: 0; right: 0; left: 0; bottom: 0;
  background: rgba(34, 64, 107, 0.98);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transform: translateX(100%);
  transition: opacity 0.23s, transform 0.33s cubic-bezier(.64,.09,.08,1);
}
.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}
.mobile-menu-close {
  font-size: 2.2rem;
  background: none;
  color: var(--accent);
  border: none;
  align-self: flex-end;
  padding: 15px 28px 0 0;
  cursor: pointer;
  margin-bottom: 8px;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 33px;
  align-items: flex-start;
  margin-left: 36px;
  margin-top: 30px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: color 0.16s, background 0.16s;
  padding: 4px 0;
  border-bottom: 2.5px solid transparent;
}
.mobile-nav a.cta.primary, .mobile-nav a.cta.secondary {
  background: var(--secondary);
  color: var(--primary);
  border-radius: var(--radius-large);
  padding: 11px 23px;
  font-weight: 700;
  font-size: 1.15rem;
  border: none;
  margin: 0 0 10px 0;
  box-shadow: 0 3px 10px rgba(140,189,141,0.13);
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--secondary);
  border-bottom: 2.5px solid var(--secondary);
  background: rgba(255,255,255,0.02);
}

/* ---- HERO ---- */
.hero {
  background: var(--primary);
  color: #fff;
  padding: 60px 0 48px 0;
  width: 100%;
  margin-bottom: 60px;
}
.hero h1, .hero h2, .hero h3 {
  color: #fff;
}
.hero .cta.primary {
  background: var(--secondary);
  color: var(--primary);
  margin-top: 26px;
  box-shadow: var(--shadow);
}
.hero p {
  color: #d6e2f3;
}

/* ---- SECTIONS ---- */
section {
  width: 100%;
  background: inherit;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: var(--radius-large);
  box-shadow: var(--shadow);
}

/* ---- CARDS & FLEX CONTAINERS ---- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: var(--radius-medium);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  position: relative;
  padding: 30px 24px 18px;
  flex: 1 1 260px; /* Responsive width */
  min-width: 235px;
  max-width: 350px;
  transition: box-shadow 0.2s;
}
.card:hover { box-shadow: 0 6px 22px rgba(34,64,107,0.10); }

.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.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;
  background: #fff;
  padding: 20px;
  border-radius: var(--radius-medium);
  box-shadow: var(--shadow);
  margin-bottom: 24px;
  transition: box-shadow 0.22s, transform 0.16s;
  color: var(--text-main);
  max-width: 600px;
}
.testimonial-card blockquote {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  quotes: "\201E""\201C""\2018""\2019";
  color: var(--primary);
  line-height: 1.4;
  margin: 0;
}
.testimonial-card span {
  color: var(--text-subtle);
  font-size: 0.99rem;
  margin-left: auto;
}
.testimonial-card:hover { box-shadow: 0 8px 26px rgba(34,64,107,0.15); transform: translateY(-3px) scale(1.015); }

/* Feature List and Service List */
.feature-list, .service-list, .service-list-overview {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 25px;
}
.feature-list li, .service-list li, .service-list-overview li {
  background: #fff;
  border-radius: var(--radius-medium);
  box-shadow: var(--shadow);
  flex: 1 1 200px;
  min-width: 175px;
  max-width: 290px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding: 28px 23px 18px;
  margin-bottom: 20px;
  transition: box-shadow 0.20s, transform 0.14s;
}
.feature-list li:hover, .service-list li:hover, .service-list-overview li:hover {
  box-shadow: 0 8px 30px rgba(140,189,141,0.12);
  transform: translateY(-2px) scale(1.018);
}
.feature-list img, .service-list img, .service-list-overview img {
  width: 45px; height: 45px;
  margin-bottom: 8px;
}
/* Project Summaries and Blog Teasers */
.project-summaries, .blog-teasers {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  margin-bottom: 22px;
}
.project-summaries > div, .blog-teasers > div {
  background: #fff;
  border-radius: var(--radius-medium);
  box-shadow: var(--shadow);
  flex: 1 1 260px;
  min-width: 220px;
  max-width: 333px;
  padding: 26px 21px 18px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-bottom: 20px;
  transition: box-shadow 0.16s, transform 0.10s;
}
.project-summaries > div:hover, .blog-teasers > div:hover {
  box-shadow: 0 8px 26px rgba(34,64,107,0.13);
  transform: translateY(-3px) scale(1.011);
}

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

/* Blog Categories */
.blog-categories {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 13px;
  flex-wrap: wrap;
}
.blog-categories ul {
  display: flex;
  flex-direction: row;
  gap: 12px;
  flex-wrap: wrap;
}
.blog-categories li {
  background: var(--gray-mid);
  color: var(--primary);
  font-size: 0.98rem;
  padding: 4px 13px;
  border-radius: var(--radius-small);
}

/* --- Contact Info & Form --- */
.contact-info ul {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.contact-info li {
  display: flex;
  align-items: center;
  gap: 10px;
}
.contact-form-section form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 11px;
}
.contact-form-section label {
  font-weight: 500;
  display: block;
  margin-bottom: 5px;
  color: var(--primary);
}
.contact-form-section input,
.contact-form-section textarea {
  background: var(--gray-mid);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-small);
  font-size: 1rem;
  padding: 10px 12px;
  margin-bottom: 3px;
  color: var(--primary);
  transition: border 0.15s, background 0.18s;
}
.contact-form-section input:focus,
.contact-form-section textarea:focus {
  border: 1.5px solid var(--secondary);
  background: #fff;
  outline: none;
}
.contact-form-section button[type="submit"] {
  align-self: flex-start;
  margin-top: 13px;
}

/* Map Placeholder */
.map-section .map-placeholder {
  min-height: 90px;
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--gray-mid);
  border-radius: var(--radius-large);
  padding: 25px 18px;
  margin-bottom: 14px;
}

/* --- FOOTER --- */
footer {
  background: var(--primary);
  color: #fff;
  padding: 44px 0 18px;
}
footer .container {
  flex-direction: column;
  align-items: center;
  gap: 15px;
}
.footer-navigation {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-bottom: 11px;
}
.footer-navigation a {
  color: #fff;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  opacity: 0.95;
  position: relative;
  padding: 3px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.18s, border-bottom 0.14s;
}
.footer-navigation a:hover, .footer-navigation a:focus {
  color: var(--secondary);
  border-bottom: 2px solid var(--secondary);
}
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  font-size: 0.98rem;
  opacity: 0.93;
}
.footer-legal {
  margin-top: 7px;
  font-size: 0.9rem;
  opacity: 0.78;
}

/* -- CTA BUTTONS -- */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  border-radius: var(--radius-medium);
  font-size: 1.08rem;
  padding: 10px 26px;
  margin-top: 6px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: none;
  text-align: center;
  min-width: 165px;
  letter-spacing: 0.02em;
  cursor: pointer;
}
.cta.primary {
  background: var(--primary);
  color: #fff;
}
.cta.primary:hover, .cta.primary:focus {
  background: var(--secondary);
  color: var(--primary);
  outline: none;
}
.cta.secondary {
  background: var(--secondary);
  color: var(--primary);
}
.cta.secondary:hover, .cta.secondary:focus {
  background: var(--primary);
  color: #fff;
}

/* ---- PROCESS/OL/UL LISTS ---- */
section ol, section ul {
  margin: 14px 0 18px 22px;
  padding: 0;
}
section ol > li, section ul > li {
  margin-bottom: 13px;
  padding-left: 2px;
  color: var(--text-main);
  line-height: 1.5;
  font-size: 1rem;
}
section ol {
  counter-reset: li;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
section ol > li {
  position: relative;
  padding-left: 33px;
}
section ol > li:before {
  counter-increment: li;
  content: counter(li) ".";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--secondary);
  font-weight: 700;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.08rem;
}
section ul > li strong { color: var(--primary); font-weight: bold; }

/* ===== COOKIE CONSENT BANNER ===== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1600;
  background: #fff;
  border-top: 2px solid var(--primary);
  box-shadow: 0 -2px 16px rgba(34,64,107,0.09);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 28px;
  padding: 26px 24px 16px 24px;
  font-size: 1.04rem;
  transition: transform 0.3s, opacity 0.2s;
}
.cookie-banner.hide {
  transform: translateY(110%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner .cookie-text {
  color: var(--text-main);
  line-height: 1.6;
  max-width: 480px;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 18px;
}
.cookie-banner button {
  font-size: 1rem;
  border-radius: var(--radius-small);
  font-weight: 600;
  padding: 9px 21px;
  margin: 0 1px;
  border: none;
  transition: var(--transition);
  box-shadow: 0 2px 6px rgba(34,64,107,0.04);
}
.cookie-banner .cookie-accept {
  background: var(--secondary);
  color: var(--primary);
}
.cookie-banner .cookie-accept:hover, .cookie-banner .cookie-accept:focus {
  background: var(--primary);
  color: #fff;
}
.cookie-banner .cookie-reject {
  background: #e0e6ee;
  color: var(--primary);
}
.cookie-banner .cookie-reject:hover, .cookie-banner .cookie-reject:focus {
  background: var(--danger);
  color: #fff;
}
.cookie-banner .cookie-settings {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: 9px 17px;
}
.cookie-banner .cookie-settings:hover, .cookie-banner .cookie-settings:focus {
  background: var(--primary);
  color: #fff;
}

/* ===== COOKIE PREFERENCES MODAL ===== */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(40,50,80,0.31);
  z-index: 1700;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  opacity: 1;
  transition: opacity 0.28s;
}
.cookie-modal-overlay.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: #fff;
  border-radius: var(--radius-large);
  box-shadow: 0 8px 44px rgba(34,64,107,0.12);
  max-width: 420px;
  width: 92vw;
  padding: 38px 30px 28px 30px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: fadeInScale 0.22s cubic-bezier(.64,.09,.08,1);
}
.cookie-modal h2 {
  font-size: 1.21rem;
  color: var(--primary);
  margin-bottom: 6px;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--gray-mid);
  border-radius: var(--radius-small);
  padding: 10px 13px;
  margin-bottom: 4px;
}
.cookie-modal .cookie-category label {
  font-weight: 500;
  color: var(--primary);
  flex: 1 1 auto;
  cursor: pointer;
}
.cookie-modal .cookie-category input[type="checkbox"] {
  accent-color: var(--secondary);
}
.cookie-modal .cookie-category.essential label {
  color: var(--primary-dark);
}
.cookie-modal .cookie-category.essential input[type="checkbox"] {
  accent-color: var(--primary-dark);
}
.cookie-modal .cookie-footer {
  display: flex;
  gap: 14px;
  margin-top: 11px;
  justify-content: flex-end;
}
.cookie-modal .cookie-close {
  position: absolute;
  top: 13px;
  right: 14px;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--primary);
  opacity: 0.7;
}
.cookie-modal .cookie-close:hover { opacity: 1; }

@keyframes fadeInScale {
  0% { opacity: 0; transform: scale(0.90); }
  100% { opacity: 1; transform: scale(1); }
}

/* ===== RESPONSIVE: MOBILE-FIRST, FLEXBOX ===== */
@media (max-width: 1024px) {
  .container { max-width: 94vw; padding: 0 8px; }
}
@media (max-width: 820px) {
  .content-wrapper { max-width: 98vw; padding: 0 6px; }
}
@media (max-width: 920px) {
  header .container nav { gap: 14px; }
}
@media (max-width: 825px) {
  .project-summaries, .blog-teasers, .feature-list, .service-list, .service-list-overview {
    flex-direction: column;
    align-items: stretch;
    gap: 17px;
  }
  .card-container, .content-grid {
    flex-direction: column!important;
    gap: 17px;
  }
}
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.32rem; }
  header .container {
    flex-direction: row;
    align-items: center;
    height: 60px;
    padding: 0 10px;
  }
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .mobile-menu {
    display: flex;
  }
  .content-wrapper {
    align-items: flex-start;
    padding: 0 5px;
  }
  .hero {
    padding: 44px 0 33px 0;
    margin-bottom: 36px;
  }
  .testimonial-card { flex-direction: column; align-items: flex-start; }
  .blog-categories {
    flex-direction: column;
    gap: 7px;
  }
  .section {
    margin-bottom: 32px;
    padding: 24px 7px;
  }
  .card, .feature-list li, .service-list li, .service-list-overview li, .project-summaries > div, .blog-teasers > div {
    padding: 19px 11px 14px;
    min-width: 0;
  }
  .map-section .map-placeholder { padding: 14px 8px; }
}
@media (max-width: 600px) {
  .content-wrapper {
    padding: 0 3px;
    max-width: 100vw;
  }
  .cookie-banner {
    flex-direction: column;
    gap: 17px;
    padding: 19px 5vw 10px 5vw;
  }
  .cookie-banner .cookie-actions {
    flex-direction: column;
    gap: 11px;
  }
  .cookie-modal {
    padding: 19px 7vw 14px 7vw;
  }
}
@media (max-width: 480px) {
  h1 { font-size: 1.2rem; }
  h2 { font-size: 1rem; }
  .footer-navigation { gap: 9px; }
  .section { padding: 17px 2px; }
}

/* ==== FLEXBOX DIRECTION FOR TEXT-IMAGE SECTION & GRIDS ==== */
.text-image-section {
  flex-direction: row;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}

/* ===== FOCUS VISIBILITY ===== */
a:focus, button:focus { outline: 2px solid var(--secondary); outline-offset: 2px; }
input:focus, textarea:focus { outline: 2px solid var(--secondary); }

/* ===== MICROINTERACTIONS ===== */
.card, .feature-list li, .service-list li, .service-list-overview li, .project-summaries > div, .blog-teasers > div, .testimonial-card {
  transition: box-shadow 0.19s, transform 0.16s;
}
.cta, .cookie-banner button, .footer-navigation a {
  transition: background 0.19s, color 0.17s, border 0.12s, box-shadow 0.13s;
}

/* ====== DARK ON LIGHT FOR TESTIMONIALS ====== */
.testimonial-card {
  background: #fff;
  color: var(--text-main);
}

/* ====== Z-INDEX MANAGEMENT ====== */
header { z-index: 1002; }
.mobile-menu { z-index: 1200; }
.cookie-banner { z-index: 1600; }
.cookie-modal-overlay { z-index: 1700; }

/* ====== UTILITY CLASSES ====== */
.mt-0 { margin-top: 0!important; }
.mb-0 { margin-bottom: 0!important; }
.mt-2 { margin-top: 2px!important; }
.mb-2 { margin-bottom: 2px!important; }
.mt-4 { margin-top: 4px!important; }
.mb-4 { margin-bottom: 4px!important; }
.mt-8 { margin-top: 8px!important; }
.mb-8 { margin-bottom: 8px!important; }

/* Hide visually but present for screen readers */
.sr-only { position: absolute!important; width: 1px; height: 1px; padding: 0; margin:-1px; overflow:hidden;clip:rect(0,0,0,0);border:0; }

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