/* Sabores Mestres CSS Reset & Root Variables */
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;
  box-sizing: border-box;
  font-size: 16px;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  background: #F7F4F0;
  color: #1A3B23;
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  font-size: 1rem;
  line-height: 1.7;
  min-height: 100vh;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
  border: 0;
}
a {
  color: #A35418;
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover, a:focus {
  color: #1A3B23;
  text-decoration: underline;
}
strong {
  font-weight: bold;
}
ul, ol {
  margin: 0 0 1.2em 1.3em;
  padding-left: 1.2em;
}
li {
  margin-bottom: 0.5em;
}

/* Root Vars for Brand Colors */
:root {
  --sm-primary: #1A3B23;
  --sm-secondary: #A35418;
  --sm-accent: #F7F4F0;
  --sm-white: #fff;
  --sm-dark: #222;
  --sm-text: #1A3B23;
  --sm-shadow: 0 6px 30px rgba(37,30,18,0.06), 0 1.5px 3px rgba(0,0,0,0.05);
  --sm-radius: 12px;
}

/* Typography Hierarchy */
h1 {
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--sm-primary);
  margin-bottom: 24px;
  line-height: 1.2;
}
h2 {
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  font-size: 2rem;
  font-weight: 600;
  color: var(--sm-primary);
  margin-bottom: 20px;
  line-height: 1.25;
}
h3 {
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--sm-primary);
  margin-bottom: 16px;
}
h4, h5, h6 {
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  font-weight: 500;
  color: var(--sm-primary);
}
p, ul, ol, blockquote {
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  font-size: 1.125rem;
  color: var(--sm-text);
}
blockquote {
  font-style: italic;
  border-left: 4px solid var(--sm-secondary);
  padding-left: 16px;
  margin: 0 0 1.5em 0;
  color: var(--sm-primary);
  background: #f5ece1;
}

/* Container Utilities */
.container {
  width: 100%;
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--sm-accent);
  border-radius: var(--sm-radius);
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--sm-white);
  border-radius: var(--sm-radius);
  margin-bottom: 20px;
  box-shadow: var(--sm-shadow);
  padding: 28px 24px 24px 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 260px;
  max-width: 100%;
  transition: box-shadow 0.2s;
}
.card:hover {
  box-shadow: 0 8px 32px rgba(26,59,35,0.13);
}
.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 {
  background: #fff;
  box-shadow: var(--sm-shadow);
  border-radius: var(--sm-radius);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  min-height: 80px;
  color: var(--sm-primary);
  font-size: 1.125rem;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  padding: 24px;
  border-radius: var(--sm-radius);
  box-shadow: var(--sm-shadow);
}

/* Header & Navigation */
header {
  background: var(--sm-white);
  box-shadow: 0 2px 10px rgba(26, 59, 35, 0.07);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid #ececec;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 16px;
  padding-bottom: 16px;
}
header nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
}
header nav a {
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--sm-primary);
  padding: 4px 10px;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}
header nav a.cta-primary {
  background: var(--sm-secondary);
  color: #fff;
  font-weight: 600;
  font-size: 1.12rem;
  padding: 8px 20px;
  margin-left: 18px;
  border-radius: 20px;
  box-shadow: 0 3px 11px rgba(163,84,24,0.07);
  transition: background 0.2s, box-shadow 0.2s;
}
header nav a.cta-primary:hover, header nav a.cta-primary:focus {
  background: #84410f;
  color: #fff;
  box-shadow: 0 6px 18px rgba(163,84,24,0.15);
}
header nav a:hover, header nav a:focus {
  background: #f2e7db;
  color: var(--sm-secondary);
}
.mobile-menu-toggle {
  background: none;
  border: none;
  font-size: 2.1rem;
  color: var(--sm-primary);
  cursor: pointer;
  padding: 9px;
  border-radius: 50%;
  display: none;
  transition: background 0.15s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #ede9e2;
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  z-index: 5000;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: rgba(247,244,240,0.98);
  box-shadow: 0 4px 32px rgba(26,59,35,0.20);
  display: none;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding-top: 32px;
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(.64,.09,.08,1);
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  color: var(--sm-primary);
  border: none;
  font-size: 2.2rem;
  margin: 0 24px 18px 0;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 50%;
  transition: background 0.15s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #f0ede8;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  padding: 30px 30px 0 32px;
}
.mobile-nav a {
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  font-size: 1.19rem;
  color: var(--sm-primary);
  padding: 12px 0 12px 0;
  border-bottom: 1px solid #ececec;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--sm-secondary);
  background: #f5ece1;
}

