/* 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;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, main, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  min-height: 100vh;
  background: #FCF8F0;
  color: #192D42;
}
ol, ul {
  list-style: none;
}
a {
  background: transparent;
  color: inherit;
  text-decoration: none;
  transition: color .2s;
  cursor: pointer;
}
img {
  border-style: none;
  max-width: 100%;
  height: auto;
  display: block;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: 100%;
  outline: none;
  border: none;
  background: none;
  color: inherit;
}
button {
  cursor: pointer;
  background: none;
}

/* VINTAGE RETRO COLOR PALETTE */
:root {
  --brand-primary: #192D42; /* deep navy (brand) */
  --brand-secondary: #EDF3F8; /* light brand */
  --brand-accent: #31859B; /* blue accent (brand) */
  --vintage-red: #DB5A42;
  --vintage-yellow: #FFDB76;
  --vintage-mint: #BDECE0;
  --vintage-cream: #FFF9ED;
  --vintage-beige: #EFE1C6;
  --vintage-brown: #837060;
  --vintage-black: #171511;
  --vintage-grey: #D3D2D5;
}

body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  background: var(--vintage-cream);
  color: var(--brand-primary);
  font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--brand-primary);
  margin-bottom: 18px;
  line-height: 1.22;
}
h1 { font-size: 2.5rem; margin-bottom: 22px; }
h2 { font-size: 2rem; margin-top: 36px; margin-bottom: 20px; }
h3 { font-size: 1.225rem; margin-bottom: 12px; color: var(--brand-accent); }
h4, h5, h6 {font-size: 1rem;}

strong {font-weight: bold;}

p, li, ul, ol {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: var(--vintage-brown);
  font-size: 1rem;
  margin-bottom: 16px;
  line-height: 1.7;
}

.container {
  max-width: 1170px;
  width: 95%;
  margin: 0 auto;
  padding: 0;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

/* MAIN LAYOUT SECTIONS (MANDATORY SPACING) */
section {
  width: 100%;
  background: none;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--vintage-cream);
  border: 2px solid var(--vintage-brown);
  border-radius: 20px;
  box-shadow: 0 4px 24px 0 rgba(139,107,63,0.10);
  padding: 28px 22px 18px;
  min-width: 260px;
  max-width: 430px;
  flex: 1 1 300px;
  transition: transform .23s cubic-bezier(.33,.54,.2,1), box-shadow .18s;
  z-index: 1;
}
.card:hover {
  transform: translateY(-6px) scale(1.02) rotate(-1deg);
  box-shadow: 0 8px 32px 0 rgba(139,107,63,0.18);
}

.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;
  width: 100%;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  margin-bottom: 24px;
  background: var(--vintage-yellow);
  border-radius: 16px;
  border: 1.5px dashed var(--brand-primary);
  box-shadow: 0 2px 16px rgba(139,107,63,0.12);
  min-width: 220px;
  max-width: 520px;
}
.testimonial-card p {
  color: var(--brand-primary);
  font-size: 1.03rem;
  font-style: italic;
}
.testimonial-card span {
  color: var(--brand-accent);
  font-size: 1rem;
}

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

.text-section {
  display: flex;
  flex-direction: column;
  gap: 13px;
  width: 100%;
}
.text-section img {
  width: 26px;
  height: 26px;
  margin-right: 10px;
  position: relative;
  top: 5px;
}

/* MAIN NAVIGATION */
header {
  width: 100%;
  background: var(--brand-primary);
  padding: 0 0 0 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(139,107,63,0.03);
  position: relative;
}
header nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 16px;
  justify-content: flex-start;
  padding: 0 15px;
  height: 72px;
  min-height: 60px;
}
header nav a {
  color: #FFF9ED;
  font-size: 1.01rem;
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 9px 18px;
  border-radius: 8px;
  letter-spacing: 0.7px;
  transition: background .17s, color .18s, box-shadow .21s;
}
header nav a:hover, header nav a:focus {
  background: var(--brand-accent);
  color: #FFF;
}
header nav img {
  height: 38px;
  margin-right: 16px;
  width: auto;
}

.cta-primary {
  background: var(--brand-accent);
  color: #FFF;
  font-weight: bold;
  font-family: 'Montserrat', Arial, sans-serif;
  border-radius: 9px;
  padding: 11px 28px;
  box-shadow: 0 2px 16px 0 rgba(49,133,155,0.07);
  display: inline-block;
  font-size: 1.14rem;
  letter-spacing: 0.8px;
  border: 2.5px solid var(--brand-accent);
  margin-left: 15px;
  transition: background .18s, color .14s, border .21s;
}
.cta-primary:hover, .cta-primary:focus {
  background: #fff9ed;
  color: var(--brand-accent);
  border: 2.5px solid var(--brand-accent);
}

