/* ===================
   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;
}
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  line-height: 1.6;
  background: #F2F0EA;
  color: #263248;
  font-family: 'Open Sans', Arial, sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

img, picture {
  max-width: 100%;
  display: block;
}
a {
  color: #263248;
  text-decoration: none;
  transition: color .2s;
  cursor: pointer;
}
a:focus { outline: 2px dashed #B2876F; outline-offset: 2px; }
a:hover { color: #B2876F; }

ul, ol {
  margin-left: 2em;
  margin-top: 10px;
  margin-bottom: 10px;
}
li {
  margin-bottom: 8px;
}
strong {
  font-weight: bold;
}

/* ===================
   BRAND FONTS
   =================== */
@import url('https://fonts.googleapis.com/css?family=Merriweather:700,900&display=swap');
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,600,700&display=swap');

h1, h2, h3, h4, h5, h6 {
  font-family: 'Merriweather', serif;
  color: #263248;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
  font-weight: 900;
}
h1 {
  font-size: 2.4rem;
  margin-bottom: 20px;
}
h2 {
  font-size: 1.7rem;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.18rem;
  margin-bottom: 10px;
  color: #B2876F;
}
h4, h5, h6 {
  font-size: 1rem;
}

p, li, dd {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  color: #263248;
  margin-bottom: 9px;
  line-height: 1.7;
}
.subheadline {
  font-size: 1.2rem;
  font-style: italic;
  color: #B2876F;
  margin-bottom: 2em;
  letter-spacing: 0.02em;
}

blockquote {
  font-family: 'Merriweather', serif;
  font-size: 1.1rem;
  color: #263248;
  background: #fffefd;
  border-left: 5px solid #B2876F;
  padding: 18px 24px 18px 20px;
  margin: 0 0 8px 0;
  font-style: italic;
  border-radius: 6px 14px 14px 6px;
}
dt {
  font-weight: bold;
  color: #B2876F;
  margin-top: 14px;
}
dd {
  margin-left: 16px;
  margin-bottom: 10px;
}

/* ===================
  VINTAGE RETRO COLORS & PATTERNS
  =================== */
:root {
  --primary: #263248;
  --secondary: #B2876F;
  --accent: #F2F0EA;
  --retro-blue: #35618f;
  --retro-orange: #e8ab7d;
  --retro-yellow: #F8E7AC;
  --retro-green: #8AA99F;
  --white: #fff;
  --black: #212121;
}

/* Subtle retro pattern bg for header/footer */
header, footer {
  background-color: var(--accent);
  background-image: repeating-linear-gradient(135deg, transparent 0 20px, #e8ab7d18 20px 32px),
    repeating-linear-gradient(-135deg, transparent 0 26px, #8AA99F11 26px 38px);
}

/* ===================
   LAYOUT & SPACING
   =================== */
.container {
  width: 100%;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--accent);
  border-radius: 22px;
  box-shadow: 0 4px 24px #26324808, 0 1.5px 4px #26324805;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
}
.card {
  margin-bottom: 20px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 18px #26324813;
  padding: 30px 24px;
  position: relative;
  min-width: 280px;
  transition: transform .18s, box-shadow .18s;
}
.card:hover {
  transform: translateY(-6px) scale(1.025);
  box-shadow: 0 8px 40px #b2876f36, 0 1.5px 4px #26324810;
}
.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;
  margin-bottom: 20px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  background: var(--retro-yellow);
  color: var(--black);
  border: 2.5px dashed var(--secondary);
  padding: 24px 26px;
  border-radius: 16px 36px 36px 16px;
  margin-bottom: 24px;
  box-shadow: 0 2px 14px #b2876f21;
  font-family: 'Merriweather', serif;
  max-width: 560px;
  width: 100%;
}

.testimonial-card blockquote {
  color: #263248;
  background: none;
  border: none;
  padding: 0;
  margin-bottom: 10px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  border: 1.5px solid var(--retro-orange);
  padding: 24px 20px;
  border-radius: 13px 30px 13px 30px;
  margin-bottom: 20px;
  box-shadow: 0 1px 9px #8aa99f16;
}

