/* --- CSS Reset & Basic 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 {
  box-sizing: border-box;
  font-family: 'Lato', Arial, Helvetica, sans-serif;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  background: #F9FAF7;
  color: #222;
  font-family: 'Lato', Arial, Helvetica, sans-serif;
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #18608A;
  text-decoration: none;
  transition: color 0.15s cubic-bezier(.4,0,.2,1);
}
a:hover, a:focus {
  color: #F19053;
}
ul, ol {
  margin-left: 20px;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6, .cta strong {
  font-family: 'Montserrat', 'Lato', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
}
h1 {
  font-size: 2.25rem;
  line-height: 1.15;
  margin-bottom: 16px;
}
h2 {
  font-size: 1.5rem;
  line-height: 1.2;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.125rem;
  margin-bottom: 8px;
}
.subheadline {
  font-size: 1.125rem;
  color: #18608A;
  font-family: 'Montserrat', 'Lato', Arial, sans-serif;
  font-weight: 400;
  margin-bottom: 32px;
}
p {
  margin-bottom: 16px;
}
strong {
  font-weight: 700;
}
.blockquote, blockquote {
  font-style: italic;
  padding: 12px 32px;
  border-left: 4px solid #18608A;
  background: #FFF;
  border-radius: 10px;
  margin: 24px 0;
  color: #333;
  font-size: 1.08rem;
}

/* --- Container & Layout --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  width: 100%;
  margin: 0 auto;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* --- Spacing & Sectioning --- */
section {
  margin-bottom: 60px;
  padding: 40px 0;
  display: flex;
  flex-direction: column;
}
@media (max-width: 768px) {
  section {
    padding: 30px 0;
    margin-bottom: 32px;
  }
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #FFF;
  border-radius: 18px;
  box-shadow: 0 2px 16px 0 rgba(24,96,138,0.08);
  padding: 32px 28px 28px 28px;
  min-width: 260px;
  max-width: 390px;
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s cubic-bezier(.4,0,.2,1), box-shadow 0.18s cubic-bezier(.4,0,.2,1);
}
.card:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 4px 24px 0 rgba(24,96,138,0.13);
}
.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;
  background: #FFF;
  border-radius: 12px;
  box-shadow: 0 1px 8px 0 rgba(24,96,138,0.08);
  margin-bottom: 20px;
  border-left: 5px solid #18608A;
  min-width: 220px;
  max-width: 580px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #FFF;
  border-radius: 12px;
  box-shadow: 0 1px 8px 0 rgba(24,96,138,0.08);
  padding: 24px 20px;
  margin-bottom: 20px;
}

/* --- Hero Section --- */
.hero {
  background: #18608A;
  color: #FFF;
  border-radius: 0 0 28px 28px;
  margin-bottom: 60px;
  box-shadow: 0 2px 18px 0 rgba(24,96,138,0.08);
}
.hero .container {
  align-items: center;
  justify-content: center;
  min-height: 220px;
}
.hero h1,
.hero .subheadline {
  color: #fff;
}
.hero .cta.primary {
  margin-top: 18px;
}

/* --- Feature Grid --- */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 18px 0 0 0;
  justify-content: flex-start;
}
.feature-grid > li, .feature-grid > div {
  background: #FFF;
  border-radius: 16px;
  box-shadow: 0 2px 14px 0 rgba(24,96,138,0.07);
  padding: 28px 24px 20px 24px;
  flex: 1 1 250px;
  min-width: 220px;
  max-width: 390px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 20px;
  transition: box-shadow .18s cubic-bezier(.4,0,.2,1), transform .15s cubic-bezier(.4,0,.2,1);
  position: relative;
}
.feature-grid > li:hover, .feature-grid > div:hover {
  box-shadow: 0 8px 40px 0 rgba(24,96,138,0.12);
  transform: translateY(-4px);
}
.feature-grid img {
  height: 48px;
  width: 48px;
  margin-bottom: 12px;
}
.feature-grid h3 {
  font-size: 1.12rem;
  margin-bottom: 6px;
  color: #18608A;
  letter-spacing: 0.01em;
}

/* --- Service List --- */
.service-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 18px;
}
.service-list li {
  background: #FFF;
  border-radius: 10px;
  box-shadow: 0 1px 6px 0 rgba(24,96,138,0.06);
  padding: 18px 18px 14px 18px;
  position: relative;
}
.service-list h3 {
  color: #18608A;
  font-size: 1.06rem;
  margin-bottom: 7px;
}
.service-list li:before {
  content: "";
  display: block;
  width: 28px;
  height: 4px;
  background: #F19053;
  border-radius: 2px;
  position: absolute;
  top: 14px;
  left: 18px;
}

