/* ========== CSS RESET & BASE ========== */
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; background: #FDF6ED;}
*, *:before, *:after { box-sizing: inherit; }

body {
  background: #FDF6ED;
  color: #263238;
  font-family: 'Roboto', Arial, sans-serif;
  line-height: 1.6;
  font-size: 16px;
  min-height: 100vh;
}

:root {
  --primary: #263238;
  --secondary: #FDF6ED;
  --accent: #B97C4A;
  --retro-green: #427262;
  --retro-orange: #E8871E;
  --retro-yellow: #FDE293;
  --retro-blue: #BFD6D6;
  --retro-cream: #F4E8C1;
  --retro-font-headline: 'Montserrat', 'Arial Black', Impact, sans-serif;
  --retro-font-body: 'Roboto', 'Arial', sans-serif;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--retro-font-headline);
  margin-bottom: 16px;
  color: var(--primary);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -1px;
  text-shadow: 1px 2px 0 var(--retro-yellow);
}
h1 { font-size: 2.25rem; margin-bottom: 24px; }
h2 { font-size: 1.5rem; margin-bottom: 18px; }
h3 { font-size: 1.125rem; margin-bottom: 13px; }
h4, h5, h6 { font-size: 1rem; }
@media (min-width: 768px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.5rem; }
}

p {
  margin-bottom: 18px;
  color: var(--primary);
  font-size: 1rem;
  letter-spacing: 0.02em;
  font-family: var(--retro-font-body);
}
a {
  color: var(--accent);
  text-decoration: underline wavy var(--retro-orange);
  transition: color 0.3s;
}
a:hover, a:focus { color: var(--retro-green); text-decoration: underline wavy var(--retro-green); }

ul, ol {
  margin-bottom: 20px;
  padding-left: 28px;
  font-family: var(--retro-font-body);
}
ul li, ol li {
  margin-bottom: 12px;
  padding-left: 0;
}
strong { font-weight: 700; }

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: 38px;
  background: var(--retro-cream);
  box-shadow: 0 2px 16px 0 rgba(41, 37, 25, 0.07);
}

.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 18px;
  width: 100%;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
@media (min-width: 800px) {
  .content-wrapper {
    gap: 28px;
  }
}

.text-section {
  background: var(--retro-yellow);
  border-radius: 16px;
  padding: 18px 22px;
  margin-bottom: 20px;
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
@media (max-width: 768px) {
  .text-image-section { flex-direction: column; align-items: flex-start; }
}

/* ========== RETRO VISUAL ELEMENTS ========== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin-bottom: 32px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--retro-blue);
  border-radius: 18px;
  border: 3px solid var(--retro-yellow);
  box-shadow: 0 4px 24px 0 rgba(175, 125, 47, 0.11);
  padding: 22px 24px 22px 24px;
  min-width: 210px;
  max-width: 100%;
  flex: 1 1 230px;
  transition: box-shadow 0.22s, transform 0.22s;
}
.card:hover, .card:focus {
  box-shadow: 0 12px 32px 0 rgba(41, 37, 25, .13);
  transform: translateY(-6px) scale(1.02);
}

.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--retro-cream);
  border-left: 6px solid var(--retro-orange);
  border-radius: 13px;
  padding: 18px 20px;
  margin-bottom: 20px;
}

/* ========== HERO SECTION ========== */
.hero {
  background: repeating-linear-gradient(45deg, var(--retro-yellow), var(--retro-yellow) 30px, var(--retro-blue) 40px, var(--retro-blue) 70px);
  padding: 0 0 30px 0;
  border-bottom: 4px solid var(--retro-orange);
}
.hero .container { padding-top: 38px; padding-bottom: 32px; }
.hero .content-wrapper { align-items: flex-start; }
.hero h1 {
  color: var(--primary);
  text-shadow: 2px 2px 0 var(--retro-orange);
  font-size: 2.1rem;
  margin-bottom: 12px;
}
@media (min-width: 800px) {
  .hero h1 { font-size: 3rem; }
}
.hero p {
  font-size: 1.2rem;
  color: var(--primary);
  margin-bottom: 20px;
}

/* ========== TESTIMONIALS ========== */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--secondary);
  border-radius: 21px;
  border: 2px solid var(--retro-orange);
  box-shadow: 0 2px 12px 0 rgba(38, 50, 56, 0.07);
  margin-bottom: 24px;
  font-family: var(--retro-font-body);
  color: #2a2020;
  font-size: 1.05rem;
}
.testimonial-card p {
  color: #1b1818;
  font-style: italic;
  margin-bottom: 2px;
}
.testimonial-card span {
  color: #263238;
  opacity: 0.8;
  font-weight: 600;
  font-size: 0.96rem;
  margin-left: auto;
}
@media (max-width: 700px) {
  .testimonial-card { flex-direction: column; align-items: flex-start; gap: 6px; }
  .testimonial-card span { margin-left: 0; }
}