/* Pattern Lines (decorative) */
.section {
  position: relative;
  overflow: visible;
}
.section:before {
  content: '';
  position: absolute;
  top: -18px;
  left: 34px;
  width: 145px;
  height: 11px;
  background: repeating-linear-gradient(90deg, #e8ab7d 0 12px, transparent 12px 22px);
  opacity: .16;
  border-radius: 6px;
  z-index: 0;
  pointer-events: none;
}

@media (max-width: 768px) {
  .section:before { display: none; }
}

/* ===================
     HEADER & NAVIGATION
   =================== */
header {
  width: 100%;
  padding: 0;
  border-bottom: 3px solid var(--secondary);
  min-height: 74px;
  z-index: 80;
  position: relative;
  box-shadow: 0 2px 16px #8aa99f17;
}
header img {
  height: 54px;
  margin: 18px 0 11px 0;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: flex-end;
}
.main-nav a {
  font-family: 'Merriweather', serif;
  color: var(--primary);
  font-size: 1rem;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 7px;
  transition: background .18s, color .18s;
  margin-bottom: 4px;
}
.main-nav a:not(.cta-primary):hover {
  background: var(--retro-orange);
  color: var(--white);
}
.main-nav .cta-primary {
  font-family: 'Merriweather', serif;
  background: var(--secondary);
  color: var(--white);
  padding: 8px 22px;
  border-radius: 16px;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 8px #8aa99f24;
  font-weight: 900;
  margin-left: 10px;
  margin-bottom: 0;
  border: none;
  transition: background .18s, color .18s, box-shadow .18s, transform .14s;
}
.main-nav .cta-primary:hover, .main-nav .cta-primary:focus {
  background: var(--primary);
  color: var(--retro-yellow);
  transform: scale(1.04);
  letter-spacing: 0.06em;
}

/* Hamburger Menu (MOBILE) */
.mobile-menu-toggle {
  display: none;
  background: var(--secondary);
  color: #fff;
  border: none;
  font-size: 2.1rem;
  padding: 6px 16px;
  border-radius: 12px;
  box-shadow: 0 2px 11px #26324813;
  position: absolute;
  right: 20px;
  top: 16px;
  z-index: 111;
  cursor: pointer;
  transition: background .18s, color .18s, transform .14s;
}
.mobile-menu-toggle:focus {
  outline: 2px dashed var(--retro-orange);
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  position: fixed;
  top: 0;
  left: 0;
  width: 320px;
  max-width: 94vw;
  height: 100vh;
  background: var(--accent);
  z-index: 2000;
  transform: translateX(-120%);
  transition: transform .34s cubic-bezier(.7,.1,.31,1.5);
  box-shadow: 4px 0 34px #26324834;
  padding: 34px 24px 14px 24px;
  border-right: 3px solid var(--retro-orange);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  color: var(--secondary);
  border: none;
  font-size: 2rem;
  margin-bottom: 24px;
  margin-right: 0;
  align-self: flex-end;
  cursor: pointer;
  transition: color .22s;
}
.mobile-menu-close:hover { color: var(--retro-blue); }
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}
.mobile-nav a {
  color: var(--primary);
  font-family: 'Merriweather', serif;
  font-weight: 900;
  font-size: 1.2rem;
  letter-spacing: 0.03em;
  padding: 12px 0;
  border-bottom: 1px dotted #b2876f44;
  width: 100%;
  transition: color .18s, background .18s;
  border-radius: 7px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--white);
  background: var(--secondary);
}
@media (max-width: 1024px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 1025px) {
  .mobile-menu { display: none !important; }
}

/* ==========
   HERO SECTIONS
   ========== */
section:first-of-type {
  background: var(--retro-yellow);
  border-radius: 28px 28px 40px 40px;
  box-shadow: 0 6px 44px #b2876f20;
}
section:first-of-type h1 {
  color: var(--primary);
  text-shadow: 2px 2px 0 #fff4c6, 0 1px 12px #b2876f21;
}
section:first-of-type .cta-primary {
  margin-top: 18px;
}

/* CTA & Buttons */
.cta-primary {
  background: var(--primary);
  color: var(--retro-yellow);
  font-family: 'Merriweather', serif;
  padding: 11px 32px;
  font-size: 1.1rem;
  font-weight: 900;
  border-radius: 16px;
  border: none;
  box-shadow: 0 2px 10px #8aa99f18;
  letter-spacing: 0.04em;
  cursor: pointer;
  display: inline-block;
  transition: background .18s, color .18s, transform .14s, box-shadow .2s;
  margin-top: 12px;
  margin-bottom: 10px;
}
.cta-primary:hover, .cta-primary:focus {
  background: var(--secondary);
  color: var(--white);
  transform: translateY(-1.5px) scale(1.037);
  box-shadow: 0 4px 24px #b2876f33;
}

