/* --- 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;
}
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: var(--accent, #F5F3ED);
  color: #352c21;
  min-height: 100vh;
}
ul, ol {
  padding-left: 1.5em;
  margin-bottom: 1em;
}
a {
  color: var(--primary, #29624E);
  text-decoration: underline;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: var(--secondary, #BED48A);
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
* {
  box-sizing: border-box;
}

/* --- BRAND VINTAGE RETRO VARIABLES --- */
:root {
  --primary: #29624E; /* Forest Green */
  --primary-dark: #1C4737;
  --secondary: #BED48A; /* Pistachio */
  --accent: #F5F3ED; /* Ivory */
  --retro-orange: #EC8452; /* Accent Retro Orange */
  --retro-brown: #A97649; /* Retro tan/brown */
  --retro-blue: #8AABBA; /* Dusty Blue */
  --retro-yellow: #E9C66A; /* Mustard Yellow */
  --retro-red: #C95A49; /* Brick Red */
  --card-bg: #FFF8EA;
  --testimonial-bg: #FAF6EE;
  --footer-bg: #2E4F3E;
  --footer-text: #EAD3C5;
  --cookie-bg: #3E2F28;
  --cookie-text: #FEF9F3;
  --shadow: 0 2px 10px 0px rgba(41, 98, 78, 0.07);
}

body {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  background: var(--accent);
  color: #352c21;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Arial Rounded MT Bold', Arial, sans-serif;
  color: var(--primary);
  line-height: 1.15;
  letter-spacing: 0.02em;
  font-weight: 700;
  margin-bottom: 16px;
  text-shadow: 0 2px 0px #ded2b7;
}
h1 {
  font-size: 2.4rem;
  margin-bottom: 20px;
  font-family: 'Montserrat', 'Futura', 'Arial Rounded MT Bold', Arial, sans-serif;
}
h2 {
  font-size: 1.7rem;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.2rem;
  margin-bottom: 14px;
}
.section h1, .section h2, .section h3 { margin-bottom: 18px; }

p, li, blockquote {
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  margin-bottom: 0.6em;
  color: #352c21;
}
strong { font-weight: 700; }
small { font-size: 0.85em; color: #616060; }

blockquote {
  font-style: italic;
  background: repeating-linear-gradient(135deg, #F3E8D3, #F5F3ED 8px, #F3E8D3 16px);
  border-left: 6px solid var(--retro-orange);
  padding: 18px 20px;
  margin: 12px 0 6px 0;
  color: #443a26;
  border-radius: 18px 8px 18px 8px;
  box-shadow: var(--shadow);
}

/* --- CONTAINERS & LAYOUTS --- */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--card-bg);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 28px 24px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 260px;
}
.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;
  background: var(--testimonial-bg);
  padding: 20px;
  border-radius: 18px 8px 18px 8px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  margin-top: 15px;
  flex-direction: row;
  border: 2px dashed var(--retro-orange);
}
.testimonial-meta {
  font-family: 'Montserrat', 'Arial Rounded MT Bold', Arial, sans-serif;
  color: var(--retro-red);
  font-size: 1rem;
  font-style: normal;
  letter-spacing: 0.01em;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.icons-row {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-top: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.footer-social {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 18px;
  margin-bottom: 8px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}
.faq ul, .tips ul, .resources ul {
  margin-bottom: 18px;
}


/* --- HEADER & NAV --- */
header {
  background: #F9EFDF;
  border-bottom: 6px solid var(--retro-yellow);
  box-shadow: 0 4px 22px rgba(124, 69, 31,0.06);
  position: relative;
  z-index: 70;
}
header .container {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  min-height: 78px;
  gap: 18px;
}
header nav {
  display: flex;
  gap: 20px;
  align-items: center;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--primary);
  font-weight: 700;
  padding: 6px 15px;
  border-radius: 11px 5px 11px 5px;
  text-decoration: none;
  letter-spacing: 0.045em;
  font-size: 1.04rem;
  background: transparent;
  border: 2px solid transparent;
  transition: background 0.2s, color 0.2s, border 0.2s;
}
header nav a:hover, header nav a:focus {
  background: var(--retro-yellow);
  color: #372d1a;
  border-color: var(--retro-orange);
}
.cta-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  background: var(--retro-orange);
  color: #fff;
  border: none;
  padding: 10px 30px;
  font-size: 1.1rem;
  font-weight: bold;
  border-radius: 19px 7px 19px 7px;
  box-shadow: 0 2px 16px rgba(201,90,73,0.09);
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.18s, color 0.2s, transform 0.14s;
  text-decoration: none;
  margin-left: 18px;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--retro-red);
  color: #fffbe9;
  transform: translateY(-2px) scale(1.03);
}

