/* ================== CSS RESET & BASE ================== */
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%;
  vertical-align: baseline;
  box-sizing: border-box;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  background: #F3EADC;
  color: #22170F;
  min-height: 100vh;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
ul, ol {
  list-style-type: none;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
button, input, select, textarea {
  font: inherit;
  background: none;
  border: none;
  outline: none;
}

/* ================== LUXURY PREMIUM COLORS & FONTS ================== */
:root {
  --brand-primary: #4C311F;
  --brand-secondary: #F3EADC;
  --brand-accent: #A0401A;
  --lux-gold: #C7A350;
  --lux-ivory: #FFFDF9;
  --lux-ebony: #22170F;
  --lux-warm-grey: #D5C8B2;
  --lux-card-bg: #FFFFFF;
  --lux-card-shadow: 0 4px 32px 0 rgba(76,49,31,0.08);
}

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500;700&family=Open+Sans:wght@400;600&display=swap');

html {
  font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: var(--brand-primary);
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.1;
}
h1 {
  font-size: 2.5rem;
}
h2 {
  font-size: 2rem;
}
h3 {
  font-size: 1.375rem;
}
h4 {
  font-size: 1.075rem;
}
p, li, ul, ol {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: var(--lux-ebony);
}
b {
  font-weight: 600;
}
i {
  font-style: italic;
}


/* ================== STRUCTURAL CLASSES ================== */
.container {
  width: 100%;
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 28px;
  /* For section spacing */
}
.text-section {
  align-items: flex-start;
  max-width: 700px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
  border-radius: 18px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--lux-card-bg);
  box-shadow: var(--lux-card-shadow);
  padding: 24px 28px;
  border-radius: 16px;
  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;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 28px;
  background: var(--lux-card-bg);
  border-radius: 16px;
  box-shadow: 0 2px 16px 0 rgba(76,49,31,0.10);
  margin-bottom: 20px;
  border-left: 6px solid var(--lux-gold);
  transition: box-shadow 0.25s;
}
.testimonial-card:hover {
  box-shadow: 0 4px 28px 0 rgba(199,163,80,0.18);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 24px;
}

ul, ol {
  margin-left: 20px;
  padding-bottom: 8px;
}
/* Add bullet for unordered list */
ul li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
}
ul li:before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--lux-gold);
}
ol li {
  margin-bottom: 8px;
}

/* ================== HEADER ================== */
header {
  background: var(--lux-ivory);
  box-shadow: 0 2px 8px 0 rgba(76,49,31,.04);
  border-bottom: 2px solid var(--lux-gold);
  position: relative;
  z-index: 20;
}
header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  padding-top: 10px;
  padding-bottom: 10px;
}
header nav {
  display: flex;
  align-items: center;
  gap: 20px;
}
header nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  padding: 6px 10px;
  color: var(--brand-primary);
  border-radius: 8px;
  position: relative;
  transition: color .20s, background .20s;
}
header nav a:hover,
header nav a:focus {
  background: var(--lux-gold);
  color: #fff;
  outline: none;
}
header nav a.btn-primary {
  margin-left: 16px;
}
header img[alt="Sabor de Origem"] {
  max-width: 150px;
  margin-right: 36px;
}

/* Hamburger (mobile menu) toggle */
.mobile-menu-toggle {
  display: none;
  font-size: 1.85rem;
  color: var(--brand-primary);
  background: none;
  border: none;
  cursor: pointer;
  padding: 9px 13px;
  border-radius: 50%;
  transition: background .2s;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: var(--lux-gold);
  color: #fff;
}

/* ================== MOBILE MENU ================== */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  z-index: 200;
  background-color: rgba(34,23,15,0.93);
  transform: translateX(100%);
  transition: transform .4s cubic-bezier(.87,.02,.23,1);
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-end;
  padding: 0;
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
}
.mobile-menu-close {
  font-size: 2rem;
  color: #fff;
  margin: 27px 30px 0 0;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 201;
  align-self: flex-end;
  padding: 1px 4px;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 28px;
  width: 100vw;
  padding: 32px 40px;
  margin-top: 34px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.25rem;
  color: #fff;
  padding: 10px 16px;
  border-radius: 11px;
  transition: background .16s, color .16s;
  width: max-content;
  display: block;
}
.mobile-nav a.btn-primary {
  font-weight: 700;
  background: var(--lux-gold);
  color: var(--brand-primary);
  box-shadow: 0 4px 24px 0 rgba(199,163,80,0.14);
}
.mobile-nav a:hover {
  background: var(--lux-gold);
  color: var(--brand-primary);
}
.mobile-nav a:focus {
  outline: 2px solid var(--lux-gold);
  outline-offset: 4px;
}

/* Hide normal nav/show burger on mobile */
@media (max-width: 1040px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 1041px) {
  .mobile-menu {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: none;
  }
}

