/* =====================
   CSS RESET & BASELINE
   ===================== */
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;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, main, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  background: #F7F7F2;
  color: #274957;
}
ol, ul { list-style: none; }
blockquote, q { quotes: none; }
blockquote:before, blockquote:after,
q:before, q:after { content: ''; content: none; }
table { border-collapse: collapse; border-spacing: 0; }
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; transition: color 0.18s; }

/* ==========================
   CUSTOM FONTS: Retro/Vintage
   ========================== */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,800,900|Roboto:400,500,700&display=swap');
@font-face {
  font-family: 'Quicksand';
  font-style: normal; font-weight: 700;
  src: local('Quicksand'), url('https://fonts.gstatic.com/s/quicksand/v30/6xK3dSBYKcSV-LCoeQqfX1RYOo3qOK7z3EZJEjY.woff2') format('woff2');
  unicode-range: U+0000-00FF;}

:root {
  --brand-primary: #274957;
  --brand-secondary: #FFD179;
  --brand-accent: #F7F7F2;
  --vintage-red: #B34732;
  --vintage-blue: #3777A5;
  --vintage-green: #a5bb50;
  --vintage-brown: #C3A57B;
  --vintage-pink: #F4A5AB;
  --vintage-shadow: rgba(39, 73, 87, 0.14);
  --vintage-border: #c5bca0;
  --heading-font: 'Montserrat', 'Quicksand', Arial, sans-serif;
  --text-font: 'Roboto', Arial, Helvetica, sans-serif;
}

body {
  font-family: var(--text-font);
  font-size: 16px;
  background-color: var(--brand-accent);
  color: var(--brand-primary);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  font-weight: 800;
  color: var(--brand-primary);
  letter-spacing: 1px;
}
h1 { font-size: 2.5rem; margin-bottom: 24px; text-shadow: 1px 1px 0 var(--brand-secondary); }
h2 { font-size: 2rem; margin-bottom: 20px; position: relative; }
h3 { font-size: 1.4rem; margin-bottom: 12px; }
h4 { font-size: 1.15rem; }

strong { font-weight: 700; color: var(--vintage-red); }
sub, sup {font-size: 0.8em;}

p, li {
  color: var(--brand-primary);
  font-family: var(--text-font);
  font-size: 1rem;
  margin-bottom: 12px;
  line-height: 1.7;
}

.subheadline {
  font-family: var(--heading-font);
  color: var(--vintage-brown);
  font-size: 1.1rem;
  margin-bottom: 14px;
  letter-spacing: 0.5px;
}

ul {
  padding-left: 0;
  margin-bottom: 16px;
}
ul li {
  background: url('data:image/svg+xml;utf8,<svg height="16" width="16" viewBox="0 0 16 16" fill="%23FFD179" xmlns="http://www.w3.org/2000/svg"><circle cx="8" cy="8" r="6"/></svg>') left center no-repeat;
  padding-left: 23px;
  margin-bottom: 10px;
}

/* =====================
   MAIN WRAPPERS
   ===================== */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  justify-content: flex-start;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ===========
   HEADER
   =========== */
