/* =============================================================
   CSS RESET & NORMALIZE - Mobile-friendly, modern reset
   ============================================================= */
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;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  background: #FCF7ED;
  color: #202024;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  word-break: break-word;
}
ul, ol {
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
img {
  max-width: 100%;
  height: auto;
}
button, input, select, textarea {
  font: inherit;
}
:root {
  /* Brand + vintage/retro palette */
  --primary: #133366;
  --secondary: #65B867;
  --accent: #F7F8FA;
  --retro-blue: #24374D;
  --retro-cream: #FDF6E3;
  --retro-orange: #F38248;
  --retro-yellow: #FAE16C;
  --retro-brown: #8D6748;
  --retro-red: #E05648;
  --retro-green: #78C0A8;
  --retro-bg: #FCF7ED;
  --bg: var(--retro-bg);
  --text: #202024;
  --heading: var(--primary);
  --card-bg: #FFF8F0;
  --border: #D6C2A6;
  --shadow: 0 2px 8px rgba(44,36,30,0.08);
}

/* Typography - Vintage inspired  */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 16px;
  letter-spacing: 1px;
  text-shadow: 0 2px 0 rgba(253,246,227,0.35);
}
h1 {
  font-size: 2.5rem;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
  text-transform: uppercase;
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
}
h2 {
  font-size: 2rem;
  letter-spacing: 1.2px;
  margin-bottom: 12px;
}
h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}
h4, h5, h6 {
  font-size: 1rem;
  font-weight: 600;
}

p, ul, ol, li, span, small {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  color: var(--text);
}
strong {
  font-weight: bold;
}
small {
  font-size: 0.90rem;
  color: #6F665E;
}

main {
  margin-bottom: 72px;
}

/* ============= Containers and Layout ==================== */
.container {
  width: 100%;
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.section,
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}
.section-hero {
  background: var(--retro-yellow);
  border-bottom: 4px solid var(--retro-orange);
  box-shadow: 0 8px 24px rgba(250,225,108,0.12);
  margin-bottom: 60px;
  padding: 38px 0 38px 0;
}
.section-legal {
  background: var(--retro-bg);
  border-left: 6px double var(--retro-brown);
  border-radius: 12px 0 0 12px;
  margin-bottom: 60px;
  padding: 32px 16px;
}

/* Flexbox mandatory layouts */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.card {
  flex: 1 1 320px;
  min-width: 290px;
  margin-bottom: 20px;
  background: var(--card-bg);
  border: 2px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  position: relative;
  padding: 28px 24px 24px 24px;
  transition: box-shadow 0.22s, border-color 0.22s;
}
.card:hover {
  box-shadow: 0 6px 28px rgba(131,91,36,0.13);
  border-color: var(--retro-orange);
  z-index: 2;
}
.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-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  background: #FFF1D2;
  border-left: 6px solid var(--retro-orange);
  border-radius: 12px 24px 24px 12px;
  box-shadow: 0 2px 12px rgba(161,122,40,0.08);
  color: #2B2B29;
  max-width: 540px;
}
.testimonial-card p {
  font-size: 1.08rem;
  line-height: 1.7;
  font-style: italic;
  color: #1F1711;
}
.testimonial-card span {
  opacity: 0.8;
  font-size: 1rem;
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  color: var(--heading);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 24px;
}
.features-icons, .icon-bar {
  display: flex;
  flex-direction: row;
  gap: 20px;
  align-items: center;
  margin: 22px 0 10px 0;
}
.features-icons img,
.icon-bar img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid var(--retro-cream);
  background: var(--accent);
  box-shadow: 0 1px 4px rgba(243,130,72,0.09);
  padding: 5px;
}

/* ======================== Main Navigation & Header ========================== */
header {
  width: 100%;
  background: var(--primary);
  color: #fff;
  padding: 12px 0;
  display: flex;
  align-items: center;
  flex-direction: row;
  justify-content: space-between;
  position: relative;
  z-index: 20;
  box-shadow: 0 4px 18px rgba(19,51,102,0.09);
}
header a img {
  height: 48px;
  margin-right: 14px;
}
header nav {
  display: flex;
  flex-direction: row;
  gap: 26px;
  align-items: center;
}
header nav a {
  color: #FFF;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  transition: color 0.15s;
  padding: 3px 0;
  position: relative;
}
header nav a::after {
  content: '';
  display: block;
  width: 0;
  transition: width .22s;
  border-bottom: 2px solid var(--retro-yellow);
  margin: 0 auto;
}
header nav a:hover::after {
  width: 75%;
}
header nav a:hover {
  color: var(--retro-yellow);
}
.cta-primary {
  background: var(--retro-red);
  color: #fff !important;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.08rem;
  border-radius: 24px 8px 24px 8px;
  border: none;
  padding: 12px 28px;
  margin-left: 28px;
  box-shadow: 0 3px 12px rgba(224,86,72,.10);
  transition: background 0.18s, color 0.18s, box-shadow 0.22s, transform 0.13s;
  cursor: pointer;
  font-weight: 700;
  text-shadow: 0 2px 0 #e2d9c0;
}
.cta-primary:hover, .cta-primary:focus {
  background: var(--retro-brown);
  color: var(--retro-yellow) !important;
  box-shadow: 0 8px 22px rgba(131,91,36,0.11);
  transform: translateY(-2px) scale(1.03);
}
.cta-secondary {
  background: var(--primary);
  color: #FAE16C !important;
  font-family: 'Montserrat', Arial, sans-serif;
  border-radius: 15px 36px 15px 36px;
  border: 2px solid var(--retro-orange);
  padding: 10px 26px;
  font-size: 1rem;
  margin-top: 12px;
  margin-bottom: 16px;
  transition: background 0.15s, color 0.13s, border-color 0.12s, transform 0.12s;
  font-weight: 600;
  text-shadow: 0 2px 0 #c6b45c;
}
.cta-secondary:hover, .cta-secondary:focus {
  background: var(--retro-yellow);
  color: var(--primary) !important;
  border-color: var(--retro-brown);
  transform: rotate(-2deg) scale(1.02);
}

