/* === CSS RESET & BASE NORMALIZE === */
html {
  box-sizing: border-box;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
html {
  font-size: 16px;
  scroll-behavior: smooth;
}
body {
  background: #F5F6FA;
  color: #22314E;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-weight: 400;
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
ul, ol {
  margin-left: 1.5em;
  margin-bottom: 1em;
}
li {
  margin-bottom: 0.5em;
}
a {
  color: #22314E;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover,
a:focus {
  color: #F5B841;
}

/* === BRAND FONTS === */
h1, .h1 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 2.375rem;
  font-weight: 700;
  color: #22314E;
  margin-bottom: 18px;
  line-height: 1.15;
  letter-spacing: -1px;
}
h2, .h2 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.625rem;
  font-weight: 600;
  color: #22314E;
  margin-bottom: 16px;
  line-height: 1.2;
}
h3, .h3 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #22314E;
  margin-bottom: 12px;
}
p {
  margin-bottom: 16px;
  font-size: 1rem;
  color: #22314E;
}
strong {
  font-weight: 700;
}

/* === LAYOUT CONTAINERS === */
.container {
  width: 100%;
  max-width: 1200px;
  margin-right: auto;
  margin-left: auto;
  padding-left: 20px;
  padding-right: 20px;
  display: flex;
  flex-direction: column;
  gap: 0; /* controlled in children */
}
.content-wrapper {
  width: 100%;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0;
  gap: 16px;
}

/* ==== SECTIONS & SPACING PATTERNS ==== */
section {
  margin-bottom: 60px;
  padding: 40px 0 40px 0;
  background: transparent;
  position: relative;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* ==== FLEXBOX LAYOUTS ==== */
.feature-grid, .card-container, .content-grid, .testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-top: 24px;
  margin-bottom: 0;
}
.card-container {
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 16px 0 rgba(34, 49, 78, 0.07);
  padding: 32px 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 240px;
  flex: 1 1 320px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}
.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-slider {
  gap: 24px;
  justify-content: flex-start;
  align-items: stretch;
  flex-wrap: wrap;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 14px 0 rgba(34, 49, 78, 0.08);
  padding: 24px 28px;
  min-width: 260px;
  max-width: 350px;
  flex: 1 1 280px;
  margin-bottom: 20px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.testimonial-card:hover,
.testimonial-card:focus {
  box-shadow: 0 4px 24px 0 rgba(34,49,78,0.13);
  transform: translateY(-2px) scale(1.02);
}
.testimonial-card p {
  font-size: 1.07rem;
  color: #22314E;
  margin-bottom: 0;
}
.testimonial-meta {
  margin-top: 8px;
  color: #7a869e;
  font-size: 0.98rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ========== HEADER STYLES ========== */
header {
  background: #fff;
  box-shadow: 0 2px 8px 0 rgba(34, 49, 78, 0.06);
  width: 100%;
  z-index: 100;
  position: relative;
  min-height: 70px;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 0;
  padding-bottom: 0;
  height: 70px;
  position: relative;
}
.logo img {
  height: 38px;
  width: auto;
  vertical-align: middle;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  font-size: 1.03rem;
  color: #22314E;
  padding: 8px 10px;
  border-radius: 5px;
  transition: background-color 0.18s, color 0.18s;
  position: relative;
}
.main-nav a:hover,
.main-nav a:focus {
  background-color: #F5B84112;
  color: #22314E;
}
.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, box-shadow 0.2s;
  font-size: 1.07rem;
  padding: 12px 30px;
  margin-left: 16px;
  text-align: center;
  box-shadow: 0 2px 10px 0 rgba(34,49,78,0.03);
}
.btn-primary {
  background: #22314E;
  color: #fff;
}
.btn-primary:hover, .btn-primary:focus {
  background: #18223B;
  color: #fff;
  box-shadow: 0 6px 24px 0 rgba(34,49,78,0.11);
  transform: translateY(-2px) scale(1.02);
}
.btn-secondary {
  background: #F5B841;
  color: #22314E;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #e1aa31;
  color: #22314E;
  box-shadow: 0 6px 24px 0 rgba(245,184,65,0.12);
  transform: translateY(-2px) scale(1.02);
}

/* === HAMBURGER MOBILE MENU === */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #22314E;
  font-size: 2rem;
  cursor: pointer;
  z-index: 302;
  margin-left: 18px;
  transition: color 0.18s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  color: #F5B841;
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(34, 49, 78, 0.98);
  z-index: 401;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.8,0,0.2,1);
  box-shadow: 5px 0 24px 5px rgba(34, 49, 78, 0.12);
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  align-self: flex-end;
  margin: 24px 28px 0 0;
  cursor: pointer;
  transition: color 0.18s;
  z-index: 403;
}
.mobile-menu-close:focus,
.mobile-menu-close:hover {
  color: #F5B841;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 38px;
  gap: 16px;
  padding: 0 40px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.33rem;
  color: #fff;
  font-weight: 500;
  padding: 12px 0;
  width: 100%;
  border-radius: 4px;
  transition: background 0.18s, color 0.18s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: #F5B841;
  color: #22314E;
  padding-left: 10px;
}

