/* ==================== CSS RESET & NORMALIZE ==================== */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  background: #F4EDE2;
  color: #295B35;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg {
  max-width: 100%;
  display: block;
}
ul, ol {
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus {
  outline: 2px solid #A9C47C;
  outline-offset: 2px;
}

/* ==================== BRAND COLORS & TYPOGRAPHY ==================== */
:root {
  --primary: #295B35;
  --secondary: #A9C47C;
  --accent: #F4EDE2;
  --organic-brown: #867259;
  --organic-beige: #e6dccf;
  --organic-green: #5F8C42;
  --organic-shadow: rgba(41, 91, 53, 0.09);
  --brand-rounded: 18px;
  --brand-radius: 12px;
  --shadow-main: 0 6px 32px var(--organic-shadow);
  --transition: 0.23s cubic-bezier(.4,.7,.3,1);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: #295B35;
  margin-bottom: 16px;
  line-height: 1.15;
}
h1 { font-size: 2.2rem; margin-bottom: 24px; }
h2 { font-size: 1.5rem; margin-bottom: 20px; }
h3 { font-size: 1.17rem; margin-bottom: 8px; font-weight: 600; color: var(--organic-green); }

@media (min-width: 600px) {
  h1 { font-size: 2.8rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.32rem; }
}

p, li, span, label {
  color: #295B35;
  font-family: 'Roboto', Arial, sans-serif;
}

strong {
  font-weight: 700;
  color: var(--primary);
}

/* ==================== PAGE LAYOUT & CONTAINERS ==================== */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
}

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

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--accent);
  border-radius: var(--brand-rounded);
  box-shadow: var(--shadow-main);
}

@media (max-width: 768px) {
  .section {
    padding: 32px 8px;
    margin-bottom: 36px;
    border-radius: var(--brand-radius);
  }
  .container { padding: 0 8px; }
}

/* ==================== SITE HEADER ==================== */
header {
  background: #fff;
  box-shadow: 0 8px 32px var(--organic-shadow);
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  position: relative;
}
header img {
  height: 48px;
  margin-right: 20px;
}
header nav {
  display: flex;
  flex-direction: row;
  gap: 18px;
}
header nav a {
  padding: 10px 0;
  font-size: 1rem;
  letter-spacing: 0.01em;
  color: var(--primary);
  border-radius: 8px;
  transition: background 0.2s;
}
header nav a:hover,
header nav a:focus {
  background: var(--secondary);
  color: #fff;
}

header .cta.primary {
  margin-left: 32px;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--primary);
  cursor: pointer;
}

@media (max-width: 900px) {
  header nav {
    display: none;
  }
  header .cta.primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
    margin-left: auto;
  }
}

/* ==================== MOBILE MENU ==================== */
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(249,246,237, 0.97);
  z-index: 1002;
  transform: translateX(-100%);
  transition: transform 0.38s var(--transition);
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
  opacity: 1;
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2.2rem;
  color: var(--primary);
  align-self: flex-end;
  margin: 28px 28px 0 0;
  cursor: pointer;
  transition: color 0.19s;
}
.mobile-menu-close:hover { color: var(--organic-green); }

.mobile-nav {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: flex-start;
  padding-left: 36px;
}
.mobile-nav a {
  font-size: 1.15rem;
  color: var(--primary);
  padding: 10px 0;
  border-radius: 8px;
  background: none;
  width: 100%;
  transition: background 0.15s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--secondary);
  color: #fff;
}

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

/* ==================== HERO SECTIONS ==================== */
.hero {
  background: linear-gradient(120deg, #F4EDE2 70%, #A9C47C 100%);
  border-radius: 0 0 40px 40px;
  padding-bottom: 0;
  margin-bottom: 50px;
  box-shadow: 0 8px 32px var(--organic-shadow);
}
.hero .content-wrapper {
  align-items: flex-start;
  justify-content: center;
  min-height: 220px;
  gap: 12px;
  position: relative;
}
.hero h1 {
  color: var(--primary);
}
.hero p {
  font-size: 1.15rem;
  margin-bottom: 24px;
}
.hero .cta {
  margin-top: 16px;
}

@media (max-width: 700px) {
  .hero {
    border-radius: 0 0 18px 18px;
    margin-bottom: 22px;
    padding-bottom: 0;
  }
  .hero .content-wrapper {
    min-height: 130px;
  }
}

/* ==================== CARD AND FLEX LAYOUTS ==================== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  background: #fff;
  border-radius: var(--brand-rounded);
  box-shadow: var(--shadow-main);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: box-shadow 0.16s var(--transition), transform 0.16s;
}
.card:hover {
  box-shadow: 0 12px 32px rgba(41,91,53,0.13);
  transform: translateY(-2px) scale(1.012);
}

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

@media (max-width: 768px) {
  .content-grid, .text-image-section, .card-container {
    flex-direction: column;
    gap: 20px;
  }
}

/* ==================== FEATURES ==================== */
.features .content-wrapper > ul,
.features ul,
.features .tips-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 0 0 20px 0;
  flex-direction: column;
}
@media (min-width: 650px) {
  .features .content-wrapper > ul,
  .features ul,
  .features .tips-list {
    flex-direction: row;
    gap: 28px;
  }
}
.features ul li,
.features .tips-list li {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 14px var(--organic-shadow);
  padding: 24px 18px 18px 18px;
  min-width: 210px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  transition: box-shadow 0.16s;
}
.features ul li:hover {
  box-shadow: 0 8px 32px rgba(41,91,53,0.14);
}
.features ul li img {
  height: 38px;
  width: 38px;
  margin-bottom: 6px;
}
.features ul li span {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  color: var(--organic-green);
  font-size: 1.1rem;
  margin-bottom: 4px;
}

