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

body {
  line-height: 1.6;
  background: #f8f5ee url("../assets/bg-retro-pattern.svg") repeat;
  color: #20335A;
  font-family: 'Open Sans', Arial, sans-serif;
  min-height: 100vh;
  font-size: 16px;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: #8d5c2b;
  text-decoration: none;
  transition: color 0.2s cubic-bezier(.71,.02,.4,1.04);
}
a:hover, a:focus {
  color: #E8AF34;
  outline: none;
}

ul, ol {
  margin-left: 24px;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: 100%;
  background: none;
  border: none;
  box-shadow: none;
  outline: none;
}

input, textarea {
  border-radius: 6px;
  border: 1px solid #efd195;
  padding: 10px 14px;
  background: #fffbe8;
  color: #20335A;
  margin-bottom: 16px;
}
input:focus, textarea:focus {
  border-color: #E8AF34;
  background: #fff7d0;
}

/* BASE CONTAINERS */
.container {
  width: 100%;
  max-width: 1050px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: rgba(255,250,235,0.9);
  border-radius: 14px;
  box-shadow: 0 2px 14px 0 rgba(32,51,90,0.07);
  /* vintage paper shadow */
}


/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  color: #393035;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-shadow: 1px 2px 0 #eed59f38;
  margin-bottom: 12px;
}
h1 {
  font-size: 2.5rem;
  line-height: 1.18;
  margin-bottom: 12px;
  font-family: 'Montserrat', Arial, sans-serif;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
h2 {
  font-size: 2rem;
  margin-top: 8px;
  margin-bottom: 8px;
  color: #936525;
  font-family: 'Montserrat', Arial, sans-serif;
}
h3 {
  font-size: 1.3rem;
  color: #20335A;
  margin-bottom: 4px;
}
h4, h5, h6 {
  font-size: 1.1rem;
}

blockquote {
  font-family: 'Montserrat', monospace;
  background: #fffbe8;
  border-left: 6px solid #E8AF34;
  color: #4a3a1e;
  font-size: 1.15rem;
  padding: 18px 30px 18px 14px;
  margin-bottom: 8px;
  border-radius: 5px;
  box-shadow: 0 1px 4px 0 rgba(32,51,90,0.08);
}

strong {
  font-weight: 700;
  color: #e27515;
}

p, ul, ol, li {
  font-size: 1rem;
  line-height: 1.7;
}
small {
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  color: #8d5c2b;
}

/* RETRO VINTAGE DECORATIVE ELEMENTS */
body {
  /* repeat pattern or color, fallback if asset missing */
  background-color: #f8f5ee;
}

/* HERO SECTIONS */
.hero {
  background: #F6F6F6;
  border-radius: 0 0 22px 22px;
  box-shadow: 0 8px 32px 2px #dfbc7b18;
  padding: 32px 0 40px 0;
  margin-bottom: 26px;
}
.hero .content-wrapper > h1 {
  color: #20335A;
  font-size: 2.8rem;
  text-shadow: 2px 3px 0 #FAEBC6, 0 2px 10px #efd19538;
}
.hero .content-wrapper > p {
  color: #705f3c;
  font-size: 1.15rem;
}

/* NAVBAR & HEADER STYLING */
header {
  background: #fff9e3;
  border-bottom: 4px double #E8AF34;
  box-shadow: 0 6px 18px 0 #efd19515;
  position: sticky;
  top: 0;
  z-index: 40;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 68px;
}
nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 8px 12px;
  border-radius: 20px;
  color: #20335A;
  background: none;
  transition: background 0.18s, color 0.18s;
}
header nav a:hover, header nav a.active {
  background: #E8AF34;
  color: #20335A;
}

