/* =========================
   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;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body {
  background: #F9F7F2;
  color: #2A323C;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
}
img {
  max-width: 100%;
  height: auto;
}
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  border: none;
  background: none;
  outline: none;
  padding: 0;
}

/* ===================================
   FONT FACE FOR RETRO VINTAGE FEEL
   =================================== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;900&family=Open+Sans:wght@400;700&display=swap');

:root {
  /* Brand Vintage Retro Palette */
  --primary: #22577A;
  --secondary: #FAD586;
  --accent: #FFFFFF;
  --retro-brown: #8B6C42;
  --retro-orange: #F19953;
  --retro-green: #8FA878;
  --retro-red: #CB6D51;
  --retro-blue: #477890;
  --neutral-bg: #F9F7F2;
  --text-main: #2A323C;
  --text-dark: #18212B;
  --card-bg: #FFF8EE;
  --footer-bg: #22577A;
}

/* ========================= 
   TYPOGRAPHY RETRO/VINTAGE 
   ========================= */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  color: var(--primary);
  text-shadow: 1px 1px 0 rgba(138, 56, 0, 0.08);
  letter-spacing: 0.04em;
  margin-bottom: 18px;
  font-weight: 900;
}
h1 {
  font-size: 2.8rem;
  line-height: 1.15;
  margin-bottom: 18px;
}
h2 {
  font-size: 2rem;
  line-height: 1.2;
}
h3 {
  font-size: 1.4rem;
  font-weight: 700;
}
h4, h5, h6 {
  font-size: 1.1rem;
  font-weight: 700;
}
p {
  margin-bottom: 14px;
  color: var(--text-main);
}
strong {
  font-weight: 700;
}

/* Retro List Style */
ul {
  padding-left: 20px;
  margin-bottom: 24px;
}
ul li {
  position: relative;
  margin-bottom: 12px;
  padding-left: 16px;
}
ul li::before {
  content: '\275D';
  color: var(--retro-orange);
  position: absolute;
  left: 0;
  font-size: 1.1em;
  top: 0.2em;
}

ol {
  counter-reset: retro-ol;
  padding-left: 20px;
}
ol li {
  counter-increment: retro-ol;
  margin-bottom: 12px;
  padding-left: 22px;
  position: relative;
}
ol li::before {
  content: counter(retro-ol)'.';
  color: var(--retro-green);
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* ======================
   VINTAGE PATTERNS
   ====================== */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--card-bg);
  border-radius: 18px;
  border: 2px dashed var(--secondary);
  box-shadow: 3px 6px 20px rgba(139, 108, 66, 0.09);
}

/* =============
   CONTAINERS
   ============= */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 28px;
  padding: 0;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  flex: 1 1 260px;
  background: var(--card-bg);
  border-radius: 16px;
  border: 1.5px solid var(--retro-brown);
  box-shadow: 2px 4px 16px rgba(34, 87, 122, 0.09);
  padding: 32px 22px 28px 22px;
  transition: transform 0.24s cubic-bezier(.7,.2,.2,1), box-shadow 0.28s;
}
.card:hover, .card:focus-within {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 4px 10px 32px rgba(139,108,66,0.18);
  border-color: var(--retro-orange);
  z-index: 3;
}

.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(--accent);
  border-radius: 24px;
  border: 2.5px solid var(--secondary);
  box-shadow: 2px 6px 18px rgba(139,108,66,0.13);
  margin-bottom: 24px;
  color: var(--text-dark);
  font-size: 1.1rem;
  position: relative;
}
.testimonial-card p { color: var(--text-dark); }
.testimonial-card strong { color: var(--primary); }

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.feature-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 20px 0;
}
.feature-icons > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--retro-blue);
  color: #fff;
  border-radius: 14px;
  padding: 12px 16px 8px 16px;
  font-size: 1rem;
  font-weight: 700;
  box-shadow: 2px 5px 16px rgba(34,87,122,0.10);
  border: 1.5px solid var(--primary);
  min-width: 92px;
  text-align: center;
  position: relative;
  transition: background .18s;
}
.feature-icons > div:hover {
  background: var(--retro-green);
  color: var(--primary);
}
.feature-icons img {
  width: 36px;
  height: 36px;
  margin-bottom: 6px;
  filter: drop-shadow(1.5px 3px 0 var(--secondary));
}
.feature-icons span {
  font-size: 0.97em;
}

.info-box {
  background: var(--secondary);
  color: var(--text-main);
  padding: 18px 24px;
  border-radius: 14px;
  border: 2px solid var(--primary);
  margin-top: 10px;
  box-shadow: 1.5px 3px 8px rgba(250,213,134,0.10);
}
.policy-section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--card-bg);
  border-radius: 18px;
  border: 2px dashed var(--secondary);
  box-shadow: 3px 6px 20px rgba(139, 108, 66, 0.09);
}