header {
  background: var(--brand-primary);
  color: var(--brand-accent);
  padding: 0;
  position: relative;
  box-shadow: 0 2px 8px var(--vintage-shadow);
  z-index: 90;
}
header .container {
  padding-top: 18px;
  padding-bottom: 18px;
}
header .content-wrapper {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
header img {
  height: 44px;
  width: auto;
  margin-right: 18px;
}
nav {
  display: flex;
  align-items: center;
  gap: 20px;
}
nav a {
  font-size: 1rem;
  font-family: var(--heading-font);
  color: var(--brand-accent);
  font-weight: 700;
  letter-spacing: 0.2px;
  padding: 8px 6px;
  border-radius: 7px;
  transition: background 0.18s, color 0.18s;
}
nav a:hover,
nav a:focus {
  background: var(--brand-secondary);
  color: var(--brand-primary);
}

.cta-primary {
  display: inline-block;
  background: var(--brand-secondary);
  color: var(--brand-primary);
  font-family: var(--heading-font);
  font-weight: 800;
  font-size: 1.08rem;
  border: none;
  padding: 13px 29px;
  border-radius: 32px 18px 32px 18px;
  box-shadow: 0 2px 10px var(--vintage-shadow);
  cursor: pointer;
  transition: background 0.22s, color 0.22s, box-shadow 0.22s;
  margin-left: 18px;
  margin-top: 0;
}
.cta-primary:hover,
.cta-primary:focus {
  background: var(--vintage-red);
  color: #FFF !important;
  box-shadow: 0 4px 18px var(--vintage-shadow);
}

/* ============
   MOBILE NAV
   ============ */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  right: 24px;
  top: 18px;
  background: var(--brand-secondary);
  color: var(--brand-primary);
  font-size: 2.1rem;
  padding: 7px 18px;
  border: none;
  border-radius: 18px 30px 18px 30px;
  box-shadow: 0 1px 6px var(--vintage-shadow);
  z-index: 102;
  cursor: pointer;
  transition: background 0.16s;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: var(--vintage-red);
  color: #fff;
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: var(--brand-primary);
  color: var(--brand-accent);
  z-index: 110;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transform: translateX(-100vw);
  transition: transform 0.4s cubic-bezier(.77,0,.18,1);
  box-shadow: 2px 0 24px 4px var(--vintage-shadow);
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
}
.mobile-menu-close {
  background: none;
  border: none;
  color: var(--brand-secondary);
  font-size: 2.2rem;
  position: absolute;
  right: 22px;
  top: 20px;
  z-index: 111;
  cursor: pointer;
  transition: color 0.15s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 72px;
  gap: 0;
  width: 100vw;
}
.mobile-nav a {
  padding: 20px 34px;
  font-size: 1.21rem;
  color: var(--brand-accent);
  text-align: left;
  width: 100%;
  border-bottom: 1px solid var(--vintage-border);
  background: transparent;
  font-family: var(--heading-font);
  font-weight: bold;
  transition: background 0.18s, color 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--brand-secondary);
  color: var(--brand-primary);
}

