/* ====================================================================================
   RESET & BASE (Normalize & Vintage Retro Vibe)
====================================================================================== */
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;
  background: transparent;
  box-sizing: border-box;
}
article, aside, details, figcaption, figure, footer, header, hgroup, main, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #FFF9F4;
  color: #3B3030;
  font-family: 'Open Sans', Arial, sans-serif;
  min-width: 320px;
}
ul, ol {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}
button,input,select,textarea {
  font-family: inherit;
  font-size: 1rem;
  background: none;
  border: none;
  outline: none;
  color: inherit;
}
:focus-visible {
  outline: 2px solid #233A6C;
  outline-offset: 2px;
}

/* ====================================================================================
    VINTAGE RETRO: Fonts, Brand Colors, Patterns
====================================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;900&family=Open+Sans:wght@400;700&display=swap');

:root {
  --primary: #233A6C;
  --secondary: #FDD835;
  --accent: #FFFFFF;
  --vintage-orange: #EB7F3F;
  --vintage-red: #CC4A3A;
  --vintage-teal: #6DD1B2;
  --vintage-bg: #FFF9F4;
  --base-font: 'Open Sans', Arial, sans-serif;
  --display-font: 'Montserrat', 'Open Sans', Arial, sans-serif;
  --border-radius: 18px;
  --card-shadow: 0 6px 24px 0 rgba(40, 30, 5, 0.12), 0 2px 10px 0 rgba(90, 53, 32, 0.12);
  --main-padding: 40px 20px;
  --yellow-faded: #FFE484;
  --divider: #E9DDCB;
  --gray-900: #3B3030;
  --gray-800: #665B4D;
  --white: #fff;
}

/* Subtle background vintage pattern */
body {
  background: var(--vintage-bg), repeating-linear-gradient(135deg, transparent, transparent 60px, #FDECCB 61px, transparent 68px);
}

/* Container for content alignment */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 18px;
}

/* ====================================================================================
    TYPOGRAPHY
====================================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--display-font);
  font-weight: 900;
  color: var(--primary);
  letter-spacing: 1px;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.375rem;
  margin-bottom: 12px;
}
h4, h5, h6 {
  font-size: 1.125rem;
}
p, li, span, a, button, input, label, div, b, strong {
  font-family: var(--base-font);
}
p {
  font-size: 1.15rem;
  margin-bottom: 18px;
  color: var(--gray-900);
}

b, strong {
  font-weight: 700;
  color: var(--primary);
}

.text-section {
  margin-bottom: 28px;
}

.thank-you-text {
  font-size: 1.28rem;
  color: var(--vintage-red);
  line-height: 1.7;
  text-align: center;
  margin-bottom: 30px;
}

/* Vintage separator */
hr {
  border: 0;
  border-top: 2px dashed var(--secondary);
  margin: 36px 0 32px 0;
  height: 0;
}

/* ====================================================================================
    SECTION & SPACING LAYOUTS
====================================================================================== */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  position: relative;
}

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

.card {
  background: var(--yellow-faded);
  border-radius: var(--border-radius);
  margin-bottom: 20px;
  position: relative;
  box-shadow: var(--card-shadow);
  padding: 26px 20px 22px 20px;
  min-width: 260px;
  flex: 1 1 260px;
  font-size: 1.11rem;
}

.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.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;
  margin-bottom: 24px;
  background: var(--secondary);
  border-radius: var(--border-radius);
  box-shadow: 0 4px 14px 0 rgba(197,141,44,0.17);
  font-style: italic;
  font-size: 1.08rem;
  color: #322018;
  border: 2px solid #D7C160;
}

.testimonial-card b {
  font-weight: 700;
  color: #9E6F34;
  font-style: normal;
  margin-left: 8px;
}

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