header img {
  width: 190px;
  height: auto;
  margin-right: 15px;
}

/* --- MOBILE MENU --- */
.mobile-menu-toggle {
  display: none;
  background: var(--retro-brown);
  color: #fffce0;
  border: none;
  font-size: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 17px 6px 17px 6px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-left: 15px;
  z-index: 201;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.mobile-menu-toggle:active, .mobile-menu-toggle:focus {
  background: var(--retro-orange);
  color: #fff;
  outline: 2px solid var(--secondary);
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: fixed;
  top: 0;
  left: 0;
  width: 82vw;
  max-width: 380px;
  height: 100vh;
  background: #FFF8EA;
  border-right: 5px solid var(--retro-yellow);
  box-shadow: 4px 0 32px rgba(145, 97, 43, 0.13);
  transform: translateX(-105%);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(.7,0,.25,1), opacity 0.24s;
  z-index: 2001;
  padding: 32px 20px 16px 24px;
}
.mobile-menu.open {
  transform: translateX(0%);
  opacity: 1;
}
.mobile-menu .mobile-menu-close {
  background: none;
  color: var(--retro-orange);
  border: none;
  font-size: 2.5rem;
  position: absolute;
  right: 20px;
  top: 18px;
  cursor: pointer;
  z-index: 203;
  padding: 2px 11px;
  transition: background 0.2s, color 0.2s;
  border-radius: 9px;
}
.mobile-menu .mobile-menu-close:hover, .mobile-menu .mobile-menu-close:focus {
  background: var(--retro-brown);
  color: #fffbe6;
}
.mobile-nav {
  margin-top: 55px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}
.mobile-nav a {
  display: block;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.16rem;
  color: var(--primary);
  background: transparent;
  border-radius: 11px 7px 11px 7px;
  padding: 13px 11px;
  margin-left: -7px;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: background .16s, color .16s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--retro-yellow);
  color: var(--retro-red);
}

/* --- HERO SECTIONS --- */
.hero {
  width: 100%;
  background: repeating-linear-gradient(128deg, #F3E8D3, #F5F3ED 16px, #F3E8D3 32px);
  padding: 54px 0 30px 0;
  box-shadow: 0 8px 36px 0 rgba(41,98,78,0.05);
  border-bottom: 5px dotted var(--retro-brown);
  margin-bottom: 44px;
}
.hero h1 {
  color: var(--retro-red);
  text-shadow: 0 3px 0 #F5F3ED;
}
.hero .content-wrapper {
  gap: 15px;
  align-items: flex-start;
}

/* --- TESTIMONIALS --- */
.testimonials .testimonial-card {
  background: #FFF9ED;
  border: 2px solid var(--retro-yellow);
  box-shadow: 0 3px 13px 0px rgba(233,198,106,0.13);
  color: #192214;
}
.testimonials blockquote {
  color: #352c21;
}

/* --- FOOTER --- */
footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 38px 0 16px 0;
  font-size: 1.03rem;
  margin-top: 44px;
}
footer .container {
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
footer nav {
  display: flex;
  gap: 28px;
  margin-bottom: 7px;
}
footer nav a {
  color: var(--footer-text);
  text-decoration: none;
  font-family: 'Montserrat', Arial, sans-serif;
  letter-spacing: 0.03em;
  font-size: 0.97rem;
  padding: 5px 13px;
  border-radius: 9px;
  transition: background 0.2s, color 0.2s;
}
footer nav a:focus, footer nav a:hover {
  background: var(--retro-yellow);
  color: var(--primary);
}
.copyright {
  color: #e6e1d9;
  margin-top: 10px;
  text-align: center;
  font-size: 0.92rem;
}

/* --- BUTTONS --- */
button, .cta-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  outline: none;
  border: none;
}
button:focus-visible, .cta-btn:focus-visible {
  box-shadow: 0 0 0 3px var(--retro-yellow);
}

/* --- CARDS --- */
.card {
  border: 2px solid var(--retro-yellow);
  box-shadow: var(--shadow);
  transition: box-shadow 0.18s, border 0.18s, transform 0.19s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 6px 20px 0px rgba(233,198,106,0.18);
  border-color: var(--retro-orange);
  transform: translateY(-2px) scale(1.01);
}

