/* 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, 
main, 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, main, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #FFF8EF;
  color: #2C2C2C;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 16px;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus {
  outline: 2px solid #205387;
  outline-offset: 2px;
}
ul, ol {
  list-style-position: inside;
}
img {
  max-width: 100%;
  display: block;
  border-radius: 12px;
}
button {
  font-family: inherit;
  cursor: pointer;
  background: none;
  border: none;
}

/* BRAND COLORS */
:root {
  --primary: #205387;
  --secondary: #FFD700;
  --accent: #FFFFFF;
  --warm-bg: #FFFBF3;
  --warm-bg-alt: #FFF4DC;
  --shadow: 0 4px 16px rgba(32, 83, 135, 0.10);
  --shadow-soft: 0 2px 8px rgba(32, 83, 135, 0.06);
  --text-main: #2C2C2C;
  --text-muted: #5F5B55;
  --card-bg: #FFFFFF;
  --highlight: #FFD700;
  --border-radius: 16px;
}

/* FONT IMPORTS (for Bree Serif and Open Sans) */
@import url('https://fonts.googleapis.com/css2?family=Bree+Serif&family=Open+Sans:wght@400;600;700&display=swap');

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Bree Serif', serif;
  color: var(--primary);
  font-weight: 700;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}
h4 {
  font-size: 1.1rem;
}
p, li, blockquote {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: var(--text-main);
}
p {
  margin-bottom: 18px;
}
blockquote {
  font-style: italic;
  color: var(--primary);
  border-left: 4px solid var(--secondary);
  padding-left: 16px;
  margin-bottom: 8px;
  background: var(--warm-bg-alt);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}
blockquote span {
  display: block;
  font-style: normal;
  color: var(--text-muted);
  font-size: 0.95em;
  margin-top: 8px;
}
strong {
  color: var(--primary);
  font-weight: bold;
}

/* GENERIC CONTAINERS */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.text-section {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 24px 20px;
  box-shadow: var(--shadow-soft);
}

/* SECTIONS & FLEX LAYOUTS */
section {
  background: transparent;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 32px 24px;
  margin-bottom: 20px;
  position: relative;
  flex: 1 1 320px;
  min-width: 280px;
  transition: transform 0.18s, box-shadow 0.18s;
}
.card:hover, .card:focus-within {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 8px 28px rgba(32,83,135,0.16);
}
.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;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-soft);
  margin-bottom: 20px;
  max-width: 700px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-soft);
  padding: 24px 20px;
}

/* Features Grid, also for .features-grid in pages */
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: stretch;
  justify-content: flex-start;
  margin-bottom: 16px;
}
.features-grid > div {
  flex: 1 1 240px;
  background: var(--warm-bg-alt);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-soft);
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 210px;
  max-width: 370px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.features-grid > div:hover {
  box-shadow: 0 8px 28px rgba(32,83,135,0.14);
  transform: translateY(-4px) scale(1.01);
}
.features-grid img {
  width: 48px;
  height: 48px;
  margin-bottom: 14px;
  background: var(--secondary);
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(255,222,64,0.2);
  padding: 6px;
}

/* BUTTON STYLES */
.btn-primary, .btn-secondary {
  display: inline-block;
  font-family: 'Bree Serif', serif;
  font-size: 1.15rem;
  padding: 14px 34px;
  border-radius: 999px;
  border: none;
  background: var(--primary);
  color: var(--accent);
  box-shadow: 0 2px 8px rgba(32,83,135,0.14);
  font-weight: 700;
  cursor: pointer;
  transition: background 0.21s, color 0.16s, transform 0.18s, box-shadow 0.18s;
  text-align: center;
  letter-spacing: 0.04em;
  margin-top: 12px;
}
.btn-primary:hover, .btn-primary:focus {
  background: #15395c;
  color: var(--secondary);
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 4px 18px rgba(32,83,135,0.21);
}
.btn-secondary {
  background: var(--secondary);
  color: var(--primary);
  box-shadow: 0 2px 10px rgba(255,222,64,0.10);
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #FFEB6D;
  color: var(--primary);
  box-shadow: 0 4px 22px rgba(255,216,0,0.13);
  transform: translateY(-2px) scale(1.015);
}