.content-wrapper {
  margin-top: 8px;
  margin-bottom: 8px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

ul:not(.footer-nav):not(.mobile-nav), ol {
  margin-left: 0;
  margin-bottom: 20px;
  padding-left: 0;
}
ul li, ol li {
  list-style: none;
  padding-left: 42px;
  position: relative;
  margin-bottom: 14px;
  font-size: 1.03rem;
  color: #604A29;
}
ul li img, ol li img {
  position: absolute;
  left: 0;
  top: 0.14em;
  width: 28px;
  height: 28px;
}
ul li:last-child, ol li:last-child {
  margin-bottom: 0;
}

/* Retro dot marker for lists (for those without images) */
ul li:not(:has(img))::before,
ol li:not(:has(img))::before {
  content: '';
  display: inline-block;
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 12px;
  height: 12px;
  background: radial-gradient(circle, var(--vintage-orange) 65%, var(--secondary) 70%);
  border-radius: 50%;
  box-shadow: 0 1px 0 var(--vintage-red), 1px 1px 0 var(--yellow-faded);
}

/* Remove marker when li has image */
ul li img + span::before {
  display: none !important;
}

/* ====================================================================================
    HEADER & NAVIGATION
====================================================================================== */
header {
  background: var(--secondary);
  box-shadow: 0 2px 18px 0 rgba(248,210,87,0.08);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  min-height: 76px;
  position: relative;
}
header img {
  height: 45px;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  margin-left: 26px;
}
.main-nav a {
  font-family: var(--display-font);
  font-weight: 700;
  letter-spacing: 0.5px;
  font-size: 1.07rem;
  color: var(--primary);
  border-bottom: 2px solid transparent;
  padding: 2px 6px 2px 2px;
  border-radius: 4px;
  transition: color 0.18s, border-bottom 0.18s;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--vintage-red);
  border-bottom: 2px solid var(--vintage-orange);
  background: #faefd5;
}

.cta-btn {
  background: var(--primary);
  color: var(--accent);
  font-family: var(--display-font);
  font-weight: 900;
  letter-spacing: 1px;
  font-size: 1.13rem;
  border-radius: 99px;
  padding: 10px 28px;
  margin-left: auto;
  margin-right: 16px;
  box-shadow: 0 2px 12px 0 rgba(128,44,26,0.10);
  border: none;
  cursor: pointer;
  transition: background 0.22s, color 0.22s, box-shadow 0.22s;
  border: 2px solid var(--primary);
  outline: none !important;
  position: relative;
  z-index: 2;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--vintage-orange);
  color: var(--primary);
  box-shadow: 0 4px 20px 0 rgba(128,44,26,0.15);
  border: 2px solid var(--vintage-red);
}

/* ====================================================================================
    MOBILE MENU & BURGER BUTTON
====================================================================================== */
.mobile-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: var(--secondary);
  font-size: 2rem;
  border-radius: 10px;
  width: 44px;
  height: 44px;
  border: 2px solid var(--primary);
  cursor: pointer;
  margin-left: 0;
  margin-right: 8px;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
  z-index: 1002;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--vintage-orange);
  color: var(--primary);
  box-shadow: 0 2px 12px 0 rgba(128,44,26,0.18);
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--primary);
  color: var(--accent);
  box-shadow: 0 4px 48px 0 rgba(40,30,5,0.18);
  z-index: 1999;
  transform: translateX(-100vw);
  transition: transform 0.35s cubic-bezier(.77,0,.175,1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  opacity: 0.99;
  padding-top: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  color: var(--secondary);
  border: none;
  font-size: 2.2rem;
  align-self: flex-end;
  margin: 28px 20px 10px 0;
  cursor: pointer;
  z-index: 2000;
  border-radius: 10px;
  transition: background 0.18s, color 0.18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--secondary);
  color: var(--vintage-red);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 0 36px;
  margin-top: 24px;
  width: calc(100vw - 80px);
}
.mobile-nav a {
  font-family: var(--display-font);
  color: var(--secondary);
  font-size: 1.38rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  line-height: 1.48;
  padding: 14px 0 13px 0;
  border-bottom: 2px solid #4359821f;
  border-radius: 5px;
  width: 100%;
  text-align: left;
  transition: background 0.18s, color 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--vintage-orange);
  color: var(--primary);
}

/* Hide nav, burger on desktop/mobile appropriately */
@media (min-width: 1024px) {
  .mobile-menu {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: none !important;
  }
  .main-nav {
    display: flex !important;
  }
}
@media (max-width: 1023px) {
  .main-nav, .cta-btn {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: inline-flex !important;
  }
}
@media (max-width: 520px) {
  .mobile-nav {
    margin: 0 16px;
  }
}