/* --- CATEGORY & ICONS ROWS --- */
.icons-row img {
  width: 48px;
  height: 48px;
  padding: 7px;
  background: #F7E0D0;
  border-radius: 11px 6px 11px 6px;
  box-shadow: 0 2px 6px #d8be9e24;
  border: 2px solid var(--retro-orange);
}

/* --- INPUTS/EMAIL --- */
input, textarea, select {
  font-family: 'Roboto', Arial, sans-serif;
  padding: 10px 13px;
  border: 2px solid var(--retro-yellow);
  border-radius: 12px 5px 12px 5px;
  background: #FFF9F1;
  color: #352c21;
  font-size: 1.09rem;
  margin-bottom: 12px;
  transition: border-color 0.16s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--retro-orange);
  outline: none;
}

/* --- NEWSLETTER --- */
.newsletter .content-wrapper {
  background: #fff9ed;
  border-radius: 17px 7px 17px 7px;
  padding: 24px 20px;
  box-shadow: var(--shadow);
}
.newsletter h2 {
  color: var(--retro-blue);
}

/* --- Smooth Transitions --- */
.section, .card, .cta-btn, .testimonial-card, .mobile-menu, .mobile-menu-toggle, footer nav a {
  transition: box-shadow 0.18s, background 0.18s, color 0.18s, border 0.18s, transform 0.14s;
}

/* --- MICRO-INTERACTIONS --- */
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 8px 30px 0px rgba(201,90,73,0.07);
  border-color: var(--retro-orange);
  background: #fff5e1;
}

