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

html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  line-height: 1.6;
  background: #F6F6F8;
  color: #34271C;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
  background: none;
  transition: color 0.2s;
}
ul, ol {
  margin-left: 22px;
  margin-top: 8px;
  margin-bottom: 16px;
}
ul li, ol li {
  margin-bottom: 6px;
}

/* ================= VINTAGE RETRO FONTS ================= */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;900&family=Roboto:wght@400;500;700&display=swap');

:root {
  --primary: #20405D;
  --secondary: #F6F6F8;
  --accent: #6CC24A;
  --retro-red: #B2402F;
  --retro-yellow: #FFD166;
  --retro-beige: #F5EFDC;
  --retro-brown: #8B6F4E;
  --retro-blue: #476072;
  --retro-orange: #E77F36;
  --retro-green: #A3C158;
  --heading-font: 'Montserrat', Arial, sans-serif;
  --body-font: 'Roboto', Arial, sans-serif;
  --card-radius: 18px;
  --card-shadow: 0 4px 14px 0 rgba(68, 43, 13, 0.09);
}

/* ==================== GENERAL LAYOUT ==================== */
.container {
  width: 100%;
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 18px;
  padding-right: 18px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.text-section {
  background: var(--retro-beige);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  padding: 32px 24px;
  margin-bottom: 20px;
}

/* ================== TYPOGRAPHY ================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  letter-spacing: 0.01em;
  color: var(--primary);
  margin-bottom: 10px;
  font-weight: 900;
}
h1 {
  font-size: 2.75rem;
  line-height: 1.18;
  color: var(--retro-blue);
  text-shadow: 1px 2px 0px var(--retro-yellow);
}
h2 {
  font-size: 2rem;
  line-height: 1.22;
  color: var(--retro-red);
  text-shadow: 1px 1px 0 var(--retro-yellow);
  margin-bottom: 18px;
}
h3 {
  font-size: 1.22rem;
  color: var(--retro-brown);
  font-weight: 700;
  margin-top: 6px;
  margin-bottom: 7px;
}
h4, h5, h6 {
  font-size: 1rem;
  color: var(--retro-brown);
}
p {
  font-family: var(--body-font);
  font-size: 1rem;
  color: #34271C;
  margin-bottom: 10px;
  max-width: 750px;
}
.testimonial-meta {
  font-size: 0.96rem;
  color: var(--primary);
  font-style: italic;
  margin-left: 12px;
}
strong {
  font-weight: 700;
  color: var(--retro-red);
}

/* =================== BUTTONS =================== */
.button-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  background: var(--accent);
  color: var(--primary);
  border-radius: 999px;
  letter-spacing: 0.04em;
  font-family: var(--heading-font);
  font-weight: bold;
  font-size: 1.1rem;
  border: 2px solid var(--retro-brown);
  box-shadow: 2px 4px 0 var(--retro-yellow);
  cursor: pointer;
  transition: background 0.22s, color 0.22s, box-shadow 0.15s, transform 0.15s;
  margin-top: 12px;
  text-shadow: 0 1px 0 var(--secondary);
  text-decoration: none;
  outline: none;
}
.button-primary:hover, 
.button-primary:focus {
  background: var(--retro-orange);
  color: #fff;
  box-shadow: 3px 6px 0 var(--retro-yellow);
  transform: translateY(-2px) scale(1.025);
}
.button-primary:active {
  background: var(--retro-red);
  box-shadow: 1px 2px 0 var(--retro-yellow);
}

/* =================== NAVIGATION =================== */
header {
  background: var(--retro-yellow);
  width: 100%;
  padding: 0;
  border-bottom: 4px solid var(--retro-red);
  position: relative;
  z-index: 40;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 74px;
  padding-top: 10px;
  padding-bottom: 10px;
}
header img {
  height: 46px;
  width: auto;
  margin-right: 18px;
}
nav.main-nav {
  display: flex;
  gap: 24px;
  align-items: center;
  font-family: var(--heading-font);
}
nav.main-nav a {
  color: var(--primary);
  font-size: 1.03rem;
  font-weight: 600;
  padding: 9px 0;
  position: relative;
  transition: color 0.12s;
  text-shadow: 1px 1px 0 #fff8e6;
}
nav.main-nav a:hover, nav.main-nav a:focus {
  color: var(--retro-red);
  text-decoration: underline;
}
header .button-primary {
  margin-left: 18px;
}

