/* ========================================================== */
/* CSS RESET & BASE STYLES (Normalize + Box Model Fix)       */
/* ========================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}
body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: #1a2633;
  background: #F7F3E8;
  line-height: 1.6;
  min-height: 100vh;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
ul, ol {
  margin: 0 0 24px 0;
  padding: 0 0 0 24px;
}
ul li {
  margin-bottom: 12px;
}
a {
  color: #204563;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus, a:hover {
  color: #152e41;
  outline: none;
}
strong {
  font-weight: 600;
}

/* ========================================================== */
/* BRAND TYPOGRAPHY                                          */
/* ========================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Open Sans', Arial, Helvetica, sans-serif;
  color: #204563;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.375rem;
  margin-bottom: 16px;
}
h4, h5, h6 {
  font-size: 1.125rem;
  margin-bottom: 12px;
}
p, li, address {
  font-size: 1rem;
  color: #253952;
}

@media (min-width: 992px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.25rem; }
}

/* ========================================================== */
/* LAYOUT CONTAINERS & SECTIONS                              */
/* ========================================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  margin: 0 auto;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* FLEX PATTERNS (per requirements) */
.card-container, .card-grid, .features {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: stretch;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(32, 69, 99, 0.07), 0 0.5px 1.5px rgba(0,0,0,0.02);
  padding: 32px 24px;
  flex: 1 1 280px;
  min-width: 240px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.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;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  margin: 0 0 24px 0;
  background: #fff;
  border-radius: 12px;
  padding: 20px 28px;
  box-shadow: 0 2px 8px rgba(32,69,99,0.09);
  border-left: 5px solid #C0D9E3;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.testimonial-card:hover {
  box-shadow: 0 8px 24px rgba(32,69,99,0.14);
  border-color: #204563;
}
.testimonial-card p {
  font-size: 1.125rem;
  color: #204563;
  margin-bottom: 6px;
}
.testimonial-card span, .testimonial-card h3 {
  color: #365a75;
  font-size: 0.99rem;
  font-style: italic;
  letter-spacing: 0.02em;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ========================================================== */
/* HEADER, NAVIGATION, LOGO                                  */
/* ========================================================== */
header {
  background: #fff;
  box-shadow: 0 1px 8px rgba(32, 69, 99, 0.08);
  padding: 0;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
header img {
  height: 44px;
  width: auto;
}
nav {
  display: flex;
  align-items: center;
  gap: 16px;
}
nav a {
  padding: 8px 14px;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 8px;
  transition: background 0.17s,color 0.17s;
}
nav a:hover:not(.cta-button), nav a:focus:not(.cta-button) {
  background: #C0D9E3;
}
nav .cta-button {
  background: #204563;
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  border-radius: 24px;
  padding: 10px 28px;
  margin-left: 16px;
  box-shadow: 0 1px 4px rgba(32,69,99,0.12);
  transition: background 0.18s, box-shadow 0.18s;
}
nav .cta-button:hover, nav .cta-button:focus {
  background: #365a75;
  color: #fff;
  box-shadow: 0 8px 24px rgba(32,69,99,0.13);
}
.mobile-menu-toggle {
  display: none;
  background: #204563;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 2rem;
  padding: 7px 16px;
  cursor: pointer;
  transition: background 0.18s, box-shadow 0.2s;
  z-index: 12;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #365a75;
}

/* ========================================================== */
/* MOBILE NAVIGATION (slide-in full screen menu)              */
/* ========================================================== */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(32, 69, 99, 0.97);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(.8,0,.2,1);
  z-index: 2000;
  padding: 24px 0;
}
.mobile-menu.open {
  transform: translateX(0%);
}
.mobile-menu-close {
  font-size: 2rem;
  background: none;
  color: #fff;
  border: none;
  padding: 0 28px 8px 0;
  cursor: pointer;
  transition: color 0.15s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  color: #C0D9E3;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  padding: 38px 36px;
  gap: 22px;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', 'Open Sans', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1.2rem;
  border-radius: 10px;
  padding: 10px 20px;
  width: 100%;
  transition: background 0.17s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #365a75;
  color: #C0D9E3;
}

/* Hamburger menu responsiveness */
@media (max-width: 1100px) {
  nav {
    gap: 10px;
  }
  nav a {
    font-size: 0.97rem;
    padding: 7px 10px;
  }
}
@media (max-width: 900px) {
  header .container {
    height: 64px;
  }
  header img {
    height: 36px;
  }
  nav .cta-button {
    padding: 8px 16px;
  }
}
@media (max-width: 850px) {
  nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
/* Ensure mobile menu always overlays everything! */
@media (max-width: 850px) {
  .mobile-menu {
    display: flex;
  }
}

/* ========================================================== */
/* FOOTER                                                    */
/* ========================================================== */
footer {
  background: #204563;
  color: #fff;
  padding: 42px 0 20px 0;
  box-shadow: 0 -2px 8px rgba(32,69,99,0.07);
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}
.footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-bottom: 12px;
}
.footer-menu a {
  color: #C0D9E3;
  font-size: 0.97rem;
  font-weight: 600;
  border-radius: 8px;
  padding: 7px 14px;
  transition: background 0.16s, color 0.14s;
}
.footer-menu a:hover, .footer-menu a:focus {
  background: #C0D9E3;
  color: #204563;
}
footer .text-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.98rem;
  color: #edf3f9;
}
footer .text-section p {
  color: #edf3f9;
  font-size: 0.98rem;
}
footer img {
  height: 32px;
  width: auto;
  margin-bottom: 8px;
}

