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

/* =========================================================
   VINTAGE RETRO BRAND COLOR PALETTE
   ========================================================= */
:root {
  --primary: #2C3554;
  --secondary: #E2B768;
  --accent: #F4F6F8;
  --dark: #211E21;
  --bg: #FAF6F1;
  --retro-orange: #FCB87D;
  --retro-red: #D75A4A;
  --retro-blue: #6979A7;
  --retro-green: #7FA37E;
  --text-dark: #2C3554;
  --text-vintage: #5A4A3C;
  --card-bg: #FFF8EA;
  --testimonial-bg: #FFF6E9;
  --shadow1: rgba(44,53,84,0.08);
  --shadow2: rgba(44,53,84,0.12);
}

/* Load fonts from Google Fonts (fallbacks included) */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&family=Open+Sans:wght@400;600&display=swap');

body {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  background: var(--bg);
  color: var(--text-vintage);
  min-height: 100vh;
  letter-spacing: 0.01em;
  padding-bottom: 60px; /* For cookie banner */
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--primary);
  margin-bottom: 0.7em;
  letter-spacing: 0.04em;
}
h1 { font-size: 2.8rem; font-weight: 700; }
h2 { font-size: 2rem; font-weight: 700; }
h3 { font-size: 1.5rem; font-weight: 600; }
h4 { font-size: 1.125rem; font-weight: 600; }

p, ul li, ol li, small, blockquote {
  font-family: 'Open Sans', Arial, sans-serif;
  color: var(--text-vintage);
  line-height: 1.7;
  font-size: 1rem;
  margin-bottom: 1.1em;
}
strong { color: var(--primary); font-weight: 700; }
small { font-size: 0.95em; color: var(--retro-blue); }

blockquote {
  border-left: 4px solid var(--secondary);
  padding-left: 20px;
  color: var(--retro-red);
  font-style: italic;
  margin: 24px 0;
}

/* =========================================================
   LAYOUT CONTAINERS & SPACING
   ========================================================= */
.container {
  width: 100%;
  margin: 0 auto;
  padding-right: 16px;
  padding-left: 16px;
  max-width: 1100px;
  box-sizing: border-box;
}

.section, section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
section:last-child { margin-bottom: 0; }

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.card {
  background: var(--card-bg);
  border-radius: 22px;
  box-shadow: 0 6px 24px var(--shadow1), 0 2px 6px var(--shadow2);
  margin-bottom: 20px;
  padding: 28px 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.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 28px;
  background: var(--testimonial-bg);
  border: 2px dashed var(--secondary);
  border-radius: 18px;
  margin-bottom: 20px;
  box-shadow: 0 4px 14px var(--shadow1);
  position: relative;
}

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

ul, ol { margin-left: 0; padding-left: 0; }
ul li, ol li {
  margin-bottom: 8px;
  position: relative;
  line-height: 1.6;
  padding-left: 34px;
  min-height: 32px;
  display: flex;
  align-items: center;
}
ul li img, ol li img {
  width: 26px; height: 26px;
  margin-right: 10px;
  filter: sepia(0.65) brightness(0.92) hue-rotate(-10deg) saturate(1.18);
}

/* =========================================================
   HEADER, NAVIGATION (Desktop + Mobile)
   ========================================================= */
header {
  background: var(--accent);
  border-bottom: 5px solid var(--secondary);
  box-shadow: 0 3px 10px var(--shadow1);
  position: sticky;
  top: 0;
  z-index: 20;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 82px;
}
header img {
  max-height: 54px;
  width: auto;
}
header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--primary);
  font-weight: 600;
  font-size: 1.02rem;
  padding: 8px 18px;
  border-radius: 7px;
  transition: background 0.20s, color 0.18s;
}
header nav a:hover,
header nav a:focus {
  background: var(--secondary);
  color: var(--retro-red);
  outline: none;
}
header nav a.cta-primary {
  background: var(--primary);
  color: #fff;
  border-radius: 30px;
  border: 2px solid var(--secondary);
  padding: 9px 26px 9px 26px;
  font-size: 1.06rem;
  font-weight: 700;
  transition: box-shadow 0.22s, background 0.17s;
  box-shadow: 0 3px 12px var(--shadow1);
  letter-spacing: 0.03em;
}
header nav a.cta-primary:hover,
header nav a.cta-primary:focus {
  background: var(--secondary);
  color: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 6px 18px var(--shadow2);
}