/* =================== MOBILE NAVIGATION =================== */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  right: 18px;
  top: 18px;
  width: 48px;
  height: 48px;
  font-size: 2.2rem;
  background: var(--retro-red);
  color: #fffbe9;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  z-index: 1001;
  transition: background 0.18s, color 0.15s, transform 0.13s;
  box-shadow: 2px 3px 0 var(--retro-yellow);
}
.mobile-menu-toggle:active {
  background: var(--accent);
  color: #39301c;
  transform: scale(0.97);
}
.mobile-menu {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(135deg, var(--retro-yellow), var(--retro-beige));
  z-index: 2000;
  display: flex;
  flex-direction: column;
  transform: translateX(-100vw);
  transition: transform 0.36s cubic-bezier(.91,.21,.23,1);
  box-shadow: 4px 0 32px rgba(61,41,13,0.09);
  padding: 0 12px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  margin-top: 22px;
  align-self: flex-end;
  font-size: 2.6rem;
  background: var(--retro-red);
  color: #fff;
  border: none;
  border-radius: 10px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 1px 2px 0 var(--retro-yellow);
  transition: background 0.13s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--accent);
  color: #37301d;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  margin-top: 48px;
  font-size: 1.2rem;
}
.mobile-nav a {
  color: var(--primary);
  background: #fffaf3;
  padding: 14px 30px;
  border-radius: 14px;
  font-family: var(--heading-font);
  font-weight: 600;
  box-shadow: 1px 2px 0 var(--retro-yellow);
  margin-bottom: 4px;
  text-align: center;
  transition: background 0.11s, color 0.11s;
  width: 88vw;
  max-width: 370px;
  outline: none;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--retro-orange);
  color: #fff;
}

/* Hide navigation/show hamburger on mobile */
@media (max-width: 992px) {
  nav.main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 993px) {
  .mobile-menu {
    display: none !important;
  }
}

/* ================= HERO SECTION ================= */
.hero {
  background: var(--retro-yellow);
  border-bottom: 8px dotted var(--retro-brown);
  padding: 48px 0 44px 0;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}
.hero .content-wrapper {
  justify-content: center;
  align-items: flex-start;
  background: rgba(255,255,255,0.85);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  padding: 32px 28px 36px 28px;
  margin-top: 0;
  gap: 18px;
  max-width: 690px;
}
.hero h1 {
  color: var(--retro-blue);
  font-size: 2.4rem;
}
.hero p {
  font-size: 1.18rem;
  color: #3f3122;
}

/* ================== FEATURE GRID & CARDS ==================*/
.feature-grid, .card-container, .card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.feature-item {
  background: var(--retro-beige);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  padding: 32px 18px;
  min-width: 220px;
  flex: 1 1 250px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 16px;
  border: 2px solid var(--retro-brown);
  transition: box-shadow 0.18s, transform 0.17s, border-color 0.14s;
  position: relative;
}
.feature-item img {
  width: 42px;
  height: 42px;
  margin-bottom: 8px;
  filter: drop-shadow(1.5px 2.5px 0 var(--retro-yellow));
}
.feature-item:hover, .feature-item:focus-within {
  box-shadow: 0 9px 22px 0 rgba(95,69,25,0.14);
  transform: translateY(-4px) scale(1.02);
  border-color: var(--accent);
  z-index: 10;
}

.card-container {
  gap: 24px;
}
.card {
  background: var(--retro-beige);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  padding: 28px 21px;
  margin-bottom: 20px;
  position: relative;
  border: 2px solid var(--retro-brown);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ================== SPACING / GRID ================== */
.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) {
  .feature-grid, .content-grid, .card-container {
    flex-direction: column;
    gap: 14px;
  }
  .feature-item {
    min-width: 0;
    width: 100%;
  }
  .content-wrapper {
    padding: 0;
    gap: 20px;
  }
  .section {
    padding: 30px 8px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 16px;
  }
}

/* ================== TESTIMONIALS ================== */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fffaf3;
  border-radius: var(--card-radius);
  box-shadow: 0 3px 12px 0 rgba(180,64,47, 0.09);
  margin-bottom: 20px;
  border-left: 6px solid var(--retro-red);
  border-right: 4px solid var(--retro-yellow);
  position: relative;
  font-size: 1.09rem;
  color: #2d2321;
  transition: box-shadow 0.18s, transform 0.16s;
}
.testimonial-card:before {
  content: "\201C";
  color: var(--retro-yellow);
  font-size: 2.5rem;
  font-family: var(--heading-font);
  position: absolute;
  left: 19px;
  top: 15px;
  opacity: 0.45;
  z-index: 0;
}
.testimonial-card p {
  z-index: 1;
  position: relative;
  color: #453621;
  max-width: 650px;
  margin-bottom: 2px;
}
.testimonial-card .testimonial-meta {
  color: var(--retro-brown);
  font-size: 1rem;
  margin-left: 12px;
  font-style: italic;
}
.testimonial-card:hover, .testimonial-card:focus {
  box-shadow: 0 6px 28px 0 rgba(61,41,13,0.13);
  transform: translateY(-2px) scale(1.01);
}

