/* ------------------- CSS RESET & NORMALIZE ------------------- */
html {
  box-sizing: border-box;
  font-size: 16px;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, figcaption, blockquote, dl, dd {
  margin: 0;
  padding: 0;
}
ul, ol {
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
}
button, input, select, textarea {
  font: inherit;
  border: none;
  background: none;
  outline: none;
}
:root {
  --primary: #003366;
  --secondary: #F9B233;
  --accent: #FFFFFF;
  --background: #f7fafc;
  --darker-primary: #00264d;
  --shadow: rgba(0, 28, 77, 0.10);
  --radius: 16px;
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;
  --text-main: #22314A;
  --text-light: #FFFFFF;
  --text-dark: #0A1526;
  --section-gap: 60px;
  --card-gap: 24px;
  --container-width: 1200px;
  --transition: 0.3s cubic-bezier(.4,0,.2,1);
  --gradient: linear-gradient(90deg, #003366 0%, #326be8 100%);
  --gradient-secondary: linear-gradient(90deg, #F9B233 0%, #ffd37b 100%);
}

/* Typography Scale */
h1 { font-family: var(--font-display); font-size: 2.75rem; font-weight: 700; line-height: 1.16; color: var(--primary); }
h2 { font-family: var(--font-display); font-size: 2rem; font-weight: 700; margin-bottom: 1rem; color: var(--primary); }
h3 { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; margin-bottom: 0.75rem; color: var(--primary); }
p, li, blockquote { font-family: var(--font-body); color: var(--text-main); font-size: 1rem; line-height: 1.7; font-weight: 400; }
strong { font-weight: 700; }
.lead { font-size: 1.375rem; color: var(--darker-primary); font-family: var(--font-display); margin-bottom: 1.2rem; }

html, body {
  width: 100%;
  background: var(--background);
}
body {
  min-height: 100vh;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  background: linear-gradient(135deg, #fafdff 0%, #e8f1ff 100%);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ------------------- LAYOUT & CONTAINERS ------------------- */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: flex-start;
}
.section {
  margin-bottom: var(--section-gap);
  padding: 40px 20px;
}

/* Cards & Grids */
.card-container, .card-grid, .regions-grid, .feature-grid, .faq-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 4px 16px var(--shadow);
  margin-bottom: 20px;
  padding: 24px;
  position: relative;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  box-shadow: 0 8px 32px rgba(0, 51, 102, 0.18);
  transform: translateY(-2px) scale(1.015);
}
.testimonial-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 2px 16px var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  min-width: 0;
  transition: box-shadow var(--transition);
}
.testimonial-card blockquote {
  color: var(--primary);
  font-size: 1.1rem;
  font-weight: 500;
  font-style: italic;
  margin-bottom: 0.8rem;
  background: #eef3f8;
  border-radius: 10px;
  padding: 16px 22px;
}
.testimonial-card p {
  font-size: 0.98rem;
  color: var(--text-dark);
  margin: 0;
}

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.feature-grid li {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 8px var(--shadow);
  padding: 18px 20px;
  min-width: 260px;
  font-size: 1.04rem;
  margin-bottom: 0;
}
.feature-grid img {
  width: 28px;
  height: 28px;
}

.regions-grid li {
  display: flex;
  align-items: flex-start;
  background: #f3f6fc;
  border-radius: 12px;
  padding: 18px 18px;
  min-width: 240px;
  font-size: 1.04rem;
  margin-bottom: 0;
  margin-right: 0;
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.faq-item {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 10px var(--shadow);
  padding: 24px 20px;
  transition: box-shadow var(--transition);
}
.faq-item h2 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--darker-primary);
  font-family: var(--font-display);
  font-weight: 600;
}

/* Content Grid and text-image-section helper classes */
.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;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* --------------------------------- HEADER & NAVIGATION --------------------------------- */
header {
  width: 100%;
  background: var(--gradient);
  padding: 0;
  position: relative;
  z-index: 98;
  box-shadow: 0 1px 8px rgba(0,51,102,0.04);
}
.main-nav {
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 28px;
  padding: 0 20px;
  max-width: var(--container-width);
  margin: 0 auto;
  min-height: 70px;
  background: transparent;
}
.main-nav > a {
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  padding: 11px 0 8px 0;
  border-radius: 6px;
  transition: background var(--transition), color var(--transition);
  display: flex;
  align-items: center;
}
.main-nav > a:hover:not(.btn-primary),
.main-nav > a:focus:not(.btn-primary) {
  background: rgba(255,255,255,0.07);
  color: var(--secondary);
}
.main-nav > a img {
  height: 38px;
  width: auto;
  margin-right: 12px;
}
.btn-primary {
  font-family: var(--font-display);
  background: var(--gradient-secondary);
  color: var(--primary)!important;
  border-radius: 999px;
  font-size: 1rem;
  padding: 11px 32px;
  font-weight: 700;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
  margin-left: 16px;
  box-shadow: 0 2px 8px var(--shadow);
  outline: none;
  border: none;
  cursor: pointer;
  display: inline-block;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--secondary);
  color: var(--darker-primary)!important;
  box-shadow: 0 4px 16px rgba(249, 178, 51, 0.22);
  transform: translateY(-2px) scale(1.02);
}

