/* ===============================
   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; }

article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block; }
body {
  line-height: 1.5; }
ol, ul {
  list-style: none; }
a {
  background-color: transparent;
  text-decoration: none;
  color: inherit;
}
img {
  border: 0;
  max-width: 100%;
  height: auto;
}
*, *::before, *::after {
  box-sizing: border-box;
}

/* ===============================
   VINTAGE RETRO THEME VARIABLES
=============================== */
:root {
  --color-primary: #236C34;
  --color-secondary: #7DB97D;
  --color-accent: #F2F8F2;
  --color-retro-yellow: #F3C969;
  --color-retro-cream: #FFF6E0;
  --color-retro-brown: #7C5E3C;
  --color-background: #FDF7EE;
  --color-muted: #E8DAC3;
  --color-dark-text: #42392D;
  --color-grey: #CCC7A6;
  --color-error: #B85C38;

  --font-display: 'Lato', 'Arial Rounded MT Bold', 'Futura', Arial, sans-serif;
  --font-body: 'Roboto', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-vintage: 'Lato', 'Didot', 'Georgia', serif;
  --border-radius: 14px;
  --border-radius-card: 18px;
  --shadow-card: 0 4px 24px 0 rgba(98, 72, 53, 0.10);
  --shadow-btn: 0 2px 8px 0 rgba(98, 72, 53, 0.10);
  --transition: 0.19s cubic-bezier(.77,0,.175,1);
}

@media (max-width: 480px) {
  html { font-size: 15px; }
}
@media (max-width: 375px) {
  html { font-size: 14px; }
}

/* ===============================
   BODY & TYPOGRAPHY
=============================== */
body {
  font-family: var(--font-body);
  background: repeating-linear-gradient(
    -45deg,
    var(--color-background),
    var(--color-background) 25px,
    var(--color-muted) 25px,
    var(--color-muted) 50px
  );
  color: var(--color-dark-text);
  min-height: 100vh;
  font-size: 1rem;
  letter-spacing: 0.01em;
  line-height: 1.7;
  /* Classic linen texture pattern overlay */
  position: relative;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-weight: 700;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
  text-shadow: 1px 1px 0px var(--color-retro-cream), 0 0 1px #bbb;
}
h1 {
  font-size: 2.4rem;
  margin-bottom: 24px;
}
h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.4rem;
  margin-bottom: 14px;
}
h4, h5, h6 {
  font-size: 1.12rem;
  margin-bottom: 8px;
}
p, ul, li, .text-section {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-dark-text);
}
strong {
  color: var(--color-primary);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 1px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-retro-cream);
  border-radius: var(--border-radius-card);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  margin: 0 auto;
  width: 100%;
  max-width: 820px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.text-section {
  margin-top: 16px;
  margin-bottom: 16px;
  padding: 16px 0;
}

/* ===============================
   HEADER & NAVIGATION
=============================== */
header {
  width: 100%;
  background: var(--color-retro-yellow);
  border-bottom: 4px solid var(--color-brown, #7C5E3C);
  box-shadow: 0 4px 12px 0 rgba(124, 94, 60, 0.05);
  position: relative;
  z-index: 50;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  padding-top: 14px;
  padding-bottom: 14px;
}
header img {
  max-height: 54px;
  width: auto;
  margin-right: 34px;
}

.main-nav {
  display: flex;
  flex-direction: row;
  gap: 28px;
  align-items: center;
}
.main-nav a {
  color: var(--color-primary);
  font-family: var(--font-display);
  padding: 8px 14px;
  border-radius: var(--border-radius);
  background: none;
  font-size: 1.08rem;
  transition: background var(--transition), color var(--transition);
}
.main-nav a.cta {
  background-color: var(--color-secondary);
  color: #fff;
  font-weight: 700;
  box-shadow: var(--shadow-btn);
  text-shadow: 1px 1px 0px #56835C22;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--color-primary);
  color: #fff;
  text-decoration: none;
}
.main-nav a.cta:hover,
.main-nav a.cta:focus {
  background: var(--color-retro-brown);
  color: #F3C969;
}

/* ===============================
   MOBILE NAVIGATION
=============================== */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  right: 18px;
  top: 20px;
  width: 46px;
  height: 46px;
  font-size: 2.2rem;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  border: none;
  z-index: 120;
  cursor: pointer;
  outline: none;
  box-shadow: var(--shadow-btn);
  transition: background var(--transition), color var(--transition);
}
.mobile-menu-toggle:active, .mobile-menu-toggle:hover {
  background: var(--color-retro-brown);
  color: var(--color-retro-cream);
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: var(--color-retro-yellow);
  box-shadow: 0 6px 44px -6px #0009;
  z-index: 2000;
  transform: translateX(-100vw);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.37s cubic-bezier(.87,0,.13,1), opacity 0.19s;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 22px 22px 0 0;
  font-size: 2.4rem;
  background: none;
  border: none;
  color: var(--color-primary);
  cursor: pointer;
  z-index: 2001;
  transition: color var(--transition);
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  color: var(--color-retro-brown);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  margin: 32px 0 0 0;
  gap: 20px;
  padding-left: 38px;
}
.mobile-nav a {
  display: block;
  padding: 16px 0;
  width: 100%;
  color: var(--color-primary);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  border-radius: var(--border-radius);
  transition: background var(--transition), color var(--transition);
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--color-secondary);
  color: #fff;
  padding-left: 14px;
}
@media (max-width: 1024px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 1025px) {
  .mobile-menu { display: none !important; }
  .mobile-menu-toggle { display: none !important; }
}