button:focus, a:focus-visible {
  outline: 2px solid var(--retro-blue);
  outline-offset: 2px;
}

/* ===================
    LISTS, PATTERNS, NOSTALGIA
   =================== */
ul {
  list-style: disc outside;
  font-size: 1rem;
}
ol {
  list-style: decimal outside;
  font-size: 1rem;
}
ul li, ol li {
  padding-left: 0;
  margin-left: 0.25em;
}
ul li::marker, ol li::marker {
  color: var(--secondary);
  font-family: 'Merriweather', serif;
  font-size: 1.05em;
}

/* Subtle retro underline for section headlines */
h2, h1 {
  position: relative;
}
h2:after, h1:after {
  content: '';
  display: block;
  width: 44px;
  height: 4px;
  margin-top: 9px;
  background: var(--retro-orange);
  border-radius: 3px 10px 10px 8px;
}

/* ===================
    FOOTER
   =================== */
footer {
  padding-top: 24px;
  background-color: var(--accent);
  border-top: 3.5px solid #b2876f81;
  font-size: 1rem;
  box-shadow: 0 -1.5px 22px #8aa99f13;
  margin-top: 90px;
}
footer section {
  padding: 30px 20px 16px 20px;
}
footer img {
  height: 36px;
  margin-bottom: 14px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 18px 0 10px 0;
}
footer nav a {
  font-family: 'Merriweather', serif;
  font-size: 1rem;
  color: var(--secondary);
  border-bottom: 1.5px dotted var(--secondary);
  padding: 2px 2px 2px 0;
  transition: border-color .16s, color .19s;
}
footer nav a:hover, footer nav a:focus {
  color: var(--primary);
  border-bottom: 1.5px solid var(--primary);
}
footer .text-section p,
footer .text-section a {
  color: #414351;
  font-size: 0.97rem;
}
footer small {
  display: block;
  text-align: center;
  color: #B2876F;
  margin: 0 0 22px 0;
  font-size: 0.98rem;
  letter-spacing: 0.04em;
}

/* ===================
   RESPONSIVE DESIGN (MOBILE FIRST)
   =================== */
@media (max-width: 768px) {
  .container {
    padding-left: 6px;
    padding-right: 6px;
  }
  .section {
    padding: 28px 4vw;
    margin-bottom: 35px;
    border-radius: 19px;
  }
  .content-wrapper, .card-container, .content-grid {
    gap: 16px;
  }
  .testimonial-card, .feature-item { padding: 16px 10px; }

  .text-image-section { flex-direction: column; align-items: flex-start; gap: 18px; }
  /* footer nav vertical stack */
  footer nav { flex-direction: column; gap: 6px; align-items: flex-start; }
}
@media (max-width: 480px) {
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.18rem; }
  .section { padding: 16px 2vw; }
  .testimonial-card { font-size: 0.92rem; }
}

/* ===================
   MICRO-INTERACTIONS & ANIMATIONS
   =================== */
.cta-primary, .card, .testimonial-card, .feature-item, .main-nav a, .mobile-nav a {
  transition: all 0.17s cubic-bezier(.6,.9,.43,.99);
}
.card:hover { z-index: 4; }
.cta-primary:active { transform: scale(0.98); }

/* Section fade-in animation */
.section {
  opacity: 0; transform: translateY(32px);
  animation: sectionFadeInUp .97s cubic-bezier(.39,1.28,.52,1) .1s forwards;
}
@keyframes sectionFadeInUp {
  to { opacity: 1; transform: none; }
}

/* ===================
   COOKIE BANNER & MODAL
   =================== */
.cookie-consent-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: var(--retro-yellow);
  border-top: 3.5px solid var(--retro-orange);
  box-shadow: 0 -2px 13px #b2876f33;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  padding: 22px 8vw 20px 8vw;
  flex-wrap: wrap;
  gap: 18px;
  opacity: 1;
  transform: translateY(0);
  transition: transform .33s, opacity .22s;
  font-family: 'Open Sans', Arial, sans-serif;
}
.cookie-consent-banner.hide {
  opacity: 0;
  transform: translateY(100%);
}
.cookie-consent-banner .cookie-text {
  color: #212121;
  font-size: 1rem;
  margin-right: 10px;
  flex: 2 1 260px;
  min-width: 180px;
}
.cookie-btn {
  background: var(--secondary);
  color: #fff;
  font-family: 'Merriweather', serif;
  border: none;
  border-radius: 10px;
  padding: 8px 18px;
  margin-right: 11px;
  margin-bottom: 4px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.009em;
  cursor: pointer;
  box-shadow: 0 2px 8px #26324819;
  transition: background .18s, color .19s;
}
.cookie-btn:focus { outline: 2px dotted var(--primary); }
.cookie-btn:hover { background: var(--primary); color: var(--retro-yellow); }
.cookie-btn.settings {
  background: #F8E7AC;
  color: var(--primary);
  border: 1.3px solid var(--secondary);
  margin-right: 0;
}
.cookie-btn.settings:hover { background: var(--retro-orange); color: var(--white); }

