/* ================================================== */
/* CSS RESET & NORMALIZATION FOR CONSISTENCY */
/* ================================================== */
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;
}
/* Set 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;
  background: #FFF6E9;
  color: #232946;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  min-height: 100vh;
  position: relative;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
*, *:before, *:after {
  box-sizing: inherit;
}
input, button, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}
a {
  color: inherit;
  text-decoration: none;
  background: none;
  cursor: pointer;
  transition: color 0.25s;
}
ul, ol {
  list-style: none;
}

/* ================================================== */
/* BRAND & RETRO-VINTAGE ROOT COLORS AND FONTS        */
/* ================================================== */
:root {
  --color-primary: #232946;
  --color-secondary: #E7E7E9;
  --color-accent: #F5C32C;
  --color-bg: #FFF6E9;
  --color-cream: #FDF6D8;
  --color-brown: #73534A;
  --color-papery: #EDDFC3;
  --color-retro-red: #D34D31;
  --color-retro-teal: #7BC4BD;
  --color-retro-navy: #355C7D;
  --color-black: #232946;
  --color-offwhite: #F8F3E8;
  --color-card-bg: #FFF9ED;
  --color-shadow: rgba(51,27,26,0.08);
  --font-display: 'Montserrat', 'Arial Black', 'Archivo Black', sans-serif;
  --font-body: 'Open Sans', Arial, Helvetica, sans-serif;
  --font-retro: 'Montserrat', 'Roboto Slab', 'Archivo Black', serif;
}

@import url('https://fonts.googleapis.com/css?family=Montserrat:600,800&display=swap');
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,600&display=swap');

/* ========================= */
/* GLOBAL TYPOGRAPHY         */
/* ========================= */
h1, .hero h1, .blog-hero h1, .confirmation h1 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--color-primary);
  font-weight: 800;
  letter-spacing: 1px;
  line-height: 1.15;
  margin-bottom: 20px;
  text-shadow: 1px 2px 0px var(--color-papery);
}
h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--color-primary);
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}
h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-black);
  margin-bottom: 10px;
  letter-spacing: 0.25px;
}
h4, h5, h6 {
  font-family: var(--font-retro);
  color: var(--color-brown);
}
p, li, .text-section, .footer-contact {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-primary);
}
strong {
  font-weight: 800;
  font-family: var(--font-display);
}
.text-section ul, .legal ul, .faq-accordion ul, .features ul, .services ul, .tips ul {
  font-size: 1rem;
}

/* Retro emphasis styling */
mark, .accent {
  background: var(--color-accent);
  color: #232946;
  padding: 0 0.25em;
  border-radius: 3px;
}

/* ========================= */
/* CONTAINER & STRUCTURE     */
/* ========================= */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 18px;
  padding-right: 18px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-card-bg);
  border-radius: 18px;
  box-shadow: 0 3px 16px var(--color-shadow);
}

/* ========================= */
/* HEADER & NAVIGATION       */
/* ========================= */
header {
  background: var(--color-retro-navy);
  box-shadow: 0 2px 10px var(--color-shadow);
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  padding-top: 0;
  padding-bottom: 0;
}
header a img {
  height: 52px;
  margin-right: 24px;
  filter: none;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}
.main-nav a {
  font-family: var(--font-display);
  font-size: 1rem;
  color: #F5C32C;
  padding: 6px 18px;
  border-radius: 6px;
  transition: background 0.23s, color 0.23s;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 700;
  line-height: 1.5;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--color-accent);
  color: var(--color-primary);
}
.main-nav .primary-btn {
  background: var(--color-accent);
  color: var(--color-primary) !important;
  font-weight: 800;
  box-shadow: 0 2px 10px var(--color-shadow);
  border: 2px solid #E7E7E9;
  letter-spacing: 0.1em;
  margin-left: 5px;
}
.main-nav .primary-btn:hover {
  background: var(--color-secondary);
  color: var(--color-retro-red) !important;
  border-color: var(--color-accent);
}

/* =================================== */
/* MOBILE MENU & BURGER                */
/* =================================== */
.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  color: #F5C32C;
  border: none;
  margin-left: 10px;
  cursor: pointer;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}
