/* ==========================
   CSS RESET & 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;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
}
ol, ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
a {
  text-decoration: none;
  color: inherit;
  background: transparent;
}
img, picture {
  max-width: 100%;
  display: block;
  height: auto;
}
button, input, select, textarea {
  font: inherit;
  border: none;
  outline: none;
  background: none;
}
*, *:before, *:after {
  box-sizing: inherit;
}

/* ==========================
   BRAND VARIABLES
   ========================== */
:root {
  --color-primary: #20436A;
  --color-secondary: #E5ECEF;
  --color-accent: #F5AA22;
  --color-bg: #fff;
  --color-text: #222;
  --color-muted: #788898;
  --color-border: #e0e5ea;
  --shadow-small: 0 1px 6px rgba(32,67,106,0.05);
  --shadow-medium: 0 4px 16px rgba(32,67,106,0.06);
  --radius: 10px;
  --radius-sm: 7px;
  --transition: 0.22s cubic-bezier(.43,.15,.53,1.13);
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Roboto', Arial, Helvetica, sans-serif;
}

/* ==========================
   TYPOGRAPHY SYSTEM
   ========================== */
body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: -0.02em;
  line-height: 1.15;
}
h1 {
  font-size: 2.4rem;
  margin-bottom: 24px;
}
h2 {
  font-size: 1.7rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}
h4 {
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--color-muted);
}
h5, h6 {
  font-size: 0.97rem;
}
p {
  margin-bottom: 16px;
  color: var(--color-text);
}
strong {
  font-weight: 700;
  color: var(--color-primary);
}
small {
  font-size: 14px;
  color: var(--color-muted);
}
blockquote {
  font-family: var(--font-display);
  font-size: 1.18rem;
  color: var(--color-primary);
  border-left: 3px solid var(--color-accent);
  padding-left: 13px;
  margin-bottom: 10px;
  font-style: italic;
}
cite {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-muted);
  display: block;
  margin-bottom: 5px;
}
ul, ol {
  padding-left: 1.15em;
  margin-bottom: 16px;
}
li {
  margin-bottom: 10px;
}

/* ==========================
   CONTAINER & LAYOUT
   ========================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
  border-radius: var(--radius);
}
.cta {
  background: var(--color-secondary);
}
.text-section {
  background: transparent;
}

/* FLEXBOX Patterns */
.card-container,
.feature-grid,
.card-grid,
.content-grid,
.features {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.feature-grid {
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  flex: 1 1 min(330px, 100%);
}
.content-grid {
  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: var(--radius);
  box-shadow: var(--shadow-small);
  border: 1px solid var(--color-border);
  margin-bottom: 20px;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: var(--shadow-medium);
  border-color: var(--color-accent);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-small);
  padding: 23px 22px 18px 22px;
  border: 1px solid var(--color-border);
  min-width: 220px;
  flex: 1 1 220px;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}
.feature-item img {
  width: 40px;
  height: 40px;
  margin-bottom: 10px;
  object-fit: contain;
}
.feature-item:hover, .feature-item:focus-within {
  box-shadow: var(--shadow-medium);
  transform: translateY(-4px);
  border-color: var(--color-accent);
}

/* ==========================
   HEADER & NAVIGATION
   ========================== */
header {
  background: #fff;
  box-shadow: var(--shadow-small);
  border-bottom: 1px solid var(--color-border);
  width: 100%;
  position: sticky;
  z-index: 50;
  top: 0;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  padding-bottom: 10px;
}
.logo-link img {
  height: 44px;
  width: auto;
  display: block;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-left: 38px;
}
.main-nav a {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-size: 1rem;
  font-weight: 500;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--color-secondary);
  color: var(--color-accent);
}
.btn.btn-primary {
  background: var(--color-primary);
  color: #fff;
  padding: 11px 28px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 10px rgba(32,67,106,0.07);
  margin-left: 24px;
  cursor: pointer;
  transition: background var(--transition), box-shadow var(--transition), color var(--transition);
  border: none;
  display: inline-block;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--color-accent);
  color: var(--color-primary);
  box-shadow: var(--shadow-medium);
}
.btn {
  background: var(--color-secondary);
  color: var(--color-primary);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  padding: 9px 23px;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
  cursor: pointer;
  border: none;
  display: inline-block;
  margin-top: 10px;
}
.btn:hover, .btn:focus {
  background: var(--color-accent);
  color: #fff;
}

