/* ===============================
   CSS RESET & BASE STYLES
   =============================== */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  min-height: 100vh;
  background: #F5F5F5;
  color: #2E1800;
  font-family: 'Roboto', Arial, sans-serif;
  line-height: 1.6;
  font-size: 1rem;
  letter-spacing: 0.03em;
  transition: background 0.3s;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
  border: 0;
}
a {
  color: #184A2C;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #D37728;
}
ul, ol {
  margin-left: 1.2em;
  margin-bottom: 1.2em;
}

/* ===============================
   VINTAGE RETRO DESIGN VARIABLES
   =============================== */
:root {
  --color-primary: #184A2C;
  --color-secondary: #EFC070;
  --color-accent: #F5F5F5;
  --color-dark: #2E1800;
  --color-brown: #9D7756;
  --color-orange: #D37728;
  --color-cream: #FDF6ED;
  --color-teal: #508275;
  --color-hover-btn: #D37728;
  --shadow-card: 0 4px 18px 0 rgba(60,20,0,0.06), 0 1.5px 8px 0 rgba(100,85,50,0.06);
  --radius-card: 20px;
  --radius-btn: 18px;
  --font-display: 'Montserrat', Impact, 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
  --font-body: 'Roboto', Arial, Helvetica, sans-serif;
}

/* ===============================
   TYPOGRAPHY
   =============================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-weight: 700;
  text-shadow: 0.5px 1px 0 var(--color-secondary), 0 2px 2px rgba(81, 49, 0, 0.08);
  margin-bottom: 20px;
  letter-spacing: 0.03em;
}
h1 { font-size: 2.5rem; margin-bottom: 24px; }
h2 { font-size: 2rem; margin-bottom: 20px; }
h3 { font-size: 1.35rem; margin-bottom: 16px; }
h4 { font-size: 1.125rem; margin-bottom: 14px; }
.section h2 { border-bottom: 3px dotted var(--color-brown); display: inline-block; padding-bottom: 6px; }
p, li, span, label, input, textarea, button {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-dark);
}
strong {
  color: var(--color-orange);
  font-weight: 700;
}
.text-section ul {
  padding-left: 1.4em;
}
.category-tag {
  display: inline-block;
  background: var(--color-secondary);
  color: var(--color-primary);
  font-size: 0.95em;
  font-family: var(--font-display);
  border-radius: 12px;
  padding: 0 10px;
  margin-left: 8px;
  margin-top: 5px;
}

/* ===============================
   SPACING & CONTAINER STYLES
   =============================== */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-cream);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  border: 1px solid #EDD8B0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  border: 1.5px solid var(--color-secondary);
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px;
  min-width: 240px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover {
  box-shadow: 0 8px 32px 0 rgba(72,55,12,0.13);
  transform: translateY(-5px) scale(1.014);
}
.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;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Special list w/ icons */
ul li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 7px 0;
  line-height: 1.5;
}
ul li img {
  width: 30px;
  height: 30px;
}

/* ===============================
   HEADER & NAVIGATION
   =============================== */
header {
  background: var(--color-primary);
  padding: 0;
  min-height: 74px;
  box-shadow: 0 2px 10px 0 rgba(62,40,7,0.05);
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 10px;
  padding-bottom: 10px;
}
header img {
  height: 46px;
}
nav {
  display: flex;
  gap: 18px;
  align-items: center;
}
nav a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.03rem;
  letter-spacing: 0.02em;
  color: var(--color-secondary);
  border-radius: 6px;
  padding: 8px 12px;
  transition: background 0.15s, color 0.15s;
}
nav a:hover:not(.btn-primary) {
  background: var(--color-secondary);
  color: var(--color-primary);
}
.btn-primary {
  background: var(--color-secondary);
  color: var(--color-primary) !important;
  font-family: var(--font-display);
  border-radius: var(--radius-btn);
  padding: 10px 28px;
  font-size: 1.1rem;
  font-weight: 700;
  border: none;
  box-shadow: 0 4px 16px 0 rgba(232,176,60,0.12);
  cursor: pointer;
  margin-left: 12px;
  margin-top: 0;
  transition: box-shadow 0.15s, background 0.15s, color 0.15s;
  outline: none;
  position: relative;
  z-index: 1;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--color-hover-btn);
  color: #fff !important;
  box-shadow: 0 8px 24px 0 rgba(180,117,30,0.19);
}

/* ===============================
   MOBILE NAVIGATION
   =============================== */
