/* =======================================
   CSS RESET & BASE STYLES FOR VINTAGE RETRO DESIGN
   ======================================= */
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: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}

html {
  line-height: 1.5;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  background: #F3F5EA;
  color: #4b3326;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  min-height: 100vh;
  position: relative;
  letter-spacing: 0.01em;
}

*, *:before, *:after {
  box-sizing: inherit;
}

a {
  color: #246836;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #8DB986;
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}

ul, ol {
  margin-left: 1.2em;
  margin-bottom: 1.2em;
}

li {
  margin-bottom: 8px;
}

/* ================= ========
   VINTAGE RETRO COLOR VARIABLES
   =========================*/
:root {
  --primary: #246836;
  --secondary: #8DB986;
  --accent: #F3F5EA;
  --retro-yellow: #F9E79F;
  --retro-brown: #806443;
  --retro-orange: #F79B2E;
  --retro-red: #CF564E;
  --retro-blue: #85B1C1;
  --retro-bg: #F3F5EA;
  --retro-paper: #fdf6e3;
}

/* ===================
   TYPOGRAPHY – RETRO/CLASSIC
   ===================*/
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700&family=Open+Sans:wght@400;700&display=swap');

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-weight: 700;
  color: #246836;
  letter-spacing: 0.04em;
  margin-bottom: 18px;
}
h1 {
  font-size: 2.4rem;
  line-height: 1.15;
  text-shadow: 1px 2px 0 #F9E79F;
  margin-bottom: 24px;
}
h2 {
  font-size: 1.65rem;
  margin-bottom: 20px;
  color: #806443;
  text-shadow: 1px 2px 0 #F9E79F;
}
h3 {
  font-size: 1.25rem;
  color: #CF564E;
  text-shadow: 1px 2px 0 #F9E79F;
  margin-bottom: 8px;
}
h4, h5, h6 {
  font-size: 1.1rem;
  color: #4b3326;
}

p, ul, ol {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: #4b3326;
  margin-bottom: 16px;
  line-height: 1.75;
}

b, strong {
  font-weight: 700;
  color: #246836;
}

.text-section ul {
  margin-bottom: 16px;
}

/* =======
 RETRO DECORATIVE ELEMENTS
======= */
section {
  background: var(--retro-paper);
  border-radius: 26px;
  box-shadow: 0 6px 32px 0 rgba(80,60,10,0.07), 0 1.5px 4px 0 rgba(128,100,67,0.09);
  margin-bottom: 60px;
  padding: 40px 20px;
  border: 3px dashed var(--retro-yellow);
  position: relative;
}
section:before {
  content: '';
  position: absolute;
  left: 30px; top: 30px;
  width: 40px; height: 40px;
  background: url('../assets/retro-pattern-1.svg') no-repeat center/contain;
  opacity: 0.07;
  z-index: 0;
  pointer-events: none;
}
@media (max-width: 600px) {
  section:before { display: none; }
}

/* =================
        CONTAINER & LAYOUT
 ================= */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 18px;
}

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

.text-section {
  background: var(--accent);
  border-radius: 14px;
  padding: 32px 18px;
  position: relative;
  box-shadow: 0 2px 8px 0 rgba(36,104,54,0.08);
}

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

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 2px 16px -4px rgba(110, 88, 60, 0.09);
  transition: box-shadow 0.22s, transform 0.22s;
}
.card:hover {
  box-shadow: 0 8px 42px -4px rgba(110, 88, 60, 0.14);
  transform: translateY(-2px) scale(1.013);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  padding: 20px 20px 28px 20px;
}

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin-bottom: 8px;
}
.feature-grid > div {
  background: #fffbed;
  border-radius: 20px;
  box-shadow: 0 1px 8px 0 rgba(195,170,120,0.11);
  flex: 1 1 260px;
  min-width: 235px;
  max-width: 320px;
  margin-bottom: 20px;
  padding: 28px 18px 22px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  border-left: 6px solid var(--retro-yellow);
  position: relative;
  transition: box-shadow 0.19s, transform 0.18s;
}
.feature-grid > div:hover {
  box-shadow: 0 6px 22px 0 rgba(180,100,40,0.13);
  transform: translateY(-3px) scale(1.015);
  border-left: 6px solid var(--retro-orange);
}
.feature-grid img {
  width: 44px;
  height: 44px;
  margin-bottom: 8px;
  display: block;
}
.feature-grid h3 {
  margin-bottom: 0;
}
.feature-grid span {
  color: #246836;
  font-weight: bold;
  font-size: 1.05rem;
  margin-top: 4px;
}

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

