/* =======================================================
   CSS RESET & VINTAGE RETRO BASICS
   ======================================================= */
html {
  box-sizing: border-box;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  background: #f6f6f6;
  color: #3b312a;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0.01em;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}
img, picture {
  max-width: 100%;
  display: block;
  height: auto;
}
a {
  color: #12806a;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover,
a:focus {
  color: #f6a641;
  text-decoration-skip-ink: auto;
}
ul, ol {
  padding-left: 1.2em;
}

/* ===============================
   BRAND VINTAGE RETRO COLOR PALETTE & FONTS
   =============================== */
:root {
  --c-primary: #12806a;
  --c-primary-dark: #11705e;
  --c-secondary: #ffd479; /* vintage straw yellow */
  --c-accent: #f6f6f6;
  --c-gold: #f6a641;
  --c-red: #b73e2b;
  --c-orange: #ffb57a;
  --c-brown: #785548;
  --c-text-main: #3b312a;
  --c-bg-header: #fff8e1;
}
@import url('https://fonts.googleapis.com/css?family=Merriweather:700,900&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap');
h1, h2, h3, h4, .brand-font {
  font-family: 'Merriweather', 'Georgia', serif;
  font-weight: 900;
  text-shadow: 1px 2px 0 #ebdbb2, 3px 3px 0 #ffd479;
  letter-spacing: 0.02em;
}
h1 {
  font-size: 2.3rem;
  margin-bottom: 16px;
}
h2 {
  font-size: 1.7rem;
  margin-bottom: 12px;
}
h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}
strong {
  font-weight: 700;
}

@media (max-width: 500px) {
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.23rem; }
  h3 { font-size: 1rem; }
}

/* =============================
   LAYOUT - CONTAINERS & FLEX PATTERNS
   ============================= */
.container {
  width: 95%;
  max-width: 1050px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  gap: 0;
  /* Prevents possible hidden overflows */
  overflow-x: visible;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 0;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff8e1;
  border-radius: 14px;
  box-shadow: 0 2px 7px rgba(120,85,72,0.13);
  border: 2px solid #ffe0a8;
  padding: 24px 18px;
}
.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;
  background: #fff8e1;
  box-shadow: 0 2px 15px rgba(120,85,72,0.11);
  border-radius: 13px;
  margin-bottom: 20px;
  border: 2px solid #ffe0a8;
  color: #3b312a;
}
.testimonial-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* =========================
   HERO, CTA, SECTIONS
   ========================= */