/* ========== Mobile Burger Menu ========== */
.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--retro-orange);
  color: #fff;
  border: none;
  border-radius: 50%;
  padding: 11px 17px 10px 17px;
  font-size: 2.2rem;
  cursor: pointer;
  position: fixed;
  top: 16px;
  right: 18px;
  z-index: 222;
  box-shadow: 0 3px 18px rgba(243,130,72,0.23);
  transition: background 0.15s, box-shadow 0.14s, transform 0.16s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--retro-brown);
  transform: scale(1.11);
}
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 92vw;
  max-width: 410px;
  height: 100vh;
  background: var(--primary);
  color: #fff;
  box-shadow: -4px 0 26px rgba(19,51,102,0.33);
  z-index: 999;
  display: flex;
  flex-direction: column;
  padding: 38px 22px 28px 24px;
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(.65,.05,.36,1.09);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  color: var(--retro-yellow);
  font-size: 2.1rem;
  margin-bottom: 12px;
  cursor: pointer;
  transition: color 0.11s, transform 0.14s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--retro-brown);
  transform: scale(1.15);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 18px;
}
.mobile-nav a {
  font-size: 1.18rem;
  color: var(--retro-yellow);
  padding: 12px 0 10px 0;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  border-bottom: 1px dashed rgba(250,225,108,0.30);
  transition: background 0.14s, color 0.18s;
  border-radius: 6px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--retro-orange);
  color: #fff;
}
.mobile-nav a:active {
  background: var(--retro-brown);
}

/* Hide menu toggle on desktop */
@media (min-width: 1025px) {
  .mobile-menu-toggle {
    display: none;
  }
}
@media (max-width: 1024px) {
  header nav, .cta-primary {
    display: none;
  }
}
@media (max-width: 1024px) {
  header {
    justify-content: flex-start;
    gap: 8px;
    padding: 14px 0 12px 12px;
  }
  header > a img {
    margin-right: 0;
  }
}

/* ================ Footer Styling ===================== */
footer {
  background: var(--retro-blue);
  color: #FAE16C;
  padding: 30px 0 18px 0;
  text-align: center;
  border-top: 5px double var(--retro-orange);
}
.footer-nav {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 18px;
  font-size: 1rem;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.footer-nav a {
  color: var(--retro-yellow);
  transition: color .18s;
}
.footer-nav a:hover {
  color: var(--retro-orange);
  text-decoration: underline;
}
.footer-contact {
  margin: 18px 0 12px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--retro-cream);
  gap: 2px;
  font-size: 1rem;
}
.footer-contact img {
  width: 18px;
  height: 18px;
  margin-right: 5px;
  vertical-align: baseline;
}
footer small {
  display: block;
  margin-top: 8px;
  font-size: 0.9rem;
  color: #e6d7ba;
}

/* =============== Other Content Elements ============== */
ul li::before {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  margin-right: 0;
}
ul li {
  margin-bottom: 7px;
  padding-left: 2px;
  line-height: 1.7;
}
ul li strong {
  color: var(--primary);
}
.change-alerts {
  background: var(--retro-orange);
  color: #fff;
  border-radius: 8px;
  padding: 12px 16px;
  margin: 22px 0;
  font-family: 'Montserrat', Arial, sans-serif;
}
.download-link {
  margin: 20px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.download-link a {
  color: var(--retro-blue);
  background: var(--retro-yellow);
  border-radius: 8px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(250,225,108,0.11);
  border: 1px solid var(--retro-cream);
  transition: background 0.18s, color 0.18s;
}
.download-link a:hover {
  background: var(--retro-orange);
  color: #fff;
}

/* ======== Cookie Consent Banner ============== */
.cookie-banner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 16px;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #24374D;
  color: #FFEFC2;
  padding: 22px 24px 18px 24px;
  z-index: 9999;
  box-shadow: 0 -6px 38px rgba(36,55,77,0.17);
  font-size: 1rem;
  transition: transform 0.4s cubic-bezier(.61,.11,.55,.91), opacity 0.3s;
  opacity: 1;
  transform: translateY(0);
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(160%);
}
.cookie-banner-buttons {
  display: flex;
  gap: 14px;
  margin-top: 8px;
}
.cookie-btn {
  padding: 10px 22px;
  border-radius: 24px 8px 24px 8px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(101,184,103,0.09);
  transition: background 0.17s, color 0.16s, transform 0.13s;
  margin-right: 4px;
}
.cookie-btn.accept {
  background: var(--retro-green);
  color: #1E4229;
}
.cookie-btn.accept:hover,
.cookie-btn.accept:focus {
  background: var(--retro-yellow);
  color: var(--retro-brown);
  transform: scale(1.05);
}
.cookie-btn.reject {
  background: var(--retro-red);
  color: #fff;
}
.cookie-btn.reject:hover,
.cookie-btn.reject:focus {
  background: var(--retro-brown);
  color: #FAE16C;
  transform: scale(1.04);
}
.cookie-btn.settings {
  background: var(--retro-orange);
  color: #fff;
}
.cookie-btn.settings:hover,
.cookie-btn.settings:focus {
  background: var(--retro-yellow);
  color: var(--retro-brown);
}