.cta-secondary {
  background: none;
  color: var(--brand-accent);
  border: 2px solid var(--brand-accent);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: bold;
  border-radius: 9px;
  padding: 10px 26px;
  margin-top: 8px;
  font-size: 1.08rem;
  transition: background .19s, color .16s, border .15s;
}
.cta-secondary:hover, .cta-secondary:focus {
  background: var(--brand-accent);
  color: #ffffff;
}

/* MOBILE BURGER MENU */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  right: 18px;
  top: 15px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 2.2rem;
  line-height: 1;
  background: var(--vintage-yellow);
  color: var(--brand-primary);
  box-shadow: 0 3px 14px 0 rgba(49,49,0,0.10);
  z-index: 1200;
  border: 2px solid var(--brand-accent);
  transition: background .18s, color .18s;
}
.mobile-menu-toggle:active, .mobile-menu-toggle:focus {
  background: var(--brand-accent);
  color: #FFF;
}
.mobile-menu {
  position: fixed;
  z-index: 1300;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: var(--vintage-yellow);
  transform: translateX(-100vw);
  transition: transform .36s cubic-bezier(.65,.04,.13,.92);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  box-shadow: 1px 0 40px 14px rgba(49,133,155,0.13);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  margin: 15px 0 0 16px;
  background: var(--brand-accent);
  color: #FFF;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.5rem;
  border: none;
  transition: background .15s;
  align-self: flex-start;
  z-index: 2008;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--brand-primary);
  color: #fff;
}
.mobile-nav {
  margin: 30px 0 0 26px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--brand-primary);
  font-size: 1.13rem;
  padding: 14px 0 14px 0px;
  border-radius: 8px;
  font-weight: 600;
  margin-bottom: 2px;
  background: none;
  transition: background .18s, color .14s;
  width: calc(100vw - 46px);
  display: block;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--brand-accent);
  color: #FFF;
}

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


/* FOOTER */
footer {
  margin-top: 40px;
  background: var(--vintage-grey);
  padding: 32px 0 0 0;
  border-top: 4px solid var(--brand-accent);
}
footer nav {
  display: flex;
  flex-direction: row;
  gap: 0 16px;
  align-items: center;
  justify-content: flex-start;
  padding: 0 15px;
  min-height: 48px;
  margin-bottom: 24px;
}
footer nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--brand-primary);
  font-size: 1.045rem;
  border-radius: 6px;
  padding: 6px 20px;
  transition: background .16s, color .17s;
}
footer nav a:hover, footer nav a:focus {
  background: var(--brand-accent);
  color: #FFF;
}
.footer-brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  justify-content: flex-start;
  padding: 0 15px 24px 15px;
}
.footer-brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}
.footer-brand p {
  color: var(--brand-primary);
  font-size: 1rem;
}


/* HERO, FEATURES, SERVICE LIST & PATTERNS */
.container > .content-wrapper > ul,
.content-wrapper ul {
  padding-left: 0;
  width: 100%;
  margin: 0 0 0 0;
}
.container > .content-wrapper > ul > li,
.content-wrapper ul > li {
  margin-bottom: 18px;
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 16px 12px 13px 0;
  background: none;
  border-bottom: 1.5px dotted var(--vintage-grey);
  font-size: 1.05rem;
}
.container > .content-wrapper > ul > li:last-child,
.content-wrapper ul > li:last-child {
  margin-bottom: 0;
  border-bottom: none;
}
.content-wrapper ul > li img {
  width: 32px;
  height: 32px;
  margin-right: 14px;
  border-radius: 8px;
  background: var(--vintage-mint);
  padding: 3px;
}
.content-wrapper ul > li strong {
  font-family: 'Montserrat', sans-serif;
  color: var(--brand-primary);
  margin-right: 6px;
}