/* ========== BUTTONS ========== */
.cta-btn, button, .mobile-menu-toggle, .mobile-menu-close {
  font-family: var(--retro-font-headline);
  font-weight: bold;
  letter-spacing: 0.04em;
  font-size: 1.1rem;
  outline: none;
  border: none;
  border-radius: 24px;
  background: var(--retro-orange);
  color: #222;
  padding: 14px 28px;
  transition: background 0.19s, color 0.22s, box-shadow 0.19s, transform 0.19s;
  box-shadow: 0 2px 8px 0 rgba(233, 135, 30, 0.10);
  cursor: pointer;
  margin-top: 10px;
  display: inline-block;
  text-decoration: none;
}
.cta-btn:hover, .cta-btn:focus, button:hover, button:focus {
  background: var(--retro-green);
  color: var(--retro-yellow);
  text-shadow: none;
  box-shadow: 0 8px 16px 0 rgba(66, 114, 98, 0.14);
  transform: translateY(-2px) scale(1.04);
}

/* For cookie modal & secondary accent buttons */
.button-secondary {
  background: var(--retro-blue);
  color: var(--accent);
  border: 2px solid var(--retro-orange);
}
.button-secondary:hover, .button-secondary:focus {
  background: var(--retro-orange);
  color: #fff;
}
.button-minor {
  background: var(--retro-yellow);
  color: #3a2d1e;
  border: 2px solid var(--retro-orange);
}
.button-minor:hover, .button-minor:focus {
  background: var(--retro-blue);
  color: var(--accent);
}

/* ========== HEADER & NAVIGATION ========== */
header {
  width: 100%;
  background: var(--retro-cream);
  border-bottom: 3px solid var(--retro-orange);
  box-shadow: 0 2px 12px 0 rgba(38, 50, 56, 0.09);
  position: relative;
  z-index: 1000;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 11px 18px 11px 18px;
}
header img { height: 54px; width: auto; margin-right: 32px; }

.main-nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  align-items: center;
}
.main-nav a {
  font-family: var(--retro-font-headline);
  font-size: 1.08rem;
  color: var(--primary);
  text-decoration: none;
  background: none;
  padding: 9px 0;
  border-radius: 1px;
  border-bottom: 2px solid transparent;
  transition: color 0.25s, border 0.2s;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--retro-orange);
  border-bottom: 2px solid var(--retro-yellow);
}

/* Hide hamburger by default */
.mobile-menu-toggle {
  background: var(--retro-orange);
  color: var(--primary);
  border-radius: 50%;
  width: 46px; height: 46px;
  font-size: 1.78rem;
  padding: 0;
  border: none;
  display: none;
  align-items: center;
  justify-content: center;
}

@media (max-width: 980px) {
  header .container { flex-direction: row; gap: 8px; }
  header img { height: 42px; margin-right: 12px; }
  .main-nav { gap:14px; }
}
@media (max-width: 700px) {
  .main-nav { display: none; }
  .mobile-menu-toggle { display: flex; }
}