/* ================== BUTTON STYLES ================== */
.btn-primary,
.mobile-nav a.btn-primary,
footer .btn-primary {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 1.08rem;
  background: var(--lux-gold);
  color: var(--brand-primary);
  padding: 15px 36px;
  border: none;
  border-radius: 11px;
  box-shadow: 0 4px 24px 0 rgba(199,163,80,0.11);
  transition: background .25s, color .20s, transform .10s, box-shadow .20s;
  cursor: pointer;
  letter-spacing: 0.01em;
  display: inline-block;
}
.btn-primary:hover, .btn-primary:focus,
.mobile-nav a.btn-primary:hover, .mobile-nav a.btn-primary:focus {
  background: #fff;
  color: var(--lux-gold);
  box-shadow: 0 6px 30px 0 rgba(199,163,80,0.19);
  outline: none;
  transform: translateY(-2px) scale(1.030);
}
.btn-secondary {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  background: transparent;
  color: var(--brand-primary);
  border: 2px solid var(--lux-gold);
  padding: 15px 32px;
  border-radius: 11px;
  transition: background .20s, color .20s, border .18s, transform .10s;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: var(--lux-gold);
  color: #fff;
  border: 2px solid var(--lux-gold);
  transform: translateY(-1.5px);
}


/* ================== MAIN SECTIONS ==================*/
main {
  padding-top: 24px;
  padding-bottom: 32px;
}
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: 18px;
  background: transparent;
}
@media (max-width: 640px) {
  section {
    padding: 30px 6px;
  }
}

/* Section heading accent underline */
section h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 8px;
}
section h2:after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: var(--lux-gold);
  border-radius: 4px;
  margin-top: 8px;
}


/* ================== CARDS ================== */
.card, .testimonial-card {
  background: var(--lux-card-bg);
  border-radius: 16px;
  box-shadow: var(--lux-card-shadow);
  margin-bottom: 20px;
}
.card {
  padding: 22px 26px 22px 34px;
  border-left: 5px solid var(--lux-gold);
  transition: box-shadow .20s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 8px 40px 0 rgba(76,49,31,0.14);
}

.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 10px;
}


/* ================== TESTIMONIALS ================== */
.testimonial-card {
  font-size: 1.05rem;
  color: var(--brand-primary);
  background: var(--lux-card-bg);
  border-left: 6px solid var(--lux-gold);
  box-shadow: 0 2px 12px 0 rgba(76,49,31,0.13);
  margin-bottom: 20px;
}
.testimonial-card p {
  font-size: 1.15rem;
  color: var(--lux-ebony);
  margin-bottom: 8px;
  font-style: italic;
}
.testimonial-card b {
  color: var(--lux-gold);
  font-weight: 700;
}
.testimonial-card div:last-child {
  letter-spacing: 0.10em;
  color: var(--lux-gold);
  font-size: 1.125rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
}

/* ================== FOOTER ================== */
footer {
  background: var(--brand-primary);
  color: #fff;
  padding-top: 46px;
  padding-bottom: 30px;
  font-size: 1rem;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
footer .content-wrapper {
  justify-content: space-between;
  align-items: flex-start;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 40px;
}
.footer-brand {
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.footer-brand img {
  max-width: 130px;
  margin-bottom: 8px;
}
.footer-nav, .footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav a, .footer-links a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #fff;
  transition: color .16s;
  font-size: 1.08rem;
  font-weight: 500;
}
.footer-nav a:hover, .footer-links a:hover {
  color: var(--lux-gold);
}
.social-links {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 22px;
  margin-top: 22px;
}
.social-links img {
  width: 34px; height: 34px;
  filter: brightness(2) sepia(1) hue-rotate(-10deg) saturate(1.6);
  transition: filter .20s, transform .13s;
  cursor: pointer;
}
.social-links img:hover {
  filter: brightness(2.7) sepia(1) hue-rotate(-10deg) saturate(2.2) drop-shadow(0 2px 6px var(--lux-gold));
  transform: scale(1.08);
}

/* ================== SPACING HELPERS & OVERLAP PREVENTION ================== */
section, .card, .testimonial-card, .content-wrapper, .text-image-section, .card-container {
  margin-bottom: 20px;
}

/* Explicit spacing inside content grids */
.content-grid > * {
  margin-right: 0;
  margin-bottom: 0;
}

/* Prevent overlap and enhance whitespace */
.card, .testimonial-card, .feature-item { margin-bottom: 20px; }
.section, section { margin-bottom: 60px; }

/* ================== RESPONSIVE DESIGN ================== */
@media (max-width: 950px) {
  .container { max-width: 98vw; }
  footer .content-wrapper {
    flex-direction: column;
    gap: 30px;
    align-items: flex-start;
  }
}
@media (max-width: 768px) {
  .text-image-section, .content-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .card-container, .content-grid {
    flex-direction: column;
    gap: 18px;
  }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.35rem; }
  main { padding-top: 14px; padding-bottom: 14px; }
  .btn-primary, .btn-secondary, .mobile-nav a.btn-primary { font-size: 1rem; padding: 13px 19px; }
}
@media (max-width: 540px) {
  .container { padding-left: 6px; padding-right: 6px; }
  .footer-brand img { max-width: 102px; }
  .footer-brand { font-size: .97rem; }
  .section, section { padding: 14px 2px; }
  h1 { font-size: 1.35rem; }
  h2 { font-size: 1.08rem; }
  .card, .testimonial-card { padding: 14px 8px 14px 12px; }
}

