/* 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, 
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;
}

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  min-height: 100vh;
  background: #F4F1EE;
  color: #2C3B54;
}

@media (prefers-color-scheme: dark) {
  body {
    background: #f1ece6;
    color: #2C3B54;
  }
}

ol, ul {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  border-style: none;
  max-width: 100%;
  display: block;
}
button, input {
  font-family: inherit;
  outline: none;
  border: none;
  background: none;
}

/* VINTAGE RETRO PALETTE & BRAND COLORS */
:root {
  --color-primary: #2C3B54;         /* steel blue, brand */
  --color-secondary: #7FB069;       /* vintage green */
  --color-accent: #FFD978;          /* retro yellow */
  --color-bg: #F4F1EE;              /* soft vintage paper */
  --color-bg-alt: #FFF9ED;          /* lighter parchment */
  --color-brown: #C59B6C;
  --color-red: #B87A7A;
  --color-orange: #F4A259;
  --color-link: #A16041;
  --color-darktext: #2C3B54;
  --color-lighttext: #FFFFFF;
  --color-shadow: rgba(44,59,84,0.07);
  --color-card-shadow: rgba(85,60,30,0.08);
  --font-display: 'Montserrat', 'Raleway', 'Trebuchet MS', Arial, sans-serif;
  --font-body: 'Roboto', 'IBM Plex Sans', Arial, sans-serif;
  --font-alt: 'Courier Prime', 'Courier New', Courier, monospace;
  /* fallback for vintage code/demo blocks */
}

/* GOOGLE FONTS */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700&family=Roboto:ital,wght@0,400;0,700;1,400&display=swap');

/* TYPOGRAPHY */
body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-darktext);
  font-size: 16px;
  letter-spacing: 0.01em;
}
h1, .hero h1 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--color-primary);
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
  text-shadow: 1px 2px 0 var(--color-accent), 2px 3px 0 #d3c27b;
}
h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--color-secondary);
  margin-bottom: 16px;
  font-weight: 700;
  letter-spacing: 0.05em;
}
h3 {
  font-family: var(--font-body);
  font-size: 1.18rem;
  color: var(--color-brown);
  font-weight: 700;
  margin-bottom: 10px;
}

.subheadline {
  font-size: 1.1rem;
  font-family: var(--font-alt);
  color: var(--color-brown);
  margin-bottom: 20px;
  line-height: 1.6;
}

p {
  font-size: 16px;
  color: var(--color-darktext);
  margin-bottom: 12px;
}
strong, b {
  font-weight: 700;
  color: var(--color-link);
}
em, i {
  color: var(--color-secondary);
}

ul li, ol li {
  margin-bottom: 10px;
  font-size: 1rem;
  line-height: 1.6;
  padding-left: 0.5em;
}

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

.text-section p:last-child {
  margin-bottom: 0;
}

/* VINTAGE PATTERNS & DECORATIVE ELEMENTS */
body {
  background: repeating-linear-gradient(135deg, var(--color-bg-alt), var(--color-bg-alt) 40px, #f4f1ee 60px, #f4f1ee 120px);
}

/* CONTAINER & SECTIONS */
.container {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-bg-alt);
  border-radius: 18px;
  box-shadow: 0 4px 24px var(--color-card-shadow);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
}