/* ========== MOBILE MENU ========== */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--retro-blue);
  z-index: 2000;
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(.77,.2,.05,1.0);
  box-shadow: 0 2px 28px 0 rgba(38,50,56,0.25);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding-top: 46px;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-close {
  position: absolute;
  top: 19px; right: 21px;
  background: var(--retro-yellow);
  color: var(--primary);
  font-size: 2.1rem;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: none;
  box-shadow: 0 4px 12px 0 rgba(251, 185, 43, 0.07);
  z-index: 2100;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.21s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--retro-orange);
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 44px 34px 34px 34px;
  width: 100%;
}
.mobile-nav a {
  font-family: var(--retro-font-headline);
  font-size: 1.36rem;
  color: var(--primary);
  text-decoration: none;
  padding: 16px 0 8px 8px;
  border-bottom: 2px dashed var(--retro-orange);
  transition: background 0.2s, color 0.2s;
  border-radius: 3px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--retro-yellow);
  color: var(--retro-orange);
}
/* Overlay fix for menu z-index layering */
.mobile-menu {
  box-shadow: 0 0 0 100vw rgba(38, 50, 56, 0.06) inset;
}

/* ========== FOOTER ========== */
footer {
  background: var(--retro-cream);
  border-top: 3px solid var(--retro-orange);
  padding: 36px 0 14px 0;
  margin-top: 50px;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}
.footer-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 9px;
}
.footer-nav a {
  font-family: var(--retro-font-headline);
  font-size: 1.06rem;
  color: var(--retro-green);
  text-decoration: none;
  transition: color 0.18s;
}
.footer-nav a:hover, .footer-nav a:focus {
  text-decoration: underline;
  color: var(--retro-orange);
}
.footer-contact {
  font-size: 0.98rem;
  color: var(--primary);
  font-family: var(--retro-font-body);
}
footer small {
  color: #ad885a;
  font-size: 0.95rem;
}
@media (min-width: 800px) {
  footer .container {
    flex-direction: row;
    align-items: flex-start;
    gap: 54px;
    justify-content: space-between;
  }
  .footer-contact { text-align: right; }
}

/* ========== COOKIE CONSENT BANNER ========== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--retro-cream);
  color: var(--primary);
  box-shadow: 0 -1px 18px 0 rgba(41, 37, 25, 0.09);
  border-top: 3px solid var(--retro-orange);
  padding: 24px 18px 21px 18px;
  display: flex;
  flex-direction: column;
  gap: 13px;
  align-items: flex-start;
  z-index: 3000;
  transition: transform 0.38s;
  transform: translateY(100%);
}
.cookie-banner.visible { transform: translateY(0); }
.cookie-banner p {
  margin: 0 0 9px 0;
  font-size: 1.01rem;
}
.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ========== COOKIE MODAL ========== */
.cookie-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(38,50,56,0.39);
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.27s;
}
.cookie-modal.open {
  pointer-events: all;
  opacity: 1;
}
.cookie-modal-dialog {
  background: var(--retro-blue);
  border-radius: 22px;
  box-shadow: 0 6px 42px 0 rgba(38, 50, 56, 0.16);
  border: 5px double var(--retro-orange);
  padding: 38px 34px;
  max-width: 93vw;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  position: relative;
}
.cookie-modal h3 {
  font-size: 1.32rem;
  margin-top: 0;
  margin-bottom: 4px;
  color: var(--primary);
  text-shadow: 1px 1px 0 var(--retro-yellow);
}
.cookie-modal .cookie-setting {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  padding: 11px 0;
}
.cookie-modal .cookie-toggle {
  width: 38px; height: 22px;
  background: var(--retro-yellow);
  border-radius: 12px;
  margin-right: 8px;
  position: relative;
  flex-shrink: 0;
}
.cookie-modal .cookie-toggle input {
  opacity: 0;
  width: 0; height: 0;
}
.cookie-modal .cookie-toggle .knob {
  display: block;
  position: absolute;
  left: 2px; top: 2px;
  width: 18px; height: 18px;
  background: var(--retro-orange);
  border-radius: 50%;
  transition: left 0.2s;
}
.cookie-modal .cookie-toggle input:checked + .knob {
  left: 18px;
  background: var(--retro-green);
}
.cookie-modal .cookie-description {
  color: var(--primary);
  font-size: 0.98rem;
  font-weight: 400;
  margin-bottom: 9px;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}