/* ===============================
   FOOTER
=============================== */
footer {
  background: var(--color-retro-yellow);
  padding: 24px 0 18px 0;
  position: relative;
  border-top: 4px solid var(--color-brown, #7C5E3C);
  box-shadow: 0 -1px 12px 0 #af874330;
  z-index: 2;
}
footer .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0px;
  flex-wrap: wrap;
}
footer img {
  width: 62px;
  margin-right: 24px;
}
.footer-nav {
  display: flex;
  flex-direction: row;
  gap: 22px;
}
.footer-nav a {
  color: var(--color-primary);
  font-family: var(--font-display);
  font-size: 1rem;
  transition: color var(--transition);
}
.footer-nav a:hover {color: var(--color-retro-brown);}
footer p {
  margin-left: auto;
  font-size: 0.96rem;
  color: var(--color-brown, #7C5E3C);
}
@media (max-width: 700px) {
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  footer img { margin: 0 0 12px 0; }
  .footer-nav { gap: 15px; }
  footer p { margin-left: 0; }
}

/* ===============================
   BUTTONS
=============================== */
.cta, .button, button, input[type="submit"] {
  font-family: var(--font-display);
  background: var(--color-retro-yellow);
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  border-radius: var(--border-radius);
  padding: 11px 26px;
  font-size: 1.12rem;
  font-weight: 700;
  box-shadow: var(--shadow-btn);
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform 0.19s;
  cursor: pointer;
  margin-top: 12px;
  margin-bottom: 8px;
  outline: none;
  letter-spacing: 1.2px;
}
.cta:hover, .button:hover, button:hover, input[type="submit"]:hover, .cta:focus {
  background: var(--color-primary);
  color: var(--color-retro-yellow);
  border-color: var(--color-retro-yellow);
  transform: translateY(-2px) scale(1.02);
}
.cta:active, .button:active, button:active {
  background: var(--color-brown, #7C5E3C);
  color: #fff;
  border-color: var(--color-brown, #7C5E3C);
}

/* ===============================
   FLEX LAYOUT PATTERNS
=============================== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.card {
  background: var(--color-retro-cream);
  border-radius: var(--border-radius-card);
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
  min-width: 240px;
  position: relative;
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.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;
  margin-bottom: 30px;
}
@media (max-width: 768px) {
  .content-grid {
    flex-direction: column;
    gap: 18px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
}

/* ===============================
   TESTIMONIALS
=============================== */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--color-accent);
  box-shadow: 0 2px 18px 0 rgba(98, 72, 53, 0.08);
  border-left: 7px solid var(--color-primary);
  border-radius: 24px 10px 24px 10px;
  font-style: italic;
  font-size: 1.09rem;
  margin-bottom: 20px;
}
.testimonial-card p {
  color: var(--color-dark-text);
  font-size: 1.1rem;
  line-height: 1.9;
  font-family: var(--font-vintage);
  margin-bottom: 0;
}
.testimonial-card span {
  color: var(--color-retro-brown);
  font-size: 1rem;
  font-style: normal;
}
.testimonial-card strong {
  color: var(--color-primary);
  font-weight: 700;
  font-size: 1.06rem;
  font-family: var(--font-display);
}

/* ===============================
   FEATURE LISTS
=============================== */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 22px;
}
ul {
  padding-left: 0;
}
ul li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 13px;
  position: relative;
}
ul li img {
  margin-right: 8px;
  display: inline-block;
  width: 28px;
  height: 28px;
}