/* ===========
    TESTIMONIALS
 =========== */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff6ec;
  border-radius: 18px;
  box-shadow: 0 2px 12px 0 rgba(175,100,30,0.09);
  font-size: 1.08rem;
  margin-bottom: 20px;
  color: #372710 !important;
  border-left: 6px solid var(--retro-blue);
  transition: box-shadow 0.2s;
}
.testimonial-card:hover {
  box-shadow: 0 4px 21px 0 rgba(100,80,60,0.16);
  border-left: 6px solid var(--retro-red);
}
.testimonial-card p {
  margin-bottom: 4px;
  color: #3a261b;
  font-style: italic;
}
.testimonial-card span {
  font-size: 1rem;
  color: #246836;
  font-family: 'Montserrat', 'Open Sans', Arial;
}

@media (max-width: 768px) {
  .feature-grid {
    flex-direction: column;
    gap: 18px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    font-size: 1rem;
  }
}

/* ================
   HEADER & NAVIGATION
 ================ */
header {
  width: 100%;
  background: var(--primary);
  color: #fff;
  position: relative;
  z-index: 100;
  border-bottom: 4px solid var(--retro-yellow);
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.logo img {
  height: 54px;
  width: auto;
  background: #fffbed;
  border-radius: 13px;
  padding: 3px 9px;
  border: 2px solid var(--retro-yellow);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.main-nav a {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-weight: 600;
  color: #fff6ec;
  font-size: 1rem;
  letter-spacing: 0.08em;
  padding: 5px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.18s, color 0.18s;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--retro-yellow);
  border-bottom: 2px solid var(--retro-yellow);
}

.btn-primary {
  background: var(--retro-orange);
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.06rem;
  font-weight: bold;
  letter-spacing: 0.045em;
  padding: 10px 26px;
  border: none;
  border-radius: 32px;
  cursor: pointer;
  box-shadow: 0 2px 10px 0 rgba(180,120,20,0.10);
  transition: background 0.19s, box-shadow 0.20s, transform 0.21s;
  margin-left: 20px;
  position: relative;
  z-index: 2;
  text-align: center;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--retro-red);
  color: #fffbed;
  box-shadow: 0 6px 18px -4px rgba(175,80,30,0.14);
  transform: translateY(-2px) scale(1.03);
}

@media (max-width: 1020px) {
  .main-nav {
    gap: 14px;
  }
}

/* =============
   MOBILE NAVIGATION
 =============*/
.mobile-menu-toggle {
  display: none;
  background: var(--retro-yellow);
  color: #246836;
  font-size: 2.1rem;
  border: none;
  padding: 3px 14px 2px 14px;
  border-radius: 9px;
  cursor: pointer;
  margin-left: 10px;
  box-shadow: 0 2px 8px 0 rgba(220,180,70,0.12);
  z-index: 1201;
  position: relative;
  transition: background 0.18s, color 0.18s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--retro-orange);
  color: #fff;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: #fffbed;
  box-shadow: 0 0 44px 0 rgba(130,110,70,0.16);
  z-index: 1200;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  transform: translateX(-100%);
  transition: transform 0.37s cubic-bezier(.14, .87, .37, 1), opacity 0.25s;
  opacity: 0;
  padding: 0;
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
  opacity: 1;
}
.mobile-menu-close {
  font-size: 2.2rem;
  color: #246836;
  background: transparent;
  border: none;
  align-self: flex-end;
  margin: 22px 19px 0 0;
  cursor: pointer;
  transition: color 0.16s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--retro-red);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  margin-top: 44px;
  align-items: flex-start;
}
.mobile-nav a {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  color: #246836;
  font-size: 1.15rem;
  font-weight: 600;
  padding: 11px 30px;
  border-radius: 9px;
  margin-left: 10px;
  margin-right: 10px;
  margin-bottom: 2px;
  transition: background 0.15s, color 0.17s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--retro-yellow);
  color: #4b3326;
}