.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  color: var(--color-secondary);
  background: transparent;
  border: none;
  cursor: pointer;
  margin-left: 16px;
  transition: color 0.15s;
  z-index: 30;
}
.mobile-menu-toggle:focus {
  outline: 2px dashed var(--color-secondary);
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: var(--color-primary);
  transform: translateX(-100%);
  transition: transform 0.36s cubic-bezier(.77,0,.18,1);
  z-index: 70;
  display: flex;
  flex-direction: column;
  padding: 0;
  box-shadow: 8px 0 28px 0 rgba(60,20,0,0.24);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 20px 24px 0 0;
  font-size: 2.2rem;
  background: none;
  border: none;
  color: var(--color-secondary);
  cursor: pointer;
  transition: color 0.18s;
  z-index: 71;
}
.mobile-menu-close:focus {
  outline: 2px solid var(--color-secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  margin-left: 36px;
  margin-top: 30px;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.3rem;
  padding: 10px 0;
  color: var(--color-secondary);
  transition: color 0.14s, background 0.14s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--color-orange);
  background: transparent;
}

@media (max-width: 1100px) {
  nav {
    gap: 12px;
  }
}
@media (max-width: 900px) {
  nav a {
    font-size: 0.985rem;
    padding: 7px 8px;
  }
  .btn-primary {
    padding: 8px 18px;
    font-size: 1rem;
  }
}
@media (max-width: 768px) {
  nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .container {
    padding-left: 12px;
    padding-right: 12px;
  }
}

/* ===============================
   HERO HEADER SECTION
   =============================== */
.hero {
  background: url('../assets/retro-bg-pattern.svg'), var(--color-secondary);
  background-size: cover, cover;
  background-repeat: repeat, no-repeat;
  color: var(--color-dark);
  padding: 7vw 0 5vw 0;
  margin-bottom: 56px;
  box-shadow: 0 6px 32px 0 rgba(195,125,36,0.10);
  border-bottom: 2px solid var(--color-brown);
}
.hero .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 25px;
}
.hero h1 {
  font-size: 2.35rem;
  color: var(--color-primary);
  text-shadow: 1px 1.5px 0 var(--color-cream), 0 3px 7px rgba(105, 63,0,0.07);
}
.hero p {
  color: var(--color-dark);
  font-size: 1.17rem;
  max-width: 520px;
}
.hero .btn-primary {
  margin-top: 14px;
  background: var(--color-primary);
  color: var(--color-secondary) !important;
}
.hero .btn-primary:hover, .hero .btn-primary:focus {
  background: var(--color-brown);
  color: #fff !important;
}

@media (max-width: 768px) {
  .hero {
    padding: 40px 0 36px 0;
  }
  .hero h1 {
    font-size: 1.6rem;
  }
  .hero .btn-primary {
    padding: 8px 12px;
    font-size: 1rem;
  }
}

/* ===============================
   CARDS & FLEX SECTIONS
   =============================== */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  border: 2px dashed var(--color-secondary);
  border-radius: 32px;
  box-shadow: 0 4px 20px 0 rgba(101, 63, 24, 0.09);
  padding: 20px 30px;
  margin-bottom: 20px;
  min-width: 250px;
  max-width: 660px;
  position: relative;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--color-primary);
  transition: box-shadow 0.19s, transform 0.19s;
}
.testimonial-card:hover {
  box-shadow: 0 8px 32px 0 rgba(70,32,0,0.18);
  transform: translateY(-4px) scale(1.012);
}
.testimonial-author {
  font-family: var(--font-display);
  color: var(--color-orange);
  font-size: 1.08rem;
  padding-left: 18px;
  font-weight: 600;
  white-space: nowrap;
}

@media (max-width: 800px) {
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 14px;
    font-size: 1rem;
  }
  .testimonial-author {
    padding-left: 0;
    margin-top: 6px;
  }
}

.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ===============================
   FOOTER
   =============================== */
footer {
  background: var(--color-primary);
  color: var(--color-secondary);
  padding: 50px 0 0 0;
  border-top: 8px double var(--color-secondary);
  margin-top: 56px;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}
footer a {
  color: var(--color-secondary);
  font-family: var(--font-display);
  font-weight: 500;
  margin-right: 18px;
  font-size: 1rem;
  transition: color 0.135s;
}
footer a:hover, footer nav a:focus {
  color: #fff;
  text-decoration: underline;
}
footer .text-section {
  font-family: var(--font-body);
  color: var(--color-secondary);
  font-size: 1rem;
  margin-top: 12px;
  border-left: 3px dotted var(--color-secondary);
  padding-left: 14px;
}
footer img {
  height: 38px;
  filter: brightness(0.95) sepia(0.05) contrast(0.85);
}

@media (max-width: 850px) {
  footer .content-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  footer nav {
    gap: 12px;
  }
}

@media (max-width: 600px) {
  footer .text-section {
    padding-left: 4px;
    border: none;
  }
}

