/* RESET & BASE TYPOGRAPHY */
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,
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 { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }
body {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  background: #F8F5EF;
  color: #3c3324;
  -webkit-font-smoothing: antialiased;
  line-height: 1.7;
  min-height: 100vh;
  letter-spacing: 0.01em;
}
:root {
  /* Vintage retro palette */
  --primary: #26734D; /* Radiant Matter green */
  --secondary: #235789; /* blue accent */
  --accent: #F3F8F2;
  --retro-yellow: #FFE899;
  --retro-orange: #FFB87A;
  --retro-brown: #89725C;
  --retro-red: #ED6A5A;
  --retro-offwhite: #F8F5EF;
  --dark: #2E1D1A;
  --light: #FAF7EE;
}
img { max-width: 100%; height: auto; display: block; }

/* VINTAGE RETRO TYPOGRAPHY */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,800|Open+Sans:400,700&display=swap');
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #2E1D1A;
  font-weight: 800;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}
h1 { font-size: 2.8rem; margin-bottom: 18px; }
h2 { font-size: 2rem; margin-bottom: 14px; }
h3 { font-size: 1.4rem; margin-bottom: 10px; }
h4, h5, h6 { font-size: 1.1rem; margin-bottom: 8px; }

p, li, a {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  color: #3c3324;
}
a { color: var(--secondary); text-decoration: underline; transition: color 0.2s; }
a:hover, a:focus { color: var(--retro-red); text-decoration: none; }

ul, ol {
  margin-bottom: 18px;
  margin-top: 6px;
  padding-left: 26px;
}
ul li, ol li {
  margin-bottom: 8px;
  line-height: 1.6;
}
strong, b { color: var(--primary); letter-spacing: 0.01em; }

/* LAYOUT: CONTAINERS */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 12px;
  margin-bottom: 12px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* SECTION SPACING & PATTERNS (MANDATORY) */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--light);
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(46,29,26,0.06);
  border: 2px solid rgba(214, 192, 139, 0.11);
}
.hero {
  background: linear-gradient(90deg, var(--retro-yellow) 80%, var(--retro-orange) 100%);
  box-shadow: 0 10px 32px rgba(237,106,90,0.08);
  border-radius: 0 0 34px 34px;
  padding-top: 48px;
  padding-bottom: 60px;
  margin-bottom: 56px;
}

/* HEADER & NAVBAR */
header {
  background: var(--retro-offwhite);
  box-shadow: 0 2px 8px rgba(46,29,26,0.06);
  z-index: 20;
  position: relative;
}
header nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  padding: 14px 0;
}
header nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.04em;
  color: var(--primary);
  background: none;
  border: none;
  padding: 5px 10px;
  border-radius: 8px;
  transition: background 0.18s, color 0.18s, transform 0.15s;
}
header nav a:hover, header nav a:focus {
  color: var(--retro-red);
  background: var(--retro-yellow);
  transform: translateY(-2px) scale(1.04);
}
header nav a.cta {
  background: var(--secondary);
  color: #fff !important;
  font-size: 1rem;
  padding: 7px 19px;
  letter-spacing: 0.06em;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(35,87,137,0.09);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.13s;
}
header nav a.cta:hover, header nav a.cta:focus {
  background: var(--primary);
  color: var(--retro-yellow) !important;
  box-shadow: 0 6px 20px rgba(38,115,77,0.14);
  transform: scale(1.07);
}
header nav img {
  height: 36px; width: auto; vertical-align: middle; margin-right: 8px;
  filter: drop-shadow(0 2px 2px rgba(35,87,137,0.07));
}

