/* ========================================================================
   1. RESET & BASE TYPOGRAPHY
   ======================================================================== */
/* Reset some sensible defaults */
html {
  box-sizing: border-box;
  font-size: 16px;
  -webkit-tap-highlight-color: transparent;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: #21374C;
  background: linear-gradient(135deg, #B7C9D9 0%, #ffffff 100%);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background-repeat: no-repeat;
  background-attachment: fixed;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #21374C;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.15;
}
h1 {
  font-size: 2.2rem;
  margin-bottom: 20px;
}
h2 {
  font-size: 1.6rem;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}
h4, h5, h6 {
  font-size: 1.1rem;
}
p {
  margin-bottom: 16px;
  color: #314a5e;
  font-size: 1rem;
}
strong {
  font-weight: 600;
}
a {
  color: #21374C;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #ECA75A;
}
ul, ol {
  margin-left: 24px;
  margin-bottom: 16px;
}
li {
  margin-bottom: 8px;
  font-size: 1rem;
}
img {
  max-width: 100%;
  display: block;
}

/* ========================================================================
   2. LAYOUT & CONTAINERS (NO GRID)
   ======================================================================== */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px 0 rgba(33,55,76,0.10);
  padding: 32px 24px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover {
  box-shadow: 0 6px 24px 0 rgba(33,55,76,0.18);
  transform: translateY(-2px) scale(1.015);
}
.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 {
  background: #ffffff;
  color: #21374C;
  border-radius: 14px;
  box-shadow: 0 4px 24px 0 rgba(33,55,76,0.07);
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
  border-left: 6px solid #ECA75A;
}
.testimonial-card p {
  font-size: 1.06rem;
  color: #21374C;
  margin-bottom: 8px;
  font-style: italic;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.contact-info-box {
  background: #B7C9D9;
  border-radius: 14px;
  padding: 20px 24px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: #21374C;
  font-size: 1rem;
  font-family: 'Open Sans', Arial, sans-serif;
  box-shadow: 0 2px 12px 0 rgba(33,55,76,0.08);
}
.contact-info-box div, .contact-info-box a {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ========================================================================
   3. HEADER & NAVIGATION
   ======================================================================== */
header {
  width: 100%;
  margin-bottom: 16px;
  background: #fff;
  box-shadow: 0 2px 8px 0 rgba(33,55,76,0.12);
  position: relative;
  z-index: 20;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  padding-bottom: 10px;
}
header img {
  height: 42px;
  width: auto;
  margin-right: 20px;
  vertical-align: middle;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  color: #21374C;
  padding: 6px 14px;
  border-radius: 8px;
  transition: background 0.18s, color 0.18s;
  font-weight: 500;
  position: relative;
}
.main-nav a.cta,
.btn-primary {
  background: linear-gradient(90deg, #ECA75A 30%, #21374C 120%);
  color: #fff;
  padding: 8px 20px;
  border-radius: 26px;
  font-weight: 700;
  margin-left: 10px;
  box-shadow: 0 2px 12px 0 rgba(33,55,76,0.10);
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}
.main-nav a.cta:hover, .btn-primary:hover, .btn-primary:focus {
  background: linear-gradient(90deg, #21374C 0%, #ECA75A 100%);
  color: #fff;
  transform: scale(1.04);
}
.main-nav a:hover,
.main-nav a:focus {
  background: #F6F8FA;
  color: #ECA75A;
}
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #21374C;
  font-size: 2.2rem;
  cursor: pointer;
  z-index: 51;
  margin-left: 16px;
  padding: 4px 16px;
}

/* ========================================================================
   4. MOBILE MENU OVERLAY
   ======================================================================== */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 100vw;
  height: 100vh;
  background: #21374C;
  color: #fff;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 32px 24px 24px 24px;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.73,.01,.18,1.01);
  box-shadow: -2px 0 16px 0 rgba(33,55,76,0.18);
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2.1rem;
  cursor: pointer;
  margin-bottom: 22px;
  margin-left: auto;
  margin-right: 0;
  padding: 8px 14px;
  border-radius: 50%;
  box-shadow: none;
  transition: background 0.14s;
}
.mobile-menu-close:hover {
  background: #ECA75A;
  color: #21374C;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  padding: 11px 8px;
  border-radius: 8px;
  transition: background 0.18s, color 0.18s;
  width: 100%;
  display: block;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #B7C9D9;
  color: #21374C;
}
/* Hide nav on mobile */
@media (max-width: 1024px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
}
@media (min-width: 1025px) {
  .mobile-menu {
    display: none !important;
  }
}

/* ========================================================================
   5. HERO SECTION
   ======================================================================== */
.hero {
  background: linear-gradient(135deg, #B7C9D9 60%, #fff 100%);
  padding: 60px 0 38px 0;
  border-radius: 0 0 40px 40px;
  box-shadow: 0 4px 32px 0 rgba(33,55,76,0.08);
  margin-bottom: 48px;
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 16px;
}
.hero h1 {
  font-size: 2.5rem;
  color: #21374C;
  margin-bottom: 8px;
}
.hero p {
  color: #21374C;
  font-size: 1.12rem;
  max-width: 600px;
  margin-bottom: 24px;
}
.hero .btn-primary {
  margin-top: 12px;
  font-size: 1.1rem;
}

/* ========================================================================
   6. BUTTONS
   ======================================================================== */
.btn-primary {
  display: inline-block;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  outline: none;
  border-radius: 26px;
  background: linear-gradient(90deg, #ECA75A 40%, #21374C 120%);
  color: #fff;
  padding: 12px 32px;
  cursor: pointer;
  box-shadow: 0 2px 10px 0 rgba(33,55,76,0.12);
  transition: background 0.2s, color 0.2s, box-shadow 0.18s, transform 0.14s;
  margin-bottom: 6px;
}
.btn-primary:hover, .btn-primary:focus {
  background: linear-gradient(90deg, #21374C 0%, #ECA75A 100%);
  color: #fff;
  box-shadow: 0 4px 28px 0 rgba(33,55,76,0.13);
  transform: translateY(-2px) scale(1.03);
}

/* ========================================================================
   7. FEATURES, LISTS
   ======================================================================== */
.content-wrapper ul, .content-wrapper ol {
  margin-left: 26px;
  margin-bottom: 0;
}
.content-wrapper ul li, .content-wrapper ol li {
  font-size: 1rem;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #233D58;
}
.content-wrapper ul li img, .content-wrapper ol li img {
  width: 24px;
  height: 24px;
  margin-right: 6px;
}
.section ul, .section ol {
  margin-bottom: 0;
}
.section ul li, .section ol li {
  gap: 8px;
}

/* ========================================================================
   8. FOOTER
   ======================================================================== */
footer {
  background: #21374C;
  color: #fff;
  padding: 50px 0 20px 0;
  border-radius: 30px 30px 0 0;
  box-shadow: 0 -2px 14px 0 rgba(33,55,76,0.10);
  margin-top: 60px;
}
.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-content > * {
  margin-bottom: 0;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav a {
  color: #fff;
  font-size: 1rem;
  padding: 3px 0;
  transition: color 0.17s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #ECA75A;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 1rem;
}
.footer-social {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 0;
}
.footer-social a img {
  width: 30px;
  height: 30px;
  transition: filter 0.14s, transform 0.16s;
  filter: grayscale(10%) brightness(96%);
}
.footer-social a:hover img {
  filter: none;
  transform: scale(1.08) rotate(-6deg);
}
footer img {
  height: 38px;
  margin-bottom: 10px;
}

/* ========================================================================
   9. COOKIE CONSENT BANNER & MODAL
   ======================================================================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #21374C;
  color: #fff;
  box-shadow: 0 -2px 16px 0 rgba(33,55,76,0.18);
  z-index: 1110;
  padding: 26px 20px 18px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  font-size: 1rem;
  animation: slideUpBanner 0.6s cubic-bezier(.65,0,.19,1.03);
}
@keyframes slideUpBanner {
  from { transform: translateY(110%); opacity: 0.6; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner .cookie-btns {
  display: flex;
  gap: 18px;
  margin-top: 3px;
  flex-wrap: wrap;
}
.cookie-banner button {
  background: #B7C9D9;
  color: #21374C;
  border: none;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 7px 22px;
  border-radius: 20px;
  margin: 0 2px;
  cursor: pointer;
  box-shadow: 0 2px 4px 0 rgba(33,55,76,0.11);
  transition: background 0.18s, color 0.18s;
}
.cookie-banner .accept {
  background: #ECA75A;
  color: #21374C;
}
.cookie-banner .accept:hover {
  background: #21374C;
  color: #fff;
}
.cookie-banner .reject {
  background: #fff;
  color: #21374C;
}
.cookie-banner .reject:hover {
  background: #B7C9D9;
}
.cookie-banner .settings {
  background: #21374C;
  color: #B7C9D9;
  border: 1.5px solid #B7C9D9;
}
.cookie-banner .settings:hover {
  background: #ECA75A;
  color: #21374C;
}

/* Cookie modal overlay */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: rgba(33,55,76,0.44);
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.18s;
}
.cookie-modal {
  background: #fff;
  color: #21374C;
  border-radius: 20px;
  box-shadow: 0 8px 32px 0 rgba(33,55,76,0.18);
  min-width: 320px;
  max-width: 410px;
  width: 90vw;
  padding: 32px 26px 24px 26px;
  position: relative;
  animation: slideDownModal 0.5s cubic-bezier(.43,.03,.17,0.97);
}
@keyframes slideDownModal {
  from { transform: translateY(-32px) scale(.92); opacity: 0.45; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
.cookie-modal h3 {
  font-size: 1.18rem;
  font-family: 'Montserrat', Arial, sans-serif;
  margin-bottom: 12px;
}
.cookie-modal .close-modal {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: none;
  color: #21374C;
  font-size: 1.8rem;
  cursor: pointer;
  border-radius: 60px;
  transition: background 0.16s, color 0.16s;
  padding: 3px 11px;
}
.cookie-modal .close-modal:hover {
  background: #ECA75A;
  color: #fff;
}
.cookie-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 9px 0;
}
.cookie-toggle input[type='checkbox'] {
  appearance: none;
  width: 44px;
  height: 22px;
  background: #B7C9D9;
  border-radius: 12px;
  position: relative;
  transition: background 0.17s;
  outline: none;
  cursor: pointer;
}
.cookie-toggle input[type='checkbox']:checked {
  background: #ECA75A;
}
.cookie-toggle input[type='checkbox']::after {
  content: '';
  display: block;
  position: absolute;
  width: 18px;
  height: 18px;
  top: 2px;
  left: 3px;
  border-radius: 9px;
  background: #fff;
  transition: left 0.18s, background 0.18s;
}
.cookie-toggle input[type='checkbox']:checked::after {
  left: 23px;
  background: #21374C;
}
.cookie-modal .cookie-btns {
  margin-top: 18px;
  display: flex;
  gap: 15px;
  justify-content: flex-end;
}
.cookie-modal .cookie-btns button {
  padding: 6px 16px;
  font-size: 1rem;
}

/*
  "Essential" always enabled
*/
.cookie-toggle.essential label {
  font-weight: 700;
}
.cookie-toggle.essential input[type='checkbox'] {
  background: #B7C9D9 !important;
  pointer-events: none;
}


/* ========================================================================
   10. MEDIA QUERIES (RESPONSIVE FLEX ONLY)
   ======================================================================== */
@media (max-width: 900px) {
  h1 { font-size: 2rem; }
  .hero h1 { font-size: 2.15rem; }
  .container {
    padding: 0 10px;
  }
  .footer-content {
    gap: 22px;
  }
}
@media (max-width: 768px) {
  .content-grid, .footer-content {
    flex-direction: column;
    gap: 24px;
  }
  .section {
    padding: 32px 12px;
    margin-bottom: 40px;
  }
  .card-container {
    flex-direction: column;
    gap: 14px;
  }
  .content-wrapper {
    gap: 12px;
  }
  .hero {
    padding: 36px 0 25px 0;
    border-radius: 0 0 18px 18px;
    margin-bottom: 28px;
  }
  .footer-social {
    margin-bottom: 12px;
  }
}
@media (max-width: 580px) {
  .container {
    max-width: 100%;
    padding: 0 6px;
  }
  .content-wrapper {
    gap: 8px;
  }
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 16px;
  }
}
@media (max-width: 370px) {
  .btn-primary,
  .cookie-banner button, .cookie-modal .cookie-btns button {
    padding: 8px 11px;
    font-size: 0.99rem;
  }
}

/* ========================================================================
   11. UTILITIES, MICRO-INTERACTIONS
   ======================================================================== */
.visible {
  display: initial !important;
}
.hidden {
  display: none !important;
}
.fade-in {
  animation: fadeIn .5s cubic-bezier(.32,.01,.57,.99);
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ========================================================================
   12. FORM ELEMENTS (optional)
   ======================================================================== */
input, textarea, select {
  font-family: 'Open Sans', Arial, sans-serif;
  padding: 12px;
  border-radius: 8px;
  border: 1.5px solid #B7C9D9;
  font-size: 1rem;
  outline: none;
  background: #F6F8FA;
  margin-bottom: 14px;
  transition: border 0.16s;
}
input:focus, textarea:focus, select:focus {
  border: 1.5px solid #ECA75A;
}

/* ========================================================================
   13. MISC
   ======================================================================== */
::-webkit-scrollbar {
  width: 10px;
  background: #F2F4F7;
}
::-webkit-scrollbar-thumb {
  background: #B7C9D9;
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
  background: #ECA75A;
}

/* Fine tuning content cards & testimonials (for mobile spacing) */
@media (max-width: 768px) {
  .card, .testimonial-card, .contact-info-box {
    padding: 16px 10px;
  }
}
/* Prevent overlapping and maintain minimum space between elements */
section, .card, .testimonial-card, .contact-info-box {
  margin-bottom: 20px;
}

/* ========================================================================
   14. ACCESSIBILITY & FOCUS STATES
   ======================================================================== */
a:focus, button:focus, input:focus {
  outline: 2px solid #ECA75A;
  outline-offset: 2px;
}

/* ========================================================================
   15. PRINT STYLES (minimal, for legal info)
   ======================================================================== */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal-overlay { display: none !important; }
  body { background: #fff !important; color: #000 !important; }
}