/* ===============================
   FORMS (if present)
=============================== */
input, textarea, select {
  font-family: var(--font-body);
  border-radius: var(--border-radius);
  border: 1.5px solid var(--color-grey);
  padding: 12px 14px;
  margin-bottom: 16px;
  font-size: 1rem;
  background: var(--color-retro-cream);
  color: var(--color-dark-text);
  transition: border-color var(--transition);
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--color-primary);
}
label {
  font-size: 1rem;
  font-family: var(--font-display);
  color: var(--color-primary);
}

/* ===============================
   CARD/BORDER RETRO EFFECTS
=============================== */
.card, .content-wrapper, .section {
  box-shadow: 0 2px 18px 0 rgba(124,94,60,0.08), 0 1.5px 0 0 var(--color-muted);
  border-radius: var(--border-radius-card);
  border: 1.5px solid var(--color-muted);
  background-image: repeating-linear-gradient(135deg, #fff6e05c 0 8px, #fdf7ee00 8px 16px);
}

/* ===============================
   LINKS
=============================== */
a {
  transition: color var(--transition), text-decoration var(--transition);
}
a:focus {
  outline: 2px solid var(--color-retro-brown);
  outline-offset: 2px;
}
a:hover {
  color: var(--color-retro-brown);
  text-decoration: underline dotted var(--color-secondary);
}

/* ===============================
   BREADCRUMBS + PAGINATION (future proof)
=============================== */
.breadcrumbs, .pagination {
  display: flex;
  gap: 11px;
  align-items: center;
  font-family: var(--font-display);
  font-size: 1rem;
  margin: 26px 0 10px 0;
}
.breadcrumbs a, .pagination a {
  color: var(--color-primary);
}

/* ===============================
   SPACING & RESPONSIVE
=============================== */
.section,
.card-container,
.card,
.content-grid,
.text-image-section,
.testimonial-card,.feature-item {
  margin-bottom: 20px;
}
@media (max-width: 900px) {
  .container { padding: 0 8px; }
  .content-wrapper { max-width: 100%; }
  .section { padding: 32px 4px; }
}
@media (max-width: 660px) {
  h1 { font-size: 1.58rem; }
  h2 { font-size: 1.25rem; }
  .section { padding: 22px 2px; margin-bottom: 30px; }
  .content-wrapper { padding: 0 2px; }
}

/* ===============================
   COOKIE CONSENT BANNER & MODAL
=============================== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: var(--color-retro-brown);
  color: #fff;
  box-shadow: 0 -4px 18px 0 #0008;
  padding: 22px 18px 18px 18px;
  z-index: 4000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  border-radius: 20px 20px 0 0;
  animation: bannerIn var(--transition) ease;
}
@keyframes bannerIn {
  from { opacity: 0; transform: translateY(80px);} to {opacity: 1; transform: translateY(0);}
}
.cookie-banner button {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--border-radius);
  padding: 9px 22px;
  margin: 0 6px 0 0;
  border: 2.5px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  box-shadow: 0 1.5px 8px #fff1;
}
.cookie-banner .accept {
  background: var(--color-secondary);
  color: #fff;
  border-color: var(--color-secondary);
}
.cookie-banner .accept:focus, .cookie-banner .accept:hover {
  background: var(--color-primary);
  border-color: var(--color-retro-yellow);
}
.cookie-banner .reject {
  background: #fff;
  color: var(--color-retro-brown);
  border-color: #fff;
}
.cookie-banner .reject:focus, .cookie-banner .reject:hover {
  background: var(--color-retro-yellow);
  color: var(--color-retro-brown);
  border-color: var(--color-retro-yellow);
}
.cookie-banner .settings {
  background: var(--color-retro-yellow);
  color: var(--color-primary);
  border-color: var(--color-retro-yellow);
}
.cookie-banner .settings:focus, .cookie-banner .settings:hover {
  background: #fff;
  color: var(--color-primary);
}

/* Cookie Modal */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(66, 57, 45, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4100;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.cookie-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: var(--color-accent);
  padding: 38px 26px 28px 26px;
  border-radius: 26px;
  width: 95vw;
  max-width: 410px;
  box-shadow: 0 7px 38px 0 #8f7d6244, 0 2px 0 #d9cab4;
  color: var(--color-dark-text);
  font-family: var(--font-body);
  display: flex;
  flex-direction: column;
  gap: 15px;
  animation: modalIn 0.31s cubic-bezier(.76,.01,.19,.99);
}
@keyframes modalIn {
  from { opacity:0; transform: scale(0.87);} to {opacity: 1; transform: scale(1);}
}
.cookie-modal h3 {
  color: var(--color-primary);
  font-family: var(--font-display);
  font-size: 1.18rem;
  margin-bottom: 5px;
}
.cookie-modal label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.06rem;
  color: var(--color-primary);
  margin-bottom: 7px;
}
.cookie-modal label input[type="checkbox"] {
  accent-color: var(--color-primary);
}
.cookie-modal .save {
  margin-top: 8px;
  background: var(--color-primary);
  color: #fff;
  border: none;
}
.cookie-modal .save:focus, .cookie-modal .save:hover {
  background: var(--color-retro-brown);
}
.cookie-modal .close {
  background: none;
  color: var(--color-brown, #7C5E3C);
  border: none;
  align-self: flex-end;
  font-size: 1.6rem;
  margin-bottom: -18px;
  cursor: pointer;
}
.cookie-modal .close:hover {
  color: var(--color-primary);
}

/* ===============================
   ANIMATIONS & MICROINTERACTIONS
=============================== */
.card, .cta, .button {
  transition: box-shadow var(--transition), transform var(--transition), background var(--transition), color var(--transition);
}
.card:hover, .section:hover, .testimonial-card:hover {
  box-shadow: 0 6px 30px 0 rgba(124,94,60,0.13), 0 2.5px 0 0 var(--color-retro-yellow);
  transform: translateY(-1px) scale(1.01);
}

/* ===============================
   RETRO NOSTALGIC ELEMENTS
=============================== */
.section {
  border: 3px solid var(--color-retro-yellow);
  position: relative;
}
.section:before {
  content: "";
  display: block;
  position: absolute;
  top: -13px; left: -13px;
  width: 38px; height: 38px;
  background: url('data:image/svg+xml;utf8,<svg width="38" height="38" xmlns="http://www.w3.org/2000/svg"><rect fill="%23F3C969" rx="9" width="38" height="38"/><rect x="7" y="7" width="24" height="24" rx="5" fill="%23FFF6E0"/></svg>');
  z-index: 1;
  opacity: 0.75;
}
.section:after {
  content: "";
  display: block;
  position: absolute;
  bottom: -9px; right: -11px;
  width: 34px; height: 34px;
  background: url('data:image/svg+xml;utf8,<svg width="34" height="34" xmlns="http://www.w3.org/2000/svg"><ellipse cx="17" cy="17" rx="17" ry="17" fill="%237DB97D" fill-opacity="0.50"/></svg>') no-repeat;
  z-index: 1;
  opacity: 0.3;
}
@media (max-width: 700px) {
  .section:before, .section:after {display: none;}
}

/* ===============================
   SCROLLBAR STYLES (Modern browsers)
=============================== */
body::-webkit-scrollbar {
  width: 13px;
  background: var(--color-retro-cream);
}
body::-webkit-scrollbar-thumb {
  background: var(--color-retro-yellow);
  border-radius: 10px;
  border: 3.5px solid var(--color-retro-cream);
}

/* ===============================
   HELPER CLASSES
=============================== */
.text-center { text-align: center; }
.mt-1   { margin-top: 8px; }
.mt-2   { margin-top: 16px; }
.mt-3   { margin-top: 24px; }
.mt-4   { margin-top: 32px; }
.mb-0   { margin-bottom: 0; }
.mb-1   { margin-bottom: 8px; }
.mb-2   { margin-bottom: 16px; }
.mb-3   { margin-bottom: 24px; }
.mb-4   { margin-bottom: 32px; }
.gap-1  { gap: 8px; }
.gap-2  { gap: 16px; }
.gap-3  { gap: 24px; }
.gap-4  { gap: 32px; }

/* ===============================
   FOCUS & ACCESSIBLE STATES
=============================== */
button:focus, .cta:focus, input:focus, textarea:focus {
  outline: 2.5px solid var(--color-retro-yellow);
  outline-offset: 2px;
}

/* ===============================
   PRINT STYLES (future proof)
=============================== */
@media print {
  .main-nav, .mobile-menu-toggle, .mobile-menu, footer, .cookie-banner, .cookie-modal-overlay { display: none !important; }
  body { background: #fff; }
  section, .section { box-shadow: none !important; border: none !important; }
}