/* Cookie Modal */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: #263248d2;
  z-index: 3500;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: all;
  transition: opacity .24s;
}
.cookie-modal-overlay.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: var(--accent);
  padding: 34px 28px 22px 28px;
  border-radius: 21px 41px 41px 21px;
  min-width: 340px;
  max-width: 97vw;
  box-shadow: 0 8px 50px #26324839;
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-family: 'Open Sans', Arial, sans-serif;
}
.cookie-modal h2 {
  font-size: 1.18rem;
  color: var(--primary);
}
.cookie-modal label {
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 12px 0 0 0;
  cursor: pointer;
}
.cookie-modal input[type="checkbox"] {
  accent-color: var(--secondary);
  width: 1.2em;
  height: 1.2em;
  border-radius: 6px;
  cursor: pointer;
}
.cookie-modal .cookie-category {
  margin-bottom: 7px;
  color: var(--secondary);
}
.cookie-modal .category-desc {
  font-size: 0.99em;
  color: var(--primary);
  margin-left: 2.4em;
  margin-top: -6px;
  margin-bottom: 9px;
}
.cookie-modal .cookie-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: flex-end;
  margin-top: 9px;
}
.cookie-modal .cookie-btn {
  margin-right: 0;
}
.cookie-modal .cookie-btn.close-btn {
  background: var(--primary);
  color: var(--retro-yellow);
}
.cookie-modal .cookie-btn.close-btn:hover {
  background: var(--retro-orange);
  color: var(--white);
}
@media (max-width: 480px) {
  .cookie-modal { min-width: unset; padding: 18px 8px 12px 8px; }
}

/* ===================
   PAGE SPECIFIC STRUCTURES
   =================== */
/* Hide if empty, maintain spacing */
.card-container:empty,
.content-grid:empty,
.testimonial-card:empty {
  display: none;
}
.text-section a.cta-primary {
  margin-top: 8px;
  margin-bottom: 0px;
}

/* ================
   MOBILE MENU ANIMATIONS
   ================ */
@media (max-width: 1024px) {
  .mobile-menu {
    will-change: transform;
    transition: transform .34s cubic-bezier(.52,.1,.49,1.1);
  }
}

/* ===================
   MISC: Tables, Forms, Inputs
   =================== */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 22px;
  background: #fff;
}
th, td {
  border: 1px solid var(--retro-green);
  padding: 10px 16px;
  font-family: 'Open Sans', Arial, sans-serif;
}
th {
  background: var(--retro-yellow);
}

input, textarea, select {
  border-radius: 6px;
  border: 1.6px solid var(--secondary);
  padding: 10px 12px;
  font-size: 1rem;
  font-family: 'Open Sans', Arial, sans-serif;
  margin-bottom: 12px;
  width: 100%;
  background: #fffefd;
  transition: border .15s;
}
input:focus, textarea:focus, select:focus {
  border: 1.8px solid var(--retro-blue);
  outline: none !important;
}

/* ================
  A11y Focus helper
 ================ */
:focus-visible {
  outline: 2px dashed #35618f;
}

/* ================
  Hide visually but remain accessible
 ================ */
.sr-only {
  position: absolute !important;
  width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); border:0;
}

/* Prevent overlap and maintain min spacing on all direct card/section elements */
section > *, .content-wrapper > *, .card-container > *, .content-grid > *, .text-section > *, .testimonial-card + .testimonial-card {
  margin-bottom: 20px;
}
section > *:last-child, .content-wrapper > *:last-child, .card-container > *:last-child, .content-grid > *:last-child, .text-section > *:last-child, .testimonial-card:last-child {
  margin-bottom: 0 !important;
}

/* Ensure cards and testimonials never overlap; enforce vertical/horizontal margins in flexboxes */
.card, .feature-item, .testimonial-card {
  min-width: 220px;
  margin-right: 0;
}

.wrap { flex-wrap: wrap; }

/* ===================
   END OF CSS
   =================== */