.mobile-menu-toggle {
  display: none;
  background: var(--secondary);
  color: var(--primary);
  border: none;
  border-radius: 7px;
  font-size: 2rem;
  padding: 9px 17px;
  cursor: pointer;
  align-items: center;
  transition: background 0.18s, color 0.18s;
  z-index: 32;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: var(--retro-orange);
  color: var(--retro-red);
}

/* MOBILE MENU */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: var(--card-bg);
  box-shadow: 0 0 60px var(--shadow2);
  z-index: 99;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 0 0 0 0;
  transition: transform 0.4s cubic-bezier(0.63,0.06,0.25,1), opacity 0.3s;
  transform: translateX(-100%);
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  font-size: 2.2rem;
  background: transparent;
  color: var(--retro-red);
  border: none;
  align-self: flex-end;
  margin: 22px 32px 0 0;
  cursor: pointer;
  z-index: 120;
}
.mobile-nav {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 18px 32px 0 32px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.25rem;
  color: var(--primary);
  font-weight: 700;
  padding: 13px 0 13px 0;
  border-bottom: 1px dotted var(--secondary);
  width: 100%;
  transition: color 0.22s, background 0.22s;
  display: block;
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover,
.mobile-nav a:focus {
  color: var(--retro-red);
  background: var(--retro-orange);
  outline: none;
}

@media (max-width: 1050px) {
  header nav {
    gap: 12px;
  }
}
@media (max-width: 900px) {
  header nav {
    gap: 7px;
  }
  header .container {
    min-height: 65px;
  }
}
@media (max-width: 800px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}

@media (max-width: 600px) {
  header img { max-height: 36px; }
  .mobile-nav {
    padding: 18px 16px 0 16px;
    gap: 13px;
  }
}

/* =========================================================
   BUTTONS, CTAS & FORMS
   ========================================================= */
.cta-primary, .cta-secondary, button, .mobile-menu-toggle, .mobile-menu-close {
  cursor: pointer;
  font-family: 'Montserrat', Arial, sans-serif;
  border: none;
  outline: none;
  transition: box-shadow 0.18s, background 0.22s, color 0.19s;
}
.cta-primary {
  background: var(--secondary);
  color: var(--primary);
  border-radius: 24px;
  padding: 14px 38px;
  font-size: 1.09rem;
  font-weight: 700;
  box-shadow: 0 2px 7px var(--shadow1);
  border: 2px solid var(--primary);
  margin-top: 10px;
}
.cta-primary:hover,
.cta-primary:focus {
  background: var(--retro-red);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px var(--shadow2);
}
.cta-secondary {
  background: #fff;
  color: var(--retro-red);
  border: 2px solid var(--secondary);
  border-radius: 22px;
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: 600;
  box-shadow: 0 2px 7px var(--shadow1);
  margin-top: 10px;
  transition: background 0.18s, color 0.19s, border-color 0.18s;
}
.cta-secondary:hover,
.cta-secondary:focus {
  background: var(--secondary);
  color: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 4px 14px var(--shadow2);
}

button {
  outline: none;
}

/* =========================================================
   FOOTER
   ========================================================= */
footer {
  background: var(--primary);
  color: #fff;
  padding: 32px 0 13px 0;
  border-top: 6px solid var(--secondary);
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
footer nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
}
footer nav a {
  color: var(--secondary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 0.98rem;
  transition: color 0.18s;
  padding: 4px 6px;
}
footer nav a:hover,
footer nav a:focus {
  color: #fff;
  border-bottom: 1.5px dotted #fff;
}
footer small {
  color: #fff;
  font-size: 0.98rem;
  opacity: 0.7;
}

/* =========================================================
   VINTAGE RETRO-STYLE ELEMENTS
   ========================================================= */
.card {
  border: 2.5px solid var(--secondary);
  background: repeating-linear-gradient(135deg, #FFF1D2 0 2px, transparent 2px 20px), var(--card-bg);
  background-blend-mode: lighten;
}
.card::before {
  content: '';
  position: absolute;
  top: -13px; left: -13px;
  width: 60px; height: 60px;
  background: url('../assets/deco/vintage-star.svg') no-repeat center center/contain;
  opacity: 0.11;
  pointer-events: none;
  z-index: 1;
}

.testimonial-card {
  font-family: 'Montserrat', Arial, sans-serif;
  background: var(--testimonial-bg);
  border-style: dashed;
  border-width: 2px;
  border-color: var(--secondary);
}
.testimonial-card p {
  font-family: 'Open Sans', Arial, sans-serif;
  color: var(--text-dark);
  font-size: 1.06rem;
}
.testimonial-card small {
  color: var(--retro-red);
  font-size: 0.98rem;
  font-style: italic;
  margin-top: -9px;
}

ul li::before,
ol li::before {
  content: '';
  display: inline-block;
  min-width: 22px;
  min-height: 22px;
  margin-right: 13px;
  background: url('../assets/deco/vintage-bullet.svg') no-repeat center center/22px;
  opacity: 0.46;
  filter: sepia(0.9) brightness(0.91);
  /* Only show if no img direct child */
}
ul li img, ol li img { margin-left: -35px; }

/* Only apply list bullets IF no img - supports icons in li */
ul li img ~ span, ol li img ~ span { margin-left: 0; }

/* =========================================================
   MICRO-ANIMATIONS
   ========================================================= */
.cta-primary, .cta-secondary {
  transition: box-shadow 0.18s, background 0.22s, color 0.19s, transform 0.13s;
}
.cta-primary:hover, .cta-secondary:hover {
  transform: translateY(-2px) scale(1.03);
}
a, button { transition: color 0.18s, background 0.17s; }

/* subtle section fade up animations on scroll (JS adds .in-view) */
.section, section {
  opacity: 0;
  transform: translateY(38px);
  transition: opacity 0.6s cubic-bezier(0.6,0.12,0.32,1), transform 0.55s cubic-bezier(0.52,0.01,0.38,0.95);
}
.section.in-view, section.in-view {
  opacity: 1;
  transform: none;
}

/* =========================================================
   RESPONSIVE DESIGN — MOBILE FIRST
   ========================================================= */
@media (max-width: 1050px) {
  h1 { font-size: 2.05rem; }
  h2 { font-size: 1.4rem; }
  .section, section { padding: 30px 8px; }
  .container { max-width: 98vw; }
  .content-wrapper { gap: 16px; }
}

@media (max-width: 768px) {
  h1 { font-size: 1.45rem; }
  h2 { font-size: 1.13rem; }
  .section, section { padding: 17px 6px; margin-bottom: 34px; }
  .card-container, .content-grid { gap: 13px; }
  .card { padding: 16px 10px; font-size: 0.96rem; }
  .testimonial-card { padding: 13px 8px; font-size: 0.98em; }
  .text-section { gap: 6px; }
  .text-image-section,
  .content-grid, .card-container { flex-direction: column; gap: 20px; }
}
@media (max-width: 500px) {
  .container { padding-left: 3vw; padding-right: 3vw; }
  .section, section { padding-left: 2vw; padding-right: 2vw; }
  .testimonial-card, .card { padding-left: 7px; padding-right: 7px; }
}

/* =========================================================
   COOKIE CONSENT BANNER & MODAL
   ========================================================= */
.cookie-banner {
  position: fixed;
  width: 100vw;
  left: 0;
  bottom: 0;
  z-index: 110;
  background: var(--card-bg);
  border-top: 3px solid var(--secondary);
  box-shadow: 0 -4px 24px var(--shadow2);
  padding: 22px 24px 16px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 0.97rem;
  animation: cookie-banner-fadein 0.7s ease;
}
@keyframes cookie-banner-fadein {
  from { opacity: 0; transform: translateY(60px); }
  to { opacity: 1; transform: none; }
}
.cookie-banner p {
  color: var(--primary);
}
.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 5px;
  align-items: center;
}
.cookie-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  border-radius: 20px;
  border: 2px solid var(--secondary);
  padding: 8px 18px;
  background: var(--secondary);
  color: var(--primary);
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.19s, color 0.19s, box-shadow 0.18s;
  margin-right: 3px;
}
.cookie-btn:hover,
.cookie-btn:focus {
  background: var(--retro-red);
  color: #fff;
  box-shadow: 0 3px 15px var(--shadow2);
  outline: none;
}
.cookie-btn.settings {
  background: #fff;
  color: var(--primary);
  border: 2px solid var(--secondary);
}
.cookie-btn.settings:hover,
.cookie-btn.settings:focus {
  background: var(--retro-orange);
  color: var(--primary);
}

/* COOKIE SETTINGS MODAL */
.cookie-modal-backdrop {
  position: fixed;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(44,53,84,0.18);
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: auto;
  animation: cookie-modal-fadein 0.45s ease;
}
@keyframes cookie-modal-fadein {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: var(--card-bg);
  border-radius: 22px;
  border: 2.5px solid var(--secondary);
  box-shadow: 0 10px 36px var(--shadow2);
  padding: 30px 38px;
  min-width: 310px;
  max-width: 420px;
  z-index: 1300;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.cookie-modal h2 {
  font-size: 1.24rem;
  color: var(--retro-red);
  margin-bottom: 12px;
  font-family: 'Montserrat', Arial, sans-serif;
}
.cookie-modal label {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 13px;
  font-size: 0.99rem;
}
.cookie-toggle {
  appearance: none;
  width: 25px;
  height: 25px;
  border-radius: 8px;
  background: var(--secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--primary);
  margin-right: 10px;
  cursor: pointer;
  position: relative;
  transition: background 0.19s, border-color 0.14s;
}
.cookie-toggle:checked {
  background: var(--retro-green);
  border-color: var(--retro-blue);
}
.cookie-toggle:checked:after {
  content: '\2714';
  color: #fff;
  position: absolute;
  left: 4px; top: -1px;
  font-size: 1.3rem;
}
.cookie-toggle[disabled], .cookie-toggle[aria-disabled='true'] {
  background: #ededed;
  opacity: 0.75;
  cursor: not-allowed;
}

.cookie-modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}
.cookie-modal .cookie-btn {
  min-width: 92px;
  border-radius: 14px;
}

@media (max-width: 500px) {
  .cookie-modal { padding: 13px 7vw; min-width: unset; max-width: 97vw; }
}

/* Hide Cookie Banner on Accept - for JS toggling */
.cookie-banner[hidden] { display: none !important; }
.cookie-modal-backdrop[hidden] { display: none !important; }

/* =========================================================
   MISC: FOCUS & ACCESSIBILITY HIGHLIGHTS
   ========================================================= */
a:focus, button:focus, .cta-primary:focus, .cta-secondary:focus, .cookie-btn:focus {
  outline: 2.5px dotted var(--retro-red);
  outline-offset: 3px;
  box-shadow: 0 3px 15px var(--retro-red, #D75A4A), 0 0 0 4px #fff;
}

/* Hide visually but keep for screen readers */
.sr-only { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* =========================================================
   OVERLAP + Z-INDEX GUARD
   ========================================================= */
.card, .testimonial-card, .cookie-modal, .mobile-menu, header, footer {
  z-index: inherit;
}

/* Force minimum margin between content blocks */
.card, .testimonial-card, .section, section, .content-wrapper, .text-section {
  margin-bottom: 20px;
}

/* For text-image flexibility */
@media (max-width: 768px) {
  .text-image-section { flex-direction: column; gap: 20px; }
}

/* ========== END ========== */