/* Hero Section */
.hero {
  background: linear-gradient(120deg, #F7F4F0 70%, #fff 100%);
  padding: 50px 0 40px 0;
  margin-bottom: 34px;
}
.hero .container {
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}
.hero .content-wrapper {
  margin-top: 0;
  align-items: flex-start;
  gap: 14px;
}
.hero h1 {
  margin-bottom: 14px;
  color: var(--sm-primary);
  font-size: 2.25rem;
  font-family: 'Georgia', 'Times New Roman', Times, serif;
}
.hero p {
  font-size: 1.15rem;
  color: var(--sm-primary);
}

/* CTAs */
.cta-primary, .cta-secondary, .cta-tertiary {
  display: inline-block;
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  border-radius: 20px;
  font-weight: 600;
  padding: 11px 30px;
  margin-top: 24px;
  font-size: 1.15rem;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  text-align: center;
  box-shadow: 0 2px 8px rgba(26,59,35,.04);
}
.cta-primary {
  background: var(--sm-secondary);
  color: #fff;
  border: none;
}
.cta-primary:hover, .cta-primary:focus {
  background: #854512;
  color: #fff;
  box-shadow: 0 8px 32px rgba(163,84,24,0.11);
}
.cta-secondary {
  background: transparent;
  color: var(--sm-secondary);
  border: 2px solid var(--sm-secondary);
}
.cta-secondary:hover, .cta-secondary:focus {
  background: var(--sm-secondary);
  color: #fff;
}
.cta-tertiary {
  background: transparent;
  color: var(--sm-primary);
  border: 2px solid var(--sm-primary);
}
.cta-tertiary:hover, .cta-tertiary:focus {
  background: var(--sm-primary);
  color: #fff;
}

/* Text Sections */
.text-section {
  background: #fff;
  border-radius: var(--sm-radius);
  box-shadow: var(--sm-shadow);
  padding: 32px 26px;
  margin-bottom: 20px;
}

/* Footer */
footer {
  background: #1A3B23;
  color: #fff;
  padding: 50px 0 22px 0;
  margin-top: 80px;
  border-top-left-radius: 30px;
  border-top-right-radius: 30px;
}
footer .container {
  gap: 32px;
}
.footer-main {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 36px;
  justify-content: space-between;
  margin-bottom: 12px;
}
.footer-main nav {
  display: flex;
  flex-direction: row;
  gap: 20px;
  align-items: center;
}
.footer-main nav a {
  color: #fff;
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  font-weight: 500;
  font-size: 1.03rem;
  transition: color 0.18s;
  border-radius: 6px;
  padding: 4px 10px;
}
.footer-main nav a:hover,
.footer-main nav a:focus {
  background: rgba(255,255,255,0.12);
  color: #ffe0cf;
}
.footer-legal {
  display: flex;
  flex-direction: column;
  gap: 18px;
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 16px;
}
.footer-legal nav {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.96rem;
  color: #e2d5cf;
}
.footer-legal nav a {
  color: #e2d5cf;
  font-weight: 400;
  text-decoration: underline;
  margin-right: 6px;
}
.footer-legal nav a:hover,
.footer-legal nav a:focus {
  color: #fff;
}
.brand-contact {
  margin-top: 5px;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  color: #f0ece4;
  font-size: 1.02rem;
  font-family: 'Georgia', 'Times New Roman', Times, serif;
}
.brand-contact img {
  width: 18px; margin-right: 4px; vertical-align: text-bottom;
}

/* Card Design */
.card, .feature-item, .testimonial-card, .text-section {
  box-shadow: var(--sm-shadow);
  border-radius: var(--sm-radius);
  background: #fff;
}

/* Testimonial Card Contrast */
.testimonial-card {
  background: #fff;
  color: #1A3B23;
  border-left: 5px solid #A35418;
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  font-size: 1.11rem;
  box-shadow: 0 3px 13px rgba(163,84,24,.03);
  margin-bottom: 20px;
  min-width: 240px;
}
.testimonial-card blockquote {
  background: transparent;
  border: none;
  padding-left: 0;
  margin: 0;
  font-style: italic;
  color: #1A3B23;
}
.testimonial-card strong {
  color: #A35418;
  font-size: 0.99em;
  font-family: inherit;
}

/* Cookie Consent Banner (fixed bottom) */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  z-index: 7000;
  background: #f5ece1;
  box-shadow: 0 -2px 18px rgba(26,59,35,0.09);
  border-top: 2px solid #A35418;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  gap: 18px;
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  font-size: 1rem;
  transition: transform 0.3s cubic-bezier(.4,1.4,.4,1);
}
.cookie-banner.hide {
  transform: translateY(100%);
}
.cookie-banner__text {
  color: var(--sm-primary);
  flex: 1;
}
.cookie-banner__actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
}
.cookie-btn {
  padding: 9px 18px;
  border-radius: 18px;
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  box-shadow: 0 1px 6px rgba(163,84,24,0.06);
  background: #fff;
  color: #A35418;
  transition: background 0.18s, color 0.18s;
}
.cookie-btn.accept {
  background: #A35418;
  color: #fff;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #87420e;
}
.cookie-btn.reject {
  background: #fff;
  color: #A35418;
  border: 1.5px solid #A35418;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #f7ded0;
}
.cookie-btn.settings {
  background: #fff;
  color: #1A3B23;
  border: 1px solid #1A3B23;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: var(--sm-accent);
}