/* ====================================================================================
    FOOTER
====================================================================================== */
footer {
  background: #F8E9CB;
  padding: 38px 0 0 0;
  border-top: 3px solid var(--primary);
  font-size: 1rem;
  letter-spacing: .13px;
}
.footer-main {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 28px;
}
.footer-main img {
  height: 42px;
}
.footer-nav {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 24px;
  margin-left: 22px;
}
.footer-nav a {
  color: var(--primary);
  font-family: var(--display-font);
  font-weight: 700;
  font-size: 1rem;
  padding: 4px 0;
  border-bottom: 2px dotted var(--primary);
  opacity: .9;
  transition: color 0.14s, border-color 0.14s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--vintage-red);
  border-bottom: 2px solid var(--vintage-orange);
}
.footer-contact {
  margin-top: 20px;
  color: #444025;
  font-size: 0.95rem;
}
.footer-contact img {
  height: 18px;
  margin-right: 7px;
  opacity: .72;
}
.footer-contact p {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}
@media (max-width: 700px) {
  .footer-main {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .footer-nav {
    margin-left: 0;
    gap: 14px;
  }
}

/* ====================================================================================
    BUTTONS & LINKS: RETRO STYLE
====================================================================================== */
button, .cta-btn {
  cursor: pointer;
  appearance: none;
}

a:not(.main-nav a):not(.footer-nav a):not(.mobile-nav a):not(.cta-btn) {
  color: var(--vintage-orange);
  border-bottom: 1px dashed var(--vintage-orange);
  transition: color 0.13s, border-bottom-color 0.13s;
}
a:not(.main-nav a):not(.footer-nav a):not(.mobile-nav a):not(.cta-btn):hover, a:not(.main-nav a):not(.footer-nav a):not(.mobile-nav a):not(.cta-btn):focus {
  color: var(--primary);
  border-bottom: 1px solid var(--primary);
}

/* ====================================================================================
    COOKIE BANNER & MODAL
====================================================================================== */
.cookie-consent-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: var(--vintage-red);
  color: #fffbe5;
  font-family: var(--base-font);
  padding: 24px 18px 20px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 3000;
  box-shadow: 0 -2px 24px 0 rgba(60,25,23,0.16);
  font-size: 1rem;
  animation: slideUpIn 0.7s;
}
@keyframes slideUpIn {
  from { transform: translateY(120%); opacity: 0; } to { transform: translateY(0); opacity: 1; }
}

.cookie-consent-banner .cookie-btn-group {
  margin-top: 14px;
  display: flex;
  flex-direction: row;
  gap: 18px;
}
.cookie-consent-banner button {
  border-radius: 16px;
  font-family: var(--display-font);
  font-weight: 700;
  font-size: 1.09rem;
  background: var(--secondary);
  color: var(--primary);
  padding: 8px 20px;
  border: none;
  margin: 0 2px;
  min-width: 130px;
  box-shadow: 0 2px 8px 0 rgba(90,53,32,0.09);
  transition: background .23s, color .23s, transform .14s;
}
.cookie-consent-banner button:hover,
.cookie-consent-banner button:focus {
  background: var(--vintage-orange);
  color: var(--white);
  transform: scale(1.03);
}

