/* ===============================================================
   Sabor Maestro - Nature Organic Responsive Stylesheet
   Design: Nature-inspired organic (earth tones, organic shapes, natural textures, green accents)
   Flexbox ONLY | Mobile First | Spanish Typography
   Brand: #642F1E, #FFD8B0, #28777D (plus neutral/nature greens & earths)
   Fonts: Playfair Display (display), Montserrat (body)
   =============================================================== */

/* ------------- RESET & BASE ------------- */
html {
  box-sizing: border-box;
  font-size: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  background: #fffef9;
}
*, *:before, *:after { box-sizing: inherit; }
body {
  margin: 0;
  font-family: 'Montserrat', Arial, sans-serif;
  background: #fffef9;
  color: #3c2a14;
  line-height: 1.65;
  min-height: 100vh;
}
h1, h2, h3, h4, h5 {
  font-family: 'Playfair Display', serif;
  color: #642F1E;
  margin-top: 0;
  line-height: 1.2;
}
h1 {
  font-size: 2rem;
  margin-bottom: 16px;
}
h2 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}
h3 {
  font-size: 1.125rem;
  margin-bottom: 10px;
}
p, ul, ol {
  font-size: 1rem;
  margin: 0 0 16px 0;
  color: #3c2a14;
}
ul, ol {
  padding-left: 20px;
}
strong { color: #11616B; font-weight: bold; }
a {
  color: #28777D;
  text-decoration: none;
  transition: color .2s;
  font-weight: 500;
}
a:hover, a:focus { color: #642F1E; text-decoration: underline; }
img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

/* CSS Variables for Brand Palette w/ Fallbacks */
:root {
  --brand-primary: #642F1E;
  --brand-secondary: #FFD8B0;
  --brand-accent: #28777D;
  --brand-accent-dark: #11616B;
  --brand-bg: #fffef9;
  --earth-green: #55735B;
  --muted-brown: #A37B5F;
  --soft-sand: #F6E2CE;
  --card-shadow: 0 4px 18px 0 rgba(100,47,30,.08);
}

/* ------------- INTERACTIVE ELEMENTS ------------- */
.cta-button,
.card a.cta-button {
  background: var(--brand-accent);
  color: #fff;
  border: none;
  border-radius: 40px 24px 36px 24px/42px 32px 29px 32px;
  padding: 14px 36px;
  font-size: 1.125rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  box-shadow: 0 3px 12px 0 rgba(40,119,125,.12);
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background .24s, box-shadow .24s, transform .14s;
  outline: none;
  margin-top: 18px;
  display: inline-block;
  text-align: center;
}
.cta-button:hover, .cta-button:focus {
  background: var(--brand-accent-dark);
  color: #fffbe9;
  box-shadow: 0 6px 18px 0 rgba(40,119,125,.17);
  transform: translateY(-2px) scale(1.03);
}
button, .mobile-menu-toggle, .mobile-menu-close {
  font-family: 'Montserrat', Arial, sans-serif;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--brand-primary);
  font-size: 1.7rem;
  line-height: 1;
  padding: 10px;
}
button:focus, .mobile-menu-toggle:focus, .mobile-menu-close:focus {
  outline: 2px solid var(--brand-accent);
  outline-offset: 2px;
}

/* ------------- LAYOUTS & CONTAINERS ------------- */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 18px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: flex-start;
  width: 100%;
  margin: 0 auto;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
  border-radius: 28px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  flex: 1 1 300px;
  background: var(--soft-sand);
  border-radius: 28px 38px 22px 30px/34px 30px 30px 38px;
  box-shadow: var(--card-shadow);
  padding: 32px 24px;
  transition: box-shadow .18s, transform .2s;
  border: 1.5px solid #eadcc3;
  min-width: 260px;
  max-width: 480px;
}
.card:hover { box-shadow: 0 6px 24px rgba(100,47,30,.12); transform: translateY(-2px) scale(1.015); }