/* =============================
   HERO & CALL TO ACTION SECTIONS
   ============================= */
.hero {
  background: repeating-linear-gradient(135deg, var(--secondary), var(--secondary) 30px, #fffbe8 32px, #fffbe8 61px);
  border-bottom: 3px solid var(--primary);
  box-shadow: 0 4px 24px rgba(250,213,134,0.13);
  padding: 56px 0 48px 0;
}
.hero h1, .hero p {
  color: var(--primary);
  text-shadow: 0.5px 2px 0 rgba(250, 213, 134, 0.22);
}
.call-to-action {
  background: var(--retro-orange);
}
.call-to-action h2 {
  color: #fff;
  text-shadow: 2px 2px 0 #CB6D51;
}
.call-to-action .cta {
  background: var(--retro-brown);
  color: #fff;
  border: 3px double var(--secondary);
}

/* ============
   NAVIGATION
   ============ */
header {
  background: var(--footer-bg);
  color: #fff;
  padding: 0;
  box-shadow: 0 4px 16px rgba(34, 87, 122, 0.04);
  position: relative;
  z-index: 7;
}
header nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 26px;
  padding: 12px 0 10px 0;
}
header nav a {
  color: #fff;
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.06rem;
  letter-spacing: 0.025em;
  padding: 8px 6px;
  border-radius: 6px;
  transition: background 0.17s, color 0.17s, box-shadow 0.13s;
  position: relative;
}
header nav a:hover, header nav a:focus {
  background: var(--secondary);
  color: var(--primary);
  box-shadow: 1.5px 5px 12px rgba(250,213,134,0.11);
}

header nav img {
  height: 46px;
  width: auto;
  margin-right: 12px;
  border-radius: 8px;
  background: #fff;
  padding: 4px 8px;
  border: 2px solid var(--secondary);
}

.cta {
  background: var(--secondary);
  color: var(--primary);
  font-weight: 900;
  letter-spacing: 0.05em;
  padding: 12px 28px;
  border-radius: 18px;
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-size: 1.14em;
  border: 2.5px solid var(--retro-orange);
  box-shadow: 1px 3px 8px rgba(250,213,134,0.18);
  margin-left: 8px;
  transition: background .16s, color .16s, transform .17s;
  position: relative;
  cursor: pointer;
}
.cta.primary {
  background: var(--primary);
  color: #fff;
  border: 2.5px solid var(--secondary);
  box-shadow: 1.5px 5px 16px rgba(34, 87, 122, 0.14);
}
.cta:hover, .cta:focus {
  background: var(--retro-red);
  color: #fff;
  transform: translateY(-2px) scale(1.04);
  border-color: var(--retro-brown);
}
.cta.primary:hover, .cta.primary:focus {
  background: var(--retro-brown);
  color: var(--secondary);
  border-color: var(--retro-orange);
}

.mobile-menu-toggle {
  display: none;
  background: var(--secondary);
  color: var(--primary);
  border-radius: 7px;
  font-size: 2.1rem;
  font-weight: bold;
  padding: 8px 16px;
  margin: 0 12px 0 auto;
  border: 2px solid var(--retro-brown);
  box-shadow: 2px 6px 16px rgba(250,213,134,0.15);
  transition: background 0.15s;
  z-index: 100;
  cursor: pointer;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--primary);
  color: var(--secondary);
  border-color: var(--retro-orange);
}


/* ==================
   MOBILE MENU STYLES
   ================== */
.mobile-menu {
  position: fixed;
  top: 0; right: 0;
  height: 100vh;
  width: 100vw;
  max-width: 420px;
  background: var(--footer-bg);
  color: #fff;
  z-index: 1200;
  transform: translateX(100%);
  transition: transform .36s cubic-bezier(.95,.2,.2,1);
  overflow-y: auto;
  box-shadow: -4px 0 32px 0 rgba(34,87,122,0.26);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 42px 35px 18px 25px;
  gap: 0;
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: all;
  opacity: 1;
}
.mobile-menu-close {
  position: absolute;
  top: 18px; right: 22px;
  background: var(--secondary);
  color: var(--primary);
  font-size: 2.1rem;
  border-radius: 8px;
  border: 2px solid var(--retro-orange);
  width: 44px; height: 44px;
  display: flex;
  align-items: center; justify-content: center;
  transition: background 0.14s, color 0.14s;
  cursor: pointer;
  z-index: 1250;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--retro-orange);
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 56px;
  width: 100%;
  align-items: flex-start;
}
.mobile-nav a {
  color: #fff;
  padding: 13px 0;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-weight: 800;
  width: 100%;
  border-bottom: 1.5px dashed var(--retro-orange);
  transition: color 0.14s, background 0.13s;
  border-radius: 6px;
  box-sizing: border-box;
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--secondary);
  color: var(--primary);
}