/* Cookie Settings Modal */
.cookie-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(38, 34, 17, 0.47);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: all;
  transition: opacity 0.3s;
}
.cookie-modal-backdrop.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: var(--retro-cream);
  color: #1C2233;
  border-radius: 18px 38px 18px 38px;
  box-shadow: 0 12px 60px rgba(36,55,77,0.16);
  padding: 40px 26px 30px 26px;
  width: 95vw;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  z-index: 10002;
  animation: cookieModalIn .36s cubic-bezier(.61,.11,.55,.91);
}
@keyframes cookieModalIn {
  from { opacity: 0; transform: translateY(80px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.cookie-modal-close {
  align-self: flex-end;
  background: none;
  border: none;
  color: var(--retro-red);
  font-size: 2rem;
  cursor: pointer;
  margin-bottom: 8px;
  transition: color 0.13s, transform 0.12s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: var(--retro-brown);
  transform: scale(1.10);
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 10px 0 16px 0;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 13px;
  padding: 7px 0;
  font-size: 1.02rem;
}
.cookie-category input[type="checkbox"] {
  accent-color: var(--retro-green);
  width: 20px;
  height: 20px;
}
.cookie-category .required {
  font-size: 0.96rem;
  color: var(--retro-red);
  margin-left: 6px;
  font-weight: 600;
}

/* ========================= Responsive =========================== */
@media (max-width: 768px) {
  .container {
    padding-left: 10px;
    padding-right: 10px;
    max-width: 100vw;
  }
  .content-wrapper {
    gap: 12px;
  }
  .section,
  section {
    margin-bottom: 32px;
    padding: 24px 5px;
  }
  .section-hero {
    padding: 20px 0 20px 0;
    margin-bottom: 32px;
  }
  .section-legal {
    border-left-width: 4px;
    padding: 18px 6px;
    margin-bottom: 24px;
  }
  .card {
    padding: 14px 10px 15px 10px;
    border-radius: 12px;
    min-width: 210px;
  }
  .card-container {
    gap: 14px;
  }
  .features-icons, .icon-bar {
    gap: 12px;
  }
  .testimonial-card {
    padding: 13px 9px;
    border-radius: 7px 16px 16px 7px;
    max-width: 100%;
  }
  .download-link {
    gap: 5px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .content-grid {
    flex-direction: column;
    gap: 10px;
    justify-content: flex-start;
  }
  .feature-item {
    gap: 7px;
    margin-bottom: 16px;
  }
  footer {
    padding: 18px 0 7px 0;
  }
}

/* ================ Animations =============== */
.cta-primary,
.cta-secondary,
button, .cookie-btn {
  transition: background 0.17s, color .16s, border-color .15s, box-shadow .16s, transform 0.14s;
}
.card, .testimonial-card, .section-hero, .section-legal {
  transition: box-shadow 0.22s, border-color 0.22s, background 0.24s;
}
.testimonial-card:hover {
  box-shadow: 0 8px 30px rgba(252,180,84,0.13);
  border-color: var(--primary);
}

/* ============= Print (Optional) =============== */
@media print {
  header, .mobile-menu-toggle, .cookie-banner, footer {
    display: none !important;
  }
  .container, main, body {
    width: 100%;
    margin: 0;
    padding: 0;
    background: #fff;
    color: #222;
  }
}

/* =================== Selection =================== */
::selection {
  background: var(--retro-yellow);
  color: var(--primary);
}

/* ================= Utility Classes =============== */
.mt-1 { margin-top: 8px; }
.my-2 { margin-top: 16px; margin-bottom: 16px; }
.text-center { text-align: center; }
.flex { display: flex; }
.flex-between { justify-content: space-between; }
.flex-column { flex-direction: column; }

/* =============== Misc =============== */
::-webkit-scrollbar {
  width: 7px; background: #fae16c;
}
::-webkit-scrollbar-thumb {
  background: #e5ccab; border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover { background: #8D6748; }

/* =================== Accessibility =============== */
:focus {
  outline: 2px dotted var(--retro-orange);
  outline-offset: 2px;
}

/* =================== End ========================= */