/* HEADER STYLES */
header {
  background: var(--warm-bg);
  box-shadow: 0 4px 16px rgba(32,83,135,0.07);
  position: relative;
  z-index: 30;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
  min-height: 70px;
  gap: 18px;
}
.logo img {
  height: 44px;
  width: auto;
  display: block;
  border-radius: 10px;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
}
.main-nav a {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: var(--primary);
  padding: 4px 12px 6px 12px;
  border-radius: 8px;
  transition: background 0.18s, color 0.18s;
  font-weight: 600;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--secondary);
  color: #205387;
}
.mobile-menu-toggle {
  font-size: 2.1rem;
  background: var(--primary);
  color: var(--secondary);
  border-radius: 10px;
  padding: 4px 18px;
  border: none;
  display: none;
  margin-left: 12px;
  line-height: 1.1;
  transition: background 0.15s, color 0.15s, box-shadow 0.18s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--secondary);
  color: var(--primary);
  box-shadow: 0 2px 14px rgba(32,83,135,0.14);
}

/* MOBILE MENU OVERLAY */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(251,244,224, 0.97);
  box-shadow: -4px 0 16px rgba(32,83,135,0.14);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.25s cubic-bezier(.5,0,.5,1);
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.active {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  align-self: flex-end;
  background: var(--primary);
  color: var(--secondary);
  border: none;
  border-radius: 8px;
  font-size: 2rem;
  margin-right: 24px;
  margin-top: 22px;
  margin-bottom: 16px;
  padding: 2px 14px;
  box-shadow: 0 3px 15px rgba(32,83,135,0.14);
  transition: background 0.15s, color 0.15s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--secondary);
  color: var(--primary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: flex-start;
  margin: 0 auto;
  width: 90%;
  max-width: 330px;
}
.mobile-nav a {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1.08rem;
  color: var(--primary);
  background: var(--accent);
  padding: 13px 24px 11px 17px;
  border-radius: 10px;
  font-weight: 600;
  width: 100%;
  transition: background 0.16s, color 0.15s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--secondary);
  color: var(--primary);
}

/* HERO SECTION AND PAGE LAYOUT */
main > section {
  margin-bottom: 60px;
  padding-top: 34px;
  padding-bottom: 34px;
}
main > section:first-child {
  background: var(--warm-bg-alt);
  border-radius: 0 0 40px 40px;
  box-shadow: 0 8px 36px rgba(32,83,135,0.06);
}
main > section .btn-primary,
main > section .btn-secondary {
  margin-top: 16px;
}

/* UL/OL in text blocks */
ul, ol {
  margin-left: 14px;
  margin-bottom: 16px;
}
ul li, ol li {
  margin-bottom: 8px;
  padding-left: 2px;
  font-size: 1rem;
}

/* Footer */
footer {
  background: var(--primary);
  color: var(--accent);
  padding: 42px 0 26px 0;
  margin-top: 48px;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: center;
  justify-content: center;
}
.footer-navigation {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  margin-bottom: 8px;
}
.footer-navigation a {
  color: var(--secondary);
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1.08rem;
  font-weight: 600;
  padding: 4px 12px 6px 12px;
  border-radius: 8px;
  transition: background 0.18s, color 0.18s;
  background: none;
}
.footer-navigation a:hover, .footer-navigation a:focus {
  background: var(--secondary);
  color: var(--primary);
}
footer p {
  font-size: 1rem;
  color: var(--accent);
  opacity: 0.7;
}

