/* === CSS RESET & NORMALIZATION === */
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, caption, tbody, tfoot, thead, tr, th, td, section, article, aside, footer, header, nav, main, figure, figcaption {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  box-sizing: border-box;
  vertical-align: baseline;
}
html {
  height: 100%;
  scroll-behavior: smooth;
}
body {
  min-height: 100vh;
  background: #FFF8F0;
  color: #2a2231;
  font-family: 'Source Sans Pro', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
  border: 0;
}
a {
  color: #21304F;
  text-decoration: none;
  transition: color 0.18s;
}
a:focus,button:focus {
  outline: 2px dotted #21304F;
  outline-offset: 2px;
}

/* === VINTAGE RETRO COLOR PALETTE === */
:root {
  --brand-primary: #21304F;
  --brand-secondary: #39A5A2;
  --brand-accent: #FFD67A;
  --brand-offwhite: #FBF4E2;
  --brand-dark: #2a2231;
  --brand-vintage-bg: #FFF8F0;
  --vintage-orange: #EC8C4E;
  --vintage-green: #66906A;
  --vintage-blue: #5270A0;
  --vintage-red: #B2493A;
  --vintage-brown: #BA8B52;
  --vintage-shadow: rgba(33,48,79,0.17);
}

/* === VINTAGE RETRO FONTS LOAD === */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,900|Source+Sans+Pro:400,600,700&display=swap');

body, button, input, select, textarea {
  font-family: 'Source Sans Pro', Arial, sans-serif;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 900;
  letter-spacing: 0.03em;
  color: var(--brand-primary);
  text-shadow: 0 1px 0 var(--brand-accent), 0 2px 2px var(--vintage-shadow);
}

h1 {font-size: 2.75rem; line-height:1.1; margin-bottom: 24px;}
h2 {font-size: 2rem; margin-bottom: 18px;}
h3 {font-size: 1.4rem; margin-bottom: 10px;}
h4 {font-size: 1.1rem;}
p, ul, ol {font-size: 1.09rem; margin-bottom: 16px;}
ul,ol {padding-left: 22px;}
strong,b {font-weight: 700;}

/* === LAYOUT CONTAINERS === */
.container {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--brand-offwhite);
  border-radius: 22px;
  box-shadow: 0 3px 16px var(--vintage-shadow);
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  margin-top: 18px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #FFF8F0;
  border: 2px solid var(--brand-accent);
  border-radius: 15px;
  box-shadow: 0 2px 13px var(--vintage-shadow);
  padding: 24px 18px;
  margin-bottom: 20px;
  position: relative;
  min-width: 250px;
  transition: transform 0.19s cubic-bezier(.77,.06,.28,.98), box-shadow 0.19s;
}
.card:hover {
  transform: translateY(-8px) scale(1.025);
  box-shadow: 0 7px 20px var(--brand-primary),0 2px 30px var(--vintage-shadow);
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.cta-section {
  align-items: center;
  text-align: center;
  gap: 24px;
}

/* === FEATURE ITEM FLEX STYLE === */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #FFFAE9;
  border: 2px dashed var(--vintage-orange);
  border-radius: 14px;
  padding: 24px 16px;
  box-shadow: 0 1px 5px var(--vintage-shadow);
  min-width: 230px;
  max-width: 310px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
  margin-bottom: 20px;
}
.feature-item img {
  width: 38px;
  height: 38px;
  display: block;
  border-radius: 10px;
  background: var(--vintage-brown);
  box-shadow: 0 1px 5px var(--vintage-shadow);
  padding: 7px;
}
.feature-item h3{
  color: var(--vintage-red);
  font-size: 1.19rem;
}
.feature-item:hover {
  border-color: var(--vintage-green);
  box-shadow: 0 3px 14px var(--vintage-shadow),0 3px 16px var(--brand-accent);
  transform: translateY(-6px) scale(1.032);
}