/* ===============================
   COOKIE CONSENT BANNER
   =============================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  background: #4B3A22;
  color: #fff;
  width: 100vw;
  z-index: 90;
  display: flex;
  align-items: flex-start;
  padding: 20px 16px;
  justify-content: space-between;
  box-shadow: 0 -4px 24px 0 rgba(70,44,4,0.23);
  gap: 38px;
  font-size: 1rem;
  font-family: var(--font-body);
  animation: cookieBannerIn 0.6s cubic-bezier(.53,.14,.19,1) 1;
}
@keyframes cookieBannerIn {
  0% { transform: translateY(100px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 18px;
}
.cookie-banner button {
  background: var(--color-secondary);
  color: var(--color-primary);
  font-family: var(--font-display);
  font-size: 1rem;
  border: none;
  border-radius: var(--radius-btn);
  padding: 10px 18px;
  font-weight: 600;
  cursor: pointer;
  margin: 0 1px;
  transition: background 0.15s, color 0.15s, box-shadow 0.16s;
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: var(--color-hover-btn);
  color: #fff;
  box-shadow: 0 2px 12px rgba(191,118,19,0.15);
}

/* Modal overlay */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(33,10,4,0.38);
  backdrop-filter: blur(2px);
  z-index: 280;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  transition: opacity 0.3s;
}
.cookie-modal {
  background: #FDF6ED;
  color: var(--color-primary);
  border-radius: 26px 26px 0 0;
  padding: 38px 24px 30px;
  max-width: 420px;
  min-width: 270px;
  min-height: 280px;
  box-shadow: 0 0 40px 8px rgba(60,30,0,0.21);
  margin-bottom: 0;
  animation: cookieModalIn 0.38s cubic-bezier(.39,0,.42,1);
}
@keyframes cookieModalIn {
  0% { transform: translateY(160px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.45rem;
  margin-bottom: 16px;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border-radius: 16px;
  margin-bottom: 16px;
  padding: 12px 16px;
  font-size: 1.05em;
  box-shadow: 0 2px 8px 0 rgba(99,69,13,0.04);
}
.cookie-toggle input[type="checkbox"] {
  width: 22px;
  height: 22px;
  accent-color: var(--color-secondary);
  margin-left: 8px;
}
.cookie-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 22px;
}

@media (max-width: 720px) {
  .cookie-banner {
    flex-direction: column;
    gap: 18px;
    font-size: 0.95rem;
    padding: 14px 4px 16px 6px;
  }
  .cookie-banner .cookie-actions {
    gap: 10px;
  }
  .cookie-modal {
    min-width: 98vw;
    max-width: 98vw;
    padding: 30px 8px 28px 14px;
  }
}

/* ===============================
   RESPONSIVE LAYOUT ADJUSTMENTS
   =============================== */
@media (max-width: 1024px) {
  .section {
    padding: 28px 6px;
  }
}
@media (max-width: 900px) {
  .section {
    margin-bottom: 32px;
  }
  .content-wrapper, .card-container, .content-grid {
    gap: 16px;
  }
}
@media (max-width: 768px) {
  .section {
    padding: 20px 2px;
    margin-bottom: 30px;
    border-radius: 12px;
  }
  .content-wrapper, .card-container, .content-grid {
    gap: 10px;
  }
  .content-grid, .card-container {
    flex-direction: column !important;
    gap: 16px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
  .feature-item {
    gap: 7px;
  }
}
@media (max-width: 620px) {
  h1 { font-size: 1.3rem; }
  h2 { font-size: 1.08rem; }
  .btn-primary { font-size: 0.98rem; padding: 7px 13px; }
}

/* ===============================
   MICRO-INTERACTIONS & TRANSITIONS
   =============================== */
.card, .btn-primary, .testimonial-card, .cookie-banner button, nav a, .mobile-menu-toggle {
  transition: background 0.15s, box-shadow 0.18s, color 0.13s, transform 0.13s;
}
main a.btn-primary:active, .btn-primary:active, .cookie-banner button:active, .testimonial-card:active {
  transform: scale(0.97) translateY(1px);
}

/* ===============================
   RETRO PATTERNS, DECORATIVE ELEMENTS (OPTIONAL)
   =============================== */
body {
  background-image: url('../assets/bg-retro-small.png');
  background-repeat: repeat;
}
.section {
  box-shadow: 0 2px 14px 0 rgba(90,56,15,0.08), 0 1.5px 6px rgba(100,90,40,0.07);
  border-radius: 22px;
  border: 1px solid #E7D1A7;
}

/* ===============================
   MISC UTILS & VISIBILITY
   =============================== */
.sr-only {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
  clip: rect(1px,1px,1px,1px);
  white-space: nowrap;
}

@media (max-width: 480px) {
  .footer .content-wrapper, .container {
    padding-left: 2px;
    padding-right: 2px;
  }
  .hero {
    padding: 22px 0 18px 0;
  }
}

/* Hide cookie-modal-overlay & .cookie-modal by default (toggle via JS) */
.cookie-modal-overlay { display: none; }
.cookie-modal-overlay.open { display: flex; }