/* === HERO / CTA === */
section:first-of-type {
  margin-top: 0;
  padding-top: 32px;
}

/* === FOOTER === */
footer {
  background: #22314E;
  color: #fff;
  padding: 40px 0 20px 0;
  width: 100%;
}
footer .container {
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 14px;
  justify-content: center;
}
.footer-nav a {
  color: #F5B841;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  font-size: 1.05rem;
  transition: color 0.18s;
  padding: 4px 7px;
  border-radius: 4px;
}
.footer-nav a:hover,
.footer-nav a:focus {
  background: #fff2cc;
  color: #22314E;
}
.footer-contact {
  font-size: 1rem;
  color: #e3e8f0;
  margin-bottom: 8px;
  text-align: center;
  line-height: 1.5;
}
.footer-copy {
  color: #bfc7d4;
  font-size: 0.98rem;
  margin-top: 3px;
}

/* === LISTS, OL, UL === */
ul, ol {
  font-size: 1rem;
  color: #22314E;
  margin-bottom: 18px;
}
ul li, ol li {
  margin-bottom: 7px;
}
.text-section {
  text-align: left;
  margin-top: 0;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.text-section h3 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.08rem;
  font-weight: 600;
  color: #22314E;
  margin-bottom: 7px;
  margin-top: 16px;
}
.text-section ul {
  padding-left: 24px;
}
.text-section li {
  margin-bottom: 7px;
}

/* === CONTACT INFO SHORTCUTS === */
.brief-contact-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  margin-bottom: 20px;
}
.brief-contact-info img {
  width: 22px;
  height: 22px;
  vertical-align: middle;
  margin-right: 7px;
}

/* === ICONS === */
.feature-grid img,
.text-section img,
.brief-contact-info img {
  width: 34px;
  height: 34px;
  margin-bottom: 8px;
}

/* === CUSTOM UTILITIES === */
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-24 { margin-top: 24px; }
.mb-24 { margin-bottom: 24px; }