/* === TESTIMONIALS CARD STYLE === */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  margin-bottom: 20px;
  background: #FFFDF7;
  border-radius: 18px;
  border: 1.5px solid var(--brand-primary);
  box-shadow: 0 2px 13px var(--vintage-shadow);
  color: #21304F;
  font-size: 1.13rem;
  transition: box-shadow 0.16s, border-color 0.16s;
}
.testimonial-card p {
  color: #2a2231;
  font-style: italic;
  font-weight: 500;
  font-family: 'Source Sans Pro', Arial, sans-serif;
  margin-bottom: 7px;
}
.testimonial-card span {
  font-size: 0.97em;
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--vintage-orange);
  letter-spacing: 0.01em;
}
.testimonial-card:hover {
  border-color: var(--vintage-red);
  box-shadow: 0 4px 16px var(--vintage-blue);
}

/* === BUTTONS === */
.button-primary, .button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50px;
  padding: 13px 34px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 900;
  font-size: 1.1rem;
  cursor: pointer;
  border: none;
  transition: background 0.19s, color 0.18s, box-shadow 0.18s, transform 0.17s;
  box-shadow: 0 1px 5px var(--vintage-shadow);
  margin: 2px 0px 10px 0px;
  letter-spacing: 0.05em;
  position: relative;
  z-index: 1;
}
.button-primary {
  background: var(--brand-accent);
  color: #21304F;
  border: 2px solid var(--vintage-orange);
  text-shadow: 0 1px 0 white;
}
.button-primary:hover, .button-primary:focus {
  background: var(--brand-secondary);
  color: #FFF;
  border-color: var(--vintage-green);
  transform: translateY(-3px) scale(1.045);
  box-shadow: 0 4px 14px var(--vintage-blue);
}
.button-secondary {
  background: var(--brand-secondary);
  color: #FFF;
  border: 2px solid var(--brand-primary);
}
.button-secondary:hover, .button-secondary:focus {
  background: var(--brand-accent);
  color: #21304F;
  border-color: var(--vintage-orange);
  transform: translateY(-3px) scale(1.045);
}
.mobile-menu-toggle {
  background: var(--brand-primary);
  color: var(--brand-accent);
  border: 0;
  font-size: 2rem;
  border-radius: 10px;
  padding: 7px 19px 7px 15px;
  display: none;
  margin-left: auto;
  transition: background 0.18s, color 0.16s;
  z-index: 1030;
  box-shadow: 0 2px 8px var(--vintage-shadow);
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: var(--brand-accent);
  color: var(--brand-primary);
}

/* === MAIN NAVIGATION === */
header {
  background: var(--brand-accent);
  border-bottom: 3px solid var(--brand-primary);
  padding: 0 0 0 0;
  box-shadow: 0 3px 12px var(--vintage-shadow);
  position: sticky;
  top: 0;
  z-index: 1010;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 18px 0;
  max-width: 1100px;
  margin: 0 auto;
  font-family: 'Montserrat', Arial, sans-serif;
}
.main-nav a {
  font-size: 1.07rem;
  color: var(--brand-primary);
  font-weight: bold;
  letter-spacing: .04em;
  position: relative;
  padding: 4px 10px;
}
.main-nav a:not(.button-primary):hover,
.main-nav a:not(.button-primary):focus {
  color: var(--brand-secondary);
  text-decoration: underline wavy var(--vintage-orange) 2.3px;
}
.main-nav .button-primary {
  margin-left: 10px;
}
.main-nav img {
  width: 46px;
  height: 46px;
  border-radius: 9px;
  margin-right: 10px;
  background: #FFF;
  box-shadow: 0 0 6px var(--brand-primary, #21304F);
}

/* === MOBILE MENU === */
.mobile-menu {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: #FFF8F0;
  z-index: 2000;
  overflow-y: auto;
  box-shadow: 0 2px 18px var(--vintage-shadow);
  transform: translateX(-100%);
  transition: transform 0.32s cubic-bezier(.5,.21,.21,1);
  display: flex;
  flex-direction: column;
  padding: 0;
  align-items: flex-start;
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: all;
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  color: var(--brand-primary);
  border: none;
  font-size: 2.5rem;
  padding: 10px 26px 12px 0;
  margin: 14px 0 0 0;
  cursor: pointer;
  transition: color 0.18s;
  z-index: 2050;
}
.mobile-menu-close:hover {
  color: var(--vintage-red);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 32px 30px 30px 38px;
  background: none;
  width: 100%;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.38rem;
  font-weight: 700;
  color: var(--brand-primary);
  padding: 10px 10px 10px 0;
  border-bottom: 1px dashed var(--brand-secondary);
  transition: color .2s, background .15s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--vintage-red);
  background: var(--brand-accent);
}