/* ================== FORMS/CONTACT ================== */
.contact-details {
  background: var(--retro-beige);
  border-radius: 13px;
  border: 2px solid var(--retro-brown);
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
  font-size: 1.06rem;
  line-height: 1.6;
}
.contact-details img {
  margin-right: 10px;
  vertical-align: middle;
  width: 24px;
  height: 24px;
  filter: drop-shadow(0.5px 1.5px 0 var(--retro-yellow));
}
.contact-details a {
  color: var(--retro-red);
  text-decoration: underline;
  transition: color 0.14s;
}
.contact-details a:hover, .contact-details a:focus {
  color: var(--accent);
}

/* ======================= FOOTER ======================= */
footer {
  background: var(--retro-blue);
  color: #fffde6;
  padding: 0;
  border-top: 4px solid var(--retro-red);
  position: relative;
  z-index: 38;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 32px;
  padding: 36px 18px 12px 18px;
  justify-content: space-between;
}
footer img {
  height: 46px;
  margin-bottom: 18px;
}
footer nav.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-family: var(--heading-font);
  margin-right: 28px;
}
footer nav.footer-nav a {
  color: #fff6e2;
  font-size: 1.01rem;
  font-weight: 500;
  text-shadow: 1px 1px 0 var(--retro-brown);
  margin-bottom: 3px;
}
footer nav.footer-nav a:hover, footer nav.footer-nav a:focus {
  color: var(--retro-yellow);
}
.footer-contact {
  font-size: 1rem;
  color: #fffde6;
  margin-bottom: 8px;
  font-family: var(--body-font);
  line-height: 1.7;
}
.footer-contact img {
  width: 20px;
  height: 20px;
  margin-bottom: -4px;
  margin-right: 8px;
  filter: drop-shadow(0.5px 1.3px 0 var(--retro-yellow));
}
.footer-note {
  font-size: 0.95rem;
  margin-top: 16px;
  color: rgb(254 251 229 / 84%);
  font-family: var(--body-font);
  opacity: 0.88;
  width: 100%;
}

@media (max-width: 900px) {
  footer .container {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
    padding: 32px 12px 11px 12px;
  }
}

/* ======================= COOKIE CONSENT BANNER ======================= */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  background: var(--retro-yellow);
  color: var(--primary);
  box-shadow: 0 -5px 40px rgba(60,34,9,0.13);
  z-index: 3500;
  border-top: 3px solid var(--retro-red);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 22px;
  padding: 18px 20px;
  font-family: var(--body-font);
  animation: banner-in 0.7s cubic-bezier(.67,.11,.29,1) 1;
}
@keyframes banner-in {
  0% { transform: translateY(100%); }
  75% { transform: translateY(-11px); }
  100% { transform: translateY(0); }
}
.cookie-banner p {
  flex: 1;
  font-size: 1.01rem;
  margin-right: 15px;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}
.cookie-banner .cookie-btn {
  background: var(--accent);
  color: var(--primary);
  font-family: var(--heading-font);
  font-weight: 600;
  font-size: 1rem;
  padding: 10px 22px;
  border: 2px solid var(--retro-brown);
  border-radius: 18px;
  margin: 0 4px;
  cursor: pointer;
  transition: background 0.14s, color 0.14s;
  box-shadow: 1px 2px 0 var(--retro-yellow);
  outline: none;
}
.cookie-banner .cookie-btn.settings {
  background: var(--retro-red);
  color: #fff;
}
.cookie-banner .cookie-btn.reject {
  background: var(--retro-brown);
  color: var(--retro-yellow);
}
.cookie-banner .cookie-btn:hover, .cookie-banner .cookie-btn:focus {
  background: var(--retro-orange);
  color: #fff;
}

@media (max-width: 720px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 13px 7px;
    font-size: 0.99rem;
  }
}