.hero {
  background: repeating-linear-gradient(135deg, #ffe0a8 0 10px, #f6a641 10px 20px);
  border-bottom: 8px dashed #b73e2b;
  padding: 0;
}
.hero .container {
  padding-top: 50px;
  padding-bottom: 50px;
  align-items: center;
}
.hero h1 {
  color: #12806a;
  text-shadow: 1px 2px #fff8e1, 2px 2px #ffd479;
}
.hero p {
  color: #785548;
  font-size: 1.13rem;
  margin-bottom: 20px;
}
.cta-banner {
  background: #12806a;
  color: #fff8e1;
  border-top: 6px dotted #ffd479;
  border-radius: 0 0 24px 24px;
  padding: 0 20px;
}
.cta-banner .content-wrapper {
  align-items: center;
  text-align: center;
}
.cta-banner h2 {
  color: #fff8e1;
  text-shadow: 1px 2px #11705e;
}
.section {
  background: #fffaf3;
  border-radius: 15px;
  box-shadow: 0 1px 6px rgba(120,85,72,0.06);
}
.text-section {
  background: #fffbe0;
  border-left: 10px solid #12806a;
  border-radius: 12px 24px 24px 12px;
  padding: 30px 18px;
  box-shadow: 0 1px 5px rgba(120,85,72,0.11);
}

/* =========================
   PRIMARY / SECONDARY BUTTONS (CTA)
   ========================= */
.cta-primary, .btn, button, input[type="submit"] {
  background: #f6a641;
  color: #3b312a;
  font-family: 'Merriweather', serif;
  font-size: 19px;
  border-radius: 12px;
  padding: 10px 34px;
  border: 0;
  font-weight: bold;
  text-shadow: none;
  box-shadow: 0 2px 9px rgba(120,85,72,0.12);
  letter-spacing: 1px;
  transition: background 0.18s, color 0.18s, transform 0.23s;
  line-height: 1.2;
  outline: none;
  cursor: pointer;
  margin-top: 18px;
  margin-bottom: 6px;
}
.cta-primary:hover, .btn:hover, button:hover, input[type="submit"]:hover, .cta-primary:focus {
  background: #12806a;
  color: #fff8e1;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 30px rgba(120,85,72,0.10);
}
.cta-secondary {
  background: #fff8e1;
  color: #12806a;
  border: 2px solid #12806a;
  border-radius: 11px;
  font-size: 18px;
  font-family: 'Merriweather', serif;
  padding: 6px 25px;
  margin-top: 10px;
  box-shadow: 0 1px 3px rgba(120,85,72,0.09);
  text-shadow: none;
  font-weight: 700;
  transition: background 0.15s, color 0.15s, border 0.15s;
}
.cta-secondary:hover, .cta-secondary:focus {
  background: #12806a;
  color: #fff8e1;
  border: 2px solid #f6a641;
}

/* ==================  
   HEADER & NAV
   ================== */
header {
  background: var(--c-bg-header);
  border-bottom: 4px solid #ffd479;
  box-shadow: 0 2px 14px rgba(120,85,72,0.07);
  z-index: 1100;
  position: relative;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: row;
  padding: 17px 0 17px 0;
  gap: 26px;
}
header img {
  height: 44px;
  width: auto;
  margin-right: 16px;
}
header nav {
  display: flex;
  align-items: center;
  gap: 25px;
}
header nav a {
  color: #12806a;
  font-family: 'Merriweather', serif;
  font-size: 1.01rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: bold;
  padding: 4px 11px;
  border-radius: 7px;
  position: relative;
  transition: background 0.16s, color 0.16s;
}
header nav a:hover, header nav a:focus {
  background: #ffd479;
  color: #b73e2b;
}
header nav .cta-primary {
  margin-left: 23px;
  margin-bottom: 0;
  color: #3b312a;
}
.mobile-menu-toggle {
  background: #f6a641;
  border: none;
  color: #12806a;
  font-size: 2.10rem;
  display: none;
  border-radius: 10px;
  padding: 5px 18px 0 18px;
  margin-left:18px;
  transition: background 0.15s, color 0.15s;
  cursor: pointer;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: #ffd479;
  color: #b73e2b;
}

@media (max-width: 1020px) {
  header nav {
    gap: 11px;
  }
}
@media (max-width: 900px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* =========================
   MOBILE MENU (SLIDE-IN)
   ========================= */
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #fff8e1;
  z-index: 2100;
  transform: translateX(-100vw);
  transition: transform 0.3s cubic-bezier(.68,-0.55,.27,1.55), box-shadow 0.2s;
  box-shadow: 0 6px 60px 0 rgba(120,85,72,0.25);
  padding-top: 32px;
  padding-bottom: 14px;
  opacity: 1;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  position: absolute;
  top: 24px;
  right: 22px;
  background: #12806a;
  color: #fff8e1;
  border: none;
  border-radius: 8px;
  font-size: 2.1rem;
  line-height: 1;
  padding: 2px 12px;
  cursor: pointer;
  z-index: 2110;
  transition: background 0.18s, color 0.14s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #b73e2b;
  color: #ffd479;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  margin: 60px 0 0 40px;
  width: 80vw;
  max-width: 430px;
}
.mobile-nav a {
  font-size: 1.15rem;
  color: #12806a;
  font-family: 'Merriweather', serif;
  background: none;
  border-radius: 14px;
  padding: 7px 14px;
  margin-right: 6px;
  font-weight: bold;
  transition: background 0.18s, color 0.14s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #ffd479;
  color: #b73e2b;
}

@media (min-width:901px) {
  .mobile-menu {
    display: none;
  }
}

/* =========================
   BANNERS & CARDS
   ========================= */
.card, .testimonial-card {
  box-shadow: 0 2px 15px rgba(120,85,72,0.09);
  border-radius: 12px;
  background: #fffaf3;
}
.card h3 {
  color: #12806a;
}
li {
  margin-bottom: 13px;
}
ul li:last-child {margin-bottom: auto;}

/* =========================
   TESTIMONIALS & RATINGS
   ========================= */
.testimonial-card {
  background: #fff8e1;
  border-left: 5px solid #f6a641;
  color: #3b312a;
  font-size: 1.1rem;
  position: relative;
  min-width: 250px;
}
.testimonial-card strong {
  color: #12806a;
  font-family: 'Merriweather', serif;
  font-size: 1rem;
  letter-spacing: 0.03em;
}
.testimonial-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}

/* =========================
   FOOTER
   ========================= */