/* === FOOTER === */
footer {
  background: var(--brand-primary);
  color: var(--brand-accent);
  padding: 38px 0 0 0;
  border-top: 4px solid var(--brand-accent);
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  margin-bottom: 6px;
}
.footer-nav a {
  color: var(--brand-accent);
  font-family: 'Montserrat',Arial,sans-serif;
  font-weight: 700;
  letter-spacing: 0.03em;
  font-size: 1.01rem;
  transition: color 0.15s;
  text-decoration: none;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--vintage-orange);
  text-decoration: underline wavy 1.7px;
}
.contact-details {
  font-size: 1em;
  opacity: 0.86;
  color: var(--brand-accent);
  margin-bottom: 16px;
}

/* === UTILITY CLASSES and SPACING === */
.mb-40 { margin-bottom: 40px; }
.mt-40 { margin-top: 40px; }
.mt-24 { margin-top: 24px; }
.mb-16 { margin-bottom: 16px; }
.flex-row { display: flex; flex-direction: row; }
.flex-col { display: flex; flex-direction: column; }
.justify-center { justify-content: center; }
.align-center { align-items: center; }
.align-start { align-items: flex-start; }

/* === RETRO PATTERN DECORATIVE ELEMENTS === */
.section {
  background:
    repeating-linear-gradient(135deg,transparent, transparent 19px, #FFEDC4 21px, transparent 25px),
    var(--brand-offwhite);
}

/* === ACCORDION/FAQ (for faqs.html) === */
.text-section h3 {
  margin-top: 22px;
  font-size: 1.18rem;
  color: var(--vintage-blue);
  font-family: 'Montserrat', Arial, sans-serif;
  letter-spacing: .03em;
}

/* === TYPOGRAPHY DETAILS === */
ul li, ol li {
  margin-bottom: 9px;
}
/* Inline SVG/icon images alignment */
ul li img { width:22px;height:22px;margin-right:8px;display:inline-block;vertical-align:middle; }

/* === RESPONSIVE DESIGN === */
@media (max-width: 1130px) {
  .main-nav { gap: 13px; }
  .feature-grid { flex-wrap: wrap; justify-content: center; }
}
@media (max-width: 900px) {
  .main-nav { gap: 7px; }
  .feature-item { min-width: 210px; }
}
@media (max-width: 900px) {
  .container{ padding-left:8px;padding-right:8px; }
  .section{padding:28px 10px;}
}
@media (max-width: 768px) {
  .main-nav { display:none; }
  .mobile-menu-toggle {
    display: block;
    position: absolute;
    top: 12px;
    right: 14px;
  }
  .mobile-menu { display: flex; }
  .container { max-width: 98vw; }
  .content-wrapper, .feature-grid, .content-grid {
    flex-direction: column;
    gap: 20px;
  }
  .feature-grid, .content-grid {
    justify-content: flex-start;
  }
  .text-image-section { flex-direction: column; gap: 20px; }
  .card { min-width: 96vw; max-width:98vw; }
  .feature-item { min-width:95vw; max-width:99vw; }
}
@media (max-width: 520px) {
  h1{font-size:2rem;}
  h2{font-size:1.36rem;}
  .button-primary, .button-secondary { font-size:1rem; padding:10px 18px; }
}

/* === COOKIE CONSENT BANNER === */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: var(--brand-primary);
  color: var(--brand-accent);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 23px 14px 15px 14px;
  z-index: 3000;
  box-shadow: 0 -4px 16px var(--vintage-shadow);
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(.6,.12,.2,.99), opacity 0.33s;
}
.cookie-banner.visible {
  transform: translateY(0);
  opacity: 1; pointer-events: all;
}
.cookie-banner p{
  max-width:740px;
  color:var(--brand-accent);
  font-size: 1.05rem;
}
.cookie-banner .cookie-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top:8px;
}
.cookie-banner .button-primary, .cookie-banner .button-secondary {
  font-size:0.99rem;
  padding:8px 18px;
  box-shadow:0 1px 4px #21304F21;
}
.cookie-banner .cookie-settings-btn {
  background: none;
  color: var(--brand-accent);
  border: 2px dashed var(--brand-accent);
  font-size:0.99rem;
  padding:8px 18px;
  border-radius:42px;
  cursor: pointer;
  transition:background 0.12s,color 0.12s;
}
.cookie-banner .cookie-settings-btn:hover {
  background: var(--brand-accent);
  color: var(--brand-primary);
}