/* ========================================================== */
/* BUTTONS, CTA & INTERACTIVE COMPONENTS                     */
/* ========================================================== */
.cta-button {
  display: inline-block;
  background: #204563;
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  border: none;
  border-radius: 28px;
  padding: 12px 36px;
  margin: 18px 0 0 0;
  box-shadow: 0 2px 8px rgba(32,69,99,0.11);
  cursor: pointer;
  text-align: center;
  letter-spacing: 0.03em;
  transition: background 0.17s, box-shadow 0.16s, transform 0.12s;
  position: relative;
  outline: none;
}
.cta-button:focus, .cta-button:hover {
  background: #365a75;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 18px rgba(32,69,99,0.17);
}

button {
  font-family: inherit;
}

/* ========================================================== */
/* CARDS, TESTIMONIALS, FEATURE BOXES                        */
/* ========================================================== */
.card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 1.5px 5.5px rgba(32,69,99,0.08);
  transition: box-shadow 0.22s, border 0.17s;
}
.card:hover {
  box-shadow: 0 6px 16px rgba(32,69,99,0.14);
}

/* Already defined .testimonial-card above for contrast      */

/* ========================================================== */
/* FORM STYLES (contact, modals)                             */
/* ========================================================== */
input, select, textarea {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: #204563;
  background: #fff;
  border: 1.5px solid #C0D9E3;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 18px;
  width: 100%;
  transition: border-color 0.2s, box-shadow 0.13s;
}
input:focus, textarea:focus, select:focus {
  border-color: #204563;
  outline: none;
  box-shadow: 0 0 0 2px #C0D9E3;
}
label {
  font-weight: 600;
  color: #204563;
  margin-bottom: 6px;
  display: block;
}

/* ========================================================== */
/* ICONS INLINE IN TEXT                                      */
/* ========================================================== */
.text-section img {
  display: inline-block;
  vertical-align: middle;
  height: 20px;
  width: 20px;
  margin-right: 8px;
}

/* ========================================================== */
/* RESPONSIVE DESIGN (Mobile-First with upscaling breakpoints)*/
/* ========================================================== */
@media (max-width: 768px) {
  .container { padding: 0 10px; }
  .content-wrapper      { max-width: 100%; gap: 16px; }
  .section             { padding: 32px 6px; margin-bottom: 40px; }
  .card-container, .card-grid, .features {
    gap: 16px;
  }
  .card       { padding: 20px 12px; min-width: 180px; }
  .testimonial-card     { padding: 18px 14px; gap: 14px; }
  .footer-menu          { gap: 14px; }
  .mobile-menu-close    { padding-right: 12px; }
  .mobile-nav           { padding: 28px 10px; gap: 15px; }
}
@media (max-width: 600px) {
  .content-grid,
  .card-container,
  .card-grid,
  .features,
  .footer-menu,
  .text-image-section {
    flex-direction: column !important;
    gap: 14px !important;
    align-items: stretch;
  }
  .content-wrapper {
    gap: 12px;
  }
  .testimonial-card, .card {
    width: 100%;
    min-width: 0;
  }
}
@media (max-width: 480px) {
  h1 { font-size: 1.55rem; }
  h2 { font-size: 1.24rem; }
}

/* Text-image-section stacking on mobile */
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}