.mobile-menu-toggle:active, .mobile-menu-toggle:focus {
  color: var(--color-accent);
  outline: 2px solid var(--color-accent);
}
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 100vw;
  height: 100vh;
  background: var(--color-retro-navy);
  z-index: 1500;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.5,.3,.36,1);
  display: flex;
  flex-direction: column;
  padding: 32px 24px 0 24px;
  box-shadow: -4px 0 16px var(--color-shadow);
}
.mobile-menu.active {
  transform: translateX(0%);
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2rem;
  color: var(--color-accent);
  background: none;
  border: none;
  cursor: pointer;
  margin-bottom: 36px;
  transition: color 0.2s;
}
.mobile-menu-close:focus {
  outline: 2px solid var(--color-accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: flex-start;
}
.mobile-nav a {
  font-size: 1.12rem;
  font-family: var(--font-display);
  font-weight: 700;
  color: #fff;
  background: none;
  padding: 7px 18px;
  border-radius: 6px;
  transition: background 0.23s, color 0.23s;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.mobile-nav a:active, .mobile-nav a:hover {
  color: var(--color-retro-yellow, #F5C32C);
  background: #394772;
}

@media (max-width: 992px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 992px) {
  .mobile-menu {
    display: none !important;
  }
}

/* =================================== */
/* HERO & FEATURE SECTIONS             */
/* =================================== */
.hero, .blog-hero, .confirmation {
  padding: 56px 0 40px;
  background: linear-gradient(180deg, var(--color-bg) 60%, var(--color-papery) 100%);
  border-bottom: 4px solid var(--color-accent);
}
.hero .container, .blog-hero .container, .confirmation .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.hero .content-wrapper,
.blog-hero .content-wrapper,
.confirmation .content-wrapper {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.hero h1, .blog-hero h1 {
  color: var(--color-retro-red);
  text-shadow: 2px 2px 0 var(--color-papery);
}
.hero p, .blog-hero p {
  color: var(--color-brown);
  font-size: 1.15rem;
  font-family: var(--font-retro);
  margin-bottom: 12px;
}
.features, .services, .tips, .faq, .team, .legal, .about, .contact-main, .why-us, .contact-short, .contact-cta, .blog-posts, .testimonials {
  margin-bottom: 60px;
  padding: 40px 20px 40px 20px;
  border-radius: 14px;
  background: var(--color-card-bg);
  box-shadow: 0 6px 24px var(--color-shadow);
}
.features .content-wrapper, .services .content-wrapper, .testimonials .content-wrapper {
  gap: 28px;
}
.features ul, .services ul, .tips ul, .why-us ul {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  flex-direction: column;
}
.features ul li, .services ul li, .tips ul li, .why-us ul li {
  display: flex;
  align-items: center;
  gap: 15px;
  background: var(--color-cream);
  border-radius: 10px;
  box-shadow: 0 1px 6px var(--color-shadow);
  padding: 17px 18px;
  font-family: var(--font-body);
  color: var(--color-retro-navy);
  font-weight: 600;
  margin-bottom: 8px;
}
.features ul li img, .services ul li img, .tips ul li img, .why-us ul li img {
  width: 32px;
  height: 32px;
}

/* =================================== */
/* TESTIMONIALS                       */
/* =================================== */
.testimonials .testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 24px;
  margin-bottom: 20px;
  background: #fff;
  border-left: 6px solid var(--color-accent);
  box-shadow: 0 3px 14px var(--color-shadow);
  border-radius: 10px;
  min-width: 0;
  max-width: 520px;
  transition: box-shadow 0.24s, background 0.18s;
}
.testimonials .testimonial-card:hover {
  background: var(--color-papery);
  box-shadow: 0 6px 24px var(--color-brown);
}
.testimonials .testimonial-card p {
  color: #232946;
  font-size: 1.12rem;
  font-family: var(--font-body);
  font-style: italic;
  margin-bottom: 0px;
}
.testimonials .testimonial-card span {
  color: var(--color-retro-red);
  font-size: 1rem;
  font-family: var(--font-display);
  font-weight: 700;
}

/* =================================== */
/* CARDS, CTA & DECORATIVE PATTERNS    */
/* =================================== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-cream);
  border-radius: 12px;
  box-shadow: 0 1px 8px var(--color-shadow);
  margin-bottom: 20px;
  padding: 22px 20px;
  position: relative;
  transition: box-shadow 0.22s, background 0.16s;
}
.card:hover {
  background: var(--color-papery);
  box-shadow: 0 4px 18px var(--color-retro-teal);
}

.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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.contact-short, .contact-cta {
  background: var(--color-brown);
  color: #fff;
  text-align: center;
  align-items: center;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 24px rgba(51,27,26,0.06);
}
.contact-short h2, .contact-cta h2 {
  color: var(--color-accent);
}
.contact-short p, .contact-cta p {
  color: #FFF9ED;
}

/* =================================== */
/* FOOTER                             */
/* =================================== */
footer {
  background: var(--color-retro-navy);
  color: #fff;
  padding-top: 38px;
  padding-bottom: 18px;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.footer-nav a {
  color: var(--color-accent);
  font-family: var(--font-display);
  font-size: 1rem;
  transition: color 0.16s;
  font-weight: 600;
}
.footer-nav a:hover {
  color: #ffbb00;
}
.footer-contact p {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.98rem;
  color: #fff;
  margin-bottom: 4px;
}
.footer-contact img {
  width: 20px;
  height: 20px;
}
.brand-summary {
  width: 100%;
  margin-top: 16px;
  color: #F5C32C;
  font-family: var(--font-display);
  font-size: 1.12rem;
  letter-spacing: 0.04em;
  text-align: center;
  opacity: 0.85;
}

/* =================================== */
/* FAQ & ACCORDIONS                   */
/* =================================== */
.faq-accordion > div {
  margin-bottom: 16px;
  background: var(--color-offwhite);
  border-radius: 8px;
  box-shadow: 0 2px 9px var(--color-shadow);
  padding: 20px 20px 16px 20px;
}
.faq-accordion h3 {
  color: var(--color-retro-red);
  margin-bottom: 6px;
  font-size: 1.13rem;
}

/* =================================== */
/* BUTTONS & FORMS                    */
/* =================================== */
.primary-btn {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.12rem;
  padding: 10px 32px;
  border: none;
  border-radius: 8px;
  background: var(--color-accent);
  color: var(--color-primary);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  box-shadow: 0 2px 8px var(--color-shadow);
  text-shadow: 1px 1px 0px var(--color-secondary);
  margin-top: 10px;
  margin-bottom: 10px;
  transition: background 0.16s, color 0.17s, transform 0.18s;
}
.primary-btn:hover,
.primary-btn:focus {
  background: var(--color-retro-red);
  color: #fff;
  transform: translateY(-2px) scale(1.03);
}

/* =================================== */
/* RETRO PATTERNS & ACCENTS - DECOS    */
/* =================================== */
.section {
  background-image: repeating-linear-gradient(135deg, #f5c32c 0 1px, transparent 1px 18px);
  background-size: 36px 36px;
  background-blend-mode: luminosity;
}
.card, .testimonial-card, .faq-accordion > div {
  border: 2.5px dashed var(--color-brown);
}

/* =================================== */
/* BLOG POSTS                         */
/* =================================== */
.blog-posts ul {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.blog-posts li {
  background: var(--color-cream);
  border-radius: 10px;
  padding: 22px 18px;
  box-shadow: 0 1px 8px var(--color-shadow);
  border: 2px solid var(--color-papery);
  transition: box-shadow 0.18s;
}
.blog-posts li:hover {
  box-shadow: 0 4px 20px var(--color-retro-navy);
  background: var(--color-bg);
}
.blog-posts h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
  color: var(--color-retro-red);
  font-family: var(--font-retro);
}
.blog-posts h3 a {
  color: var(--color-retro-red);
  text-decoration: underline dotted var(--color-accent);
  transition: color 0.16s;
}
.blog-posts h3 a:hover {
  color: var(--color-accent);
}

/* =========================== */
/* LEGAL PAGES                 */
/* =========================== */
.legal .text-section,
.legal ul, .legal ol {
  font-size: 1rem;
  color: var(--color-black);
  font-family: var(--font-body);
  background: none;
}
.legal h1, .legal h2 {
  color: var(--color-retro-navy);
}

/* ============================== */
/* COOKIE CONSENT BANNER AND MODAL */
/* ============================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 2000;
  width: 100vw;
  background: var(--color-retro-navy);
  color: #fff;
  box-shadow: 0 -2px 12px var(--color-shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 18px 32px;
  font-size: 1rem;
  transition: transform 0.24s ease;
}
.cookie-banner.hide {
  transform: translateY(120%);
}
.cookie-banner .cookie-text {
  max-width: 520px;
  line-height: 1.6;
}
.cookie-banner .cookie-btns {
  display: flex;
  gap: 18px;
}
.cookie-banner button {
  font-family: var(--font-display);
  font-size: 1rem;
  border: none;
  border-radius: 7px;
  padding: 8px 22px;
  cursor: pointer;
  transition: background .15s, color .13s;
  font-weight: 700;
  margin-left: 0;
}
.cookie-banner .cookie-accept {
  background: var(--color-accent);
  color: var(--color-primary);
}
.cookie-banner .cookie-accept:hover {
  background: #F5D44E;
}
.cookie-banner .cookie-reject {
  background: var(--color-secondary);
  color: var(--color-black);
}
.cookie-banner .cookie-reject:hover {
  background: var(--color-papery);
}
.cookie-banner .cookie-settings {
  background: var(--color-retro-red);
  color: #fff;
}
.cookie-banner .cookie-settings:hover {
  background: #af2e03;
}

/* Cookie modal */
.cookie-modal-overlay {
  position: fixed; left: 0; top: 0; right: 0; bottom: 0;
  z-index: 2500;
  background: rgba(35, 41, 70, 0.84);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s;
}
.cookie-modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal {
  background: #fff;
  color: var(--color-black);
  width: 96%;
  max-width: 410px;
  border-radius: 12px;
  box-shadow: 0 6px 32px var(--color-shadow);
  display: flex;
  flex-direction: column;
  padding: 36px 28px 24px 28px;
  gap: 22px;
  position: relative;
}
.cookie-modal h3 {
  color: var(--color-retro-red);
  font-family: var(--font-display);
  font-size: 1.24rem;
}
.cookie-modal ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cookie-modal li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1rem;
  font-family: var(--font-body);
  color: var(--color-retro-navy);
}
.cookie-modal .cookie-toggle {
  width: 20px;
  height: 20px;
  accent-color: var(--color-accent);
  border: 2px solid var(--color-retro-navy);
}
.cookie-modal .btn-group {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}
.cookie-modal .close-modal {
  position: absolute;
  right: 8px;
  top: 8px;
  background: none;
  color: var(--color-retro-red);
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
}

/* ========================= */
/* RESPONSIVE DESIGN: MOBILE */
/* ========================= */
@media (max-width: 992px) {
  header .container {
    height: 72px;
    gap: 10px;
    padding-left: 10px;
    padding-right: 10px;
  }
  .about .content-wrapper, .team .content-wrapper {
    padding: 0;
  }
  .footer-contact {
    width: 100%;
  }
  footer .content-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}
@media (max-width: 768px) {
  h1, .hero h1, .blog-hero h1 {
    font-size: 1.65rem;
  }
  h2 {
    font-size: 1.18rem;
  }
  .section, .features, .services, .tips, .faq, .legal, .team, .about, .contact-short, .contact-cta, .testimonials, .blog-posts {
    padding: 26px 8px;
    margin-bottom: 36px;
    border-radius: 8px;
  }
  .container {
    padding-left: 8px;
    padding-right: 8px;
  }
  .content-wrapper {
    gap: 15px;
  }
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .footer-contact p {
    font-size: 0.97rem;
  }
  .features ul, .services ul, .tips ul, .why-us ul {
    flex-direction: column;
    gap: 14px;
  }
  .features ul li, .services ul li, .tips ul li, .why-us ul li {
    font-size: 1rem;
    padding: 12px 10px;
  }
  .card-container, .content-grid {
    flex-direction: column;
    gap: 16px;
  }
  .testimonial-card, .card {
    padding: 14px 10px;
    border-radius: 6px;
    font-size: 0.98rem;
  }
  .text-image-section {
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
  }
}
@media (max-width: 500px) {
  .cookie-banner {
    flex-direction: column;
    gap: 18px;
    padding: 13px 5vw;
    font-size: 0.97rem;
  }
  .cookie-banner .cookie-btns {
    flex-direction: column;
    gap: 10px;
  }
  .cookie-modal {
    padding: 20px 10px 16px 10px;
  }
}

/* =============== */
/* UTILITIES       */
/* =============== */
.d-none { display: none !important; }
.mt-2 { margin-top: 16px; }
.mb-2 { margin-bottom: 16px; }

/* ARIA FOCUS-VISIBLE OUTLINES FOR AAA */
:focus-visible {
  outline: 2.5px solid var(--color-accent);
  outline-offset: 2px;
}

/* ================ */
/* ANIMATIONS       */
/* ================ */
@keyframes fadein {
  0% { opacity: 0; transform: translateY(20px); }
  90% { opacity: 1; }
  100% { opacity: 1; transform: none; }
}
.section, .card, .testimonial-card, .faq-accordion > div, .blog-posts li, .cookie-banner, .cookie-modal {
  animation: fadein 0.82s cubic-bezier(.16,.92,.33,1.22);
}

/* Retro corner accent */
.card:before, .testimonial-card:before {
  content: "";
  position: absolute;
  left: -7px; top: -7px;
  width: 30px; height: 30px;
  border-top: 5px solid var(--color-retro-red);
  border-left: 5px solid var(--color-retro-red);
  border-top-left-radius: 12px;
  pointer-events: none;
  opacity: 0.14;
}
.card:after, .testimonial-card:after {
  content: "";
  position: absolute;
  right: -7px; bottom: -7px;
  width: 30px; height: 30px;
  border-bottom: 5px solid var(--color-accent);
  border-right: 5px solid var(--color-accent);
  border-bottom-right-radius: 12px;
  pointer-events: none;
  opacity: 0.16;
}

/* =============================== */
/* HIDE COOKIE CLASSES FOR INIT    */
/* =============================== */
.cookie-banner.hide,
.cookie-modal-overlay:not(.active) {
  display: none;
}