/* RETRO PATTERNS & NOSTALGIC TOUCH */
section {
  background:
    repeating-linear-gradient(135deg, transparent, transparent 43px, #EFE8DE8C 48px);
}
section:nth-child(odd) {
  background:
    repeating-linear-gradient(120deg, transparent, transparent 29px, #F0E6C09a 40px);
}

/* SUBTLE SHADOWS & ROUNDED CORNERS */
section, header, footer {
  border-radius: 0 0 26px 26px;
  box-shadow: 0 2px 20px rgba(139,107,63,0.05);
}

/* LINKS IN TEXT */
.content-wrapper a:not(.cta-primary):not(.cta-secondary), .text-section a:not(.cta-primary):not(.cta-secondary) {
  color: var(--vintage-red);
  text-decoration: underline dotted;
  font-weight: 500;
  transition: color 0.15s;
}
.content-wrapper a:not(.cta-primary):not(.cta-secondary):hover {
  color: var(--brand-accent);
}

/* FAQ ACCORDION STYLES (if applicable in future) */
.faq-question {
  padding: 14px 0;
  cursor: pointer;
  font-size: 1.14rem;
  color: var(--brand-primary);
  font-family: 'Montserrat', sans-serif;
  border-bottom: 1px dotted var(--vintage-brown);
  transition: color .13s;
}
.faq-question:hover {
  color: var(--brand-accent);
}
.faq-answer {
  margin-bottom: 24px;
  font-size: 1.04rem;
  color: var(--vintage-brown);
  padding-left: 16px;
}

/* BUTTON MICRO-INTERACTIONS */
.cta-primary, .cta-secondary, button {
  transition: filter .14s, box-shadow .17s, background .14s, color .125s;
}
button:active, .cta-primary:active, .cta-secondary:active {
  filter: brightness(0.90) contrast(1.14);
}

/* HEADLINES STAMP EFFECT */
h1, h2 {
  background: var(--vintage-yellow);
  display: inline-block;
  padding: 6px 22px;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(139,107,63,0.10);
  border-bottom: 4px double var(--brand-accent);
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
}

/* RESPONSIVE TYPOGRAPHY & SPACING */
@media (max-width: 1024px) {
  .container {
    max-width: 98vw;
    width: 99%;
    padding: 0 8px;
  }
  .content-wrapper {
    gap: 15px;
  }
  h1 { font-size: 2.11rem; }
  h2 { font-size: 1.41rem; }
}
@media (max-width: 768px) {
  .container {
    width: 99vw;
    max-width: 100vw;
    padding: 0 2vw;
  }
  .section {
    margin-bottom: 36px;
    padding: 23px 6px;
  }
  .card {
    min-width: 90vw;
    max-width: 98vw;
    padding: 16px 8px;
  }
  .testimonial-card {
    min-width: 90vw;
    max-width: 99vw;
    padding: 13px 8px;
  }
  .footer-brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding-bottom: 18px;
  }
  h1 { font-size: 1.55rem; }
  h2 { font-size: 1.17rem; }
  nav a, footer nav a { font-size: 1rem; padding: 8px 9px; }
  .text-image-section, .content-grid {
    flex-direction: column !important;
    gap: 14px;
    align-items: flex-start;
  }
  .cta-primary, .cta-secondary {
    padding: 8px 14px;
    font-size: 1rem;
    margin-left: 0;
  }
}

/* DIVIDER & DECORATIVE */
hr {
  border: 0;
  border-top: 2px dashed var(--brand-primary);
  margin: 24px 0;
  opacity: 0.5;
}

/* Cookie Consent Banner */
.cookie-consent-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  background: var(--vintage-cream);
  border-top: 2px solid var(--vintage-brown);
  box-shadow: 0 -2px 16px 0 rgba(49,133,155,.16);
  padding: 20px 24px;
  z-index: 3000;
  gap: 16px;
  animation: fadeInBanner .56s cubic-bezier(.34,.77,.64,1);
}
@keyframes fadeInBanner { 0%{opacity:0;transform:translateY(60px);} 80%{opacity:.66;} 100%{opacity:1;transform:translateY(0);} }
.cookie-consent-banner p {
  flex: 1 1 auto;
  font-size: 1rem;
  color: var(--brand-primary);
}
.cookie-consent-actions {
  display: flex;
  flex-direction: row;
  gap: 12px;
}
.cookie-btn {
  font-family: 'Montserrat', sans-serif;
  padding: 10px 18px;
  border-radius: 7px;
  font-size: 1rem;
  font-weight: bold;
  border: 2px solid var(--brand-accent);
  background: var(--vintage-yellow);
  color: var(--brand-primary);
  transition: background .15s, color .14s, border .14s;
  box-shadow: 0 4px 12px rgba(49,133,155,0.06);
}
.cookie-btn.accept {
  background: var(--brand-accent);
  color: #FFF;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #fff9ed;
  color: var(--brand-accent);
}
.cookie-btn.reject {
  background: var(--vintage-brown);
  color: #fff;
  border-color: var(--vintage-brown);
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #fff9ed;
  color: var(--vintage-brown);
}
.cookie-btn.settings {
  background: none;
  color: var(--brand-accent);
  border-color: var(--brand-accent);
}
.cookie-btn.settings:hover {
  background: var(--brand-accent);
  color: #FFF;
}
@media (max-width: 768px) {
  .cookie-consent-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px 0px;
    padding: 15px 6px;
  }
  .cookie-consent-actions {gap: 7px;}
}