/* Cookie Settings Modal */
.cookie-modal-overlay {
  display: none;
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  z-index: 8000;
  background: rgba(30,28,16,.38);
  align-items: center;
  justify-content: center;
}
.cookie-modal-overlay.open {
  display: flex;
  animation: fadeIn 0.25s;
}
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  border-radius: 16px;
  max-width: 370px;
  padding: 32px 22px 24px 22px;
  box-shadow: 0 11px 42px rgba(26,59,35,0.14);
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  animation: modalSlideIn 0.36s cubic-bezier(.55, .09, .68, .53);
}
@keyframes modalSlideIn {
  0% { transform: translateY(140px) scale(.95); opacity: 0; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}
.cookie-modal__close {
  position: absolute;
  right: 15px;
  top: 14px;
  background: none;
  border: none;
  color: #76420b;
  font-size: 1.6rem;
  cursor: pointer;
  z-index: 1;
  padding: 3px 7px;
  border-radius: 50%;
  transition: background 0.11s;
}
.cookie-modal__close:hover, .cookie-modal__close:focus {
  background: #e6e4e2;
}
.cookie-modal__title {
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  font-size: 1.17rem;
  color: #A35418;
  margin-bottom: 2px;
}
.cookie-modal__categories {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  background: #f9f3ea;
  border-radius: 8px;
  padding: 10px 14px;
}
.cookie-category__label {
  font-size: 1rem;
  color: #1A3B23;
  font-family: 'Georgia', 'Times New Roman', Times, serif;
}
.cookie-category__toggle {
  appearance: none;
  width: 44px;
  height: 24px;
  background: #ececec;
  border-radius: 14px;
  position: relative;
  margin-left: 9px;
  outline: none;
  transition: background 0.18s;
  cursor: pointer;
  border: none;
}
.cookie-category__toggle:checked {
  background: #A35418;
}
.cookie-category__toggle:before {
  content: '';
  display: block;
  width: 19px; height: 19px;
  border-radius: 50%;
  background: #fff;
  position: absolute;
  left: 3px; top: 2.2px;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
  transition: left 0.18s;
}
.cookie-category__toggle:checked:before {
  left: 21px;
}
.cookie-category__toggle:disabled {
  background: #ddd;
  cursor: default;
  opacity: 0.6;
}
.cookie-modal__actions {
  display: flex;
  flex-direction: row;
  gap: 10px;
  margin-top: 8px;
}

/* Blog List */
.blog-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 36px;
}

/* Responsive Design (Mobile First) */
@media (max-width: 1024px) {
  .container {
    max-width: 870px;
    padding-left: 14px;
    padding-right: 14px;
  }
  .footer-main {
    flex-direction: column;
    gap: 22px;
    justify-content: flex-start;
  }
}
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  .container {
    padding-left: 8px;
    padding-right: 8px;
  }
  header .container {
    gap: 9px;
    padding-top: 9px;
    padding-bottom: 9px;
  }
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .hero {
    padding: 30px 0 22px 0;
  }
  .hero h1 {
    font-size: 1.56rem;
  }
  .section {
    padding: 22px 8px;
    margin-bottom: 36px;
  }
  .card, .feature-item, .testimonial-card, .text-section {
    padding: 18px 10px;
  }
  .card-container, .content-grid, .footer-main nav {
    gap: 10px;
  }
  .content-grid {
    flex-direction: column;
    gap: 18px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  .footer-main, .footer-legal, .brand-contact {
    flex-direction: column;
    gap: 9px;
    align-items: flex-start;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 8px 18px 10px;
    gap: 9px;
    font-size: 1rem;
  }
}
@media (max-width: 520px) {
  html {
    font-size: 14px;
  }
  .hero h1, h1 {
    font-size: 1.32rem;
  }
  h2 {
    font-size: 1.08rem;
  }
  .section {
    padding: 10px 4px;
  }
  .card, .testimonial-card, .feature-item, .text-section {
    padding: 8px 4px;
  }
  .footer-main img {
    max-width: 80px;
  }
}

/* Micro-interactions */
.card, .feature-item, .cta-primary, .cta-secondary, .cta-tertiary, .testimonial-card, .cookie-btn, .cookie-modal {
  transition: box-shadow 0.21s, background 0.19s, color 0.18s, border 0.18s;
}

/* Hide scroll for open mobile menu */
body.mobile-menu-open {
  overflow: hidden;
}

/* Accessibility: Focus Styles */
a:focus, button:focus, .cta-primary:focus, .cta-secondary:focus, .cta-tertiary:focus, .mobile-menu-toggle:focus, .mobile-menu-close:focus, .cookie-btn:focus {
  outline: 3px dashed #A35418;
  outline-offset: 2px;
}

/* Prevent overlapping */
.card-container > *, .content-grid > *, .feature-item, .testimonial-card, .card, .text-section {
  margin-bottom: 20px;
}

/* Utility classes */
.d-none { display: none !important; }
.d-block { display: block !important; }

::selection {
  background: #A35418;
  color: #fff;
}

/* End Sabores Mestres CSS */