/* --- CTA Banner --- */
.cta {
  width: 100%;
  margin-bottom: 60px;
  padding: 0;
  background: none;
}
.cta .cta-banner {
  background: #18608A;
  color: #FFF;
  font-size: 1.1rem;
  padding: 20px 32px;
  border-radius: 22px;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-bottom: 22px;
  box-shadow: 0 2px 16px 0 rgba(24,96,138,0.12);
}
.cta .cta.primary {
  margin-top: 10px;
}

/* --- Buttons & Calls to Action --- */
.cta.primary,
button,
input[type=submit] {
  display: inline-block;
  font-family: 'Montserrat', 'Lato', Arial, sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  border-radius: 18px;
  border: none;
  padding: 12px 36px 12px 36px;
  background: #F19053;
  color: #FFF;
  cursor: pointer;
  transition: background 0.16s cubic-bezier(.4,0,.2,1), transform 0.08s cubic-bezier(.4,0,.2,1), box-shadow 0.15s cubic-bezier(.4,0,.2,1);
  margin: 0 7px 0 0;
  letter-spacing: 0.03em;
  box-shadow: 0 2px 8px 0 rgba(241,144,83,0.10);
}
.cta.primary:hover,
button:hover,
input[type=submit]:hover,
.cta.primary:focus,
button:focus {
  background: #18608A;
  color: #fff;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 4px 24px 0 rgba(24,96,138,0.20);
}

/* --- Header Layout --- */
header {
  background: #FFF;
  border-bottom: 4px solid #F19053;
  box-shadow: 0 2px 8px 0 rgba(24,96,138,0.05);
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 20;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 18px;
}
header nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
header nav a {
  font-family: 'Montserrat', 'Lato', Arial, sans-serif;
  font-weight: 600;
  color: #18608A;
  font-size: 1.06rem;
  border-radius: 10px;
  padding: 6px 16px;
  transition: background .15s, color .14s;
}
header nav a:hover, header nav a:focus {
  background: #F19053;
  color: #FFF;
}
header img {
  height: 46px;
  margin-right: 14px;
}
header .cta.primary {
  margin-left: 18px;
}

