/* ==============================================================
   CSS RESET & BASELINE
================================================================== */
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;
}
html {
  scroll-behavior: smooth;
}
body {
  line-height: 1.5;
  background-color: #fff8f0;
  color: #2D2017;
  -webkit-font-smoothing: antialiased;
}
/* Remove list styles */
ul, ol {
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
}
button {
  font-family: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

/* ==============================================================
   FONTS (Vintage/Retro Aesthetic)
================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Roboto:wght@400;700&display=swap');
body {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', 'Times New Roman', serif;
  color: #205C40;
  letter-spacing: 0.5px;
}
h1 {
  font-size: 2.8rem;
  margin-bottom: 20px;
  line-height: 1.13;
  font-weight: 700;
}
h2 {
  font-size: 2rem;
  margin-bottom: 16px;
  font-weight: 700;
}
h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  font-weight: 700;
}
h4, h5, h6 {
  font-size: 1.1rem;
  font-weight: 700;
}
p, ul, ol, li {
  font-size: 1rem;
  margin-bottom: 12px;
}
strong {
  font-weight: 700;
}

/* ==============================================================
   COLORS & PATTERNS (Vintage Retro Palette)
================================================================== */
:root {
  --primary: #205C40;   /* deep foliage green */
  --secondary: #F7D8B4; /* retro pastel apricot */
  --accent: #A32640;    /* berry/rose red */
  --bg-light: #FFF8F0;  /* creamy pastel */
  --bg-box: #F6E9DC;    /* soft tan */
  --text-main: #2D2017; /* rich brown for vintage */
  --text-light: #fff;
  --card-shadow: 0 6px 24px rgba(80, 48, 8, 0.08);
  --card-border: #E7CCAF;
  --brand-yellow: #F7E971;
  --brand-blue: #539FA8;
  --brand-mint: #E4F1E1;
}

/* ==============================================================
   CONTAINER, SECTIONS, AND FLEX LAYOUTS
================================================================== */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background-color: var(--bg-light);
  border-radius: 20px;
  box-shadow: var(--card-shadow);
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--bg-box);
  margin-bottom: 20px;
  border-radius: 16px;
  padding: 28px 22px 22px 22px;
  box-shadow: var(--card-shadow);
  border: 2px solid var(--card-border);
  position: relative;
  min-width: 260px;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.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;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 24px 20px 24px;
  background: var(--secondary);
  box-shadow: 0 2px 12px rgba(32,92,64,0.07);
  border-radius: 14px;
  border-left: 7px solid var(--accent);
  margin-bottom: 24px;
  color: var(--text-main);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Responsive Spacing Rules */
ul > li:not(:last-child),
ol > li:not(:last-child) {
  margin-bottom: 16px;
}

/* ================= HEADER & NAV ======================== */
header {
  background: var(--primary);
  color: var(--text-light);
  width: 100%;
  padding: 0;
}
header .container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}
header img {
  max-height: 46px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: 24px;
}
.main-nav a {
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  color: #fff;
  padding: 7px 12px;
  border-radius: 8px;
  transition: background 0.18s, color 0.18s;
}
.main-nav a:hover,
.main-nav a:focus {
  background: var(--secondary);
  color: var(--primary);
}
header .btn-primary {
  margin-left: auto;
}

/* ================= BUTTONS ========================= */
.btn-primary, .btn-secondary {
  display: inline-block;
  border-radius: 10px;
  padding: 12px 34px;
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: 1px;
  border: none;
  outline: none;
  cursor: pointer;
  margin-top: 12px;
  box-shadow: 0 2px 8px rgba(32,92,64,0.08);
  transition: background 0.19s, color 0.12s, transform 0.13s;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover,
.btn-primary:focus {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px) scale(1.035);
}
.btn-secondary {
  background: var(--secondary);
  color: var(--primary);
  border: 1px solid var(--primary);
}
.btn-secondary:hover,
.btn-secondary:focus {
  background: var(--brand-yellow);
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px) scale(1.035);
}

/* ================= MOBILE NAV/BURGER =========================== */
.mobile-menu-toggle {
  display: none;
  background: var(--accent);
  color: #fff;
  font-size: 2.1rem;
  width: 44px;
  height: 44px;
  border-radius: 100%;
  justify-content: center;
  align-items: center;
  transition: background 0.18s;
  z-index: 140;
  margin-left: 16px;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--primary);
  color: #fff;
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--primary);
  color: #fff;
  z-index: 2000;
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(.75,0,.25,1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2.3rem;
  margin: 24px 28px 0 0;
  background: none;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: color 0.14s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: var(--accent);
}
.mobile-nav {
  margin-top: 38px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  width: 100%;
  align-items: flex-start;
  padding-left: 40px;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  letter-spacing: 1px;
  padding: 12px 0;
  border-bottom: 2px solid transparent;
  width: 100%;
  flex: 1;
  transition: border 0.16s, color 0.18s;
}
.mobile-nav a:focus,
.mobile-nav a:hover {
  color: var(--brand-yellow);
  border-bottom: 2.5px solid var(--brand-yellow);
}