/* ===================
   TABLE
   =================== */
table {
  width: 100%;
  background: var(--accent);
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid var(--retro-orange);
  margin: 22px 0 0 0;
  font-size: 1em;
  box-shadow: 1px 5px 13px rgba(241,153,83,.08);
}
th, td {
  padding: 13px 10px;
  text-align: left;
  border-bottom: 1px dotted var(--retro-green);
}
th {
  background: var(--retro-brown);
  color: #fff;
  font-weight: bold;
  letter-spacing: 0.03em;
}
tbody tr:last-child td {
  border-bottom: none;
}
tr:nth-child(even) td {
  background: #FBF0DA;
}
tr:hover td {
  background: var(--retro-orange);
  color: #fff;
}

/* ==============
   FOOTER STYLES
   ============= */
footer {
  background: var(--footer-bg);
  color: var(--secondary);
  padding: 30px 0 24px 0;
  border-top: 2px solid var(--retro-orange);
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  justify-content: space-between;
  align-items: center;
}
footer nav {
  display: flex;
  flex-direction: row;
  gap: 20px;
  flex-wrap: wrap;
}
footer nav a {
  color: var(--secondary);
  font-weight: 700;
  text-decoration: underline dotted 2px;
  transition: color .12s;
}
footer nav a:hover, footer nav a:focus {
  color: #fff;
}
footer img {
  height: 38px;
  margin-right: 8px;
  background: #fff6e0;
  padding: 3px 7px;
  border-radius: 10px;
  border: 2px solid var(--secondary);
}
footer span {
  font-size: 0.98em;
}

/* ===============
   RESPONSIVE STYLES
   =============== */
@media (max-width: 1200px) {
  .container { max-width: 100%; }
}
@media (max-width: 1024px) {
  .container { max-width: 95vw; }
}
@media (max-width: 900px) {
  .feature-icons { gap: 14px; }
}
@media (max-width: 768px) {
  body { font-size: 15px; }
  .section, .policy-section {
    padding: 28px 6px;
  }
  .container { padding: 0 8px; }
  .content-wrapper, .text-section
  { gap: 20px; }

  header nav { display: none; }
  .mobile-menu-toggle { display: block; }
  footer .container {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .feature-icons { flex-direction: column; align-items: stretch; }
  table, th, td { font-size: 0.97em; }
  .hero {
    padding: 36px 0 22px 0;
  }
}
@media (max-width: 600px) {
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.24rem;
  }
  .card {
    padding: 16px 10px 14px 10px;
    border-radius: 11px;
  }
  .testimonial-card {
    font-size: 1em;
    padding: 13px;
    border-radius: 14px;
  }
}
@media (max-width: 520px) {
  .feature-icons > div {
    min-width: 80px;
    font-size: 0.95em;
  }
  .cta, .cta.primary {
    font-size: 0.96em;
    padding: 9px 16px;
    border-radius: 12px;
  }
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}

/* ========================
   COOKIE CONSENT BANNER
   ======================== */
.cookie-banner {
  position: fixed;
  left: 0; bottom: 0;
  width: 100vw;
  background: var(--secondary);
  color: var(--primary);
  box-shadow: 0 -4px 18px 0 rgba(34, 87, 122, 0.11);
  padding: 22px 10px 18px 16px;
  z-index: 3000;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  font-size: 1.07em;
  gap: 28px;
  transition: transform .36s cubic-bezier(.7,.2,.2,1), opacity .19s;
}
.cookie-banner.hide {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 18px;
}
.cookie-banner button {
  padding: 9px 22px;
  font-weight: 700;
  font-size: 1em;
  border-radius: 12px;
  margin: 0 4px;
  cursor: pointer;
  border: 2px solid var(--primary);
  background: #fff;
  color: var(--primary);
  transition: background 0.13s, color 0.13s;
}
.cookie-banner button:focus, .cookie-banner button:hover {
  background: var(--primary);
  color: var(--secondary);
  border-color: var(--retro-orange);
}
.cookie-banner .settings-btn {
  background: var(--retro-orange);
  color: #fff;
  border-color: var(--retro-brown);
}
.cookie-banner .settings-btn:hover {
  background: var(--retro-brown);
  color: var(--secondary);
}
@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    font-size: 0.98em;
    padding: 12px 6px 13px 8px;
  }
  .cookie-banner .cookie-actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 10px;
  }
}