.card-container, .content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.card {
  background: #fffdf8;
  border-radius: 13px;
  box-shadow: 0 2px 12px var(--color-card-shadow);
  padding: 28px 22px;
  margin-bottom: 20px;
  position: relative;
  min-width: 275px;
  flex: 1 1 270px;
  transition: box-shadow .18s cubic-bezier(.24,.77,.39,1.34), transform .18s;
}
.card:hover {
  box-shadow: 0 8px 44px 0 rgba(182,122,122,.18), 0 2px 12px var(--color-card-shadow);
  transform: translateY(-3px) scale(1.015);
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #f1eada;
  border-left: 5px solid var(--color-secondary);
  border-radius: 9px;
  padding: 18px 24px 14px 12px;
  margin-bottom: 20px;
  font-family: var(--font-body);
  font-size: 1rem;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  background: #fff7ed;
  border-radius: 17px;
  box-shadow: 0 6px 32px 0 var(--color-shadow);
  border: 2px solid var(--color-accent);
  font-family: var(--font-body);
  font-size: 1rem;
  position: relative;
  max-width: 540px;
  color: #2C3B54;
}
.testimonial-card p {
  color: #2C3B54;
  font-style: italic;
  font-family: var(--font-alt);
  font-size: 1.1rem;
  line-height: 1.7;
}
.testimonial-card span {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--color-secondary);
  margin-top: 4px;
}

/* HEADER */
header {
  width: 100%;
  background: var(--color-primary);
  position: sticky;
  top: 0;
  z-index: 99;
  box-shadow: 0 4px 16px var(--color-shadow);
  border-bottom: 6px solid var(--color-accent);
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  height: 78px;
}
header img {
  height: 49px;
}
header nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
header nav a {
  font-size: 1rem;
  font-family: var(--font-display);
  letter-spacing: 0.02em;
  padding: 7px 14px;
  color: var(--color-accent);
  border-radius: 7px;
  transition: background .14s, color .14s;
  position: relative;
}
header nav a:not(.cta-btn):after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width .2s, left .2s;
}
header nav a:not(.cta-btn):hover:after {
  width: 80%;
  left: 10%;
}
header nav a.cta-btn {
  background: var(--color-accent);
  color: var(--color-primary);
  font-family: var(--font-display);
  font-weight: 700;
  padding: 8px 20px;
  margin-left: 10px;
  border-radius: 999px;
  transition: background .17s, color .17s, box-shadow .17s;
  box-shadow: 0 3px 20px rgba(244,210,120,.12);
  border: 2px solid var(--color-secondary);
}
header nav a.cta-btn:hover, .cta-btn:hover {
  background: var(--color-secondary);
  color: #fff;
  border-color: var(--color-primary);
  box-shadow: 0 5px 22px 0 var(--color-card-shadow);
}
/* Hamburger button */
.mobile-menu-toggle {
  display: none;
  background: var(--color-accent);
  color: var(--color-primary);
  font-size: 2rem;
  border-radius: 9px;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  transition: background .18s, color .18s;
  margin-left: 18px;
  z-index: 51;
  cursor: pointer;
  border: 2px solid var(--color-secondary);
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--color-secondary);
  color: #fff;
}
@media (max-width: 970px) {
  .mobile-menu-toggle {
    display: flex;
  }
  header nav {
    display: none;
  }
}