/* Cookie Modal */
.cookie-modal {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(33, 29, 16, 0.26);
  z-index: 3200;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .28s;
  animation: fadeInModal .42s cubic-bezier(.47,.98,.69,1.08);
}
@keyframes fadeInModal {0%{opacity:0;} 50%{opacity:.74;}100%{opacity:1;}}
.cookie-modal-content {
  background: var(--vintage-cream);
  border: 2.5px solid var(--brand-accent);
  border-radius: 23px;
  box-shadow: 0 8px 32px 0 rgba(49,133,155,0.19);
  max-width: 410px;
  width: 98vw;
  padding: 32px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cookie-modal-content h3 {
  margin-bottom: 10px;
  text-align: left;
  color: var(--brand-accent);
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  padding: 8px 0;
  font-size: 1rem;
}
.cookie-category label {
  font-family: 'Open Sans', sans-serif;
  color: var(--brand-primary);
  font-weight: 500;
}
.cookie-toggle {
  appearance: none;
  width: 36px;
  height: 20px;
  background: var(--vintage-yellow);
  border-radius: 12px;
  position: relative;
  outline: none;
  transition: background .16s;
  border: 2px solid var(--brand-accent);
  vertical-align: middle;
}
.cookie-toggle:checked {
  background: var(--brand-accent);
}
.cookie-toggle:before {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 14px;
  height: 14px;
  background: #FFF;
  border-radius: 50%;
  transition: transform .17s;
  box-shadow: 0 2px 6px 0 rgba(120,120,120,0.13);
}
.cookie-toggle:checked:before {
  transform: translateX(15px);
}
.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 19px;
}
.cookie-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--brand-accent);
  color: #FFF;
  border-radius: 50%;
  border: none;
  width: 28px;
  height: 28px;
  font-size: 1.1rem;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: var(--brand-primary);
  color: #FFF;
}

@media (max-width: 480px) {
  .cookie-modal-content {
    padding: 18px 8px 14px;
  }
  .cookie-modal-close {
    top: 8px; right: 8px;
  }
}

/* MICRO-ANIMATION FOR LINKS & BUTTONS */
a, .cta-primary, .cta-secondary, button, .cookie-btn {
  transition: color .18s, background .13s, box-shadow .11s, border .14s, filter .12s, transform .12s;
}
a:active, button:active, .cta-primary:active, .cta-secondary:active, .cookie-btn:active {
  filter: brightness(0.95) contrast(1.1);
  transform: scale(0.97);
}

/* SCROLLBAR RETRO STYLES */
::-webkit-scrollbar {
  width: 13px;
  background: var(--vintage-cream);
  border-radius: 8px;
}
::-webkit-scrollbar-thumb {
  background: var(--brand-accent);
  border-radius: 6px;
  border: 4px solid var(--vintage-cream);
}

/* ACCESSIBILITY & HIGHLIGHTING */
a:focus, button:focus, .cta-primary:focus, .cta-secondary:focus, .cookie-btn:focus {
  outline: 2px solid var(--vintage-red);
  outline-offset: 2px;
}

/* MISC RETRO ACCENTS */
.card, .testimonial-card {
  background: repeating-linear-gradient(-13deg, #FFF9ED, #FFF9ED 70px, #F4E9DD 145px, #FFF9ED 170px);
}

/* OVERLAY FOR MODALS */
.overlay {
  position: fixed; left: 0; top:0; right:0; bottom:0; width:100vw; height:100vh;
  background: rgba(33,25,16,.18);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ENSURE MIN GAPS BETWEEN FLEX CHILDREN EVERYWHERE */
.card-container, .content-grid, .text-image-section, .testimonial-card, .feature-item, .footer-brand, .cookie-consent-actions, .cookie-modal-actions {
  gap: 20px;
}
@media (max-width: 768px) {
  .card-container, .content-grid, .text-image-section, .feature-item, .footer-brand {
    gap: 11px;
  }
}

/* Prevent overflow on mobile */
html, body {
  max-width: 100vw;
}

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