/* --- Cookie Consent Banner & Modal --- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--cookie-bg);
  color: var(--cookie-text);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px 18px 22px 18px;
  gap: 24px;
  border-top: 6px solid var(--retro-yellow);
  box-shadow: 0 -2px 18px #31140c23;
  font-size: 1.12rem;
  animation: cookie-slide-in 0.6s cubic-bezier(.7,0,.25,1);
}
@keyframes cookie-slide-in {
  from { transform: translateY(110%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 13px;
  align-items: center;
}
.cookie-banner button {
  border: none;
  border-radius: 13px 5px 13px 5px;
  padding: 10px 25px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  cursor: pointer;
  margin: 0 1px;
  background: var(--retro-yellow);
  color: #251501;
  font-weight: 600;
  transition: background 0.18s, color 0.13s;
}
.cookie-banner button.accept {
  background: var(--retro-orange);
  color: #fff;
}
.cookie-banner button.reject {
  background: var(--retro-blue);
  color: #fff;
}
.cookie-banner button.settings {
  background: var(--retro-yellow);
  color: #352c21;
  border: 2px solid var(--retro-brown);
}
.cookie-banner button:hover, .cookie-banner button:focus {
  filter: brightness(0.97) contrast(1.15);
  outline: 2px solid var(--retro-red);
}

/* Modal overlay for cookie preferences */
.cookie-modal-overlay {
  display: none;
  position: fixed;
  z-index: 4000;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  background: rgba(46,34,28, 0.54);
  align-items: center;
  justify-content: center;
  animation: fadein .3s cubic-bezier(.7,0,.25,1);
}
.cookie-modal-overlay.open {
  display: flex;
}
.cookie-modal {
  background: #FFF8EA;
  color: #382e23;
  border-radius: 22px 12px 22px 12px;
  max-width: 410px;
  width: 92vw;
  padding: 36px 32px 24px 32px;
  box-shadow: 0 6px 36px #372c1866;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: cookie-modal-pop .38s cubic-bezier(.86,0,.62,1);
}
@keyframes cookie-modal-pop {
  from { transform: scale(0.90); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.cookie-modal h3 {
  font-size: 1.28rem;
  margin-bottom: 8px;
  color: var(--retro-orange);
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 9px;
}
.cookie-category label {
  font-size: 1.09rem;
  font-family: 'Montserrat', Arial, sans-serif;
  margin-right: 7px;
}
.cookie-category input[type="checkbox"] {
  accent-color: var(--retro-orange);
  width: 22px;
  height: 22px;
  border-radius: 6px;
  margin-left: 4px;
}
.cookie-modal .close-cookie-modal {
  position: absolute;
  top: 11px;
  right: 19px;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--retro-orange);
  cursor: pointer;
  padding: 4px 7px;
  border-radius: 8px;
  z-index: 10;
}
.cookie-modal .close-cookie-modal:hover, .cookie-modal .close-cookie-modal:focus {
  background: var(--retro-yellow);
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 1100px) {
  header .container {
    max-width: 98vw;
    padding: 0 7vw;
  }
  .container {
    max-width: 96vw;
    padding: 0 4vw;
  }
}
@media (max-width: 900px) {
  .hero {
    padding: 38px 0 18px 0;
  }
  header img {
    width: 127px;
  }
  .section {
    padding: 32px 7vw;
  }
}
@media (max-width: 768px) {
  .container, .footer .container {
    max-width: 99vw;
    padding: 0 3vw;
  }
  .content-wrapper {
    gap: 16px;
  }
  .section {
    margin-bottom: 36px;
    padding: 22px 4vw;
  }
  header .container {
    flex-direction: row;
    gap: 9px;
  }
  header nav {
    display: none;
  }
  .cta-btn {
    padding: 10px 18px;
    font-size: 1rem;
    margin-left: 0;
  }
  .mobile-menu-toggle {
    display: flex;
    margin-left: 0;
  }
  .card-container, .content-grid {
    flex-direction: column;
    gap: 18px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
  }
  .feature-item {
    gap: 10px;
  }
  .icons-row {
    gap: 16px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
}
@media (max-width: 500px) {
  .section {
    padding: 10px 0;
    margin-bottom: 24px;
  }
  h1 {
    font-size: 1.25rem;
  }
  h2 {
    font-size: 1.06rem;
  }
  .footer-social img {
    width: 39px;
    height: 39px;
  }
  .cookie-modal {
    padding: 20px 8px 14px 16px;
    max-width: 96vw;
  }
  .mobile-menu {
    max-width: 98vw;
  }
}

/* --- UTILITY --- */
.mt-2 { margin-top: 16px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }

/* --- SECTIONS FOR TYPOGRAPHY SCALE --- */
h1 { font-size: 2.2rem; }
h2 { font-size: 1.38rem; }
h3 { font-size: 1.13rem; }
p, li, blockquote { font-size: 1.01rem; }

@media (min-width: 601px) {
  h1 { font-size: 2.6rem; }
  h2 { font-size: 1.64rem; }
  h3 { font-size: 1.17rem; }
  p, li, blockquote { font-size: 1.09rem; }
}

/* --- SPECIAL: BLOG LATEST, NEWSLETTER, ETC --- */
.blog-latest ul, .newsletter ul {
  margin-bottom: 8px;
}
.newsletter a.cta-btn {
  margin-top: 13px;
}
.blog-latest div span {
  font-weight: 700;
  font-family: 'Montserrat', Arial, sans-serif;
  margin-right: 4px;
  color: var(--primary-dark);
}
.blog-latest div a {
  color: var(--retro-orange);
  text-decoration: none;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 8px;
}
.blog-latest div a:hover, .blog-latest div a:focus {
  background: var(--retro-yellow);
}

.contact-main .footer-social {
  margin-top: 13px;
}

.guide a.cta-btn, .faq a.cta-btn {
  margin-top: 10px;
}

/* --- DISTINCT VINTAGE PATTERNS: DOTS, DASHES, ETC --- */
.section:not(.hero):not(.newsletter):not(.testimonials) {
  background: repeating-linear-gradient(-45deg,#ffefd5 0,#fff9f1 20px,#ffefd5 40px);
  border-radius: 18px 8px 18px 8px;
  box-shadow: 0 2px 12px #e4d0b8a1;
}

/* --- PRINT BUTTONS / LINKS IF EVER USED --- */
.print-btn {
  border: 2px solid var(--retro-red);
  color: var(--retro-red);
  background: transparent;
  padding: 7px 19px;
  border-radius: 13px 5px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  cursor: pointer;
  margin-top: 12px;
  transition: background 0.16s, color 0.17s;
}
.print-btn:hover, .print-btn:focus {
  background: var(--retro-yellow);
  color: #372d1a;
}

/* ------- OVERRIDES/ACCESSIBILITY ------- */
::selection {
  background: var(--retro-yellow);
  color: #372d1a;
}

/* hide mobile menu by default on desktop */
@media (min-width: 769px) {
  .mobile-menu { display: none !important; }
  .mobile-menu-toggle { display: none !important; }
}
/* show mobile menu button on mobile tablets */
@media (max-width: 768px) {
  .mobile-menu-toggle { display: flex; }
}

/* --- Prevent overlap --- */
section, .section, .testimonial-card, .card {
  margin-bottom: 20px;
}

/* Extra: visually hidden for accessibility (eg. in cookies modal) */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/*********************
  --------------
      END CSS
  --------------
*********************/
