/* =========================================================
   Verde In Casa - Monochrome Sophisticated CSS Theme
   Brand: Modern, fresh, elegant, monochrome with dramatic contrast
   Fonts: Quicksand (display), Roboto (body)
   Palette: Black, white, grays, with subtle accent (#A1C181, #F7F6F2) for micro-details
   ========================================================= */

/* 1. CSS RESET & BASE TYPOGRAPHY */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  margin: 0;
  padding: 0;
  background: #fff;
  color: #181818;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Font imports (for Quicksand and Roboto) */
@import url('https://fonts.googleapis.com/css?family=Quicksand:700&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap');

h1, h2, h3, h4, h5, h6 {
  font-family: 'Quicksand', Arial, sans-serif;
  color: #111;
  margin-top: 0;
  margin-bottom: 0.7em;
  font-weight: 700;
  letter-spacing: -0.01em;
}
h1 { font-size: 2.5rem; line-height: 1.1; }
h2 { font-size: 2rem; line-height: 1.15; }
h3 { font-size: 1.3rem; line-height: 1.2; }
h4, h5, h6 { font-size: 1.1rem; }
p, ul, ol, li, address {
  color: #222;
  font-size: 1rem;
  margin-bottom: 1em;
}
strong { font-weight: 700; }
a {
  color: #181818;
  text-decoration: none;
  transition: color 0.2s cubic-bezier(.4,0,.2,1);
}
a:hover, a:focus {
  color: #235E3D;
  text-decoration: underline;
}

/* 2. LAYOUT CONTAINERS & SPACING */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 32px rgba(0,0,0,0.07);
}

/* 3. HEADER & NAVIGATION */
header {
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
  position: sticky;
  top: 0;
  z-index: 100;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px;
}
header img {
  height: 44px;
  width: auto;
  display: block;
}
.main-nav {
  display: flex;
  flex-direction: row;
  gap: 28px;
  align-items: center;
}
.main-nav a {
  font-family: 'Quicksand', Arial, sans-serif;
  font-weight: 500;
  color: #181818;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  padding: 4px 0;
  position: relative;
  transition: color 0.2s cubic-bezier(.4,0,.2,1);
}
.main-nav a:hover, .main-nav a:focus {
  color: #235E3D;
}
.btn-primary {
  background: #181818;
  color: #fff;
  font-family: 'Quicksand', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.08rem;
  padding: 12px 32px;
  border-radius: 32px;
  border: none;
  outline: none;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(0,0,0,0.09);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  margin-left: 18px;
  display: inline-block;
  letter-spacing: 0.01em;
}
.btn-primary:hover, .btn-primary:focus {
  background: #235E3D;
  color: #fff;
  box-shadow: 0 4px 24px rgba(35,94,61,0.13);
}

/* Hamburger menu button */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: #181818;
  cursor: pointer;
  margin-left: 18px;
  transition: color 0.2s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  color: #235E3D;
}

/* 4. MOBILE NAVIGATION */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(18,18,18,0.97);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0;
  transform: translateX(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(.4,0,.2,1), opacity 0.3s;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  align-self: flex-end;
  margin: 24px 24px 0 0;
  cursor: pointer;
  transition: color 0.2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #A1C181;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  width: 100%;
  align-items: flex-start;
  padding: 40px 40px 0 40px;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Quicksand', Arial, sans-serif;
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  width: 100%;
  transition: color 0.2s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #A1C181;
}

/* Hide main nav and show burger on mobile */
@media (max-width: 1024px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 1025px) {
  .mobile-menu {
    display: none !important;
  }
}

/* 5. FLEXBOX LAYOUTS & SPACING */
.feature-grid, .product-grid, .blog-list, .team-grid, .testimonial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 20px;
}
.feature-grid > div, .product-grid > div, .blog-list > div, .team-grid > div {
  flex: 1 1 220px;
  min-width: 220px;
  background: #fafafa;
  border-radius: 14px;
  padding: 28px 22px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  margin-bottom: 20px;
  transition: box-shadow 0.2s, background 0.2s;
}
.feature-grid > div:hover, .product-grid > div:hover, .blog-list > div:hover, .team-grid > div:hover {
  background: #fff;
  box-shadow: 0 6px 32px rgba(0,0,0,0.10);
}
.product-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 20px;
}
.product-card {
  flex: 1 1 260px;
  min-width: 220px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  padding: 28px 22px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow 0.2s, background 0.2s;
}
.product-card:hover {
  background: #f7f6f2;
  box-shadow: 0 6px 32px rgba(35,94,61,0.09);
}