/* --------------------------------- MOBILE NAVIGATION --------------------------------- */
.mobile-menu-toggle {
  display: none;
}
.mobile-menu {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 100vw;
  max-width: 95vw;
  background: linear-gradient(135deg, #003366 0%, #155eba 92%);
  box-shadow: 4px 0 24px 6px rgba(0,0,0,0.08);
  z-index: 999;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(.45,.06,.31,1.01);
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow-y: auto;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: var(--secondary);
  font-size: 2.1rem;
  font-weight: 700;
  position: absolute;
  top: 18px;
  right: 24px;
  z-index: 1001;
  cursor: pointer;
  transition: color var(--transition);
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #ffeac1;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 70px;
  padding: 36px 32px 22px 32px;
  width: 100%;
}
.mobile-nav a {
  color: var(--accent);
  font-size: 1.12rem;
  padding: 12px 0;
  border-radius: 6px;
  font-family: var(--font-display);
  font-weight: 600;
  background: none;
  transition: background var(--transition), color var(--transition);
  display: block;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: rgba(255,255,255,0.11);
  color: var(--secondary);
}

/* --------------------------------- HERO SECTION / MAIN CTA --------------------------------- */
main > section:first-child {
  background: linear-gradient(126deg, #f7fafc 70%, #f9b23313 100%);
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0 0 32px 32px;
  box-shadow: 0 2px 20px 0 rgba(0,44,102,0.06);
}
.content-wrapper > h1, .content-wrapper > h2 {
  margin-bottom: 0.48em;
}
.content-wrapper > .lead {
  margin-bottom: 1.5em;
}

main ul, main ol {
  margin: 0 0 12px 1.2em;
  padding: 0;
  font-size: 1rem;
  color: var(--text-main);
}
main ul li, main ol li {
  margin-bottom: 0.5em;
  line-height: 1.6;
}

/* --------------------------------- BUTTONS & INTERACTIONS --------------------------------- */
.btn-primary:active {
  opacity: 0.9;
  filter: brightness(0.97);
}
a.btn-primary {
  text-align: center;
}

/* --------------------------------- FOOTER --------------------------------- */
footer {
  background: linear-gradient(100deg, #003366 54%, #195396 100%);
  color: var(--accent);
  padding-top: 36px;
  padding-bottom: 20px;
}
.footer-contact, .footer-nav, .footer-social, .footer-copyright {
  margin-bottom: 20px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 500;
}
.footer-nav a {
  color: var(--secondary);
  background: none;
  transition: text-decoration var(--transition), background var(--transition);
  border-radius: 8px;
  padding: 6px 10px;
  display: inline-block;
}
.footer-nav a:hover,
.footer-nav a:focus {
  background: rgba(255,255,255,0.09);
  color: #ffeac1;
}
.footer-contact > p {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--accent);
  font-size: 0.98rem;
  margin-bottom: 7px;
}
.footer-contact img {
  width: 19px;
  height: auto;
}
.footer-social {
  display: flex;
  align-items: center;
  gap: 16px;
}
.footer-social a img {
  width: 26px;
  height: 26px;
  transition: transform var(--transition), box-shadow var(--transition);
  border-radius: 6px;
}
.footer-social a:hover img, .footer-social a:focus img {
  box-shadow: 0 2px 8px var(--secondary);
  transform: scale(1.11);
}
.footer-copyright {
  font-size: 0.92rem;
  color: #d7e7fa;
  margin-top: 5px;
}

/* --------------------------------- COOKIE BANNER & MODAL --------------------------------- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  width: 100vw;
  background: #fff;
  box-shadow: 0 -2px 18px 0 rgba(0,51,102,0.08);
  z-index: 1050;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  gap: 18px;
  font-size: 1rem;
  font-family: var(--font-body);
  border-radius: 18px 18px 0 0;
  transition: transform var(--transition), opacity var(--transition);
  opacity: 1;
}
.cookie-banner.hide {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner-message {
  flex: 1 1 auto;
  color: var(--text-main);
}
.cookie-banner-actions {
  display: flex;
  flex-direction: row;
  gap: 10px;
}
.cookie-btn {
  border-radius: 99px;
  padding: 10px 18px;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}
.cookie-btn.accept {
  background: var(--secondary);
  color: var(--primary);
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #ffd37b;
  color: var(--darker-primary);
}
.cookie-btn.reject {
  background: #eee;
  color: var(--primary);
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #d1d8e4;
  color: var(--primary);
}
.cookie-btn.settings {
  background: none;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  color: var(--secondary);
  border-color: var(--secondary);
  background: #f9f1e1;
}

/* Cookie Modal */
.cookie-modal-backdrop {
  position: fixed;
  inset: 0 0 0 0;
  background: rgba(0, 32, 82, 0.28);
  z-index: 1101;
  opacity: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity var(--transition);
}
.cookie-modal {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 36px rgba(0,51,102,0.14);
  max-width: 95vw;
  width: 396px;
  padding: 32px 28px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  z-index: 1102;
  position: relative;
}
.cookie-modal h2 {
  font-size: 1.35rem;
  font-family: var(--font-display);
  color: var(--primary);
  margin-bottom: 12px;
}
.cookie-modal-category {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.cookie-modal-category input[type="checkbox"] {
  accent-color: var(--secondary);
  width: 18px;
  height: 18px;
}
.cookie-modal-category label {
  color: var(--text-main);
  font-family: var(--font-body);
}
.cookie-modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  justify-content: flex-end;
}
.cookie-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  border: none;
  background: none;
  color: var(--primary);
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  transition: color var(--transition);
}
.cookie-modal-close:hover,
.cookie-modal-close:focus {
  color: var(--secondary);
}

/* --------------------------------- GENERAL SPACINGS --------------------------------- */
h1, h2, h3 {
  margin-top: 0;
}
main section {
  margin-bottom: var(--section-gap);
  padding: 40px 20px;
}
main .container {
  padding-top: 0;
  padding-bottom: 0;
}
main ul, main ol {
  margin-bottom: 14px;
}
main ul:last-child, main ol:last-child {
  margin-bottom: 0;
}

/* Specific helpers for spacing/alignment */
.card-container, .card-grid, .feature-grid, .regions-grid, .content-grid {
  gap: 24px;
}
.card {
  margin-bottom: 20px;
}
.text-image-section {
  gap: 30px;
}
.testimonial-card {
  gap: 20px;
  padding: 20px;
}
.feature-item {
  gap: 15px;
}

/* --------------------------------- RESPONSIVE DESIGN --------------------------------- */
@media (max-width: 1140px) {
  .container {
    max-width: 980px;
  }
}
@media (max-width: 900px) {
  .container {
    max-width: 98vw;
    padding-left: 10px;
    padding-right: 10px;
  }
}
@media (max-width: 768px) {
  html { font-size: 15px; }
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.4rem; }
  .section, main section {
    padding: 24px 5px;
    margin-bottom: 36px;
  }
  .card-container, .card-grid, .regions-grid, .feature-grid, .content-grid, .faq-list {
    flex-direction: column;
    gap: 16px;
  }
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
    position: absolute;
    top: 14px;
    right: 18px;
    background: none;
    border: none;
    color: var(--secondary);
    font-size: 2.08rem;
    z-index: 1000;
    cursor: pointer;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    transition: background var(--transition), color var(--transition);
  }
  .mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
    background: rgba(255,255,255,.08);
  }
  main > section:first-child {
    min-height: 190px;
    border-radius: 0 0 16px 16px;
    padding-bottom: 15px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .footer-nav {
    flex-direction: column;
    gap: 6px;
  }
}
@media (max-width: 540px) {
  html { font-size: 14px; }
  .footer-contact p {
    font-size: 0.96rem;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 13px 7px;
    font-size: 0.98rem;
  }
  .cookie-modal {
    padding: 20px 7px 19px 7px;
  }
}

/* --------------------------------- ANIMATIONS & MICRO-INTERACTIONS --------------------------------- */
.btn-primary, .cookie-btn, .footer-social a img {
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.card:hover, .testimonial-card:hover, .faq-item:hover {
  box-shadow: 0 8px 38px rgba(0, 51, 102, 0.13);
  z-index: 2;
}
.card, .testimonial-card, .faq-item {
  transition: box-shadow var(--transition), transform var(--transition);
}

/* --------------------------------- MISC --------------------------------- */
::-webkit-input-placeholder { color: #B3BFD6; }
::-moz-placeholder { color: #B3BFD6; }
:-ms-input-placeholder { color: #B3BFD6; }
::placeholder { color: #B3BFD6; }

/* Hide outline unless focus was visible */
:focus {
  outline: none;
}
:focus-visible {
  outline: 2.5px solid var(--secondary);
  outline-offset: 2px;
}

/* For accessibility: ensure sufficient touch area for links/buttons */
a, button, .cookie-btn {
  min-height: 44px;
  min-width: 44px;
}

/* ------------------------- END ------------------------- */