/* MOBILE NAV MENU */
.mobile-menu-toggle {
  display: none;
  background: var(--primary);
  color: #fff;
  font-size: 2rem;
  border: none;
  border-radius: 12px;
  padding: 5px 14px 5px 12px;
  cursor: pointer;
  margin-left: auto;
  margin-right: 12px;
  transition: background 0.2s, box-shadow 0.15s;
  box-shadow: 0 3px 10px rgba(38, 115, 77, 0.09);
  z-index: 101;
}
.mobile-menu-toggle:active,
.mobile-menu-toggle:focus {
  background: var(--secondary);
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: var(--retro-offwhite);
  box-shadow: 0 2px 40px 0 rgba(35,87,137,0.16);
  z-index: 200;
  transform: translateX(-100vw);
  opacity: 0;
  transition: transform 0.38s cubic-bezier(0.74, 0, 0.17, 1), opacity 0.19s linear;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
}
.mobile-menu-close {
  background: var(--retro-red);
  color: #fff;
  font-size: 2.2rem;
  border: none;
  border-radius: 10px;
  padding: 2px 15px 4px 15px;
  cursor: pointer;
  position: absolute;
  top: 26px; right: 22px;
  z-index: 222;
  transition: background 0.2s;
}
.mobile-menu-close:focus,
.mobile-menu-close:hover {
  background: var(--secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 70px;
  align-items: flex-start;
  padding-left: 38px;
}
.mobile-nav a {
  color: var(--primary);
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  text-decoration: none;
  padding: 8px 0;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--retro-yellow);
  color: var(--retro-red);
}

/* Hide nav for mobile, show burger */
@media (max-width: 990px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 991px) {
  .mobile-menu { display: none !important; }
  .mobile-menu-toggle { display: none !important; }
}

/* MAIN LAYOUT PATTERNS */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: stretch;
}
.card {
  background: var(--accent);
  border-radius: 14px;
  margin-bottom: 20px;
  box-shadow: 0 1px 7px rgba(46,29,26,.10);
  padding: 22px 18px;
  position: relative;
  flex: 1 1 270px;
  min-width: 265px;
  transition: box-shadow 0.2s, transform 0.2s;
  border: 1.5px solid #dfcfad;
}
.card:hover, .card:focus-within {
  box-shadow: 0 6px 24px rgba(237,106,90,0.09), 0 2px 6px rgba(38,115,77,0.08);
  transform: translateY(-6px) scale(1.03);
  border-color: var(--retro-yellow);
}
.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: 32px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--retro-yellow);
  color: #2E1D1A;
  gap: 20px;
  padding: 20px 26px;
  min-width: 280px;
  max-width: 420px;
  margin-bottom: 22px;
  border-radius: 12px;
  box-shadow: 0 7px 22px rgba(237,106,90,0.10), 0 2px 6px 0 rgba(38,115,77,0.05);
  font-size: 1.06rem;
  border: 1.5px solid var(--retro-brown);
  transition: box-shadow 0.2s, border 0.19s;
}
.testimonial-card strong {
  margin-top: 8px;
  font-size: 0.97rem;
  color: var(--secondary);
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  letter-spacing: 0.025em;
}
.testimonial-card p {
  color: #2E1D1A;
  font-size: 1.07rem;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 18px 36px rgba(35,87,137,0.14);
  border: 1.5px solid var(--secondary);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--retro-yellow);
  padding: 18px 20px;
  border-radius: 10px;
}

/* Button + CTA */
.cta {
  display: inline-block;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  background: var(--primary);
  color: #fff;
  font-size: 1.12rem;
  font-weight: 800;
  padding: 12px 28px;
  border: none;
  border-radius: 14px;
  box-shadow: 0 3px 15px rgba(38,115,77,0.11);
  transition: background 0.17s, color 0.17s, box-shadow 0.19s, transform 0.13s;
  letter-spacing: 0.08em;
  margin-top: 12px;
  text-decoration: none;
  position: relative;
}
.cta:after {
  display: inline-block;
  content: '\2192';
  margin-left: 8px;
  font-size: 1.03em;
  vertical-align: middle;
  opacity: 0.7;
  transition: margin-left 0.15s linear;
}
.cta:hover, .cta:focus {
  background: var(--secondary);
  color: var(--retro-yellow);
  box-shadow: 0 7px 30px rgba(35,87,137,0.17);
  transform: scale(1.045);
}
.cta:hover:after, .cta:focus:after { margin-left: 15px; }