.blog-list {
  gap: 24px;
}
.blog-post-card {
  flex: 1 1 320px;
  min-width: 220px;
  background: #fafafa;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  padding: 28px 22px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow 0.2s, background 0.2s;
}
.blog-post-card:hover {
  background: #fff;
  box-shadow: 0 6px 32px rgba(0,0,0,0.10);
}

.team-grid {
  gap: 24px;
}
.team-member {
  flex: 1 1 220px;
  min-width: 220px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  padding: 28px 22px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  transition: box-shadow 0.2s, background 0.2s;
}
.team-member:hover {
  background: #f7f6f2;
  box-shadow: 0 6px 32px rgba(35,94,61,0.09);
}

.testimonial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 20px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 28px;
  background: #f7f6f2;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  margin-bottom: 20px;
  flex: 1 1 320px;
  min-width: 220px;
  color: #181818;
  font-size: 1.08rem;
  transition: box-shadow 0.2s, background 0.2s;
}
.testimonial-card p {
  color: #181818;
  font-style: italic;
  margin: 0 0 8px 0;
}
.testimonial-card span {
  color: #235E3D;
  font-size: 0.98rem;
  font-family: 'Quicksand', Arial, sans-serif;
  font-weight: 500;
}
.testimonial-card:hover {
  background: #fff;
  box-shadow: 0 6px 32px rgba(35,94,61,0.09);
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.faq-accordion > div {
  background: #fafafa;
  border-radius: 12px;
  padding: 20px 22px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  margin-bottom: 20px;
}
.faq-accordion h3 {
  margin-bottom: 8px;
  font-size: 1.1rem;
}

/* 6. FOOTER */
footer {
  background: #181818;
  color: #fff;
  padding: 48px 0 32px 0;
  border-top: 1px solid #222;
}
footer .container {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-nav a {
  color: #fff;
  font-family: 'Quicksand', Arial, sans-serif;
  font-size: 1rem;
  opacity: 0.85;
  transition: color 0.2s, opacity 0.2s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #A1C181;
  opacity: 1;
}
.footer-contact {
  color: #fff;
  font-size: 0.98rem;
  opacity: 0.85;
  line-height: 1.6;
}
.footer-logo img {
  height: 40px;
  width: auto;
  filter: grayscale(1) brightness(1.2);
}

/* 7. RESPONSIVE DESIGN */
@media (max-width: 1024px) {
  .container {
    max-width: 100%;
    padding: 0 14px;
  }
  footer .container {
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
  }
}
@media (max-width: 768px) {
  .container {
    padding: 0 8px;
  }
  .section {
    padding: 28px 8px;
    margin-bottom: 36px;
  }
  .feature-grid, .product-grid, .blog-list, .team-grid, .testimonial-list {
    flex-direction: column;
    gap: 20px;
  }
  .feature-grid > div, .product-grid > div, .blog-list > div, .team-grid > div, .testimonial-card {
    min-width: 0;
    width: 100%;
    padding: 20px 12px;
  }
  .product-slider {
    flex-direction: column;
    gap: 20px;
  }
  .main-nav {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .footer-logo {
    margin-top: 18px;
  }
}
@media (max-width: 480px) {
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.3rem; }
  .btn-primary {
    padding: 10px 18px;
    font-size: 1rem;
  }
}

/* 8. BUTTONS & INTERACTIONS */
.btn-primary:active {
  background: #111;
  color: #fff;
}
.product-card a, .blog-post-card a {
  color: #235E3D;
  font-weight: 500;
  font-family: 'Quicksand', Arial, sans-serif;
  font-size: 1rem;
  margin-top: 8px;
  transition: color 0.2s;
}
.product-card a:hover, .blog-post-card a:hover {
  color: #181818;
  text-decoration: underline;
}

/* 9. COOKIE CONSENT BANNER */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 99999;
  background: #181818;
  color: #fff;
  padding: 24px 16px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 32px;
  box-shadow: 0 -2px 24px rgba(0,0,0,0.13);
  font-size: 1rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
  transition: opacity 0.3s, transform 0.4s cubic-bezier(.4,0,.2,1);
}
.cookie-banner.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.cookie-banner .cookie-btn {
  margin-left: 18px;
  background: #fff;
  color: #181818;
  border: none;
  border-radius: 24px;
  padding: 10px 22px;
  font-family: 'Quicksand', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}
.cookie-banner .cookie-btn.accept {
  background: #235E3D;
  color: #fff;
}
.cookie-banner .cookie-btn.reject {
  background: #fff;
  color: #181818;
  border: 1px solid #222;
}
.cookie-banner .cookie-btn.settings {
  background: #A1C181;
  color: #181818;
}
.cookie-banner .cookie-btn:hover, .cookie-banner .cookie-btn:focus {
  background: #181818;
  color: #fff;
  box-shadow: 0 4px 16px rgba(35,94,61,0.13);
}
.cookie-banner .cookie-btn.accept:hover, .cookie-banner .cookie-btn.accept:focus {
  background: #111;
}
.cookie-banner .cookie-btn.settings:hover, .cookie-banner .cookie-btn.settings:focus {
  background: #235E3D;
  color: #fff;
}

@media (max-width: 768px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 18px 8px;
    font-size: 0.98rem;
  }
  .cookie-banner .cookie-btn {
    margin-left: 0;
    margin-top: 8px;
    width: 100%;
  }
}