header a.cta-primary {
  background: #E8AF34;
  color: #20335A;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: bold;
  padding: 12px 30px;
  font-size: 1.1rem;
  border-radius: 32px;
  box-shadow: 0 1px 8px 0 #efd19544;
  letter-spacing: 0.03em;
  border: 2px solid #E8AF34;
  margin-left: 14px;
  transition: background 0.18s, box-shadow 0.18s, transform 0.18s;
}
header a.cta-primary:hover, header a.cta-primary:focus {
  background: #20335A;
  color: #E8AF34;
  border: 2px solid #20335A;
  box-shadow: 0 3px 14px 3px #efd19544;
  transform: translateY(-2px) scale(1.03);
}

header img {
  width: 110px;
  height: auto;
  margin-right: 10px;
}

/* MOBILE NAVIGATION */
.mobile-menu-toggle {
  display: none;
  background: #E8AF34;
  color: #20335A;
  font-size: 2.2rem;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  justify-content: center;
  align-items: center;
  border: 2px solid #E8AF34;
  box-shadow: 0 1px 6px 0 #efd19564;
  cursor: pointer;
  position: absolute;
  top: 14px;
  right: 18px;
  z-index: 51;
  transition: background 0.14s, color 0.15s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #20335A;
  color: #E8AF34;
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: #fffaf3ee;
  z-index: 120;
  transform: translateX(-100vw);
  transition: transform 0.32s cubic-bezier(.61,-0.36,.52,1.17);
  box-shadow: 1px 0px 19px 5px #efd19539;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 14px 24px 0 0;
  font-size: 2.3rem;
  color: #936525;
  background: none;
  border: none;
  cursor: pointer;
  outline: none;
  z-index: 121;
  transition: color 0.13s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #E8AF34;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  padding: 16px 35px 18px 35px;
  gap: 24px;
  margin-top: 24px;
}
.mobile-nav a {
  font-size: 1.25rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  color: #20335A;
  background: #f8f5ee;
  border-radius: 20px;
  padding: 14px 8px 14px 18px;
  margin-right: 10px;
  transition: background 0.13s, color 0.13s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #E8AF34;
  color: #20335A;
}