/* ========================================================== */
/* COOKIE CONSENT BANNER                                     */
/* ========================================================== */
#cookie-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  box-shadow: 0 -4px 20px rgba(32,69,99,0.09);
  border-top: 4px solid #204563;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 36px;
  z-index: 4000;
  transition: transform 0.28s;
  gap: 30px;
  flex-wrap: wrap;
}
#cookie-consent-banner.hide {
  transform: translateY(120%);
}
#cookie-consent-banner p {
  color: #204563;
  margin: 0;
  font-size: 1rem;
  flex-grow: 2;
  max-width: 430px;
}
.cookie-buttons {
  display: flex;
  flex-direction: row;
  gap: 14px;
}
.cookie-btn, .cookie-settings-btn {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  padding: 9px 24px;
  border: none;
  border-radius: 22px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  background: #C0D9E3;
  color: #204563;
  transition: background 0.14s, color 0.13s, box-shadow 0.11s;
  box-shadow: 0 1px 5px rgba(32,69,99,0.06);
}
.cookie-btn.accept {
  background: #204563;
  color: #fff;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #365a75;
  color: #fff;
}
.cookie-btn.reject {
  background: #d9d9d9;
  color: #204563;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #C0D9E3;
}
.cookie-settings-btn {
  background: #fff;
  color: #204563;
  border: 1.5px solid #C0D9E3;
}
.cookie-settings-btn:hover, .cookie-settings-btn:focus {
  background: #C0D9E3;
  color: #204563;
}
@media (max-width: 700px) {
  #cookie-consent-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 20px 14px;
  }
  .cookie-buttons {
    flex-direction: column;
    gap: 10px;
  }
}

/* Cookie Settings Modal */
#cookie-modal-overlay {
  position: fixed;
  top:0; left:0; right:0; bottom:0;
  width: 100vw;
  height: 100vh;
  background: rgba(32,69,99,0.33);
  z-index: 5000;
  display: none;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
#cookie-modal-overlay.open {
  display: flex;
}
#cookie-modal {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 8px 40px rgba(32,69,99,0.17);
  max-width: 410px;
  width: 96vw;
  padding: 36px 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  transition: transform 0.24s;
  animation: cookieModalIn 0.34s;
}

@keyframes cookieModalIn {
  from {transform: translateY(100px) scale(0.98); opacity:0;}
  to   {transform: translateY(0) scale(1); opacity:1;}
}
#cookie-modal h3 {
  font-size: 1.1rem;
  color: #204563;
  font-family: 'Montserrat', Arial, sans-serif;
}
.cookie-category {
  margin-bottom: 12px;
}
.cookie-category label {
  font-size: 1rem;
  color: #253952;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cookie-switch {
  margin-left: auto;
  display: flex;
  align-items: center;
}

/* Custom switch style for toggles */
.cookie-switch input[type=checkbox] {
  opacity: 0;
  width: 0; height: 0;
  position: absolute;
}
.cookie-switch span {
  width: 38px; height: 20px;
  background: #C0D9E3;
  display: inline-block;
  border-radius: 14px;
  position: relative;
  transition: background 0.14s;
}
.cookie-switch input:checked + span {
  background: #204563;
}
.cookie-switch span::before {
  content: '';
  display: block;
  position: absolute;
  left: 3px; top: 3px;
  width: 14px; height: 14px;
  background: #fff;
  border-radius: 50%;
  transition: left 0.16s;
}
.cookie-switch input:checked + span::before {
  left: 21px;
}

#cookie-modal .modal-actions {
  display: flex;
  flex-direction: row;
  gap: 18px;
  margin-top: 12px;
  justify-content: flex-end;
}
#cookie-modal .modal-actions .cookie-btn {
  min-width: 108px;
  padding: 10px 0;
}
#cookie-modal .close {
  background: none;
  border: none;
  font-size: 1.8rem;
  color: #204563;
  cursor: pointer;
  position: absolute;
  top: 16px; right: 18px;
}
#cookie-modal .close:focus, #cookie-modal .close:hover {
  color: #365a75;
}
@media (max-width: 480px) {
  #cookie-modal {
    padding: 18px 7px;
    max-width: 98vw;
    font-size: 0.96rem;
  }
}

/* ========================================================== */
/* UTILITY CLASSES & SPACING                                 */
/* ========================================================== */
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-8 { margin-bottom: 8px !important; }
.mb-12 { margin-bottom: 12px !important; }
.mb-20 { margin-bottom: 20px !important; }
.mb-32 { margin-bottom: 32px !important; }
.pt-0 { padding-top: 0 !important; }
.pb-0 { padding-bottom: 0 !important; }
.flex-row { display: flex; flex-direction: row !important; }
.flex-column { display: flex; flex-direction: column !important; }
.gap-20 { gap: 20px !important; }
.gap-24 { gap: 24px !important; }
.gap-32 { gap: 32px !important; }
.align-center { align-items: center !important; }
.align-start { align-items: flex-start !important; }
.w-100 { width: 100% !important; }

/* Hide scrollbars for overlays/mobile nav */
.mobile-menu, #cookie-modal-overlay  {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;     /* Firefox */
}
.mobile-menu::-webkit-scrollbar, #cookie-modal-overlay::-webkit-scrollbar {
  display: none;
}

/* ========================================================== */
/* ACCESSIBILITY                                             */
/* ========================================================== */
a:focus-visible, button:focus-visible, .cta-button:focus-visible, .mobile-menu-toggle:focus-visible, .mobile-menu-close:focus-visible {
  outline: 2px solid #C0D9E3;
  outline-offset: 2px;
}

/* END */