/* COOKIE MODAL */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(18,18,18,0.85);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.cookie-modal-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: #fff;
  color: #181818;
  border-radius: 18px;
  box-shadow: 0 8px 48px rgba(0,0,0,0.18);
  padding: 36px 32px 28px 32px;
  max-width: 420px;
  width: 90vw;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  animation: cookieModalIn 0.4s cubic-bezier(.4,0,.2,1);
}
@keyframes cookieModalIn {
  from { transform: translateY(60px) scale(0.97); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}
.cookie-modal .cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}
.cookie-modal .cookie-category label {
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
  color: #181818;
}
.cookie-modal .cookie-toggle {
  width: 38px;
  height: 22px;
  border-radius: 12px;
  background: #e5e5e5;
  position: relative;
  cursor: pointer;
  transition: background 0.2s;
  margin-right: 8px;
  flex-shrink: 0;
}
.cookie-modal .cookie-toggle[data-checked="true"] {
  background: #235E3D;
}
.cookie-modal .cookie-toggle::after {
  content: '';
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: left 0.2s;
}
.cookie-modal .cookie-toggle[data-checked="true"]::after {
  left: 18px;
}
.cookie-modal .cookie-category.essential .cookie-toggle {
  background: #A1C181;
  cursor: not-allowed;
}
.cookie-modal .cookie-category.essential label {
  opacity: 0.7;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
  margin-top: 18px;
}
.cookie-modal .cookie-btn {
  background: #235E3D;
  color: #fff;
  border: none;
  border-radius: 24px;
  padding: 10px 22px;
  font-family: 'Quicksand', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.cookie-modal .cookie-btn.secondary {
  background: #fff;
  color: #181818;
  border: 1px solid #222;
}
.cookie-modal .cookie-btn:hover, .cookie-modal .cookie-btn:focus {
  background: #181818;
  color: #fff;
}
.cookie-modal .cookie-btn.secondary:hover, .cookie-modal .cookie-btn.secondary:focus {
  background: #A1C181;
  color: #181818;
}
.cookie-modal .cookie-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #181818;
  cursor: pointer;
  transition: color 0.2s;
}
.cookie-modal .cookie-modal-close:hover, .cookie-modal .cookie-modal-close:focus {
  color: #235E3D;
}
@media (max-width: 480px) {
  .cookie-modal {
    padding: 18px 8px 18px 8px;
    max-width: 98vw;
  }
}

/* 10. MISCELLANEOUS */
ul, ol {
  padding-left: 1.3em;
}
li {
  margin-bottom: 0.5em;
}
address {
  font-style: normal;
  color: #222;
  margin-bottom: 1em;
}

/* 11. VISUAL HIERARCHY & MICRO-INTERACTIONS */
section {
  transition: box-shadow 0.2s, background 0.2s;
}
section:hover {
  box-shadow: 0 8px 48px rgba(35,94,61,0.07);
}

/* 12. ACCESSIBILITY & FOCUS */
a, button, .btn-primary, .cookie-btn, .cookie-modal-close {
  outline: none;
}
a:focus, button:focus, .btn-primary:focus, .cookie-btn:focus, .cookie-modal-close:focus {
  box-shadow: 0 0 0 2px #A1C181;
  outline: none;
}

/* 13. UTILITIES */
.hide {
  display: none !important;
}

/* 14. PREVENT OVERLAPPING */
.feature-grid > div, .product-grid > div, .blog-list > div, .team-grid > div, .testimonial-card {
  margin-bottom: 20px;
}

/* 15. FLEXBOX ALIGNMENT PATTERNS (MANDATORY) */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
}
.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) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* 16. PRINT STYLES (optional, for completeness) */
@media print {
  header, footer, .cookie-banner, .mobile-menu { display: none !important; }
  body { background: #fff !important; color: #111 !important; }
}