/* Hamburger button */
.mobile-menu-toggle {
  display: none;
  background: var(--color-secondary);
  border-radius: 7px;
  font-size: 2rem;
  color: var(--color-primary);
  padding: 7px 13px 7px 13px;
  border: none;
  margin-left: 18px;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  z-index: 103;
  line-height: 1;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--color-primary);
  color: #fff;
}

/* MOBILE MENU STYLES */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0; 
  width: 100vw;
  height: 100vh;
  background: rgba(229,236,239,0.97);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transform: translateX(-100vw);
  transition: transform 0.32s cubic-bezier(.32,.72,.27,1.3);
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: all;
  opacity: 1;
}
.mobile-menu-close {
  background: none;
  border: none;
  color: var(--color-primary);
  font-size: 2.2rem;
  position: absolute;
  top: 20px;
  right: 25px;
  z-index: 220;
  cursor: pointer;
  padding: 8px 13px;
  border-radius: 7px;
  transition: background var(--transition), color var(--transition);
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--color-primary);
  color: #fff;
}
.mobile-nav {
  margin-top: 76px;
  width: 100vw;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
  padding-left: 40px;
}
.mobile-nav a {
  color: var(--color-primary);
  font-size: 1.24rem;
  font-family: var(--font-display);
  padding: 13px 0;
  font-weight: 700;
  border-radius: 0;
  width: 100%;
  display: block;
  min-width: 160px;
  transition: color var(--transition), background var(--transition);
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-accent);
  color: #fff;
}

/* HEADER RESPONSIVE: MOBILE NAV & BURGER */
@media (max-width: 1024px) {
  .main-nav {
    display: none;
  }
  .btn.btn-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 1025px) {
  .mobile-menu {
    display: none !important;
  }
}

/* ==========================
   HERO / SPECIAL SECTIONS
   ========================== */
.hero {
  padding: 52px 0 32px 0;
  background: var(--color-secondary);
  border-radius: 0 0 var(--radius) var(--radius);
  min-height: 380px;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 16px rgba(32,67,106,0.048);
}
.hero .content-wrapper {
  align-items: flex-start;
  justify-content: center;
  gap: 18px;
}
.hero h1 {
  color: var(--color-primary);
}
.hero p {
  color: #262e39;
  font-size: 1.18rem;
  margin-bottom: 8px;
}
.hero .btn-primary {
  margin-top: 16px;
}

/* ==========================
   CARDS / FEATURED / TESTIMONIALS
   ========================== */
.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-small);
  padding: 26px 23px 18px 23px;
  border: 1px solid var(--color-border);
  transition: box-shadow var(--transition), border-color var(--transition);
}
.card:hover, .card:focus-within {
  box-shadow: var(--shadow-medium);
  border-color: var(--color-accent);
}

/* Testimonials: distinctive and clear */
.testimonial-card {
  background: #fff;
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-left: 5px solid var(--color-accent);
  box-shadow: var(--shadow-small);
  border-radius: var(--radius-sm);
  padding: 20px;
  max-width: 620px;
  margin-bottom: 24px;
  align-items: flex-start;
}
.testimonial-card blockquote {
  font-size: 1.15rem;
  color: var(--color-primary);
  border-left: none;
  padding-left: 0;
}
.testimonial-card cite {
  margin-top: 10px;
  color: var(--color-muted);
  font-size: 15px;
}


/* ==========================
   FOOTER
   ========================== */