/* VINTAGE/RETRO ELEMENTS (BORDER, PATTERNS, DECOR) */
section, .testimonial-card, .feature-item, .card {
  border-style: solid;
  border-width: 2px;
  border-color: #dfcfad;
}
.hero {
  border-bottom: 11px dotted var(--retro-brown);
  background: repeating-linear-gradient(135deg, #FFE899 0 10px, #FFB87A 20px 34px);
  background-size: 45px 45px;
  border-radius: 0 0 36px 36px;
}
section:not(.hero) {
  background: var(--retro-offwhite);
  border-radius: 14px;
}

/* ICONS in LI */
ul li img {
  width: 30px;
  height: 30px;
  margin-right: 9px;
  vertical-align: middle;
  filter: sepia(0.7) brightness(1.15) contrast(0.89);
}
li {
  display: flex;
  align-items: center;
  gap: 10px;
}
ul li strong {
  margin-right: 3px;
  color: var(--retro-brown);
}

hr {
  margin: 22px 0;
  border: 0;
  border-top: 2px dashed var(--retro-brown);
  opacity: 0.2;
}

/* FOOTER */
footer {
  background: var(--retro-offwhite);
  font-size: 1.08rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  border-top: 7px double var(--primary);
  padding: 28px 0 20px 0;
  margin-top: 44px;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  justify-content: center;
}
footer a {
  color: var(--secondary);
  text-decoration: underline;
  margin: 0 4px;
  transition: color 0.15s;
}
footer a:hover, footer a:focus { color: var(--retro-red); }
footer div { margin-top: 2px; color: var(--retro-brown); font-size: 0.98rem; }

/* SUBHEADLINE */
.subheadline {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.18rem;
  line-height: 1.5;
  color: var(--dark);
  background: var(--retro-yellow);
  padding: 10px 18px;
  border-radius: 8px;
  margin-bottom: 12px;
  font-weight: 600;
  letter-spacing: 0.025em;
}

/* COOKIES BANNER/BUTTONS */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--primary);
  color: #fff;
  padding: 24px 25px 23px 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  z-index: 3000;
  box-shadow: 0 -4px 22px rgba(35,87,137,0.08);
  animation: cookie-in 0.7s cubic-bezier(0.23,1,0.32,1);
}
@keyframes cookie-in {
  0%   { transform: translateY(110%); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  margin-bottom: 2px;
  color: #fff;
  font-size: 1.07rem;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  margin-top: 2px;
}
.cookie-banner button {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  border: none;
  border-radius: 9px;
  padding: 10px 20px;
  margin: 0 5px;
  cursor: pointer;
  transition: background 0.17s, color 0.17s, box-shadow 0.19s;
}
.cookie-banner .accept {
  background: var(--retro-yellow);
  color: var(--dark);
}
.cookie-banner .accept:hover, .cookie-banner .accept:focus {
  background: var(--retro-orange);
  color: var(--dark);
}
.cookie-banner .reject {
  background: #fff;
  color: var(--retro-red);
  border: 1.5px solid var(--retro-red);
}
.cookie-banner .reject:hover, .cookie-banner .reject:focus {
  background: var(--retro-red);
  color: #fff;
}
.cookie-banner .settings {
  background: var(--secondary);
  color: #fff;
}
.cookie-banner .settings:hover, .cookie-banner .settings:focus {
  background: var(--retro-brown);
}

/* COOKIE PREFERENCES MODAL */
.cookie-modal-overlay {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(44, 38, 26, 0.45);
  z-index: 4000;
  transition: opacity 0.19s ease;
  opacity: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}
.cookie-modal {
  background: var(--retro-offwhite);
  border-radius: 17px;
  box-shadow: 0 12px 36px rgba(35,87,137,0.21);
  padding: 34px 32px;
  min-width: 320px;
  max-width: 90vw;
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: modal-in 0.4s cubic-bezier(0.57,0.2,0.2,1.04);
  border: 2.5px solid var(--primary);
}
@keyframes modal-in {
  0%   { transform: scale(0.8); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.cookie-modal h2 {
  color: var(--primary);
  font-size: 1.36rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  padding-bottom: 4px;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 8px 0;
}
.cookie-modal .cookie-category label,
.cookie-modal .cookie-category .always-on {
  font-size: 1.07rem;
  font-family: 'Open Sans', Arial, sans-serif;
  color: var(--secondary);
  font-weight: bold;
}
.cookie-modal .always-on {
  background: var(--retro-yellow);
  color: var(--retro-brown);
  border-radius: 7px;
  font-size: 0.97rem;
  padding: 4px 10px;
}
.cookie-modal .cookie-toggle {
  width: 38px; height: 22px;
  border-radius: 18px;
  background: var(--accent);
  border: 1.2px solid var(--secondary);
  position: relative;
  cursor: pointer;
  transition: background 0.2s;
}
.cookie-modal .cookie-toggle input {
  width: 100%; height: 100%;
  opacity: 0; position: absolute;
  left: 0; top: 0;
  cursor: pointer;
}
.cookie-modal .cookie-toggle .slider {
  position: absolute;
  left: 2px; top: 2.5px;
  width: 16px; height: 16px;
  background: var(--secondary);
  border-radius: 50%;
  transition: left 0.18s, background 0.17s;
}
.cookie-modal .cookie-toggle input:checked ~ .slider {
  left: 18px;
  background: var(--primary);
}
.cookie-modal .modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 18px;
}
.cookie-modal button {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.06rem;
  font-weight: 600;
  border: none;
  border-radius: 7px;
  padding: 9px 20px;
  cursor: pointer;
  background: var(--secondary);
  color: #fff;
  transition: background 0.16s;
}
.cookie-modal button:hover, .cookie-modal button:focus {
  background: var(--primary);
}
.cookie-modal .close-modal {
  background: #fff;
  color: var(--retro-red);
  border: 1.5px solid var(--retro-red);
  margin-left: auto;
}
.cookie-modal .close-modal:hover, .cookie-modal .close-modal:focus {
  background: var(--retro-red);
  color: #fff;
}

/* FOR ALL DESCRIPTIVE TEXTS */
.text-section p {
  margin-bottom: 8px;
  color: #3c3324;
}
.text-section ul {
  margin-left: 3px;
  padding-left: 22px;
}
.text-section li {
  color: var(--retro-brown);
}

/* Responsive Flexbox Layouts */
@media (max-width: 850px) {
  .container {
    max-width: 99vw;
    padding-left: 9px; padding-right: 9px;
  }
  .hero {
    padding-top: 32px;
    padding-bottom: 40px;
  }
}
@media (max-width: 768px) {
  .content-wrapper, .card-container, .content-grid {
    flex-direction: column !important;
    gap: 18px;
  }
  section, .hero {
    padding: 25px 6px;
    border-radius: 0;
  }
  .testimonial-card {
    max-width: 100%;
    min-width: unset;
    font-size: 0.98rem;
    padding: 14px 10px;
  }
  .feature-item, .card {
    padding: 14px 11px;
    min-width: unset;
  }
  .text-image-section, .content-grid {
    flex-direction: column !important;
    gap: 18px;
    margin-bottom: 21px;
  }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.3rem; }
}
@media (max-width: 600px) {
  .container { padding-left: 2px; padding-right: 2px; }
  .hero { padding-top: 16px; padding-bottom: 19px; }
  .cta { width: 100%; text-align: center; }
  .cookie-modal { padding: 17px 6px; min-width: 96vw; }
}

/* ANIMATIONS & MICRO-INTERACTIONS */
.card, .feature-item, .testimonial-card {
  transition: box-shadow 0.18s, transform 0.16s, border 0.14s;
}
.card:active, .feature-item:active, .testimonial-card:active {
  transform: scale(0.98);
  box-shadow: 0 1px 5px rgba(237,106,90,0.18);
}

/* Accessibility highlight */
a:focus, button:focus, .cta:focus {
  outline: 3px dashed var(--retro-orange);
  outline-offset: 2px;
  z-index: 20;
}

/* Miscellaneous Utilities */
.hidden { display: none !important; }

/* --- END CSS --- */