.cookie-modal-backdrop {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  width: 100vw; height: 100vh;
  z-index: 3600;
  background: rgba(0,0,0,0.22);
  display: none;
}
.cookie-modal-backdrop.active {
  display: block;
  animation: fadein 0.44s;
}
@keyframes fadein {
  0% {opacity: 0;} 100% {opacity: 1;}
}
.cookie-modal {
  position: fixed;
  left: 0; right: 0; top: 50%;
  transform: translateY(-50%);
  margin-left: auto;
  margin-right: auto;
  max-width: 420px;
  background: #fffbe9;
  border: 4px solid var(--retro-red);
  border-radius: 22px;
  box-shadow: 0 16px 39px rgba(40,26,10,0.2);
  z-index: 3700;
  display: none;
  flex-direction: column;
  padding: 32px 27px 18px 27px;
  animation: modal-in 0.33s cubic-bezier(.6,.06,.47,.99);
}
.cookie-modal.active {
  display: flex;
}
@keyframes modal-in {
  0% { transform: translateY(300px); opacity: 0; }
  75% { transform: translateY(-42px); }
  100% { transform: translateY(-50%); opacity: 1; }
}
.cookie-modal h2 {
  color: var(--retro-blue);
  margin-bottom: 20px;
  font-size: 1.59rem;
  text-shadow: 1px 1px 0 var(--retro-yellow);
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 1.09rem;
  margin-bottom: 13px;
}
.cookie-modal label {
  color: var(--primary);
  font-weight: 600;
  font-family: var(--body-font);
}
.cookie-modal input[type="checkbox"] {
  accent-color: var(--accent);
  width: 19px; height: 19px;
}
.cookie-modal .actions {
  display: flex;
  flex-direction: row;
  gap: 13px;
  margin-top: 22px;
  align-items: center;
  justify-content: flex-end;
}
.cookie-modal .cookie-btn {
  padding: 9px 18px;
  font-size: 0.98rem;
}
.cookie-modal .cookie-btn.close {
  background: var(--retro-red);
  color: #fff;
  margin-right: auto;
  border-radius: 12px;
}
.cookie-modal .cookie-btn.save {
  background: var(--accent);
  color: var(--primary);
  border-radius: 18px;
  border-color: var(--retro-brown);
}

@media (max-width: 540px) {
  .cookie-modal {
    max-width: 95vw;
    padding: 16px 7px 11px 10px;
  }
  .cookie-modal h2 {
    font-size: 1.22rem;
  }
}

/* ======================= CONTENT SPECIFIC & UTILITY ======================= */

ol {
  list-style: decimal inside;
}

section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.card {
  margin-bottom: 20px;
  position: relative;
}

.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;
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
}

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

/* ======================= RESPONSIVE DESIGN ======================= */
@media (max-width: 992px) {
  .hero .container {
    padding-top: 0;
    padding-bottom: 0;
  }
  header .container {
    min-height: 54px;
    padding-top: 7px;
    padding-bottom: 7px;
  }
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.38rem; }
  .hero .content-wrapper { padding:18px 7px 17px 7px; }
  .footer-contact { font-size: 0.95rem; }
  .contact-details { padding: 13px 7px; font-size: 0.98rem; }
  section { padding: 24px 8px; margin-bottom: 38px; }
  .testimonial-card { font-size: 0.98rem; }
}

/* ================= VINTAGE PATTERN/DECORATIVE ================= */
.section {
  background: repeating-linear-gradient(135deg, var(--retro-yellow) 0 9px, var(--retro-beige) 9px 27px);
  border-radius: 13px;
  border: 2px dashed var(--retro-brown);
  box-shadow: 0 3px 13px rgba(61,41,14,0.09);
}

@media (max-width: 640px) {
  .section {
    padding: 16px 2px;
    margin-bottom: 20px;
  }
}

/* ========== Z-INDEX ENFORCEMENT (header/menu) ========== */
header { z-index: 1200; }
.mobile-menu { z-index: 2000; }
.cookie-banner, .cookie-modal, .cookie-modal-backdrop { z-index: 3000; }

/* ===== MICROINTERACTIONS / SMOOTH TRANSITIONS ===== */
a, .button-primary, .feature-item, .testimonial-card { transition: box-shadow 0.14s, transform 0.16s, color 0.16s, background 0.16s; }

/* ===== AUTOFILL OVERRIDE ===== */
input:-webkit-autofill,
input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 30px #fffbe9 inset !important;
  -webkit-text-fill-color: var(--primary) !important;
}