.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 28px 18px 28px;
  background: #fffbe9;
  border-radius: 32px 32px 35px 29px/33px 30px 38px 29px;
  box-shadow: 0 2px 10px rgba(85,115,91,.10);
  border-left: 5px solid var(--earth-green);
  margin-bottom: 24px;
  font-size: 1.08rem;
  min-width: 240px;
  max-width: 560px;
  color: #352516;
  transition: box-shadow .18s;
}
.testimonial-card blockquote {
  border-left: 0;
  padding: 0;
  margin: 0 0 10px 0;
  font-size: 1.09rem;
  color: #1c140c;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  line-height: 1.6;
}
.testimonial-card span {
  color: var(--brand-accent-dark);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: .01em;
}
.testimonial-card:hover {
  box-shadow: 0 8px 18px rgba(85,115,91,.13);
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--soft-sand);
  border-radius: 27px 32px 28px 33px/28px 33px 33px 27px;
  box-shadow: 0 2px 9px rgba(40,119,125,.11);
  padding: 20px 18px;
  margin-bottom: 20px;
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 10px;
}
.footer-nav a {
  color: var(--earth-green);
  font-weight: 600;
  transition: color .2s;
  padding: 7px 6px;
  border-radius: 14px;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: var(--brand-secondary);
  color: var(--brand-primary);
  text-decoration: underline;
}

/* ------------- NAVIGATION ------------- */
header {
  width: 100%;
  background: #ebe0d1;
  box-shadow: 0 2px 9px rgba(100,47,30,.05);
  position: relative;
  z-index: 1002;
  padding: 0;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 26px;
  padding: 16px 0 10px 0;
  font-size: 1rem;
  justify-content: flex-start;
}
.main-nav a {
  color: var(--brand-primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  letter-spacing: .01em;
  margin-right: 0;
  transition: color .2s, background .2s;
  border-radius: 20px;
  padding: 7px 14px;
  position: relative;
}
.main-nav a.cta-button {
  margin-left: auto;
  background: var(--brand-accent);
  color: #fff;
  font-size: 1.07rem;
  padding: 10px 25px;
  border-radius: 34px 18px 38px 20px/35px 20px 21px 32px;
  box-shadow: 0 2px 10px rgba(40,119,125,.12);
}
.main-nav a.cta-button:hover {
  background: var(--brand-accent-dark);
}
.main-nav a:hover:not(.cta-button), .main-nav a:focus:not(.cta-button) {
  background: var(--brand-secondary);
  color: var(--brand-accent-dark);
}
.main-nav img {
  height: 48px;
  border-radius: 18px;
  margin-right: 10px;
  background: #fff8f3;
  padding: 2px;
  box-shadow: 0 2px 7px rgba(100,47,30,.07);
}

/* Hide mobile menu trigger on desktop by default */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  top: 22px;
  right: 24px;
  z-index: 1050;
  background: #fff5e4;
  border-radius: 56px;
  border: 1px solid #ebd6b2;
  width: 44px;
  height: 44px;
  justify-content: center;
  align-items: center;
}

/* MOBILE SCRIM MENU */
.mobile-menu {
  position: fixed;
  inset: 0 0 0 100vw; /* hide by default */
  background: rgba(34,31,25,0.89);
  z-index: 1400;
  display: flex;
  flex-direction: column;
  transition: transform .33s cubic-bezier(.65,.01,.08,1), opacity .32s;
  transform: translateX(100vw);
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
  inset: 0;
}
.mobile-menu-close {
  position: absolute;
  top: 20px;
  right: 32px;
  background: #fff5e4;
  color: var(--brand-accent-dark);
  z-index: 5;
  border-radius: 50%;
  font-size: 2rem;
  line-height: 1;
  box-shadow: 0 2px 10px rgba(100,47,30,.08);
  border: 1px solid #ebd6b2;
  width: 44px;
  height: 44px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 90px;
  padding: 24px 32px;
  gap: 24px;
}
.mobile-nav a {
  font-size: 1.22rem;
  color: #fffbe9;
  padding: 10px 0;
  font-weight: 700;
  border-bottom: 1.5px dashed #d8c1a7;
  width: 100%;
  transition: color .2s, background .2s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--brand-secondary);
  background: none;
  text-decoration: underline;
}