/* ===== COOKIE CONSENT BANNER & MODAL =====*/
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  width: 100vw;
  background: var(--warm-bg-alt);
  color: var(--primary);
  padding: 26px 24px 18px 24px;
  z-index: 1300;
  box-shadow: 0 -2px 18px rgba(32,83,135,0.14);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  border-top: 4px solid var(--secondary);
  animation: fadeInBottom 0.7s;
}
@keyframes fadeInBottom {
  from { transform: translateY(60px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner .cookie-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 2px;
}
.cookie-banner button {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  padding: 8px 22px;
  border: none;
  margin: 0;
  transition: background 0.18s, color 0.17s, box-shadow 0.16s;
}
.cookie-banner .accept-all {
  background: var(--primary);
  color: var(--secondary);
}
.cookie-banner .accept-all:hover,
.cookie-banner .accept-all:focus {
  background: #15395c;
  color: var(--secondary);
}
.cookie-banner .reject-all {
  background: #eee0be;
  color: var(--primary);
}
.cookie-banner .reject-all:hover,
.cookie-banner .reject-all:focus {
  background: #FFD700;
  color: var(--primary);
}
.cookie-banner .cookie-settings {
  background: none;
  color: var(--primary);
  text-decoration: underline;
  border: 2px dashed var(--secondary);
  padding: 8px 18px;
}
.cookie-banner .cookie-settings:hover,
.cookie-banner .cookie-settings:focus {
  background: #FFF8BF;
}
/* Cookie Modal Overlay */
.cookie-modal-backdrop {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(32, 83, 135, 0.28);
  z-index: 1600;
  pointer-events: auto;
  animation: fadeInModalBg 0.3s;
}
@keyframes fadeInModalBg { from {opacity: 0;} to {opacity: 1;} }
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(1);
  background: var(--card-bg);
  color: var(--primary);
  border-radius: 18px;
  box-shadow: 0 8px 40px rgba(32,83,135,0.19);
  z-index: 1700;
  padding: 34px 28px 28px 28px;
  min-width: 312px;
  max-width: 93vw;
  max-height: 82vh;
  overflow-y: auto;
  animation: modalPopUp .45s;
}
@keyframes modalPopUp {
  from { transform: translate(-50%, 30%) scale(.92); opacity: 0; }
  to { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}
.cookie-modal h2 {
  margin-top: 0;
  margin-bottom: 17px;
  font-size: 1.6rem;
  color: var(--primary);
}
.cookie-modal label {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 15px;
  font-size: 1.09rem;
  color: var(--text-main);
}
/* Custom toggle switches for cookie toggles */
.cookie-modal input[type="checkbox"] {
  width: 36px;
  height: 20px;
  appearance: none;
  background: #d1e2f6;
  border-radius: 12px;
  position: relative;
  transition: background 0.18s;
  outline: none;
}
.cookie-modal input[type="checkbox"]:checked {
  background: var(--primary);
}
.cookie-modal input[type="checkbox"]::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.18s;
}
.cookie-modal input[type="checkbox"]:checked::before {
  transform: translateX(15px);
  background: var(--secondary);
}
.cookie-modal .cookie-actions {
  display: flex;
  gap: 13px;
  justify-content: flex-end;
  margin-top: 25px;
}
.cookie-modal .cookie-actions button {
  font-size: 1rem;
  padding: 9px 20px;
  border-radius: 8px;
  border: none;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  cursor: pointer;
  background: var(--primary);
  color: var(--secondary);
  transition: background 0.18s, color 0.13s;
}
.cookie-modal .cookie-actions .close-modal {
  background: none;
  color: var(--primary);
  border: 2px dashed var(--secondary);
  text-decoration: underline;
}
.cookie-modal .cookie-actions .close-modal:hover,
.cookie-modal .cookie-actions .close-modal:focus {
  background: #FFD700;
  color: var(--primary);
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 1000px) {
  .container { max-width: 96vw; }
}
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.36rem; }
  main > section {
    padding-top: 19px;
    padding-bottom: 17px;
    margin-bottom: 34px;
  }
  .section {
    margin-bottom: 34px;
    padding: 25px 8px;
  }
  .features-grid {
    gap: 20px;
    flex-direction: column;
  }
  .features-grid > div {
    max-width: 100%;
    min-width: 0;
  }
  .testimonial-card {
    max-width: 99vw;
    padding: 15px 9px;
    flex-direction: column;
    gap: 13px;
  }
  .main-nav {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block !important;
  }
  header .btn-primary {
    display: none;
  }
  .content-grid, .card-container {
    flex-direction: column;
    gap: 18px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 23px;
  }
  .footer-navigation {
    gap: 13px;
  }
}
@media (min-width: 769px) {
  .mobile-menu { display: none !important; }
  .mobile-menu-toggle { display: none !important; }
  .main-nav {
    display: flex !important;
  }
}

/* Accessibility: Focus-visible */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Interactive Transitions */
.card, .features-grid > div, .testimonial-card {
  transition: box-shadow 0.15s, transform 0.12s;
}
.card:active, .features-grid > div:active {
  transform: scale(0.99);
}

/* Misc Spacing Fixes and Hierarchy */
.content-wrapper > *:not(:last-child) {
  margin-bottom: 16px;
}
.section h2, .container > h2 {
  margin-bottom: 24px;
}
main > section:last-child { margin-bottom: 0; }

/* Ensure no element overlaps the cookie/banner or nav */
body { padding-bottom: 0; }

/* Z-Index for always-on UI */
header, .cookie-banner, .cookie-modal, .cookie-modal-backdrop {
  z-index: 2000;
}

/* For visually hidden text (for accessibility, if needed) */
.visually-hidden {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

/* ===== END OF MAIN STYLE.CSS ===== */