/* HERO SECTION */
.hero {
  background: var(--color-brown);
  background: repeating-linear-gradient(135deg, var(--color-brown) 0 60px, #dac9b5 60px 120px);
  color: #fff;
  padding: 40px 0 60px 0;
}
.hero .container {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero .content-wrapper {
  padding: 32px 28px;
  border-radius: 30px 30px 25px 25px;
  background: rgba(255,255,255,0.97);
  box-shadow: 0 10px 32px 0 rgba(44,59,84,.10);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  max-width: 540px;
}
.hero h1 {
  font-size: 2.4rem;
  color: var(--color-brown);
  text-shadow: 1px 1px 1px var(--color-accent), 2px 3px 0 #f4a259;
}
.hero .subheadline {
  color: var(--color-orange);
}

/* BUTTONS */
.cta-btn {
  background: var(--color-accent);
  color: var(--color-primary);
  font-family: var(--font-display);
  font-weight: 700;
  border-radius: 999px;
  padding: 12px 32px;
  font-size: 1.06rem;
  border: 2px solid var(--color-secondary);
  transition: background .18s, color .18s, box-shadow .18s, border-color .17s;
  box-shadow: 0 2px 12px var(--color-shadow);
  margin-top: 12px;
  cursor: pointer;
  display: inline-block;
  margin-bottom: 0.5em;
}
.cta-btn:focus {
  outline: 3px dotted var(--color-brown);
}

/* GENERIC BUTTON */
button {
  font-family: var(--font-display);
  font-size: 1rem;
  border-radius: 8px;
  background: var(--color-accent);
  color: var(--color-primary);
  padding: 10px 20px;
  cursor: pointer;
  transition: background .18s, color .18s;
}
button:hover,
button:focus {
  background: var(--color-secondary);
  color: #fff;
}

/* CARDS & FLEX LAYOUTS */
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.faq-item {
  background: #fffdf3;
  border-left: 7px solid var(--color-orange);
  border-radius: 11px;
  padding: 20px 24px;
  box-shadow: 0 2px 10px 0 var(--color-card-shadow);
  margin-bottom: 18px;
  font-size: 1rem;
  transition: box-shadow .15s, transform .13s;
}
.faq-item h3 {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-size: 1.12rem;
  font-weight: 700;
  margin-bottom: 7px;
  text-shadow: 1px 0 0 #f4a2592c;
}
.faq-item p {
  color: var(--color-brown);
  font-family: var(--font-alt);
}
.faq-item:hover {
  box-shadow: 0 6px 24px 0 #f4a25933;
  transform: translateY(-2px) scale(1.008);
}

.faq-cta {
  background: #fcf9f2;
  border-radius: 11px;
  border-left: 6px solid var(--color-secondary);
  padding: 22px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
  align-items: flex-start;
}

.contact-details ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* FOOTER */
footer {
  margin-top: 60px;
  background: var(--color-brown);
  color: #fff;
  padding: 38px 0 0 0;
  border-top: 5px solid var(--color-accent);
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: center;
}
.footer-brand img {
  height: 38px;
}
footer nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
footer nav a {
  color: #fffef6;
  font-size: 1rem;
  font-family: var(--font-display);
  letter-spacing: 0.05em;
  opacity: 0.9;
  transition: opacity .14s, color .14s;
  padding: 4px 10px;
  border-radius: 6px;
}
footer nav a:hover {
  color: var(--color-accent);
}
.footer-contact {
  font-size: .96rem;
  color: #fffef6;
  text-align: center;
  margin: 18px 0 0 0;
}
.footer-contact a {
  color: #fff8c1;
  text-decoration: underline;
}

/* MOBILE MENU OVERLAY */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 100vw;
  background: rgba(44,59,84, 0.96);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(.4,1.6,.2,1), opacity .27s;
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: all;
}
.mobile-menu-close {
  background: var(--color-accent);
  color: var(--color-primary);
  border-radius: 8px;
  font-size: 2rem;
  margin: 28px 32px 0 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--color-secondary);
  cursor: pointer;
  transition: background .18s, color .18s;
  z-index: 3;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: var(--color-secondary);
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: flex-end;
  margin-top: 52px;
  padding: 0 44px;
}
.mobile-nav a {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 12px 0;
  transition: color .16s;
  border-bottom: 2px solid transparent;
  border-radius: 0 0 8px 8px;
}
.mobile-nav a:hover {
  color: var(--color-accent);
  border-bottom: 2px solid var(--color-accent);
}
@media (max-width: 768px) {
  .container {
    padding: 0 8px;
  }
  .section {
    padding: 28px 10px;
    margin-bottom: 35px;
  }
  .hero {
    padding: 16px 0 30px 0;
  }
  .hero .content-wrapper {
    padding: 17px 7px;
    max-width: 99vw;
  }
  .footer-brand img {
    height: 30px;
  }
  footer .container {
    gap: 14px;
    padding: 0 10px;
  }
  footer nav {
    gap: 12px;
  }
}
@media (max-width: 540px) {
  h1, .hero h1 {
    font-size: 1.37rem;
  }
  h2 {
    font-size: 1.09rem;
  }
  .testimonial-card {
    font-size: .96rem;
    padding: 13px;
  }
}