/* ==================== SERVICE LIST ==================== */
.services .content-wrapper > ul {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 24px;
  flex-direction: column;
}
@media (min-width: 650px) {
  .services .content-wrapper > ul {
    flex-direction: row;
    gap: 32px;
  }
}
.services .content-wrapper > ul > li {
  background: #fff;
  border-radius: var(--brand-radius);
  box-shadow: 0 2px 12px var(--organic-shadow);
  padding: 26px 18px 18px 18px;
  min-width: 200px;
  flex: 1 1 230px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  margin-bottom: 20px;
  justify-content: flex-start;
  align-items: flex-start;
  transition: box-shadow 0.18s;
}
.services .content-wrapper > ul > li:hover {
  box-shadow: 0 10px 32px rgba(41,91,53,0.16);
}
.service-price {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--organic-brown);
  font-weight: 700;
  background: var(--organic-beige);
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 1.07rem;
  margin-top: 12px;
}

/* ==================== BUTTONS & CTA ==================== */
.cta {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 28px;
  padding: 12px 34px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.13rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 0.2s, transform 0.16s, box-shadow 0.19s;
  box-shadow: 0 3px 12px var(--organic-shadow);
  margin-top: 14px;
  display: inline-block;
  outline: none;
}
.cta.primary {
  background: linear-gradient(92deg, var(--primary) 60%, var(--organic-green) 100%);
}
.cta:hover, .cta:focus {
  background: var(--secondary);
  color: var(--primary);
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 8px 28px rgba(169,196,124,0.35);
}

/* ==================== TESTIMONIALS ==================== */
.testimonials {
  background: var(--organic-beige);
  padding: 40px 0;
  border-radius: 40px 40px 0 0;
  margin-top: 40px;
}
.testimonials h2 {
  color: var(--primary);
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 16px;
  margin-bottom: 20px;
  box-shadow: 0 2px 14px var(--organic-shadow);
  color: #164526;
  min-height: 60px;
  transition: box-shadow 0.18s;
}
.testimonial-card p {
  color: #164526;
  font-size: 1rem;
}
.testimonial-card span {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  color: var(--organic-brown);
  min-width: 160px;
}
.testimonial-card:hover {
  box-shadow: 0 8px 28px rgba(41,91,53,0.12);
}
@media (max-width: 700px) {
  .testimonials {
    border-radius: 16px 16px 0 0;
    padding: 28px 0;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 16px;
  }
}

/* ==================== CONTACT ==================== */
.contact {
  background: #fff;
  border-radius: var(--brand-rounded);
  box-shadow: var(--shadow-main);
  margin-bottom: 60px;
  padding: 40px 20px;
}
.contact a {
  color: var(--organic-green);
  transition: color 0.18s;
  text-decoration: underline;
}
.contact a:hover, .contact a:focus {
  color: var(--primary);
  text-decoration: underline solid var(--secondary) 1.5px;
}

/* ==================== FOOTER ==================== */
footer {
  background: var(--primary);
  padding: 36px 0;
  border-radius: 32px 32px 0 0;
  margin-top: 60px;
  color: #fff;
}
footer .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 18px;
}
footer nav a {
  color: #fff;
  font-size: 0.98rem;
  opacity: 0.87;
  letter-spacing: 0.01em;
  padding: 6px 8px;
  border-radius: 7px;
  transition: background 0.19s;
}
footer nav a:hover, footer nav a:focus {
  background: var(--secondary);
  color: var(--primary);
}
footer .tagline {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  color: #fff;
  opacity: 0.7;
  letter-spacing: 0.01em;
  margin-left: 14px;
}
@media (max-width: 700px) {
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  footer {
    border-radius: 20px 20px 0 0;
    padding: 22px 0;
    margin-top: 32px;
  }
}

/* ==================== LEGAL & TEXT SECTIONS ==================== */
.legal {
  background: var(--organic-beige);
  border-radius: var(--brand-rounded);
  box-shadow: var(--shadow-main);
  padding: 40px 20px;
  margin-bottom: 60px;
}
.text-section {
  margin-bottom: 24px;
}
.text-section ul {
  margin-top: 6px;
  margin-bottom: 18px;
  padding-left: 16px;
  list-style: disc inside;
}
.text-section ul li {
  margin-bottom: 10px;
}
@media (max-width: 700px) {
  .legal {
    padding: 24px 10px;
    border-radius: var(--brand-radius);
    margin-bottom: 32px;
  }
}