@media (max-width: 1024px) {
  .container {
    max-width: 95vw;
    padding: 0 8px;
  }
}
@media (max-width: 900px) {
  .main-nav {
    gap: 16px;
  }
}
@media (max-width: 900px) {
  .header .container {
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (max-width: 768px) {
  .main-nav {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (max-width: 768px) {
  .container {
    padding: 0 8px;
  }
  h1 {
    font-size: 2rem;
    margin-bottom: 16px;
  }
  h2 {
    font-size: 1.3rem;
  }
  .section {
    margin-bottom: 28px;
    padding: 22px 6px;
    border-radius: 10px;
  }
  .content-wrapper {
    gap: 18px;
  }
}

/* ================= MAIN LAYOUT ====================== */
main {
  background: var(--bg-light);
  min-height: 70vh;
  padding-bottom: 48px;
}
section {
  margin-bottom: 48px;
}

/* ================= FOOTER ========================= */
footer {
  background: var(--primary);
  color: #fff;
  padding: 36px 0 32px 0;
  font-size: 1rem;
  margin-top: 48px;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px 30px;
  justify-content: space-between;
  align-items: flex-start;
}
footer img {
  max-width: 62px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.footer-nav a {
  color: #fff;
  opacity: 0.85;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  letter-spacing: 0.4px;
}
.footer-nav a:hover,
.footer-nav a:focus {
  color: var(--brand-yellow);
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 0.97rem;
  opacity: 0.94;
}
.footer-contact img {
  width: 18px;
  margin-right: 7px;
  vertical-align: middle;
}

@media (max-width: 900px) {
  footer .container {
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
  }
}

/* ==================== HOMEPAGE, SPECIAL SECTIONS ================ */
ul li > img, ol li > img {
  width: 26px;
  height: 26px;
  margin-right: 11px;
  vertical-align: middle;
}
ul li strong {
  color: var(--primary);
  font-weight: 700;
}
ul li:not(:last-child) {
  margin-bottom: 11px;
}

/* Cards and features */
.feature-grid > div {
  background: var(--bg-box);
  border-radius: 12px;
  padding: 18px 16px;
  min-width: 180px;
  flex: 1 1 180px;
  box-shadow: var(--card-shadow);
  margin-bottom: 20px;
}

/* Testimonials - highest text contrast */
.testimonial-card {
  background: #fffdfa;
  border-left: 7px solid var(--accent);
  box-shadow: 0 1px 12px rgba(80, 48, 8, 0.08);
  color: #1f1811;
}
.testimonial-card p {
  font-family: 'Playfair Display', serif;
  font-size: 1.13rem;
  margin-bottom: 10px;
  color: #1f1811;
}
.testimonial-card span {
  font-size: 1rem;
}
.testimonial-card strong {
  color: var(--primary);
}

/* Extra - Visual Nostalgic/Pattern Effect */
.section {
  background-image: repeating-linear-gradient(-45deg,rgba(167,151,106,0.08),rgba(167,151,106,0.08) 2px,transparent 2px,transparent 7px);
}

/* ================ COOKIE CONSENT BANNER & MODAL ================== */
.cookie-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  background: var(--bg-box);
  border-top: 3px solid var(--accent);
  box-shadow: 0 -2px 20px rgba(32,92,64,0.12);
  z-index: 3000;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 20px 28px;
  gap: 22px;
  font-size: 1.07rem;
  animation: fadeInBanner 0.6s ease both;
}
@keyframes fadeInBanner {
  from { transform: translateY(120px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1;   }
}
.cookie-consent-banner .cookie-banner-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
}
.cookie-banner-btn {
  border-radius: 7px;
  font-size: 1rem;
  padding: 9px 22px;
  min-width: 120px;
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 700;
  border: 1.7px solid var(--primary);
  background: #fff;
  color: var(--primary);
  transition: background 0.17s, color 0.15s, border 0.12s;
}
.cookie-banner-btn.accept {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.cookie-banner-btn.accept:hover,
.cookie-banner-btn.accept:focus {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.cookie-banner-btn.reject {
  background: #fff;
  color: var(--accent);
  border-color: var(--accent);
}
.cookie-banner-btn.reject:hover,
.cookie-banner-btn.reject:focus {
  background: #FFE0E9;
  color: var(--accent);
}
.cookie-banner-btn.settings {
  background: var(--brand-yellow);
  border-color: var(--brand-yellow);
  color: var(--primary);
}
.cookie-banner-btn.settings:hover {
  background: var(--secondary);
  border-color: var(--primary);
}

@media (max-width: 768px) {
  .cookie-consent-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
    padding: 13px 8px;
    font-size: 0.97rem;
  }
}

.cookie-preferences-modal {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(45,32,23,0.55);
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInModal 0.4s cubic-bezier(.75,0,.25,1) both;
}
@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal-content {
  background: #fffdfa;
  border-radius: 18px;
  box-shadow: 0 11px 48px rgba(32,92,64,0.18);
  min-width: 330px;
  max-width: 90vw;
  padding: 36px 32px 32px 32px;
  position: relative;
  color: #2d2017;
  font-size: 1rem;
}
.cookie-modal-close {
  position: absolute;
  top: 15px; right: 15px;
  background: none;
  font-size: 1.6rem;
  color: var(--accent);
  border: none;
  cursor: pointer;
}
.cookie-modal-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: var(--primary);
  margin-bottom: 16px;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 17px;
  margin-bottom: 22px;
}
.cookie-category-row {
  display: flex;
  align-items: center;
  gap: 13px;
}
.cookie-category-label {
  flex: 1;
  font-weight: 600;
  font-size: 1.03rem;
}
.cookie-category-toggle {
  width: 48px;
  height: 26px;
  border-radius: 13px;
  background: var(--bg-box);
  border: 2px solid var(--primary);
  position: relative;
  transition: background 0.2s;
}
.cookie-category-toggle input {
  display: none;
}
.cookie-category-toggle .toggle-knob {
  position: absolute;
  left: 2px;
  top: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  transition: left 0.19s, background 0.17s;
}
.cookie-category-toggle input:checked + .toggle-knob {
  left: 24px;
  background: var(--accent);
}
.cookie-pref-save {
  background: var(--primary);
  color: #fff;
  padding: 10px 30px;
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  transition: background 0.15s;
  margin-top: 9px;
}
.cookie-pref-save:hover,
.cookie-pref-save:focus {
  background: var(--accent);
}

/* ===================== FORMS, INPUTS ===================== */
input, textarea, select {
  font-family: inherit;
  font-size: 1rem;
  border-radius: 7px;
  border: 1.5px solid var(--primary);
  padding: 10px 12px;
  margin-bottom: 12px;
  background: #fff;
  color: var(--primary);
  transition: border 0.15s;
}
input:focus, textarea:focus, select:focus {
  outline: 2px solid var(--accent);
  border-color: var(--accent);
}
label {
  font-weight: 600;
  margin-bottom: 5px;
  font-size: 1rem;
}

/* Focus ring for accessibility */
:focus-visible {
  outline: 2px solid var(--accent) !important;
  outline-offset: 2px;
}

/* ========== MICRO-INTERACTIONS ============== */
a, button, .btn-primary, .btn-secondary {
  transition: color 0.17s, background 0.14s, box-shadow 0.20s, transform 0.17s;
}
.card:hover, .feature-grid > div:hover {
  box-shadow: 0 4px 26px rgba(32,92,64,0.15);
  transform: translateY(-3px) scale(1.012);
}

/* =========== PRINTED VINTAGE EFFECT DECORATIVE ========== */
.card:before {
  content: '';
  display: block;
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  background: repeating-linear-gradient(135deg,rgba(207,174,120,0.03) 0 2px,transparent 3px 7px);
  border-radius: 14px;
  z-index: 0;
}

/* ========== FLEX WRAP ON SMALLER DEVICES, COLUMN/ROW =========== */
@media (max-width: 900px) {
  .card-container, .feature-grid, .content-grid, .text-image-section {
    flex-direction: column !important;
    gap: 20px !important;
    align-items: stretch !important;
  }
}
@media (max-width: 768px) {
  .testimonial-card {
    padding: 15px 10px 17px 12px;
    font-size: 0.98rem;
  }
}
@media (max-width: 600px) {
  .feature-grid > div {
    min-width: 0;
  }
}

/* ==================== CLASSIC ROUND BADGES (RETRO) ============== */
.badge-retro {
  display: inline-block;
  background: var(--brand-yellow);
  color: var(--primary);
  font-family: 'Playfair Display', serif;
  font-size: 0.99rem;
  font-weight: 700;
  border-radius: 100px;
  padding: 6px 22px;
  box-shadow: 0 1px 9px rgba(245, 174, 43, 0.13);
  letter-spacing: 1px;
}

/* =============== MISC SPACING RULES =============== */
.card, .feature-grid > div, .testimonial-card, .section {
  margin-bottom: 22px;
}
.section:last-child, .card:last-child, .testimonial-card:last-child {
  margin-bottom: 0;
}

/* ================== UTILITIES =================== */
.hide { display: none !important; }
.center { text-align: center !important; }
.flex { display: flex !important; }

/* =========== RETRO DETAILS =========== */
hr {
  border: none;
  border-top: 2px dashed #BEAC90;
  width: 60px;
  margin: 22px 0 18px 0;
}
/* Retro icon (for potential decoration): */
.retro-flower {
  width: 32px;
  height: 32px;
  background: url('../assets/icons/flower-retro.svg') no-repeat center/contain;
  display: inline-block;
}

/* ================= SPECIAL CLASSES (HTML SUPPORT) ================ */
.content-wrapper > h2 {
  margin-top: 0;
}

/* =================== Loader (for cookie/modal) ================== */
.loader {
  display: inline-block;
  width: 28px;
  height: 28px;
  border: 4px solid var(--accent);
  border-radius: 50%;
  border-top: 4px solid var(--secondary);
  animation: spin 0.7s linear infinite;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ========= Ensuring readable contrast in all info/testimonials ============== */
.testimonial-card, .cookie-modal-content, .cookie-consent-banner {
  color: #1f1811;
  background: #fffdfa;
}

/* ===================== END OF STYLE.CSS ===================== */