/* FORM ELEMENTS */
input[type='text'], input[type='email'], textarea {
  border: 1.5px solid var(--color-brown);
  border-radius: 6px;
  padding: 8px 12px;
  font-family: var(--font-body);
  font-size: 1rem;
  background: #fcf7ec;
  margin-bottom: 18px;
  width: 100%;
}
input:focus, textarea:focus {
  border-color: var(--color-secondary);
  outline: 2px solid var(--color-secondary);
}
label {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--color-primary);
  margin-bottom: 4px;
}

/* LINKS & STATES */
a {
  color: var(--color-link);
  transition: color .13s;
}
a:hover, a:focus {
  color: var(--color-secondary);
  text-decoration: underline;
}

/* ANIMATIONS, MICRO-INTERACTIONS */
.cta-btn, .card, .faq-item, .testimonial-card, .mobile-menu, .mobile-menu-close {
  transition: all .19s cubic-bezier(.51,1.26,.51,1.45);
}
.cta-btn:active { transform: scale(0.98); }
.card:active { transform: scale(0.98); }
nav a:focus, .mobile-nav a:focus {
  outline: 2.5px dotted var(--color-accent);
  outline-offset: 2px;
}

/* COOKIE CONSENT BANNER */
.cookie-banner {
  position: fixed;
  left: 0; bottom: 0;
  width: 100vw;
  z-index: 900;
  background: #533820;
  background: repeating-linear-gradient(45deg,#debe94 0 20px,#fff9ed 20px 40px,#debe94 40px 60px);
  color: #2C3B54;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 20px 24px;
  gap: 32px;
  box-shadow: 0 -4px 20px 0 #7d531422;
  font-family: var(--font-body);
  font-size: 1.04rem;
  border-top: 4px solid var(--color-accent);
  opacity: 0;
  transform: translateY(62px);
  pointer-events: none;
  transition: opacity .4s, transform .4s;
}
.cookie-banner.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}
.cookie-banner__text {
  max-width: 420px;
  line-height: 1.7;
  color: var(--color-brown);
}
.cookie-banner__actions {
  display: flex;
  flex-direction: row;
  gap: 15px;
}
.cookie-btn {
  font-family: var(--font-display);
  font-size: 1rem;
  background: var(--color-accent);
  color: var(--color-primary);
  border-radius: 9px;
  border: 2px solid var(--color-secondary);
  padding: 8px 20px;
  font-weight: 600;
  margin-right: 2px;
  cursor: pointer;
  box-shadow: 0 1px 6px 0 var(--color-card-shadow);
  transition: background .17s, color .17s, border .14s, box-shadow .14s;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--color-secondary);
  color: #fff;
  border-color: var(--color-primary);
  box-shadow: 0 3px 15px 0 rgba(44,59,84,.15);
}
.cookie-btn.reject {
  background: var(--color-red);
  color: #fff;
  border-color: #b87a7a;
}
.cookie-btn.reject:hover {
  background: var(--color-brown);
  color: #fff8c1;
}
.cookie-btn.settings {
  background: var(--color-brown);
  color: #fff;
  border-color: var(--color-secondary);
}
.cookie-btn.settings:hover {
  background: var(--color-secondary);
  color: #fff8c1;
}
@media (max-width:650px) {
  .cookie-banner {
    flex-direction: column;
    gap: 13px;
    align-items: flex-start;
    padding: 15px 6px;
    font-size: .95rem;
  }
  .cookie-banner__text { max-width: 94vw; }
}