/* --- Footer --- */
footer {
  background: #F9FAF7;
  border-top: 3px solid #F19053;
  padding: 36px 0 24px 0;
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
footer .container {
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
}
footer .footer-navigation {
  flex: 2 1 220px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
}
footer nav a {
  color: #18608A;
  font-size: 1rem;
  font-family: 'Montserrat', 'Lato', Arial, sans-serif;
  padding: 4px 8px;
  border-radius: 8px;
  transition: background .15s, color .14s;
}
footer nav a:hover, footer nav a:focus {
  color: #F19053;
  background: #ECECEC;
}
footer .footer-contact {
  flex: 1 1 250px;
}
footer .social-links {
  display: flex;
  gap: 18px;
  align-items: center;
}
footer .social-links img {
  height: 32px;
  width: 32px;
  border-radius: 7px;
  background: #FFF;
  box-shadow: 0 1px 6px 0 rgba(24,96,138,0.08);
  transition: transform .12s, box-shadow .13s;
}
footer .social-links img:hover {
  transform: scale(1.09) rotate(-7deg);
  box-shadow: 0 3px 16px 0 rgba(241,144,83,0.18);
}
footer .text-section {
  font-size: 1.0rem;
  color: #333;
  line-height: 1.6;
  margin-bottom: 7px;
}

/* --- Text & Utility Sections --- */
.text-section {
  margin-bottom: 24px;
  font-size: 1.09rem;
  color: #244052;
}

/* --- Lists --- */
ul, ol {
  margin-bottom: 18px;
}
ul li, ol li {
  margin-bottom: 7px;
  padding-left: 0;
}

/* --- Responsive Styles --- */
@media (max-width: 1020px) {
  .container {
    max-width: 100vw;
  }
  .content-wrapper {
    max-width: 100vw;
  }
  .feature-grid > li, .feature-grid > div, .card {
    max-width: 100% !important;
    min-width: 160px;
  }
  footer .container {
    flex-wrap: wrap;
    gap: 21px;
  }
}
@media (max-width: 900px) {
  .feature-grid {
    flex-direction: column;
    gap: 20px;
  }
}
@media (max-width: 768px) {
  .container, header .container {
    flex-direction: column;
    align-items: stretch;
    gap: 13px;
  }
  .hero .container {
    min-height: 140px;
  }
  .content-wrapper {
    padding: 0 2px;
    max-width: 100vw;
  }
  footer .container {
    flex-direction: column;
    gap: 22px;
    align-items: flex-start;
  }
  .feature-grid {
    gap: 14px;
    flex-direction: column;
  }
  .card-container, .content-grid {
    gap: 14px;
    flex-direction: column;
  }
  .text-image-section {
    flex-direction: column;
    gap: 14px;
    align-items: stretch;
  }
}
@media (max-width: 520px) {
  h1 { font-size: 1.45rem; }
  h2 { font-size: 1.18rem; }
  .cta-banner { font-size: 1rem; padding: 13px 8px; }
  .feature-grid > li, .feature-grid > div, .card {
    padding: 16px 8px;
  }
  .testimonial-card, .feature-item, .service-list li {
    padding: 12px 7px;
  }
}

/* --- Mobile Navigation --- */
.mobile-menu-toggle {
  display: none;
  background: #18608A;
  color: #FFF;
  border: none;
  font-size: 2.1rem;
  padding: 7px 18px;
  border-radius: 10px;
  margin-left: 6px;
  cursor: pointer;
  transition: background .13s, color .13s, box-shadow .14s;
  z-index: 140;
}
.mobile-menu-toggle:focus {
  outline: 2px solid #F19053;
  outline-offset: 2px;
}
@media (max-width: 960px) {
  header nav {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  background: #F9FAF7;
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 90vw;
  max-width: 350px;
  z-index: 150;
  box-shadow: -8px 0 40px 0 rgba(24,96,138,0.10);
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(.77,0,.18,1);
  will-change: transform;
}
.mobile-menu.open {
  transform: translateX(0%);
}
.mobile-menu-close {
  background: #18608A;
  color: #FFF;
  border: none;
  font-size: 2.2rem;
  border-radius: 10px;
  margin: 16px 13px 7px 0;
  align-self: flex-end;
  cursor: pointer;
  padding: 4px 14px 4px 14px;
  box-shadow: 0 2px 8px 0 rgba(24,96,138,0.07);
  transition: background .12s;
}
.mobile-menu-close:focus {
  outline: 2px solid #F19053;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  align-items: flex-start;
  padding: 22px 28px 12px 28px;
}
.mobile-nav a {
  font-family: 'Montserrat', 'Lato', Arial, sans-serif;
  font-size: 1.2rem;
  color: #18608A;
  background: #FFF;
  border-radius: 8px;
  padding: 8px 12px;
  margin-right: 0;
  width: 100%;
  transition: background .15s, color .15s;
  border: none;
  display: block;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #F19053;
  color: #FFF;
}
@media (min-width: 961px) {
  .mobile-menu, .mobile-menu-toggle { display: none !important; }
}

/* --- Cookie Consent Banner --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100vw;
  background: #FFF;
  color: #222;
  box-shadow: 0 -4px 22px 0 rgba(24,96,138,0.09);
  border-top: 3px solid #F19053;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 6vw 24px 6vw;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transform: translateY(24px);
  transition: opacity .33s cubic-bezier(.4,0,.2,1), transform .33s cubic-bezier(.4,0,.2,1);
}
.cookie-banner.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.cookie-banner .cookie-banner-text {
  flex: 1 1 200px;
  font-size: 1.02rem;
  color: #213B50;
  margin-right: 15px;
}
.cookie-banner-buttons {
  display: flex;
  flex-direction: row;
  gap: 11px;
  align-items: center;
}
.cookie-accept,
.cookie-reject,
.cookie-settings {
  font-family: 'Montserrat', 'Lato', Arial, sans-serif;
  font-size: 1.04rem;
  font-weight: 600;
  padding: 8px 17px;
  border-radius: 9px;
  border: none;
  cursor: pointer;
  transition: background .13s, color .14s, box-shadow .13s;
  margin-right: 7px;
}
.cookie-accept {
  background: #18608A;
  color: #FFF;
}
.cookie-accept:hover, .cookie-accept:focus {
  background: #F19053;
  color: #FFF;
}
.cookie-reject {
  background: #F19053;
  color: #fff;
}
.cookie-reject:hover, .cookie-reject:focus {
  background: #18608A;
  color: #FFF;
}
.cookie-settings {
  background: #FFF;
  border: 2px solid #18608A;
  color: #18608A;
}
.cookie-settings:hover, .cookie-settings:focus {
  background: #F19053;
  color: #FFF;
  border: 2px solid #F19053;
}
@media (max-width: 768px) {
  .cookie-banner {
    flex-direction: column;
    gap: 14px;
    align-items: stretch;
    padding: 18px 10px 18px 10px;
  }
  .cookie-banner .cookie-banner-text {
    margin-right: 0;
    margin-bottom: 8px;
    font-size: 1rem;
  }
  .cookie-banner-buttons {
    flex-direction: row;
    justify-content: flex-start;
    gap: 9px;
  }
}

/* --- Cookie Preferences Modal --- */
.cookie-modal-backdrop {
  display: none;
  position: fixed;
  z-index: 1050;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(33,59,80,0.19);
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.33s ease;
}
.cookie-modal-backdrop.active {
  display: flex;
}
.cookie-modal {
  background: #FFF;
  border-radius: 21px;
  box-shadow: 0 8px 48px 0 rgba(24,96,138,0.14);
  padding: 28px 32px;
  width: 95vw;
  max-width: 420px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 19px;
  animation: slideUp .38s cubic-bezier(.40,0,.2,1);
}
@keyframes slideUp {
  from { transform: translateY(60px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-modal h2 {
  color: #18608A;
  font-size: 1.13rem;
  margin-bottom: 5px;
}
.cookie-category {
  background: #F9FAF7;
  border-radius: 10px;
  padding: 11px 12px 11px 12px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.cookie-category label {
  font-size: 1.0rem;
  color: #333;
  font-weight: 600;
  cursor: pointer;
}
.cookie-modal button,
.cookie-modal input[type=checkbox] {
  margin-left: 7px;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 7px;
  justify-content: flex-end;
}
.cookie-modal-close {
  position: absolute;
  top: 17px;
  right: 18px;
  background: #F19053;
  color: #FFF;
  border: none;
  font-size: 1.6rem;
  border-radius: 6px;
  padding: 2px 10px;
  cursor: pointer;
}
.cookie-modal-close:focus {
  outline: 2px solid #18608A;
}
.cookie-toggle-checkbox {
  width: 24px;
  height: 24px;
  accent-color: #F19053;
  border-radius: 7px;
}
/* Essential (always enabled) - show as locked */
.cookie-category.essential label:after {
  content: ' 🔒';
  color: #18608A;
  font-size: 1.0em;
  font-weight: 800;
}
.cookie-category.essential input[type=checkbox] {
  display: none;
}

@media (max-width: 530px) {
  .cookie-modal {
    padding: 16px 6px;
  }
}

/* --- Geometric Structured Effects --- */
.feature-grid > li, .feature-grid > div, .card {
  clip-path: polygon(2% 0,98% 0,100% 10%,100% 98%,98% 100%,2% 100%,0 90%,0 2%);
  border: 2px solid #E5EDF1;
}
.card, .feature-grid > li, .feature-grid > div {
  box-shadow: 0 4px 28px 0 rgba(24,96,138,0.09);
}
.hero, .cta .cta-banner {
  clip-path: polygon(0 0,100% 0,100% 80%,93% 100%,0 100%);
}

/* --- Micro-interactions for buttons and cards --- */
.cta.primary:active,
button:active,
input[type=submit]:active {
  transform: scale(0.98);
}
.card:active, .feature-grid > li:active, .feature-grid > div:active {
  transform: scale(0.98);
}

/* --- Focus --- */
a:focus, button:focus, input:focus, .cta.primary:focus {
  outline: 2px solid #F19053;
  outline-offset: 2px;
}

/* --- Custom Scrollbar (for geometric accenting) --- */
body::-webkit-scrollbar {
  width: 14px;
}
body::-webkit-scrollbar-thumb {
  background: #18608A;
  border-radius: 8px;
  border: 3px solid #F9FAF7;
}
body::-webkit-scrollbar-track {
  background: #F9FAF7;
}

/* --- Form Elements --- */
input, textarea, select {
  border: 2px solid #E5EDF1;
  border-radius: 10px;
  padding: 10px 13px;
  font-size: 1rem;
  font-family: 'Lato', Arial, sans-serif;
  margin-bottom: 13px;
  background: #FFF;
  transition: border .14s;
}
input:focus, textarea:focus, select:focus {
  border-color: #F19053;
}

/* --- Z-index layering for overlays & mobile menu --- */
header { z-index: 20; }
.mobile-menu { z-index: 150; }
.cookie-banner { z-index: 1000; }
.cookie-modal-backdrop { z-index: 1050; }

/* --- Accessibility & Consistency --- */
[tabindex]:focus-visible {
  outline: 3px solid #F19053;
  outline-offset: 1px;
}

/* --- Visual Hierarchy and Geometric Accents --- */
h1, h2, h3 {
  text-transform: none;
  letter-spacing: 0.03em;
}
.hero h1, .cta-banner, .feature-grid h3, header nav a, .mobile-nav a {
  font-family: 'Montserrat', 'Lato', Arial, sans-serif;
  font-variant: small-caps;
  letter-spacing: 0.04em;
}

/* --- End CSS File --- */