footer {
  background: #12806a;
  color: #fff8e1;
  padding: 45px 0 30px 0;
  border-top: 5px dashed #f6a641;
  font-size: 0.98rem;
  margin-top: 50px;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: flex-start;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 17px;
  margin-right: 34px;
}
.footer-brand img {
  width: 54px;
  height: auto;
}
.footer-brand span {
  font-family: 'Merriweather', serif;
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 10px 0;
}
.footer-links a {
  color: #fff8e1;
  opacity: 0.83;
  font-family: 'Roboto', sans-serif;
  font-size: 1.05em;
  text-decoration: underline dashed #ffd479 0.08em;
  margin-right: 7px;
  border-radius: 4px;
  transition: color 0.13s, opacity 0.12s, background 0.13s;
  padding: 2px 7px;
}
.footer-links a:hover, .footer-links a:focus {
  color: #ffd479;
  background: rgba(22,128,106,0.14);
  opacity: 1;
}
.footer-contact,
.footer-newsletter {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 4px 0 20px 0;
  color: #fff8e1;
  font-size: 1em;
}
.footer-contact img {
  width: 18px;
  opacity: 0.93;
  vertical-align: middle;
  margin-right: 6px;
}
.footer-contact a {
  color: #ffd479;
  text-decoration: underline dotted #ffd479 0.09em;
  font-weight: 500;
}
.footer-social {
  display: flex;
  gap: 13px;
  margin: 17px 0;
}
.footer-social a {
  display: flex;
  align-items: center;
  background: #ffd479;
  border-radius: 7px;
  width: 36px;
  height: 36px;
  justify-content: center;
  transition: background 0.16s, transform 0.18s;
}
.footer-social a:hover, .footer-social a:focus {
  background: #f6a641;
  transform: scale(1.09) rotate(-5deg);
}
.footer-social img {
  width: 22px;
  height: 22px;
}
.footer-newsletter h3 {
  font-family: 'Merriweather', serif;
  font-size: 1.11rem;
  color: #ffd479;
  margin-bottom: 2px;
  letter-spacing: 0.02em;
}
.footer-newsletter p {
  font-size: 1em;
}

/* =========================
   RESPONSIVENESS (MOBILE FIRST)
   ========================= */
@media (max-width: 900px) {
  .container {
    max-width: 100%;
    padding-left: 7px;
    padding-right: 7px;
  }
  header .container,
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .footer-social {
    margin-top: 10px;
  }
}
@media (max-width: 768px) {
  .testimonial-grid,
  .content-grid,
  .card-container {
    flex-direction: column !important;
    gap: 18px;
    align-items: stretch;
  }
  .section {
    margin-bottom: 40px;
    padding: 26px 8px 26px 8px;
  }
  .footer-newsletter {
    margin-bottom: 14px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 20px;
  }
}
@media (max-width: 500px) {
  .footer-contact, .footer-newsletter, .footer-links {
    font-size: 0.91em;
    gap: 3px;
  }
  .footer-brand img {
    width: 38px;
  }
  .card, .testimonial-card {padding:12px 8px;}
  .text-section {
    padding: 12px 7px;
    border-radius: 15px;
  }
}

/* =========================
   MICRO-INTERACTIONS/ANIMATION
   ========================= */
.card, .testimonial-card, .cta-primary, .cta-secondary, .footer-social a {
  transition: box-shadow .21s, transform .25s, background .13s, color .13s;
}
.card:hover, .testimonial-card:hover {
  box-shadow: 0 5px 40px rgba(52,31,11,0.17);
  transform: scale(1.018) rotate(-0.7deg);
}

/* =========================
   COOKIE CONSENT BANNER & MODAL
   ========================= */
.cookie-consent-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fffbe0;
  color: #3b312a;
  padding: 23px 18px 17px 23px;
  z-index: 3300;
  border-top: 3px solid #f6a641;
  box-shadow: 0 -2px 14px 1px rgba(120,85,72,0.11);
  font-size: 1rem;
  animation: cookiebanner-slidein 0.5s cubic-bezier(.86,0,.07,1) 0s 1;
}
@keyframes cookiebanner-slidein {
  from {transform: translateY(120%); opacity: 0;}
  to {transform: translateY(0); opacity: 1;}
}
.cookie-consent-banner p {
  margin-right: auto;
  font-size: 1.05rem;
}
.cookie-consent-buttons {
  display: flex;
  gap: 15px;
}
.cookie-consent-banner .cookie-btn {
  display: inline-block;
  border-radius: 10px;
  border: none;
  font-family: 'Merriweather', serif;
  font-weight: bold;
  font-size: 1em;
  padding: 7px 17px;
  margin-left: 3px;
  cursor: pointer;
  transition: background 0.16s, color 0.16s;
  box-shadow: 0 1px 5px rgba(120,85,72,0.15);
}
.cookie-consent-banner .cookie-btn.accept {
  background: #12806a;
  color: #fffbe0;
}
.cookie-consent-banner .cookie-btn.reject {
  background: #b73e2b;
  color: #fffbe0;
}
.cookie-consent-banner .cookie-btn.settings {
  background: #ffd479;
  color: #3b312a;
  border: 1px solid #ffd479;
}
.cookie-consent-banner .cookie-btn:hover, .cookie-consent-banner .cookie-btn:focus {
  background: #f6a641;
  color: #12806a;
}