/* COOKIE SETTINGS MODAL */
.cookie-modal {
  position: fixed;
  bottom: 50%;
  left: 50%;
  transform: translate(-50%,50%) scale(0.9);
  z-index: 1001;
  background: #fffdf3;
  color: #2C3B54;
  padding: 34px 20px 28px 20px;
  border-radius: 18px;
  box-shadow: 0 10px 64px 0 #53382033;
  min-width: 310px;
  max-width: 97vw;
  transition: opacity .22s, transform .3s;
  opacity: 0;
  pointer-events: none;
  font-family: var(--font-body);
}
.cookie-modal.active {
  opacity: 1;
  pointer-events: all;
  transform: translate(-50%,50%) scale(1);
}
.cookie-modal h3 {
  color: var(--color-primary);
  font-size: 1.17rem;
  margin-bottom: 14px;
}
.cookie-modal__categories {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 22px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 1rem;
  background: #fff9ed;
  border-radius: 9px;
  padding: 12px 18px;
  font-family: var(--font-body);
}
.cookie-category input[type=checkbox] {
  width: 22px;
  height: 22px;
  accent-color: var(--color-secondary);
}
.cookie-category label {
  font-size: 1rem;
  color: var(--color-brown);
  font-family: var(--font-body);
}
.cookie-category .always-on {
  font-size: .97rem;
  color: #777;
  margin-left: 8px;
  font-style: italic;
}
.cookie-modal__actions {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
}
.cookie-modal_btn-close {
  position: absolute;
  top: 10px; right: 13px;
  background: var(--color-accent);
  color: var(--color-primary);
  font-size: 1.3rem;
  border-radius: 50%;
  border: none;
  width: 30px; height: 30px;
  cursor: pointer;
  box-shadow: 0 1px 8px 0 var(--color-card-shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .17s, color .17s;
}
.cookie-modal_btn-close:hover {
  background: var(--color-secondary);
  color: #fff;
}

/* ===================== RESPONSIVE LAYOUTS ===================== */
@media (max-width: 970px) {
  header .container {
    min-height: 67px;
    height: auto;
    gap: 10px;
    flex-wrap: wrap;
  }
}
@media (max-width: 740px) {
  .section, .feature-item, .testimonial-card, .faq-item, .faq-cta {
    border-radius: 9px;
    padding-left: 6px;
    padding-right: 6px;
  }
  .content-grid, .card-container {
    gap: 12px;
  }
}
@media (max-width: 800px) {
  .content-wrapper, .container {
    padding: 0 4px;
  }
  .card {
    min-width: 180px;
    padding-left: 13px; padding-right: 13px;
  }
  .testimonial-card {
    max-width: 98vw;
  }
  .hero .container {
    padding: 0 6px;
  }
}
@media (max-width: 530px) {
  .card, .feature-item, .faq-item {
    min-width: 0;
    padding: 8px;
  }
  .section {
    padding: 10px 2px;
  }
}

/* ============== SPACINGS & FLEX GAP SANITY FOR SAFETY ============== */
.section, .card-container, .content-grid, .text-image-section, .testimonial-card, .feature-item {
  margin-bottom: 20px;
}
.section:last-child,
.card:last-child,
.feature-item:last-child,
.testimonial-card:last-child {
  margin-bottom: 0 !important;
}
.card-container,
.content-grid {
  gap: 20px;
}
@media (max-width: 640px) {
  .card-container,
  .content-grid {
    gap: 11px;
  }
}

::-webkit-scrollbar {
  width: 9px;
  background: #f0e6d8;
  border-radius: 6px;
}
::-webkit-scrollbar-thumb {
  background: #dcc59e;
  border-radius: 11px;
}

/* ============== RETRO VINTAGE DECORATIVE TOUCHES ============== */
.hero .content-wrapper,
.card, .feature-item, .testimonial-card, .faq-item, .footer-brand img {
  border: 2.5px solid #e9dac9;
  box-shadow: 0 2px 5px 0 #C59B6C13;
}
.hero .content-wrapper {
  border-radius: 23px 23px 13px 13px;
  border-color: var(--color-accent);
}

/* =============================================
   ACCESSIBILITY: Ensure all contrast is readable
    - Testimonials: dark text on light bg only
 ============================================= */