@media (max-width: 980px) {
  header .container nav {
    display: none;
  }
  header .container {
    gap: 8px;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  header a.cta-primary {
    min-width: 140px;
    padding: 10px 18px;
    font-size: 1rem;
    margin-left: 8px;
  }
}

@media (max-width: 768px) {
  .container {
    max-width: 97vw;
    padding: 0 9px;
  }
  .hero {
    border-radius: 0 0 16px 16px;
    padding: 28px 0 30px 0;
  }
  h1 { font-size: 2.0rem; }
  h2 { font-size: 1.5rem; }
  .section {
    padding: 24px 8px;
    margin-bottom: 36px;
  }
  .content-wrapper,
  .feature-grid,
  .service-list {
    gap: 18px !important;
  }
}

/* FLEXBOX LAYOUTS MANDATORY */
.feature-grid,
.service-list,
.testimonial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
@media (max-width: 768px) {
  .feature-grid,
  .service-list,
  .testimonial-list {
    flex-direction: column;
    gap: 20px;
  }
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fffbe8;
  border-radius: 12px;
  box-shadow: 0 1px 8px 0 #efd19533;
  padding: 28px 22px;
  min-width: 220px;
}
.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;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fffdfa;
  border-radius: 10px;
  box-shadow: 0 2px 12px 0 #efd19530;
  margin-bottom: 20px;
  border: 2px solid #E8AF34;
  position: relative;
  flex-direction: column;
  min-width: 220px;
  max-width: 390px;
}
.testimonial-card blockquote {
  background: transparent;
  border-left: 6px solid #936525;
  color: #20335A;
  font-size: 1.05rem;
}
.testimonial-card span {
  font-family: 'Montserrat', monospace;
  color: #E8AF34;
  font-size: 0.96rem;
  margin-top: 7px;
  align-self: flex-end;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* SERVICE CARDS */
.service-card {
  background: #fffbe8;
  border: 2px solid #efd195;
  border-radius: 10px;
  padding: 30px 28px 24px 28px;
  box-shadow: 0 1px 16px 0 #efd19532;
  margin-bottom: 20px;
  min-width: 230px;
  transition: transform 0.18s, box-shadow 0.18s;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.service-card:hover, .service-card:focus-within {
  box-shadow: 0 4px 28px 2px #E8AF3470;
  transform: translateY(-4px) scale(1.014);
  border-color: #E8AF34;
}

.stat-block {
  background: #f9efd6;
  border: 2px dashed #E8AF34;
  border-radius: 10px;
  padding: 20px 26px;
  color: #a46808;
  margin-top: 16px;
  font-size: 1.08rem;
}

/* BUTTONS & CTAs */
.cta-primary, .cta-secondary {
  display: inline-block;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.09rem;
  font-weight: 700;
  padding: 12px 32px;
  background: #E8AF34;
  color: #20335A;
  border-radius: 32px;
  border: 2px solid #E8AF34;
  cursor: pointer;
  box-shadow: 0 1px 9px 0 #ecd67733;
  letter-spacing: 0.02em;
  transition: background 0.16s, color 0.16s, border 0.17s, box-shadow 0.20s, transform 0.14s;
  margin-top: 8px;
  margin-bottom: 8px;
  text-align: center;
}
.cta-primary:hover, .cta-primary:focus,
.cta-secondary:hover, .cta-secondary:focus {
  background: #20335A;
  color: #E8AF34;
  border: 2px solid #20335A;
  box-shadow: 0 3px 18px 3px #efd19550;
  transform: translateY(-2px) scale(1.035);
}

/* FOOTER */
footer {
  background: #F6F6F6;
  border-top: 4px double #efd195;
  padding: 40px 0 16px 0;
  color: #4e3b28;
  font-size: 1rem;
}
footer .container {
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 0;
}

.footer-logo img {
  width: 80px;
  height: auto;
  margin-bottom: 10px;
}
footer nav {
  flex-direction: column;
  gap: 12px;
}
footer nav a {
  font-size: 0.98rem;
  color: #936525;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  padding: 2px 0;
}
footer nav a:hover, footer nav a:focus {
  color: #e39815;
  background: none;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #705f3c;
  font-size: 0.97rem;
}
.footer-contact img {
  width: 18px;
  margin-right: 3px;
  vertical-align: middle;
  display: inline;
}
footer small {
  display: block;
  text-align: center;
  margin-top: 20px;
  font-size: 0.91rem;
  color: #e39815;
  letter-spacing: 0.025em;
}

@media (max-width: 860px) {
  footer .container {
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
    padding: 0 14px;
  }
  .footer-logo {
    margin-bottom: 14px;
  }
}

/* MISC COMPONENTS */
ul li, ol li {
  margin-bottom: 8px;
  font-size: 1rem;
  position: relative;
}
ul li::before {
  content: '\2022';
  color: #E8AF34;
  font-weight: bold;
  display: inline-block;
  width: 1.2em;
  margin-left: -1.2em;
}
ul {
  margin-bottom: 12px;
}

/* Retro Divider for sections */
.section:not(:last-child) {
  border-bottom: 2px dotted #efd19522;
}

/* Images/Icon style in Features */
.feature-grid img {
  width: 46px;
  height: 46px;
  margin-bottom: 8px;
  border-radius: 10px;
  box-shadow: 0 2px 10px 0 #efd19532;
  background: #FEF6E1;
  padding: 4px;
}

/* Animations & Transitions */
.section, .card, .service-card, .testimonial-card, .cta-primary, .cta-secondary {
  transition: box-shadow 0.19s, transform 0.13s, background 0.2s, border 0.15s;
}

/* Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 18px;
  max-width: 98vw;
  background: #F6F6F6;
  border: 2px solid #E8AF34;
  box-shadow: 0 3px 18px 2px #efd19577;
  border-radius: 13px;
  padding: 24px 34px 20px 34px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  opacity: 0;
  pointer-events: none;
  transform: translateY(60px);
  transition: opacity 0.28s cubic-bezier(.71,.02,.4,1.04), transform 0.3s;
}
.cookie-banner.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.cookie-banner p {
  color: #20335A;
  margin-bottom: 12px;
  font-size: 1rem;
}
.cookie-buttons {
  display: flex;
  flex-direction: row;
  gap: 17px;
  margin-top: 6px;
}
.cookie-banner button {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 22px;
  padding: 9px 22px;
  margin-right: 0;
  border: 2px solid #E8AF34;
  background: #E8AF34;
  color: #20335A;
  cursor: pointer;
  box-shadow: 0 1px 6px #efd1952b;
  transition: background 0.14s, color 0.14s, border 0.14s, box-shadow 0.18s, transform 0.12s;
}
.cookie-banner button:last-child {
  background: #fffbe8;
  color: #705f3c;
  border: 2px solid #efd195;
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: #20335A;
  color: #E8AF34;
  border: 2px solid #20335A;
  box-shadow: 0 2px 14px 2px #efd19560;
  transform: translateY(-2px) scale(1.04);
}

/* Cookie Modal */
.cookie-modal-backdrop {
  position: fixed;
  inset: 0;
  background: #00000067;
  z-index: 3002;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.23s;
}
.cookie-modal-backdrop.visible {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%) scale(0.98);
  background: #fffbe8;
  border: 2px solid #E8AF34;
  border-radius: 13px;
  max-width: 340px;
  padding: 30px 24px;
  z-index: 3010;
  box-shadow: 0 6px 32px 3px #efd19599;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.18s;
}
.cookie-modal.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%,-50%) scale(1);
}
.cookie-modal h3 {
  font-size: 1.13rem;
  color: #936525;
  margin-bottom: 10px;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 14px 0 26px 0;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cookie-category label {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #20335A;
  font-size: 1rem;
}
.cookie-category input[type="checkbox"] {
  accent-color: #E8AF34;
  width: 20px;
  height: 20px;
  border-radius: 4px;
  border: 1px solid #efd195;
  cursor: pointer;
}
.cookie-modal-actions {
  display: flex;
  gap: 14px;
  justify-content: flex-end;
}
.cookie-modal button {
  background: #E8AF34;
  border: 2px solid #E8AF34;
  color: #20335A;
  padding: 8px 18px;
  border-radius: 22px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 0.97rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.13s, color 0.13s, border 0.14s;
}
.cookie-modal button.cancel {
  background: #fffbe8;
  color: #705f3c;
  border: 2px solid #efd195;
}
.cookie-modal button:hover, .cookie-modal button:focus {
  background: #20335A;
  color: #E8AF34;
  border: 2px solid #20335A;
}

/* RESPONSIVE LAYOUTS & TYPOGRAPHY SCALE */
@media (max-width: 550px) {
  .cookie-banner {
    padding: 16px 7px 13px 10px;
  }
  .cookie-modal {
    max-width: 96vw;
    padding: 19px 7px;
  }
  header .container {
    flex-direction: row;
    gap: 3px;
    min-height: 48px;
    padding-top: 8px;
    padding-bottom: 8px;
  }
  .footer-logo img {
    width: 56px;
  }
  h1 { font-size: 1.37rem; }
  h2 { font-size: 1.08rem; }
}

@media (max-width: 375px) {
  .hero .content-wrapper h1 { font-size: 1.4rem; }
  .cta-primary, .cta-secondary { font-size: 0.9rem; padding: 8px 19px; }
}

/* Accessibility: Focus Outline */
a:focus, button:focus, .cta-primary:focus {
  outline: 2px dashed #E8AF34;
  outline-offset: 2px;
  background: #fdf5c2;
}

/* Hide visually when banner/modal hidden */
[aria-hidden="true"] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* --- END OF VINTAGE RETRO THEME CSS --- */