/* === COOKIE PREFERENCES MODAL === */
.cookie-modal-overlay {
  position: fixed;
  top:0; left:0; width:100vw; height:100vh;
  background: rgba(33,48,79,0.54);
  z-index:4000;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events:none;
  opacity:0;
  transition: opacity 0.24s;
}
.cookie-modal-overlay.active {
  pointer-events: all;
  opacity:1;
}
.cookie-modal {
  background: #FFFDF7;
  border: 3px solid var(--brand-secondary);
  border-radius: 20px;
  box-shadow: 0 6px 40px var(--brand-primary),0 2px 30px var(--vintage-shadow);
  width: 95vw; max-width: 420px;
  padding: 36px 26px 30px 26px;
  display: flex;
  flex-direction: column;
  align-items:flex-start;
  gap: 20px;
  position: relative;
  animation: cookie-modal-fadein 0.32s cubic-bezier(.8,.13,.29,1) both;
}
@keyframes cookie-modal-fadein {
  from { transform: translateY(60px) scale(.98); opacity: 0; }
  to   { transform: translateY(0) scale(1.00); opacity: 1; }
}

.cookie-modal h2{
  font-size: 1.22rem; color:var(--brand-secondary);
  margin-bottom: 14px;
}
.cookie-modal .modal-close {
  position: absolute;
  top:10px; right:9px;
  font-size: 2.2rem;
  background: none;
  color: var(--brand-primary);
  border: none;
  cursor: pointer;
  transition: color 0.13s;
  z-index: 10010;
}
.cookie-modal .modal-close:hover{ color:var(--vintage-red); }
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom:10px;
}
.cookie-modal label {
  font-size: 1.02rem;
  color: var(--brand-dark);
  cursor: pointer;
  font-weight: 600;
  margin-bottom: 0;
}
.cookie-modal input[type=checkbox] {
  accent-color: var(--brand-orange, var(--brand-accent));
  width: 19px; height: 19px;
}
.cookie-modal .cookie-description {
  font-size:0.95em;
  color:#4b3a39;
  margin-bottom: 7px;
  margin-left: 31px;
  opacity: 0.88;
}
.cookie-modal .cookie-btns {
  display: flex;
  gap: 10px;
  margin-top: 11px;
  flex-wrap:wrap;
}

/* === OTHER PAGE STYLES === */
.cta-section h2, .cta-section h1 {color:var(--brand-primary);}
.cta-section p {margin-bottom: 12px;}

/* === SCROLLBAR === */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-thumb {background: #FFD67A; border-radius:8px;}
::-webkit-scrollbar-track {background: #FFF8F0;}

/* === TRANSITIONS === */
section, .feature-item, .card, .testimonial-card, .button-primary, .button-secondary, .cookie-banner, .mobile-menu {
  transition-property: box-shadow,border-color,transform,background,color,opacity;
  transition-duration: .18s, .20s, .18s,.19s, .18s, .19s;
  transition-timing-function:ease-in-out;
}

/* === ANIMATIONS === */
.button-primary:active, .button-secondary:active {
  transform: scale(0.97);
}
.card:active, .feature-item:active {
  transform: scale(0.97);
}

/* === FOCUS STYLES === */
a:focus, .button-primary:focus, .button-secondary:focus {
  outline: 3px dotted var(--brand-secondary);
}

/* === Z-INDEX LAYERING === */
.mobile-menu { z-index: 2000; }
.cookie-banner { z-index: 3000; }
.cookie-modal-overlay { z-index: 4000; }

/* === PREVENT OVERLAPPING === */
section, .section, .feature-item, .card, .testimonial-card {
  margin-bottom: 20px;
}

/* === PRINT OPTIMIZATION === */
@media print {
  header, footer, nav, .mobile-menu, .cookie-banner { display:none !important; }
  .container, .section { box-shadow:none !important; }
}