/* Cookie Preferences Modal Popup */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 4000;
  background: rgba(34,87,122,0.30);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: auto;
  transition: opacity .2s;
}
.cookie-modal-overlay.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: var(--card-bg);
  border-radius: 14px;
  padding: 34px 28px 27px 26px;
  box-shadow: 0 6px 36px 0 rgba(139, 108, 66, 0.19);
  border: 2px solid var(--retro-orange);
  min-width: 320px;
  max-width: 98vw;
  font-size: 1.09em;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}
.cookie-modal h2 {
  color: var(--primary);
  font-size: 1.3em;
  margin-bottom: 8px;
}
.cookie-modal .cookie-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin: 7px 0 12px 0;
}
.cookie-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.cookie-toggle-row label {
  color: var(--text-main);
  font-size: 1.02em;
  font-weight: 700;
}
.cookie-modal .toggle-switch {
  position: relative;
  width: 46px;
  height: 26px;
  display: inline-block;
}
.toggle-switch input {
  opacity: 0;
  width: 0; height: 0;
}
.toggle-slider {
  position: absolute;
  cursor: pointer;
  top:0; left:0;
  right:0; bottom:0;
  background: var(--secondary);
  border: 2px solid var(--primary);
  border-radius: 18px;
  transition: .26s;
}
.toggle-slider:before {
  content: "";
  position: absolute;
  height: 18px; width: 20px;
  left: 2px;
  bottom: 2.5px;
  background: var(--retro-orange);
  border-radius: 50%;
  transition: transform .26s, background .13s;
  box-shadow: 0 1.5px 6px rgba(250,213,134,0.22);
}
.toggle-switch input:checked + .toggle-slider {
  background: var(--retro-green);
  border-color: var(--retro-brown);
}
.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(18px);
  background: var(--retro-brown);
}
.cookie-modal .modal-actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
  margin-top: 5px;
}
.cookie-modal button {
  padding: 9px 22px;
  font-size: 1em;
  border-radius: 12px;
  font-weight: 700;
  border: 2px solid var(--retro-orange);
  background: var(--secondary);
  color: var(--primary);
  transition: background 0.11s, color 0.11s;
  cursor: pointer;
}
.cookie-modal button:hover, .cookie-modal button:focus {
  background: var(--retro-orange);
  color: #fff;
}
.cookie-modal .modal-close {
  position: absolute;
  top: 13px; right: 16px;
  background: none;
  color: var(--retro-orange);
  font-size: 2.2em;
  border: none;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  transition: color .12s;
}
.cookie-modal .modal-close:hover {
  color: var(--retro-brown);
}
@media (max-width: 500px) {
  .cookie-modal {
    padding: 18px 6px 16px 8px;
    min-width: 0;
    font-size: 0.98em;
  }
}

/* Micro-interaction for focus */
a, button, .cta, .cookie-banner button, .mobile-menu-toggle, .mobile-menu-close, .cookie-modal button {
  outline: none;
  box-shadow: none;
}
a:focus, button:focus, .cta:focus, .cookie-banner button:focus, .mobile-menu-toggle:focus, .mobile-menu-close:focus, .cookie-modal button:focus {
  box-shadow: 0 0 0 3px var(--secondary), 0 0 0 5px var(--retro-brown);
  z-index: 20;
}

/* ==============
   UTILITY CLASSES
   ============== */
.mt-8 { margin-top: 8px !important; }
.mt-16 { margin-top: 16px !important; }
.mt-24 { margin-top: 24px !important; }
.mb-8 { margin-bottom: 8px !important; }
.mb-16 { margin-bottom: 16px !important; }
.mb-24 { margin-bottom: 24px !important; }
.rounded { border-radius: 8px; }
.text-center { text-align: center; }
.flex { display: flex; }
.flex-column { flex-direction: column; }
.flex-row { flex-direction: row; }
.align-center { align-items: center; }
.gap-20 { gap: 20px; }
.gap-24 { gap: 24px; }

/* Preserve mandatory spacing on all cards & wrappers */
.card, .testimonial-card, .section, .policy-section {
  margin-bottom: 24px;
}

/* ==============
   Print styles
   ============== */
@media print {
  * { color: #111 !important; background: #fff !important; }
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal-overlay { display: none !important; }
  .container { padding: 0 !important; }
}

/* Vintage decorative background (top ribbon, optional): can be used with section::before if needed */
/*
.section::before {
  content: '';
  display: block;
  height: 12px;
  width: 110px;
  border-radius: 8px 8px 0 0;
  background: repeating-linear-gradient(90deg, var(--retro-red), var(--retro-red) 14px, var(--retro-orange) 14px, var(--retro-orange) 28px);
  margin-bottom: 24px;
}
*/