/* Hide desktop nav on mobile */
@media (max-width: 1023px) {
  .main-nav a:not(:first-child),
  .main-nav a.cta-button {
    font-size: 1.1rem !important;  /* increase tap size */
  }
  .main-nav {
    padding-right: 60px;
  }
}
@media (max-width: 920px) {
  .main-nav {
    gap: 6px 16px;
  }
  .main-nav img { height: 34px; }
}
@media (max-width: 830px) {
  .main-nav {
    display: none; /* hide nav menu */
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (max-width: 830px) {
  .mobile-menu { font-size: 1.04rem; }
  .mobile-nav { padding: 24px 22px; }
}

/* ------------- MAIN CONTENT ------------- */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}
section:last-of-type { margin-bottom: 0; }

.features-section ul, .about-section ul, .text-section ul {
  list-style: disc inside;
  margin-bottom: 24px;
}
.features-section ul {
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.features-section li {
  background: linear-gradient(89deg, #F6E2CE 75%, #F6E2CE60 99%);
  border-radius: 24px 33px 21px 31px/29px 22px 36px 31px;
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px 22px 15px 22px;
  box-shadow: 0 2px 10px rgba(40,119,125,.07);
  border-left: 4px solid var(--earth-green);
  margin-bottom: 8px;
  min-width: 210px;
}
.features-section h3 {
  color: var(--earth-green);
  font-size: 1.13rem;
}
.features-section img {
  width: 34px; height: 34px;
  margin-bottom: 2px;
  border-radius: 15px;
  background: #fff8f3;
  box-shadow: 0 0 7px rgba(40,119,125,.07);
}

/* ------------- ABOUT, CARDS, TESTIMONIALS ------------ */
.about-section {
  background: #fffbe9;
  border-radius: 38px 18px 33px 24px;
  box-shadow: 0 2px 10px rgba(100,47,30,.06);
  padding: 36px 20px;
}

.testimonials-section, .testimonial-wall-section, .testimonials-preview-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}

/* ------------- FOOTER ------------- */
footer {
  background: #3c2a14;
  color: #fffbe9;
  padding: 40px 0 26px 0;
  border-top-left-radius: 40px 70px;
  border-top-right-radius: 32px 47px;
  margin-top: 58px;
  box-shadow: 0 -1.5px 16px rgba(100,47,30,.09);
}
footer p {
  color: white;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}
footer .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
footer img {
  height: 50px;
  background: #fff8f3;
  border-radius: 21px;
  margin-bottom: 12px;
  margin-top: -12px;
  padding: 2px;
  box-shadow: 0 1.5px 8px rgba(100,47,30,.10);
}
footer .text-section {
  color: #f1d9ba;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.03rem;
  text-align: center;
}
footer .text-section a { color: #ffefcf; text-decoration: underline; }
footer .text-section a:hover { color: var(--brand-accent); }

/* ------------- COOKIE CONSENT BANNER & MODAL ------------- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3000;
  background: #fcf4e6;
  color: #473017;
  padding: 24px 20px 20px 20px;
  border-radius: 22px 22px 0 0 / 35px 35px 0 0;
  box-shadow: 0 -8px 20px rgba(100,47,30,.07);
  display: flex;
  align-items: flex-start;
  gap: 18px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100vw;
}
.cookie-banner .cookie-text {
  flex: 3 1 220px;
  font-size: 1rem;
  line-height: 1.62;
  margin-right: 10px;
}
.cookie-banner .cookie-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.cookie-banner button {
  border: none;
  border-radius: 26px 19px 32px 27px/23px 32px 31px 29px;
  padding: 8px 23px;
  font-size: 1rem; font-weight: 600;
  margin-right: 0;
  background: var(--brand-accent);
  color: #fff;
  box-shadow: 0 2px 10px rgba(40,119,125,.08);
  transition: background .21s, box-shadow .15s, transform .1s;
  cursor: pointer;
  outline: none;
}
.cookie-banner button:last-child {
  background: var(--earth-green);
}
.cookie-banner .cookie-settings {
  background: #fffbe9;
  color: var(--brand-primary);
  border: 1px solid var(--soft-sand);
  margin-top: 2px;
  font-size: .97rem;
  font-weight: 500;
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: var(--brand-accent-dark);
  color: #fffbe9;
}
.cookie-banner .cookie-settings:hover, .cookie-banner .cookie-settings:focus {
  background: #fff2cd; color: var(--earth-green);
}

/* Cookie modal overlay */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(34,31,25,.64);
  z-index: 4000;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity .25s;
  opacity: 0;
  pointer-events: none;
}
.cookie-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.cookie-modal {
  background: #fffbe9;
  border-radius: 34px 28px 38px 29px/33px 32px 38px 26px;
  box-shadow: 0 10px 38px rgba(40,119,125,.14);
  padding: 38px 30px 30px 30px;
  max-width: 420px;
  width: 90vw;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: modal-in .35s cubic-bezier(.65,.01,.08,1);
}
.cookie-modal h2 {
  font-size: 1.38rem;
  color: var(--brand-primary);
  margin-bottom: 5px;
}
.cookie-modal .cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cookie-category {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #FAECD6;
  border-radius: 18px 24px 22px 16px/22px 20px 28px 16px;
  padding: 12px 13px 11px 13px;
  font-size: 1.01rem;
}
.cookie-category label {
  font-weight: 600;
}
.cookie-category input[type="checkbox"] {
  accent-color: var(--brand-accent);
  width: 19px; height: 19px;
  margin-right: 6px; margin-top: 2px;
}
.cookie-buttons {
  display: flex;
  gap: 10px;
}
.cookie-modal .cookie-actions {
  display: flex;
  justify-content: flex-end;
  gap: 11px;
  margin-top: 14px;
}
.cookie-modal .cookie-actions button {
  font-size: 1.03rem;
}
@keyframes modal-in {
  from {opacity: 0; transform: scale(.94) translateY(25px);}
  to {opacity: 1; transform: scale(1) translateY(0);}
}

/* ------------- RESPONSIVE BREAKPOINTS ------------- */
@media (max-width: 1030px) {
  .container {max-width: 96vw;}
}
@media (max-width: 900px) {
  .testimonial-card { max-width: 98vw; }
  .features-section ul { gap: 14px; }
}
@media (max-width: 768px) {
  .container { max-width: 100vw; padding: 0 8px; }
  .content-wrapper, footer .content-wrapper, .footer-nav {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 16px;
  }
  .section, section {
    padding: 26px 7px;
    margin-bottom: 32px;
  }
  h1 { font-size: 1.45rem; }
  h2 { font-size: 1.18rem; }
  .main-nav { font-size: 1rem; }
  .features-section ul, .features-section li {
    gap: 11px;
    padding: 15px 12px 10px 12px;
    font-size: 1rem;
  }
  .testimonial-card { padding: 15px 13px 11px 16px; }
}
@media (max-width: 700px) {
  html { font-size: 97.5%;}
  .main-nav { padding-right: 45px;}
  .mobile-menu-toggle { top: 16px; right: 12px; font-size: 1.4rem; width: 38px; height: 38px; }
}
@media (max-width: 620px) {
  footer .content-wrapper, .footer-nav {
    align-items: flex-start;
    gap: 9px;
  }
}
@media (max-width: 520px) {
  h1 { font-size: 1.18rem; }
  h2 { font-size: 1rem; }
  .testimonial-card, .card { min-width: 0; max-width: 96vw; font-size: 0.98rem; }
  section, .section {
    padding: 13px 2px;
    margin-bottom: 20px;
    border-radius: 13px;
  }
  .about-section { padding: 14px 5px; }
  .footer-nav { font-size: .97rem; }
}
/* ---- FLEX-DIR/COLUMN on MOBILE for CONTENT COLUMNS ---- */
@media (max-width: 768px) {
  .content-grid, .text-image-section {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }
}

/* ------------- ORGANIC/NATURE-INSPIRED: VISUAL DETAILS ------------- */
/* Soft organic shadows and rounded shapes for cards, sections */
.card, .feature-item, .testimonial-card, .about-section, .cookie-modal {
  border-radius: 37px 28px 30px 33px/33px 36px 32px 29px;
}
.features-section li, .testimonial-card, .feature-item, .card, .cookie-modal {
  box-shadow: 0 2.5px 18px 0 rgba(85,115,91,.10);
}

/* Organic background overlays for visual depth */
body:before {
  content: '';
  display: block;
  position: fixed;
  top: -140px; left: -90px;
  width: 330px; height: 370px;
  background: radial-gradient(ellipse at top left, #E5F4E0 60%, transparent 100%);
  z-index: 0;
  pointer-events: none;
  opacity: .28;
}
body:after {
  content: '';
  display: block;
  position: fixed;
  right: -60px; bottom: -110px;
  width: 260px; height: 320px;
  background: radial-gradient(ellipse at bottom right, #FFD8B0 46%, transparent 100%);
  z-index: 0;
  pointer-events: none;
  opacity: .19;
}

/* ------------- MISC/DEFAULTS ------------- */
::-webkit-scrollbar { width: 9px; background: #F6E2CE; }
::-webkit-scrollbar-thumb { background: #c2a686; border-radius: 6px; }

/* ------------- ACCESSIBILITY: FOCUS STYLES ------------- */
a:focus, button:focus, .cta-button:focus {
  outline: 2px solid var(--brand-accent-dark);
  outline-offset: 2px;
}

/* ------------- PRINT (OPTIMIZED) ------------- */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal, .cookie-modal-overlay  {
    display: none !important;
  }
  section, .section, .container, .content-wrapper {
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    background: #fff !important;
  }
  body {
    background: #fff !important;
    color: #000;
    font-size: 12pt;
  }
}