/* ================== FOCUS ACCESSIBILITY ================== */
a:focus, button:focus { outline: 2px solid var(--lux-gold); outline-offset: 2px; }

/* ================== COOKIE CONSENT BANNER ================== */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  width: 100vw;
  background: #fffbed;
  color: var(--brand-primary);
  box-shadow: 0 0 24px 0 rgba(76,49,31,.16);
  border-top: 4px solid var(--lux-gold);
  z-index: 3000;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 26px 30px;
  transition: transform .38s cubic-bezier(.87,.02,.23,1), opacity .22s;
}
.cookie-banner.hide {
  opacity: 0;
  transform: translateY(100%);
  pointer-events: none;
}
.cookie-banner__msg {
  font-size: 1.07rem;
  max-width: 530px;
  color: var(--brand-primary);
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
}
.cookie-banner__actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  margin-left: 34px;
}
.cookie-btn {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  padding: 10px 22px;
  font-size: 1rem;
  border-radius: 8px;
  background: var(--lux-gold);
  color: var(--brand-primary);
  border: none;
  margin-left: 0;
  cursor: pointer;
  font-weight: 600;
  transition: background .12s, color .12s, transform .09s;
}
.cookie-btn:active {
  background: #fff;
  color: var(--lux-gold);
}
.cookie-btn.cookie-settings {
  background: transparent;
  color: var(--brand-primary);
  border: 2px solid var(--lux-gold);
}
.cookie-btn.cookie-settings:hover {
  background: var(--lux-gold);
  color: #fff;
}
.cookie-btn:hover { background: #fff; color: var(--lux-gold); transform: scale(1.04); }

@media (max-width: 650px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 22px 7px;
    gap: 19px;
  }
  .cookie-banner__actions { margin-left: 0; gap: 12px; }
}

/* ================== COOKIE PREFERENCES MODAL ================== */
.cookie-modal {
  display: none;
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: rgba(34,23,15,0.74);
  z-index: 4000;
  align-items: center;
  justify-content: center;
}
.cookie-modal.open {
  display: flex;
  animation: fadeIn 0.25s;
}
.cookie-modal__content {
  background: #fffbed;
  border-radius: 18px;
  padding: 38px 28px 28px 28px;
  box-shadow: 0 10px 40px 0 rgba(76,49,31,.14);
  max-width: 420px;
  width: 98vw;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  position: relative;
}
.cookie-modal__title {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--brand-primary);
}
.cookie-modal__close {
  position: absolute;
  right: 21px;
  top: 14px;
  font-size: 1.65rem;
  color: var(--brand-primary);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0 7px;
  transition: color .14s;
}
.cookie-modal__close:hover {
  color: var(--lux-gold);
}
.cookie-modal__category {
  display: flex;
  flex-direction: row;
  align-items: center;
  margin-bottom: 11px;
  width: 100%;
  gap: 12px;
}
.cookie-modal__category label {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-weight: 600;
  color: var(--brand-primary);
  font-size: 1rem;
  cursor: pointer;
}
.cookie-switch {
  position: relative;
  display: inline-block;
  width: 44px; height: 24px;
}
.cookie-switch input {
  opacity: 0;
  width: 0; height: 0;
}
.cookie-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0;
  right: 0; bottom: 0;
  background: var(--lux-warm-grey);
  border-radius: 24px;
  transition: background .18s;
}
.cookie-switch input:checked + .cookie-slider {
  background: var(--lux-gold);
}
.cookie-slider:before {
  content: "";
  position: absolute;
  left: 4px;
  top: 4px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: transform .18s;
}
.cookie-switch input:checked + .cookie-slider:before {
  transform: translateX(18px);
}
.cookie-modal__footer {
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  margin-top: 17px;
  justify-content: flex-end;
}
.cookie-modal__desc {
  font-size: 0.98rem;
  color: var(--brand-primary);
  margin-left: 5px;
}
.cookie-category-essential label { opacity: 0.7; }
.cookie-category-essential .cookie-switch {
  pointer-events: none;
  filter: grayscale(1) opacity(0.6);
}
@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

/* ================== MICRO-INTERACTIONS & HOVER FX ================== */
.card, .btn-primary, .testimonial-card, .social-links img,
.btn-secondary, .cookie-btn, .cookie-modal__close {
  transition: box-shadow .14s, background .18s, color .14s, border .15s, transform .16s;
}
.card:hover, .testimonial-card:hover { box-shadow: 0 10px 38px 0 rgba(199,163,80,0.22); }

/* ================== MISCELLANEOUS ================== */
::-webkit-scrollbar {
  width: 8px;
  background: var(--lux-warm-grey);
  border-radius: 8px;
}
::-webkit-scrollbar-thumb {
  background: var(--lux-gold);
  border-radius: 8px;
}

::selection {
  background: var(--lux-gold);
  color: #fff;
}

/* ================== END ================== */  