footer {
  background: #fff;
  border-top: 1px solid var(--color-border);
  margin-top: 60px;
  padding: 36px 0 16px 0;
  font-size: 16px;
}
footer .container {
  flex-direction: column;
  gap: 28px;
  align-items: flex-start;
}
.footer-brand img {
  height: 38px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.footer-nav a {
  color: var(--color-primary);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  padding: 5px 7px;
  border-radius: 6px;
  transition: background var(--transition), color var(--transition);
}
.footer-nav a:hover, .footer-nav a:focus {
  background: var(--color-accent);
  color: #fff;
}
.contact-summary {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 15px;
  color: var(--color-muted);
}
.contact-summary img {
  display: inline-block;
  vertical-align: middle;
  height: 18px;
  width: 18px;
  margin-right: 7px;
  margin-bottom: -4px;
}
.contact-summary a {
  color: var(--color-primary);
  font-weight: 500;
  transition: color var(--transition);
}
.contact-summary a:hover, .contact-summary a:focus {
  color: var(--color-accent);
}
.social-links {
  display: flex;
  gap: 14px;
  align-items: center;
}
.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-secondary);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  transition: background var(--transition), box-shadow var(--transition);
}
.social-links a:hover, .social-links a:focus {
  background: var(--color-accent);
  box-shadow: var(--shadow-small);
}
.social-links img {
  width: 22px;
  height: 22px;
}
.legal-links {
  margin-top: 12px;
  font-size: 14px;
  color: var(--color-muted);
}