@media (max-width: 1000px) {
  header nav,
  header .cta-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
}
@media (min-width:1001px) {
  .mobile-menu {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* ==============
   MAIN LAYOUT
   ============== */
main {
  padding-top: 14px;
  padding-bottom: 38px;
  background: var(--brand-accent);
  min-height: 77vh;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* CUSTOM SECTION SPACING FOR MOBILE */
@media (max-width: 600px) {
  .section {
    padding: 24px 6px;
    margin-bottom: 40px;
  }
}

/* ====================
   FLEX CARD CONTAINERS
   ==================== */
.card-container,
.card-grid,
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card,
.feature {
  background: #fffbe6;
  border: 2px solid var(--vintage-border);
  box-shadow: 0 6px 30px var(--vintage-shadow);
  border-radius: 18px 38px 22px 16px;
  padding: 30px 24px 26px 24px;
  margin-bottom: 20px;
  position: relative;
  min-width: 272px;
  max-width: 360px;
  display: flex; flex-direction: column;
  gap: 12px;
  flex: 1 1 295px;
  transition: box-shadow 0.19s, border 0.18s;
}
.card:hover, .feature:hover {
  box-shadow: 0 14px 38px var(--vintage-shadow);
  border-color: var(--vintage-red);
}

/* Feature Icon Retro Styling */
.feature img {
  height: 54px;
  width: 54px;
  background: var(--brand-secondary);
  border-radius: 50%;
  border: 2px solid var(--vintage-border);
  box-shadow: 0 1px 6px 0 var(--vintage-shadow);
  margin-bottom: 12px;
  padding: 7px;
}

.feature h3 {
  color: var(--vintage-blue);
  font-family: var(--heading-font);
  font-size: 1.13rem;
  font-weight: 800;
}
.feature p {
  font-size: 1rem;
}

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

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

/* Testimonials Sliders & Cards */
.testimonial-slider {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding: 20px;
  background: #fffbe6;
  border-radius: 18px 38px 22px 16px;
  box-shadow: 0 3px 15px var(--vintage-shadow);
  margin-bottom: 20px;
  min-width: 240px;
  max-width: 390px;
  border: 2.5px dashed var(--vintage-red);
  font-family: var(--heading-font);
  font-size: 1.07rem;
  color: #2a2a2a;
  transition: box-shadow 0.17s, border 0.17s;
}
.testimonial-card p {
  font-size: 1.09rem;
  color: #222;
  margin-bottom: 8px;
  font-family: var(--text-font);
}
.testimonial-card span {
  font-size: 0.97rem;
  color: var(--vintage-brown);
  font-style: italic;
  font-family: var(--heading-font);
}
.testimonial-card:hover {
  box-shadow: 0 6px 32px var(--vintage-shadow);
  border-color: var(--brand-primary);
}

/* ===============
   FOOTER STYLES
   =============== */
footer {
  background: var(--brand-primary);
  color: var(--brand-accent);
  padding: 0;
}
footer .container {
  padding: 36px 16px 24px 16px;
}
footer .content-wrapper {
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 34px;
  flex-wrap: wrap;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  min-width: 220px;
  max-width: 380px;
}
.footer-brand img {
  height: 54px;
  width: auto;
  margin-bottom: 8px;
}
.footer-brand p {
  font-size: 0.98rem;
  color: var(--brand-accent);
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-nav a {
  color: var(--brand-accent);
  font-family: var(--heading-font);
  font-size: 1.01rem;
  font-weight: 700;
  transition: color 0.17s;
}

/* ================
   RESPONSIVE LAYOUT
   ================ */
@media (max-width: 1000px) {
  .container {
    max-width: 98vw;
    padding-left: 8px;
    padding-right: 8px;
  }
  header .content-wrapper,
  footer .content-wrapper {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  .feature-grid, .card-grid, .card-container { gap: 18px; }
}

@media (max-width: 820px) {
  .feature, .card, .testimonial-card { min-width: 95vw; max-width: 98vw; }
  .feature-grid { gap: 14px; }
}

@media (max-width: 768px) {
  .feature-grid,
  .card-grid,
  .card-container,
  .testimonial-slider,
  .content-wrapper {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .testimonial-card {
    min-width: 90vw;
    max-width: 98vw;
    margin: 0 auto 18px auto;
  }
  .feature, .card {
    min-width: 90vw;
    max-width: 99vw;
    margin: 0 auto 18px auto;
  }
  .text-image-section {
    flex-direction: column !important;
    gap: 22px;
    align-items: center !important;
  }
  h1 { font-size: 1.64rem; }
  h2 { font-size: 1.23rem; }
}
@media (max-width: 480px) {
  .container { padding-left: 2px; padding-right: 2px; }
  .section { padding: 14px 0px; margin-bottom: 36px; }
  .feature, .card, .testimonial-card { padding: 16px 8px 14px 8px; }
}

/* =========================
   FLEXBOX SECTION EXAMPLES
   ========================= */
.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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ===============
   CTA BOX/AREA
   =============== */
.cta-box {
  display: flex;
  gap: 14px;
  margin-top: 14px;
}

/* ================
   MODERN MICRO-INTERACTIONS
   ================ */
.cta-primary, .card, .feature, .testimonial-card, .footer-nav a, nav a {
  transition: all 0.17s cubic-bezier(.7,.03,.38,.99);
}

/* BUTTONS GENERIC STYLES */
button, .cta-primary, .mobile-menu-close, .mobile-menu-toggle {
  outline: none;
}
button:focus, .cta-primary:focus, .mobile-menu-toggle:focus, .mobile-menu-close:focus {
  box-shadow: 0 0 0 3px var(--brand-secondary);
}

/* ================
   VINTAGE/RETRO ELEMENTS
   ================ */
section {
  background: repeating-linear-gradient(135deg, #FFD179, #FFD179 28px, #F7F7F2 28px, #F7F7F2 54px);
  border-radius: 22px 48px 22px 40px;
  box-shadow: 0 3px 35px var(--vintage-shadow);
  margin-bottom: 54px;
}
section:nth-of-type(even) {
  background: repeating-linear-gradient(135deg, var(--vintage-pink), var(--vintage-pink) 28px, #F7F7F2 28px, #F7F7F2 54px);
}

.card::before, .feature::before {
  content: '';
  display: block;
  position: absolute;
  top: -18px; left: -18px;
  width: 38px; height: 38px;
  background: url('data:image/svg+xml;utf8,<svg width="38" height="38" viewBox="0 0 38 38" fill="none" xmlns="http://www.w3.org/2000/svg"><rect width="38" height="38" rx="8" fill="%23FFD179"/><circle cx="19" cy="19" r="6" fill="%23B34732"/></svg>');
  z-index: 0;
  opacity: 0.7;
  pointer-events: none;
}

.card::after, .feature::after {
  content: '';
  display: block;
  position: absolute;
  bottom: -16px; right: -18px;
  width: 24px; height: 24px;
  background: url('data:image/svg+xml;utf8,<svg width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg"><ellipse cx="12" cy="12" rx="12" ry="11" fill="%23F4A5AB"/></svg>');
  opacity: 0.5;
  z-index: 0;
  pointer-events: none;
}


/* ==============
   LINKS, FORMS, ETC.
   ============== */
a:focus, button:focus { outline: 2px solid var(--brand-secondary); outline-offset: 1px; }
.text-section a {
  color: var(--vintage-blue);
  font-weight: bold;
  border-bottom: 1px dotted var(--vintage-blue);
  transition: border-color 0.13s, color 0.13s;
}
.text-section a:hover { color: var(--vintage-red); border-bottom: 1px solid var(--vintage-red); }

/* ===============
   COOKIE BANNER
   =============== */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  z-index: 230;
  background: var(--brand-secondary);
  color: var(--brand-primary);
  box-shadow: 0 -2px 16px var(--vintage-shadow);
  border-radius: 18px 18px 0 0;
  padding: 24px 20px 16px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  font-family: var(--text-font);
  font-size: 1rem;
  animation: cookie-banner-in 0.59s cubic-bezier(.78,0,.34,1);
  transition: transform 0.55s cubic-bezier(.78,0,.34,1), opacity 0.25s;
}
@keyframes cookie-banner-in {
  0% { transform: translateY(110%); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner .cookie-btns {
  display: flex;
  gap: 16px;
}
.cookie-banner button {
  font-family: var(--heading-font);
  font-size: 1rem;
  font-weight: 700;
  padding: 9px 21px;
  border-radius: 22px;
  border: none;
  box-shadow: 0 2px 6px var(--vintage-shadow);
  cursor: pointer;
  margin-top: 0;
  margin-bottom: 0;
  transition: background 0.16s, color 0.16s, box-shadow 0.14s;
}
.cookie-banner .accept {
  background: var(--brand-primary);
  color: var(--brand-secondary);
}
.cookie-banner .accept:hover, .cookie-banner .accept:focus {
  background: var(--vintage-red);
  color: #fff;
}
.cookie-banner .decline {
  background: #fffbe6;
  color: var(--brand-primary);
  border: 1.5px solid var(--brand-primary);
}
.cookie-banner .decline:hover, .cookie-banner .decline:focus {
  background: var(--vintage-red);
  color: #fff;
  border-color: var(--vintage-red);
}
.cookie-banner .settings {
  background: var(--brand-secondary);
  color: var(--brand-primary);
  border: 1.5px solid var(--brand-primary);
}
.cookie-banner .settings:hover, .cookie-banner .settings:focus {
  background: #fffbe6;
  color: var(--vintage-blue);
  border-color: var(--vintage-blue);
}

/* Cookie Modal Overlay */
.cookie-modal-overlay {
  position: fixed;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  background: rgba(39,73,87,0.66);
  z-index: 231;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s;
}
.cookie-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: #fffbe6;
  padding: 32px 22px 18px 22px;
  border-radius: 28px 40px 30px 18px;
  box-shadow: 0 6px 36px var(--vintage-shadow);
  min-width: 330px;
  max-width: 98vw;
  display: flex;
  flex-direction: column;
  gap: 26px;
  animation: cookie-modal-in 0.35s cubic-bezier(.75,0,.39,1.1);
  border: 2.5px solid var(--vintage-border);
}
@keyframes cookie-modal-in {
  from { transform: scale(.7); opacity: 0; } to { transform: scale(1); opacity: 1; }
}
.cookie-modal h3 {
  font-family: var(--heading-font);
  font-size: 1.11rem;
  margin-bottom: 10px;
  color: var(--brand-primary);
}
.cookie-modal label.cookie-switch {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1rem;
  margin-bottom: 13px;
  font-family: var(--text-font);
  color: var(--brand-primary);
}
.cookie-modal input[type="checkbox"]:not(:disabled) {
  accent-color: var(--brand-primary);
}
.cookie-modal .modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}
.cookie-modal .modal-footer button {
  border-radius: 16px;
  padding: 8px 19px;
  font-family: var(--heading-font);
  font-weight: 700;
  background: var(--brand-secondary);
  color: var(--brand-primary);
  border: 1.5px solid var(--vintage-brown);
  box-shadow: 0 1px 7px var(--vintage-shadow);
  transition: background 0.17s, color 0.17s;
}
.cookie-modal .modal-footer button:hover, .cookie-modal .modal-footer button:focus {
  background: var(--brand-primary);
  color: var(--brand-secondary);
  border-color: var(--brand-primary);
}

/* Hide modal / banner on dismiss */
.cookie-banner.hide {
  transform: translateY(110%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.45s cubic-bezier(.78,0,.34,1) 0.09s, opacity 0.22s 0.09s;
}
.cookie-modal-overlay.closed {
  opacity: 0;
  pointer-events: none;
}

/* ===============
   UTILITY CLASSES
   =============== */
.d-none { display: none !important; }
.text-center { text-align: center !important; }
.text-right { text-align: right !important; }
.text-left { text-align: left !important; }
.mt-20 { margin-top: 20px !important; }
.mt-30 { margin-top: 30px !important; }

/* ==============
   PRINT STYLES
   ============== */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal-overlay { display: none !important; }
  .section, section { box-shadow: none !important; background: #fff !important; }
}

/* ===============
   ADDITIONAL RETRO TOUCHES
   =============== */
section, .card, .testimonial-card, .feature {
  font-family: var(--text-font);
  background-image: repeating-linear-gradient(-45deg, transparent, transparent 40px, rgba(255,209,121,0.07) 42px, rgba(255,209,121,0.11) 54px);
}

.card, .testimonial-card, .feature {
  border-radius: 18px 38px 22px 16px;
}

/* Pattern or border for vintage effect on cards */
.card, .feature {
  box-shadow: 0 4px 25px var(--vintage-shadow), 0 3px 0 0 var(--vintage-border) inset;
}

/* Highly readable testimonials */
.testimonial-card {
  background: #fffbe6;
  color: #1e2330;
  border: 2.5px dashed var(--vintage-red);
  font-size: 1.03rem;
  font-family: var(--text-font);
}

/* ENFORCE ALL LAYOUTS WITH FLEXBOX, NO GRID */
/* (Confirmed: no grid, no columns anywhere) */