@media (max-width: 990px) {
  .main-nav,
  .btn-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
/* Hamburger always on top */
@media (max-width: 990px) {
  .logo {
    z-index: 1300;
  }
}

/* =================
   FOOTER
 ================= */
footer {
  background: #f9eac8;
  color: #4b3326;
  border-top: 4px solid var(--retro-yellow);
  padding: 0;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
  justify-content: center;
  padding: 28px 8px 24px 8px;
}
.footer-menu {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 10px;
}
.footer-menu a {
  color: #246836;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.04em;
  transition: color 0.18s;
  border-bottom: 2px solid transparent;
}
.footer-menu a:hover, .footer-menu a:focus {
  color: var(--retro-orange);
  border-bottom: 2px solid var(--retro-orange);
}
.footer-contact {
  font-size: 1rem;
  color: #4b3326;
  text-align: center;
}
.footer-brand img {
  height: 38px;
  margin-top: 8px;
  display: block;
}

@media (max-width: 700px) {
  footer .container {
    flex-direction: column;
    gap: 12px;
    padding: 22px 6px 10px 6px;
  }
  .footer-menu { gap: 12px; }
  .footer-brand img { margin-top: 4px; }
}

/* ===============================
   SPACING & FLEXBOX ALIGNMENT CLASSES
   =============================== */
.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;
}

/* ============================
   COOKIE CONSENT BANNER & MODAL
   ============================ */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fffbed;
  color: #4b3326;
  font-size: 1.08rem;
  padding: 28px 16px 24px 16px;
  border-top: 4px solid var(--retro-yellow);
  box-shadow: 0 -4px 38px 0 rgba(125,95,40,0.12);
  z-index: 10500;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  animation: cookiebanner-slidein 0.45s cubic-bezier(.16, .76, .3, 1) 1;
}
@keyframes cookiebanner-slidein {
  from { transform: translateY(120%); opacity: 0; }
  to   { transform: translateY(0);   opacity: 1; }
}
.cookie-banner .cookie-btn-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 13px;
}

.cookie-btn {
  background: var(--retro-yellow);
  color: #246836;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.03rem;
  border: none;
  border-radius: 24px;
  padding: 7px 22px;
  margin: 0 6px;
  cursor: pointer;
  box-shadow: 0 1.5px 10px -2px rgba(130,100,30,0.07);
  transition: background 0.13s, color 0.13s, box-shadow 0.12s;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--retro-orange);
  color: #fff;
  box-shadow: 0 4px 12px 0 rgba(175,80,30,0.10);
}

/* Cookie Banner Modal */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  z-index: 12000;
  background: rgba(36,104,54,0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cookies-modal-fade-in 0.22s;
}
@keyframes cookies-modal-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.cookie-modal {
  background: #fffbed;
  border-radius: 18px;
  box-shadow: 0 8px 62px 0 rgba(80,60,10,0.19);
  max-width: 430px;
  width: 94vw;
  padding: 36px 20px 28px 20px;
  position: relative;
  z-index: 12001;
  color: #4b3326;
  border: 3px dashed var(--retro-yellow);
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: cookiemodal-slide-in 0.33s cubic-bezier(.36, .9, .38, 1.16) 1;
}
@keyframes cookiemodal-slide-in {
  from { transform: translateY(70px) scale(0.98); opacity: 0.2; }
  to   { transform: translateY(0px) scale(1); opacity: 1; }
}

.cookie-modal h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--primary);
  margin-bottom: 5px;
  font-size: 1.19rem;
}
.cookie-modal-close {
  position: absolute;
  top: 16px; right: 17px;
  background: transparent;
  border: none;
  font-size: 1.7rem;
  color: #246836;
  cursor: pointer;
  transition: color 0.17s;
  z-index: 12200;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: var(--retro-red);
}