.cookie-modal .modal-close {
  background: var(--retro-yellow);
  color: var(--primary);
  border-radius: 50%;
  width: 38px; height: 38px;
  position: absolute;
  top: 14px; right: 15px;
  font-size: 1.35rem;
  border: none;
  box-shadow: 0 2px 8px 0 rgba(251, 185, 43, 0.08);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.cookie-modal .modal-close:hover, .cookie-modal .modal-close:focus {
  background: var(--retro-orange);
  color: #fff;
}

/* ========== UTILITIES & MISC ========== */
@media (max-width: 700px){
  .container { padding: 0 8px; }
  .hero .container { padding-top: 18px; padding-bottom: 14px; }
  .hero h1 { font-size: 1.5rem; }
  .section { padding: 22px 7px; margin-bottom: 35px; border-radius: 20px; }
}
::-webkit-scrollbar {
  width: 10px;
  background: var(--retro-cream);
}
::-webkit-scrollbar-thumb {
  background: var(--retro-yellow);
  border-radius: 12px;
}
::-webkit-scrollbar-thumb:hover { background: var(--retro-orange); }

hr {
  border: none;
  border-top: 3px dotted var(--retro-orange);
  margin: 34px 0 30px 0;
}

/* Spacing between all major sections */
main section + section { margin-top: 38px; }

/* ================== RESPONSIVE FLEX LAYOUTS ================== */
@media (min-width: 900px) {
  .content-grid,
  .card-container,
  .features {
    flex-direction: row;
    gap: 32px;
  }
  .content-wrapper {
    flex-direction: column;
  }
  .feature-item {
    flex-basis: calc(33% - 24px); /* 3 in a row on desktop */
    min-width: 250px;
  }
}
@media (max-width: 900px) {
  .content-grid,
  .card-container,
  .features {
    flex-direction: column;
    gap: 18px;
  }
}

/* Alignment rules for testimonials/cards */
@media (min-width: 800px) {
  .testimonial-card, .card {
    align-items: center;
    min-width: 340px;
  }
  .testimonial-card { padding: 28px 32px; }
}

/* ========== RETRO DECORATIVE DETAILS (optional) ========== */
.card:before {
  content: '';
  display: block;
  position: absolute;
  top: -10px; left: 22px;
  width: 50px; height: 10px;
  background: repeating-linear-gradient(90deg, var(--retro-yellow), var(--retro-yellow) 7px, var(--retro-blue) 7px, var(--retro-blue) 14px);
  border-radius: 5px;
  opacity: 0.85;
  z-index: 1;
}
@media (max-width: 700px) {
  .card:before { display: none; }
}

/* ========== FOCUS STATES ========= */
a:focus, button:focus, .cta-btn:focus {
  outline: 2px dashed var(--retro-orange);
  outline-offset: 2px;
}

/* ========== PRINT ========= */
@media print {
  header, .mobile-menu, .cookie-banner, .cookie-modal, footer { display: none !important; }
  .container { max-width: 100% !important; }
  body { background: #fff !important; color: #000 !important; }
}

/* ========== FORM STYLES (for possible forms) ========== */
input, select, textarea {
  font-family: var(--retro-font-body);
  font-size: 1rem;
  padding: 8px 12px;
  border: 2px solid var(--retro-orange);
  border-radius: 8px;
  margin-bottom: 15px;
  outline: none;
  background: #fff8ee;
  color: var(--primary);
  transition: border 0.2s;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--retro-green);
}

/* ========== MISC ========== */
.hide { display: none !important; }

/* ========== END ========== */