/* ==================== CONFIRMATION ==================== */
.confirmation {
  background: var(--organic-beige);
  border-radius: 18px;
  box-shadow: var(--shadow-main);
  padding: 40px 20px;
  text-align: center;
  margin: 0 0 60px 0;
}
.confirmation .cta {
  margin-top: 26px;
}

/* ============ UTILITY CLASSES ============== */
.mb-8 { margin-bottom: 8px !important; }
.mb-16 { margin-bottom: 16px !important; }
.mb-24 { margin-bottom: 24px !important; }
.mb-32 { margin-bottom: 32px !important; }

/* ============= MICROY-INTERACTIONS & HOVER ============= */
li, .card, .testimonial-card, .cta {
  transition: box-shadow 0.18s, transform 0.18s, background 0.19s;
}
.section, .card, .services li, .features li, .testimonial-card {
  will-change: transform, box-shadow;
}

/* ========================================================
   ================== RESPONSIVE  =========================
   ======================================================== */
@media (max-width: 650px) {
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.15rem; }
  .services .content-wrapper > ul, .features .content-wrapper > ul,
  .features ul, .features .tips-list {
    gap: 14px;
  }
  .features ul li, .services .content-wrapper > ul > li {
    padding: 16px 9px 14px 9px;
    min-width: unset;
  }
}

/* =================== COOKIE CONSENT BANNER =================== */
.cookie-consent-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #fffefa;
  box-shadow: 0 -3px 22px rgba(41,91,53,0.13);
  z-index: 2100;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 18px 28px;
  font-size: 1rem;
  border-radius: 16px 16px 0 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
  transition: transform 0.35s var(--transition), opacity 0.35s;
}
.cookie-consent-banner.active {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.cookie-consent-banner .cookie-banner-text {
  flex: 1 1 270px;
  color: #295B35;
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
  margin-right: 14px;
}
.cookie-consent-banner .cookie-banner-buttons {
  display: flex;
  flex-direction: row;
  gap: 12px;
  align-items: center;
}
.cookie-btn {
  padding: 8px 20px;
  border-radius: 24px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.19s, color 0.19s, box-shadow 0.18s;
}
.cookie-btn.accept {
  background: var(--secondary);
  color: var(--primary);
}
.cookie-btn.accept:hover,
.cookie-btn.accept:focus {
  background: var(--primary);
  color: #fff;
}
.cookie-btn.reject {
  background: #ede5d3;
  color: var(--primary);
}
.cookie-btn.reject:hover,
.cookie-btn.reject:focus {
  background: #cab995;
}
.cookie-btn.settings {
  background: none;
  color: var(--organic-green);
  border: 2px solid var(--organic-green);
}
.cookie-btn.settings:hover,
.cookie-btn.settings:focus {
  background: var(--organic-green);
  color: #fff;
}
@media (max-width: 600px) {
  .cookie-consent-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 16px 8px;
    font-size: 0.98rem;
  }
  .cookie-consent-banner .cookie-banner-buttons { flex-wrap: wrap; gap: 8px; }
}

/* ============= COOKIE MODAL ============= */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(41,91,53,0.18);
  z-index: 2200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.27s;
}
.cookie-modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal {
  background: #fffefa;
  border-radius: 18px;
  box-shadow: 0 2px 32px var(--organic-shadow);
  max-width: 420px;
  width: 97%;
  padding: 34px 22px 24px 22px;
  position: relative;
}
.cookie-modal h2 {
  color: var(--primary);
  margin-bottom: 12px;
  font-size: 1.22rem;
}
.cookie-modal .cookie-modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.7rem;
  color: var(--primary);
  cursor: pointer;
  transition: color 0.13s;
}
.cookie-modal .cookie-modal-close:hover {
  color: var(--organic-green);
}
.cookie-modal .cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 20px;
}
.cookie-category {
  padding: 10px 0 8px 0;
  border-bottom: 1px dashed #d3d3c7;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 1rem;
  color: var(--primary);
}
.cookie-category:last-child {
  border-bottom: none;
}
.cookie-category label {
  flex: 1 1 auto;
  color: #295B35;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 0.98rem;
  font-weight: 500;
  margin-left: 0;
}
.cookie-category input[type="checkbox"] {
  accent-color: var(--organic-green);
  width: 20px;
  height: 20px;
}
.cookie-category .essential {
  font-size: 0.98rem;
  color: var(--generic-green, var(--primary));
  margin-left: 8px;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 12px;
  margin-top: 6px;
  justify-content: flex-end;
}
@media (max-width: 480px) {
  .cookie-modal {
    padding: 18px 6px 14px 6px;
    font-size: 0.98rem;
  }
}
/* ============== Accessibility ============== */
:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 1.5px;
}

/* =========== Hide scroll for mobile menu when open =========== */
body.mobile-menu-open {
  overflow: hidden;
  touch-action: none;
}

/* =========== Hide scroll for cookie modal when open =========== */
body.cookie-modal-open {
  overflow: hidden;
  touch-action: none;
}