/* ==========================
   COOKIE CONSENT BANNER & MODAL
   ========================== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1000;
  background: #fff;
  border-top: 1.5px solid var(--color-border);
  box-shadow: 0 -3px 16px rgba(32,67,106,0.07);
  width: 100vw;
  padding: 26px 24px 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 13px;
  align-items: flex-start;
  justify-content: flex-start;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--color-text);
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
  transition: opacity 0.24s cubic-bezier(.32,.72,.27,1.3), transform 0.24s cubic-bezier(.32,.72,.27,1.3);
}
.cookie-banner.active {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.cookie-banner strong {
  color: var(--color-primary);
  font-weight: 700;
}
.cookie-banner .cookie-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.cookie-banner .cookie-btn {
  background: var(--color-primary);
  color: #fff;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  transition: background var(--transition), color var(--transition);
  cursor: pointer;
  margin-right: 6px;
}
.cookie-banner .cookie-btn.settings {
  background: var(--color-secondary);
  color: var(--color-primary);
  font-weight: 500;
  border: 1.5px solid var(--color-primary);
}
.cookie-banner .cookie-btn.settings:hover, .cookie-banner .cookie-btn.settings:focus {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}
.cookie-banner .cookie-btn.reject {
  background: #fff;
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
}
.cookie-banner .cookie-btn.reject:hover, .cookie-banner .cookie-btn.reject:focus {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}
.cookie-banner .cookie-btn.accept:hover, .cookie-banner .cookie-btn.accept:focus {
  background: var(--color-accent);
  color: #fff;
}
/* Cookie Modal */
.cookie-modal {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(32,67,106,0.17);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s cubic-bezier(.32,.72,.27,1.3);
}
.cookie-modal.active {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal-dialog {
  background: #fff;
  min-width: 330px;
  max-width: 96vw;
  border-radius: var(--radius);
  box-shadow: var(--shadow-medium);
  padding: 38px 30px 28px 30px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-modal-close {
  position: absolute;
  right: 20px; top: 17px;
  background: none;
  border: none;
  color: var(--color-primary);
  font-size: 1.47rem;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 50%;
  transition: background var(--transition), color var(--transition);
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: var(--color-secondary);
  color: var(--color-accent);
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 7px;
}
.cookie-category label {
  font-family: var(--font-body);
  color: var(--color-text);
  font-size: 15px;
}
.cookie-toggle {
  position: relative;
  width: 44px;
  height: 24px;
  margin-right: 10px;
}
.cookie-toggle input[type="checkbox"] {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-toggle-slider {
  position: absolute;
  cursor: pointer;
  left: 0;top: 0;
  right: 0;bottom: 0;
  background: var(--color-secondary);
  border-radius: 24px;
  transition: background var(--transition);
}
.cookie-toggle input:checked + .cookie-toggle-slider {
  background: var(--color-accent);
}
.cookie-toggle-slider:before {
  content: '';
  position: absolute;
  height: 19px;
  width: 19px;
  left: 3px;
  top: 2.5px;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow-small);
  transition: transform var(--transition), background var(--transition);
}
.cookie-toggle input:checked + .cookie-toggle-slider:before {
  transform: translateX(20px);
  background: var(--color-primary);
}
.cookie-modal .cookie-buttons {
  display: flex;
  gap: 14px;
  margin-top: 8px;
  justify-content: flex-end;
}

/* Essential cookies always ON, no toggle */
.cookie-category.essential label {
  color: var(--color-muted);
  font-style: italic;
}
.cookie-category.essential .cookie-toggle-slider {
  background: var(--color-accent);
}
.cookie-category.essential .cookie-toggle-slider:before {
  background: var(--color-primary);
}
.cookie-category.essential .cookie-toggle {
  pointer-events: none;
  opacity: .65;
}

/* ==========================
   RESPONSIVE DESIGN
   ========================== */
@media (max-width: 900px) {
  .feature-grid, .card-container, .content-grid, .features {
    gap: 18px;
  }
  .card, .feature-item {
    min-width: 170px;
  }
  .footer-nav {
    gap: 10px;
  }
}
@media (max-width: 768px) {
  .container {
    padding-left: 12px;
    padding-right: 12px;
  }
  .hero {
    padding: 27px 0 19px 0;
    min-height: unset;
  }
  h1 {
    font-size: 1.67rem;
  }
  h2 {
    font-size: 1.19rem;
  }
  .main-nav,
  .btn.btn-primary {
    display: none !important;
  }
  header .container {
    padding-top: 6px;
    padding-bottom: 6px;
  }
  .section {
    padding: 26px 8px;
    margin-bottom: 34px;
  }
  .feature-grid,
  .card-container,
  .content-grid,
  .features {
    flex-direction: column;
    gap: 17px;
  }
  .feature-item,
  .card {
    min-width: 0;
    width: 100%;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px;
    gap: 9px;
  }
  .footer-brand img {
    height: 32px;
  }
  footer .container {
    gap: 14px;
    padding: 0 0;
    font-size: 15px;
  }
  .social-links a {
    width: 32px; height: 32px;
  }
  .social-links img {
    width: 17px; height: 17px;
  }
  .mobile-menu {
    padding-left: 0;
  }
  .mobile-nav {
    padding-left: 23px;
    margin-top: 60px;
    gap: 18px;
  }
}
@media (max-width: 480px) {
  .cookie-modal-dialog {
    min-width: 0;
    max-width: 96vw;
    padding: 22px 8vw 18px 8vw;
  }
}

/* ==========================
   MICRO-INTERACTIONS & EFFECTS
   ========================== */
a, .btn, button, .feature-item, .testimonial-card, .social-links a, .card {
  outline: none;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), border-color var(--transition), transform var(--transition);
}
a:focus-visible, .btn:focus-visible, button:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* Subtle micro-interactions */
.feature-item:active,
.card:active {
  transform: scale(.97);
}
.btn:active {
  transform: scale(.98);
}
.social-links a:active {
  transform: scale(.96);
}

/* ==========================
   WHITE SPACE & GLOBAL SPACING
   ========================== */
section, .section {
  margin-bottom: 60px;
  padding-top: 0;
  padding-bottom: 0;
}
.card-container > *,
.card-grid > *,
.feature-grid > *,
.content-grid > * {
  margin-bottom: 0 !important;
}
.text-image-section {
  margin-bottom: 32px;
}

/* Utility */
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-2 { margin-top: 16px !important; }
.mb-2 { margin-bottom: 16px !important; }

/* ==========================
   No Grid, All Flex
   ========================== */
/* No display:grid, grid-*, column-*, break-inside, or position:absolute for content */

/* ==========================
   END OF CSS FILE
   ========================== */