.cookie-categories {
  margin: 10px 0 12px 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cookie-category label {
  font-size: 1rem;
  color: #4b3326;
  font-family: 'Open Sans', Arial;
}
/* Custom retro toggle */
.retro-toggle {
  appearance: none;
  width: 36px;
  height: 20px;
  background: #F9E79F;
  border-radius: 15px;
  position: relative;
  outline: none;
  transition: background 0.17s;
  border: 1.5px solid #EDD979;
  margin-right: 5px;
}
.retro-toggle:checked {
  background: #F79B2E;
}
.retro-toggle:before {
  content: '';
  display: block;
  position: absolute;
  left: 2.5px;
  top: 2.5px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px 0 rgba(190,160,80,0.10);
  transition: left 0.17s;
}
.retro-toggle:checked:before {
  left: 16px;
}

.cookie-category input[disabled],
.cookie-category input[readonly] {
  opacity: 0.55;
  pointer-events: none;
}

.cookie-modal .cookie-btn-row {
  justify-content: flex-start;
}

/* ===================
   RESPONSIVE/UTILITY
 =================== */
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  .footer-contact { font-size: 0.94rem; }
  .container {
    padding: 0 7px;
  }
  section {
    padding: 26px 4px;
    margin-bottom: 38px;
    border-radius: 16px;
  }
  .content-wrapper { gap: 18px; }
  .feature-grid > div, .feature-item {
    min-width: unset;
    max-width: 100%;
    width: 100%;
    padding: 18px 7px 15px 13px;
    border-radius: 13px;
  }
  .testimonial-card {
    border-radius: 12px;
    padding: 15px 9px;
    font-size: 0.97rem;
  }
}

@media (max-width: 480px) {
  html { font-size: 14px; }
  .footer-contact { font-size: 0.89rem; }
  .btn-primary { padding: 8px 13px; font-size: 0.97rem; }
  h1 { font-size: 1.45rem; }
  h2 { font-size: 1.16rem; }
  h3 { font-size: 1rem; }
  .cookie-modal { padding: 22px 8px 15px 8px; }
}

/* ===============
    FORM ELEMENTS (futureproof)
 ===============*/
input, select, textarea {
  font-family: 'Open Sans', Arial, sans-serif;
  border-radius: 6px;
  border: 1px solid #b8b8a7;
  padding: 9px 13px;
  background: #fffbed;
  color: #4b3326;
  font-size: 1.05rem;
  margin-bottom: 15px;
  transition: border-color .19s, box-shadow .17s;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--retro-yellow);
  box-shadow: 0 2px 8px 0 rgba(249,231,159,0.14);
}
button {
  font-family: inherit;
}

/* ===============
    RETRO MICRO-INTERACTIONS
 ===============*/
button, .btn-primary, .cookie-btn {
  transition: background 0.17s, color 0.17s, box-shadow 0.17s, transform 0.18s;
}
/* Subtle scale for micro-interaction */
button:active, .btn-primary:active, .cookie-btn:active {
  transform: scale(0.97);
}

/* ===============
   RETRO PATTERNS/ACCENT BOARDERS (optional)
 ===============*/
hr {
  border: none;
  height: 5px;
  background: repeating-linear-gradient(90deg, #F9E79F, #F9E79F 14px, #F3F5EA 14px, #F3F5EA 26px);
  border-radius: 9px;
  margin: 30px 0;
}

/* ===============
   MISC UTILITIES
 ===============*/
.relative { position: relative; }
.text-center { text-align: center; }
.flex-row { display: flex; flex-direction: row; }
.flex-column { display: flex; flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.align-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-20 { gap: 20px; }
.mt-3 { margin-top: 18px; }
.mb-3 { margin-bottom: 18px; }

/* Hide visually, keep for a11y */
.visually-hidden {
  border: 0;
  clip: rect(1px,1px,1px,1px);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}