/* Modal overlay */
.cookie-modal-overlay {
  display: none;
  position: fixed;
  z-index: 4000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(51,32,0,0.35);
  justify-content: center;
  align-items: center;
  animation: fadeIn .3s;
}
.cookie-modal-overlay.open {
  display: flex;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.cookie-modal {
  background: var(--white);
  border-radius: 22px;
  box-shadow: 0 6px 40px 0 rgba(90,53,32,0.17);
  max-width: 96vw;
  width: 420px;
  padding: 38px 26px 18px 26px;
  font-size: 1rem;
  color: var(--gray-900);
  display: flex;
  flex-direction: column;
  gap: 19px;
  animation: popIn .5s cubic-bezier(.71,2,.18,.92);
}
@keyframes popIn {
  0% { transform: scale(0.93) translateY(25px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

.cookie-modal h2 {
  color: var(--primary);
  font-size: 1.3rem;
  margin-bottom: 8px;
}
.cookie-modal label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
}
.cookie-modal input[type="checkbox"] {
  accent-color: var(--primary);
  width: 22px;
  height: 22px;
  border-radius: 6px;
}
.cookie-modal .cookie-category {
  margin-bottom: 14px;
  padding: 6px 0 6px 4px;
  border-left: 5px solid var(--secondary);
}
.cookie-modal .cookie-category.essential {
  border-left-color: var(--vintage-teal);
}
.cookie-modal .cookie-category.essential label {
  color: var(--vintage-teal);
}
.cookie-modal .modal-actions {
  margin-top: 14px;
  display: flex;
  flex-direction: row;
  gap: 18px;
  justify-content: flex-end;
}
.cookie-modal .modal-actions button {
  background: var(--primary);
  color: var(--accent);
  border-radius: 16px;
  padding: 8px 22px;
  font-size: 1rem;
  font-family: var(--display-font);
  font-weight: 700;
  border: none;
  margin-left: 3px;
  transition: background 0.22s, color 0.22s, transform 0.13s;
}
.cookie-modal .modal-actions button:hover, .cookie-modal .modal-actions button:focus {
  background: var(--vintage-orange);
  color: var(--white);
  transform: scale(1.03);
}

/* ====================================================================================
    RESPONSIVE: FLEXBOX LAYOUTS
====================================================================================== */
@media (max-width: 1024px) {
  .container {
    padding: 0 8px;
  }
  .footer-main {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
  .footer-nav {
    margin-left: 0;
  }
}

@media (max-width: 900px) {
  .content-grid, .card-container {
    flex-direction: column;
    gap: 22px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 20px;
  }
}

@media (max-width: 700px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.32rem; }
  .section { padding: 28px 6px; margin-bottom: 36px; }
}
@media (max-width: 520px) {
  .container { padding: 0 2px; }
  .testimonial-card { padding: 14px 7px; font-size: 0.98rem; }
  .card { padding: 12px 7px; }
  .cookie-modal { width: 92vw; max-width: 100vw; padding: 24px 5vw 12px 5vw; }
}

/* Ensure min 20px between content cards/sections (and avoid overwrap) */
.content-wrapper > *+* {
  margin-top: 20px;
}

/* ====================================================================================
    VISUAL RETRO ELEMENTS & EFFECTS
====================================================================================== */
.section {
  /* Add subtle retro texture and border */
  border: 3px solid var(--divider);
  background: var(--white) url('data:image/svg+xml;utf8,<svg width="8" height="8" viewBox="0 0 8 8" fill="none" xmlns="http://www.w3.org/2000/svg"><rect width="2" height="2" fill="%23FDD835"/><rect x="6" width="2" height="2" fill="%23EB7F3F"/><rect x="3" y="6" width="2" height="2" fill="%236DD1B2"/></svg>');
  background-repeat: repeat;
  background-size: 26px 26px;
}
.card {
  border: 2px dashed var(--vintage-orange);
  background: var(--yellow-faded);
}
.testimonial-card {
  background: var(--secondary);
  border: 2.5px solid var(--vintage-orange);
  box-shadow: 0 2px 12px 0 rgba(205,160,61,.18), 0 1.5px 6px 0 rgba(140,66,27,.17);
  font-family: var(--base-font);
}

/* Subtle hover interaction for cards */
.card, .testimonial-card, .text-section {
  transition: box-shadow 0.18s, transform 0.13s, border-color 0.19s;
}
.card:hover, .testimonial-card:hover, .text-section:hover {
  box-shadow: 0 6px 28px 0 rgba(192, 132, 22, 0.16), 0 2.5px 12px 0 rgba(140, 66, 27, 0.16);
  border-color: var(--primary);
  transform: translateY(-3px) scale(1.02);
  z-index: 10;
}

/* ====================================================================================
    MISC: FORMS, IMAGES, ATTRIBUTION, ETC
====================================================================================== */
.text-section a {
  display: inline-block;
  margin-top: 8px;
  color: var(--primary);
  font-weight: 600;
  background: var(--yellow-faded);
  border-radius: 8px;
  padding: 3px 14px;
  box-shadow: 0 2px 7px 0 rgba(255,216,53,0.12);
  text-decoration: none;
  border: 1.2px solid #f3ab3f;
  transition: background 0.17s, color 0.17s;
}
.text-section a:hover, .text-section a:focus {
  background: var(--vintage-orange);
  color: var(--accent);
}

/* Responsive hero and CTA section overrides */
@media (max-width: 600px) {
  h1 { font-size: 1.27rem; }
  h2 { font-size: 1.09rem; }
}

/* ====================================================================================
    ACCESSIBILITY & OTHER UTILITIES
====================================================================================== */
[hidden] { display: none !important; }

::selection { background: var(--secondary); color: var(--primary); }
::-webkit-scrollbar { width: 9px; background: #F8E9CB; }
::-webkit-scrollbar-thumb {
  background: var(--secondary);
  border-radius: 10px;
}

/* ====================================================================================
    Z-INDEX LAYERS
====================================================================================== */
header { z-index: 1000; }
.mobile-menu { z-index: 1999; }
.cookie-consent-banner { z-index: 3000; }
.cookie-modal-overlay { z-index: 4000; }

/* ====================================================================================
    PRINT
====================================================================================== */
@media print {
  *, *:before, *:after { background: #fff !important; color: #000 !important; box-shadow: none !important; text-shadow: none !important; }
  header, footer, .mobile-menu, .cookie-consent-banner, .cookie-modal-overlay { display: none !important; }
}