.cookie-modal {
  position: fixed;
  bottom: 45%;
  left: 50%;
  transform: translate(-50%, 40vh) scale(0.85);
  min-width: 320px;
  max-width: 96vw;
  max-height: 96vh;
  overflow-y: auto;
  background: #fff8e1;
  color: #3b312a;
  border-radius: 17px;
  box-shadow: 0 6px 34px 7px rgba(120,85,72,0.20);
  border: 3px solid #f6a641;
  padding: 40px 23px 30px 23px;
  z-index: 3980;
  display: none;
  animation: cookie-modal-pop 0.55s cubic-bezier(.86,0,.07,1) 0s 1;
}
.cookie-modal.open {
  display: block;
  transform: translate(-50%, 0) scale(1);
  opacity: 1;
}
@keyframes cookie-modal-pop {
  from {transform: translate(-50%,60vh) scale(0.7);opacity: 0;}
  to {transform: translate(-50%,0) scale(1);opacity: 1;}
}
.cookie-modal h2 {
  color: #12806a;
  font-size: 1.3rem;
  margin-bottom: 15px;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin: 17px 0;
}
.cookie-category {
  background: #fffaf3;
  border: 1px solid #ffd479;
  border-radius: 7px;
  padding: 10px 14px 8px 14px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.cookie-category label {
  font-weight: 500;
  font-family: 'Roboto', sans-serif;
  color: #3b312a;
  font-size: 1em;
}
.cookie-toggle {
  accent-color: #12806a;
  width: 21px;
  height: 21px;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 18px;
  margin-top: 17px;
  justify-content: flex-end;
}
.cookie-modal .close-modal {
  position: absolute;
  top: 15px;
  right: 24px;
  background: #b73e2b;
  color: #fffbe0;
  border-radius: 8px;
  border: none;
  font-size: 1.3rem;
  width: 32px;
  height: 32px;
  cursor: pointer;
  transition: background 0.15s;
}
.cookie-modal .close-modal:hover {
  background: #f6a641;
  color: #12806a;
}
@media (max-width: 500px) {
  .cookie-modal {width: 95vw;left:2vw;transform:translateY(60vh) scale(.8);}
  .cookie-modal.open {transform: translateY(0) scale(1);left:2vw;}
}

/* =========================
   MISC STYLES & RETRO TOUCHES
   ========================= */
hr {
  border: 0;
  border-top: 2px dashed #ffd479;
  margin: 37px 0 32px 0;
}
::-webkit-scrollbar {
  width: 11px;
  background: #fff8e1;
}
::-webkit-scrollbar-thumb {
  background: #f6a641;
  border-radius: 8px;
  border: 3px solid #fff8e1;
}
::-webkit-scrollbar-thumb:hover {
  background: #ffd479;
}

/* Patterned background for sections */
.section {
  background-image: repeating-linear-gradient(120deg, #fffbe0 0 15px, #ffe0a8 15px 31px);
}
@media (max-width: 768px) {
  .section { background-image: none; }
}

/* Accent retro doodle border for select elements */
.testimonial-card,
.card {
  border: 2.5px solid #ffd479;
  border-radius: 15px 9px 18px 8px;
  position: relative;
  overflow: visible;
}

/* Small retro-cornered highlight */
.card:after, .testimonial-card:after {
  content: '';
  position: absolute;
  right: 16px; top: 14px;
  width: 18px; height: 18px;
  border-radius: 0 13px 12px 0;
  border-right: 6px solid #f6a641;
  border-top: 6px solid #ffd479;
  opacity: .17;
  pointer-events: none;
}

/* Vintage shadow for hero */
.hero {
  box-shadow: 0 8px 48px -8px #ffd479 inset;
}

/* ETC OVERRIDES */
ul {margin-bottom: 10px;}
p+ul {margin-top: 9px;}
.section h2:not(:first-child) {margin-top: 18px;}

/* =========================
   FOCUS VISIBLE STATE FOR KEYBOARD USERS
   ========================= */
a:focus, button:focus, input:focus, .cta-primary:focus, .cta-secondary:focus {
  outline: 2px dotted #b73e2b;
  outline-offset: 2px;
}

/* =========================
   PRINT (optional for retro recipe style)
   ========================= */
@media print {
  body { color: #222; background: #fff !important; }
  header, footer, .cookie-consent-banner, .mobile-menu { display: none !important; }
  .section, .card, .testimonial-card { background: none; box-shadow: none; }
}