/* ============= COOKIE CONSENT BANNER ============= */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  z-index: 500;
  width: 100vw;
  background: #fff;
  box-shadow: 0 -8px 30px 0 rgba(34,49,78,0.10);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 18px 16px;
  gap: 20px;
  animation: cookieIn 0.35s cubic-bezier(0.8,0,0.2,1);
}
@keyframes cookieIn {
  from { transform: translateY(50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner-text {
  flex: 1 1 240px;
  color: #22314E;
  font-size: 1rem;
  margin-right: 12px;
}
.cookie-banner .cookie-btn {
  border: none;
  border-radius: 5px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 10px 20px;
  margin-left: 12px;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}
.cookie-btn-accept {
  background: #22314E;
  color: #fff;
}
.cookie-btn-accept:hover, .cookie-btn-accept:focus {
  background: #F5B841;
  color: #22314E;
}
.cookie-btn-reject {
  background: #bfc7d4;
  color: #22314E;
}
.cookie-btn-reject:hover, .cookie-btn-reject:focus {
  background: #e1aa31;
  color: #22314E;
}
.cookie-btn-settings {
  background: #F5B841;
  color: #22314E;
}
.cookie-btn-settings:hover, .cookie-btn-settings:focus {
  background: #22314E;
  color: #fff;
}

/* === COOKIE BANNER: MODAL === */
.cookie-modal-backdrop {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(34,49,78,0.45);
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.26s;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 18px 56px 0 rgba(34,49,78,0.15);
  min-width: 90vw;
  max-width: 420px;
  padding: 34px 26px 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 21px;
  z-index: 1002;
  animation: modalIn 0.32s;
}
@keyframes modalIn {
  from { transform: translateY(40px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.25rem;
  margin-bottom: 8px;
  color: #22314E;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 11px;
}
.cookie-modal label {
  font-size: 1rem;
  color: #22314E;
}
.cookie-modal input[type="checkbox"] {
  accent-color: #F5B841;
  width: 20px;
  height: 20px;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.cookie-modal .cookie-btn {
  flex: 1 1 110px;
}
.cookie-modal-close {
  position: absolute;
  top: 15px;
  right: 17px;
  background: none;
  font-size: 1.5rem;
  font-weight: bold;
  border: none;
  color: #22314E;
  cursor: pointer;
  z-index: 1010;
}
.cookie-modal-close:focus,
.cookie-modal-close:hover {
  color: #F5B841;
}

/* === MEDIA QUERIES: RESPONSIVE DESIGN === */
@media (max-width: 1024px) {
  .container {
    max-width: 98vw;
  }
  .content-wrapper {
    max-width: 98vw;
    padding-left: 8px;
    padding-right: 8px;
  }
}
@media (max-width: 900px) {
  .feature-grid, .card-container, .content-grid, .testimonial-slider {
    gap: 16px;
  }
  .card, .testimonial-card {
    min-width: 180px;
    padding: 22px 8px;
  }
}
@media (max-width: 768px) {
  h1, .h1 {
    font-size: 1.65rem;
  }
  h2, .h2 {
    font-size: 1.18rem;
  }
  .content-wrapper {
    padding-left: 2px;
    padding-right: 2px;
    gap: 10px;
  }
  .feature-grid, .testimonial-slider, .card-container, .content-grid {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
  }
  .card {
    min-width: 95vw;
    flex: 1 1 100%;
  }
  .testimonial-card {
    min-width: 98vw;
    max-width: 98vw;
  }
  .main-nav {
    display: none;
  }
  .btn-primary, .btn-secondary {
    margin-left: 0;
    margin-right: 0;
    font-size: 0.97rem;
    padding: 10px 20px;
  }
  .mobile-menu-toggle {
    display: inline-block;
    margin-left: 10px;
  }
  header .container {
    gap: 0;
    padding-left: 7px;
    padding-right: 7px;
    height: 58px;
  }
}
@media (max-width: 520px) {
  .container, .content-wrapper {
    padding-left: 0;
    padding-right: 0;
  }
  .hero-content h1 {
    font-size: 1.2rem;
  }
  .feature-grid img, .text-section img {
    width: 24px;
    height: 24px;
  }
  .cookie-banner {
    padding: 14px 3px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .cookie-banner-text {
    margin-right: 0;
    font-size: 0.93rem;
  }
}

/* ============= MICRO-INTERACTIONS & TRANSITIONS ============= */
.btn-primary, .btn-secondary {
  transition: background 0.18s, color 0.18s, box-shadow 0.22s, transform 0.16s;
}
.card, .testimonial-card {
  transition: box-shadow 0.17s, transform 0.14s;
}
.card:hover, .card:focus {
  box-shadow: 0 6px 32px 0 rgba(34,49,78,0.13);
  transform: translateY(-2px) scale(1.01);
}

/* ============= VISUAL HIERARCHY & WHITE SPACE ============= */
section, .section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.feature-grid > div, .feature-item {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(34,49,78,0.07);
  padding: 24px 18px;
  margin-bottom: 20px;
  flex: 1 1 240px;
  min-width: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: box-shadow 0.2s, transform 0.17s;
}
.feature-grid > div:hover,
.feature-item:hover {
  box-shadow: 0 6px 32px 0 rgba(245,184,65,0.11), 0 2px 18px rgba(34,49,78,0.11);
  transform: translateY(-2px) scale(1.02);
}

/* ============= VISUAL ELEMENTS: BORDERS & SHADOWS ============= */
.card, .testimonial-card, .feature-grid > div, .feature-item {
  border: 1px solid #e3e8f0;
}

/* ============= ACCESSIBILITY: CONTRAST FOR TESTIMONIALS ============= */
.testimonial-card p, .testimonial-card .testimonial-meta {
  color: #22314E!important;
  background: transparent;
}

/* ==== MISC ==== */
::-webkit-input-placeholder { color: #7a869e; }
::placeholder { color: #7a869e; }

/* ==== PRINT REMOVE ==== */
@media print {
  .cookie-banner, .cookie-modal-backdrop, .mobile-menu { display: none !important; }
}
