/* ==========================================================================
   Sabores em Aprendizagem – CSS Reset, Normalize & Brand Foundations
   ========================================================================== */

/*--- CSS RESET/Normalize ---*/
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;
  -webkit-text-size-adjust: 100%;
}
body {
  line-height: 1.6;
  min-height: 100vh;
  background: #F7F4EF;
  color: #42231A;
  font-family: 'Libre Baskerville', 'Open Sans', serif;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, picture, video, canvas, svg {
  display: inline-block;
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  outline: none;
  background: none;
  color: inherit;
  border-radius: 0;
  border: none;
  box-shadow: none;
  box-sizing: border-box;
}
a {
  color: #622E1E;
  background-color: transparent;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus, a:hover {
  color: #F2B94A;
  text-decoration: underline;
}
ul, ol {
  list-style: none;
}
button {
  cursor: pointer;
  transition: background 0.2s, color 0.15s, box-shadow 0.2s;
}

/* --- Typography hierarchy --- */
h1, .h1 {
  font-family: 'Montserrat', 'Georgia', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: #622E1E;
  margin-bottom: 24px;
  letter-spacing: 0.01em;
}
h2, .h2 {
  font-family: 'Montserrat', 'Georgia', serif;
  font-size: 2rem;
  font-weight: 600;
  color: #622E1E;
  margin-bottom: 16px;
}
h3, .h3 {
  font-family: 'Montserrat', 'Georgia', serif;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: #74432A;
}
h4, .h4 {
  font-size: 1.125rem;
  font-family: 'Libre Baskerville', serif;
  font-weight: 700;
  margin-bottom: 10px;
}
p, ul, ol, li, input, span, label {
  font-family: 'Libre Baskerville', 'Open Sans', serif;
  font-size: 1rem;
  font-weight: 400;
  color: #42231A;
}
strong, b {
  font-weight: 700;
}
em, i {
  font-style: italic;
}
small {
  font-size: 0.93em;
  color: #7A5D44;
}

/*-------------------------------
  Brand Palette & Variables
-------------------------------*/
:root {
  --color-primary: #622E1E;
  --color-secondary: #F2B94A;
  --color-accent: #F7F4EF;
  --color-contrast: #42231A;
  --color-muted: #E9E3DA;
  --color-border: #DFD5C5;
  --color-white: #fff;
  --color-cta-text: #fff;
  --color-link-btn-bg: #F2B94A;
  --color-link-btn-fg: #42231A;
  --box-shadow-elegant: 0 2px 8px rgba(98,46,30,0.03), 0 1.5px 5px rgba(98,46,30,0.075);
  --radius-normal: 14px;
  --radius-soft: 8px;
  --radius-round: 100px;
}

/*-----------------------------------
  Container & Layout Foundation
-----------------------------------*/
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/*----------------------
  Header & Navigation
----------------------*/
header {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 4px 14px rgba(98,46,30,0.04);
  padding-top: 0;
  padding-bottom: 0;
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0 14px 0;
}

.main-nav {
  display: flex;
  gap: 28px;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat', serif;
  font-weight: 500;
  font-size: 1rem;
  color: #622E1E;
  padding: 4px 0;
  position: relative;
}
.main-nav a:after {
  content: '';
  display: block;
  margin: 0 auto;
  width: 0%;
  height: 2px;
  background: #F2B94A;
  transition: width 0.32s cubic-bezier(0.77,0,0.175,1);
}
.main-nav a:hover:after, .main-nav a:focus:after {
  width: 100%;
}

.cta-btn {
  display: inline-block;
  background: var(--color-primary);
  color: var(--color-cta-text);
  font-family: 'Montserrat', serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 11px 34px;
  border-radius: var(--radius-round);
  box-shadow: 0 2px 10px rgba(98,46,30,0.0705);
  border: none;
  margin-left: 18px;
  position: relative;
  transition: background 0.2s, color 0.2s, box-shadow 0.18s;
  letter-spacing: .04em;
}
.cta-btn:hover, .cta-btn:focus {
  background: #7d3825;
  color: #F2B94A;
  box-shadow: 0 5px 18px rgba(98,46,30,0.09);
}

.link-btn {
  background: var(--color-link-btn-bg);
  color: var(--color-link-btn-fg);
  font-family: 'Montserrat', serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 10px 30px;
  border-radius: var(--radius-normal);
  display: inline-block;
  transition: background 0.2s, color 0.2s, box-shadow 0.18s;
  box-shadow: 0 1px 4px rgba(98,46,30,0.04);
  text-align: center;
}
.link-btn:hover, .link-btn:focus {
  background: #f7e0a8;
  color: #74432A;
  box-shadow: 0 4px 16px rgba(98,46,30,0.10);
}

/*--------------------------
  Hamburger Mobile Menu
--------------------------*/
.mobile-menu-toggle {
  display: none;
}
@media (max-width: 992px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    font-size: 2.3rem;
    background: none;
    color: #622E1E;
    padding: 7px 16px;
    border-radius: 50%;
    box-shadow: none;
    margin-left: 8px;
    transition: box-shadow 0.18s, background 0.18s;
  }
  .mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
    background: #F2B94A;
    color: #42231A;
    box-shadow: 0 3px 12px rgba(98, 46, 30, 0.07);
  }
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: #f7f4ef;
  box-shadow: 0 0 0 100vmax rgba(66,35,26,.24);
  pointer-events: none;
  opacity: 0;
  transform: translateX(-100%);
  transition: opacity 0.35s cubic-bezier(.48,.27,.32,1.30), transform 0.45s cubic-bezier(.24,.52,.21,1);
}
.mobile-menu.open {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}
.mobile-menu-close {
  display: flex;
  align-self: flex-end;
  margin: 22px 28px 12px 0;
  background: none;
  color: #622E1E;
  font-size: 2rem;
  border: none;
  padding: 4px 7px;
  border-radius: var(--radius-soft);
  transition: background .2s, color .2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #F2B94A;
  color: #42231A;
  outline: none;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: flex-start;
  padding: 20px 42px 0 42px;
}
.mobile-nav a {
  font-family: 'Montserrat', serif;
  font-size: 1.1rem;
  color: #622E1E;
  padding: 7px 0;
  border-radius: var(--radius-normal);
  background: none;
  min-width: 180px;
  transition: color .24s, background .18s;
}
.mobile-nav a:active, .mobile-nav a:hover, .mobile-nav a:focus {
  background: #F2B94A;
  color: #74432A;
}

@media (min-width: 993px) {
  .mobile-menu, .mobile-menu.open, .mobile-menu-close, .mobile-nav, .mobile-menu-toggle {
    display: none !important;
  }
}

/*-----------------------------------
  Hero Section & Special Layouts
-----------------------------------*/
.hero-section {
  background: linear-gradient(101deg, #f7f4ef 74%, #e9e3da 100%);
  padding: 70px 0 60px 0;
  margin-bottom: 44px;
  box-shadow: 0 2px 10px rgba(98,46,30,0.038);
}
.hero-section h1 {
  font-size: 2.8rem;
  font-family: 'Montserrat', 'Georgia', serif;
  color: #622E1E;
  font-weight: 800;
  margin-bottom: 18px;
  line-height: 1.15;
  letter-spacing: 0.03em;
}
.hero-section p {
  font-size: 1.25rem;
  color: #7A5D44;
  margin-bottom: 36px;
}
.hero-section .cta-btn {
  margin: 0;
}

/*---------------------
  Flexbox Utility Patterns
---------------------*/
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  margin-top: 20px;
  margin-bottom: 10px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  padding: 26px 22px 20px 22px;
  border-radius: var(--radius-normal);
  box-shadow: var(--box-shadow-elegant);
  border: 1px solid var(--color-border);
  min-width: 230px;
  max-width: 340px;
  flex: 1 1 230px;
}
.feature-item img {
  width: 38px; height: 38px; margin-bottom: 0;
}
.feature-item h3 {
  font-size: 1.19rem;
}

@media (max-width: 900px) {
  .feature-grid {
    flex-direction: column;
    gap: 20px;
  }
  .feature-item {
    min-width: unset;
    max-width: 100%;
    width: 100%;
  }
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  box-shadow: var(--box-shadow-elegant);
  border-radius: var(--radius-normal);
  border: 1px solid var(--color-border);
  margin-bottom: 20px;
  position: relative;
  padding: 28px 24px;
  transition: box-shadow 0.18s, border-color 0.19s;
  min-width: 220px;
  flex: 1 1 220px;
}
.card:hover, .card:focus-within {
  box-shadow: 0 5px 32px rgba(98,46,30,0.13);
  border-color: var(--color-secondary);
  z-index: 2;
}

.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: 20px;
  }
}

.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: var(--radius-soft);
  background: #fffbe9;
  border: 1px solid #ede4bb;
  box-shadow: 0 2px 6px rgba(98,46,30,0.055);
  max-width: 420px;
  min-width: 240px;
  flex: 1 1 240px;
  font-size: 1.08rem;
  color: #312016;
  transition: box-shadow .18s, border-color .19s;
}
.testimonial-card:hover {
  box-shadow: 0 10px 30px rgba(98,46,30,0.13);
  border-color: var(--color-secondary);
  background: #fff7db;
}
.testimonial-card strong {
  color: #622E1E;
  font-weight: 700;
}
.testimonial-card img {
  width: 18px;
  height: 18px;
  vertical-align: bottom;
  margin-right: 1px;
}
.testimonial-card span {
  color: #74432A;
}
.testimonial-card p {
  color: #3f2615;
  text-align: center;
}
@media (max-width: 768px) {
  .testimonial-slider {
    flex-direction: column;
    gap: 12px;
  }
  .testimonial-card {
    max-width: 100%;
    min-width: unset;
    padding: 15px;
  }
}

/*---------------------
  Utility Classes/Sections
---------------------*/
.text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.text-section ul, .text-section ol {
  padding-left: 24px;
  list-style: disc inside;
  margin-bottom: 16px;
}
.text-section ul li, .text-section ol li {
  margin-bottom: 9px;
}

.faq-list {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
}
.faq-list .text-section {
  flex: 1 1 220px;
  background: #fff;
  border-radius: var(--radius-soft);
  border: 1px solid var(--color-border);
  padding: 18px 16px;
  box-shadow: 0 0.5px 4px rgba(98,46,30,0.025);
  margin-bottom: 20px;
}

input[type="text"] {
  width: 100%;
  padding: 13px 17px;
  font-size: 1rem;
  font-family: inherit;
  border-radius: var(--radius-soft);
  border: 1px solid var(--color-border);
  background: #f6f1e5;
  outline: none;
  margin-top: 7px;
  transition: box-shadow .16s, border-color .18s;
}
input[type="text"]:focus {
  border-color: #F2B94A;
  box-shadow: 0 2px 8px rgba(98,46,30,0.07);
}

.map-preview {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 0;
  color: #74432A;
}

/*-----------------------
  Footer
-----------------------*/
footer {
  background: #F7F4EF;
  border-top: 1px solid var(--color-border);
  padding: 44px 0 14px 0;
  font-size: 1rem;
  color: #3e2212;
  box-shadow: 0 -2px 16px rgba(98,46,30,0.03);
  margin-top: 44px;
}
.footer-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.footer-wrapper nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 8px;
}
.footer-wrapper nav a {
  font-size: 1rem;
  color: #622E1E;
  transition: color 0.19s;
}
.footer-wrapper nav a:hover, .footer-wrapper nav a:focus {
  color: #F2B94A;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 9px;
  text-align: center;
  width: 100%;
  flex-wrap: wrap;
  color: #74432A;
}
.footer-contact img {
  width: 19px;
  height: 19px;
  vertical-align: middle;
  margin-right: 6px;
}
.footer-wrapper small {
  margin-top: 10px;
  color: #7A5D44;
}
@media (min-width: 650px) {
  .footer-wrapper {
    flex-direction: row;
    align-items: flex-start;
    gap: 32px;
    justify-content: space-between;
  }
  .footer-contact { text-align: left; align-items: flex-start; }
}

/*--------------------
  Cookie Consent Banner
--------------------*/
.cookie-banner {
  position: fixed;
  z-index: 18000;
  left: 0; right: 0;
  bottom: 0;
  background: #dfd5c5fa;
  color: #53301A;
  border-top: 1.5px solid #cbb692;
  box-shadow: 0 -2px 22px rgba(98,46,30,0.10);
  padding: 28px 16px 23px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100vw;
  font-family: 'Libre Baskerville', 'Open Sans', serif;
  font-size: 1rem;
  animation: cookie-slide-up 0.38s cubic-bezier(.38,.65,.19,1.09);
}
@keyframes cookie-slide-up {
  0% { transform: translateY(100%); opacity:0; }
  100% { transform: translateY(0); opacity:1; }
}
.cookie-banner-buttons {
  display: flex;
  gap: 14px;
  margin-top: 2px;
}
.cookie-btn, .cookie-btn:visited {
  min-width: 129px;
  font-family: 'Montserrat', serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 10px 27px;
  border-radius: var(--radius-round);
  border: 0.5px solid #cbb692;
  background: #F2B94A;
  color: #42231A;
  transition: background .17s, color .17s, box-shadow .18s;
  margin: 0 2px;
}
.cookie-btn:hover,.cookie-btn:focus {
  background: #f7e0a8;
  color: #622E1E;
  border-color: #e5ce9b;
}
.cookie-btn-settings {
  background: transparent;
  border: 1px solid #cbb692;
  color: #74432A;
}
.cookie-btn-settings:hover, .cookie-btn-settings:focus {
  background: #ede4bb;
  color: #622E1E;
}

/* Cookie Modal */
.cookie-modal {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  position: fixed;
  z-index: 19999;
  left: 50%;
  top: 50%;
  min-width: 340px;
  max-width: 92vw;
  background: #fffbe8;
  border: 2px solid #F2B94A;
  border-radius: var(--radius-normal);
  padding: 44px 32px 34px 32px;
  box-shadow: 0 16px 48px rgba(98,46,30,0.17);
  transform: translate(-50%, -50%) scale(0.92);
  opacity: 0;
  pointer-events: none;
  transition: opacity .32s, transform .32s;
}
.cookie-modal.open {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: auto;
}
.cookie-modal h2 {
  font-size: 1.28rem;
  color: #622E1E;
  font-family: 'Montserrat', serif;
}
.cookie-modal-close {
  position: absolute;
  right: 22px; top: 22px;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: #74432A;
  cursor: pointer;
  border-radius: 50%;
  padding: 5px 10px;
  transition: background 0.15s, color .16s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: #F2B94A;
  color: #42231A;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 12px 0 22px 0;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
}
.cookie-category label {
  font-size: 1.06rem;
}
.cookie-category input[type="checkbox"] {
  accent-color: #F2B94A;
  width: 22px;
  height: 22px;
  margin: 0 6px 0 0;
}
.cookie-category.essential input[type="checkbox"] {
  accent-color: #F2B94A;
  pointer-events: none;
}
.cookie-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

@media (max-width: 600px) {
  .cookie-modal {
    min-width: 0;
    padding: 23px 12px 14px 12px;
  }
  .cookie-banner {
    padding: 16px 7px 13px 7px;
    font-size: .95rem;
    gap: 7px;
  }
  .cookie-banner-buttons {
    flex-wrap: wrap;
    gap: 9px;
  }
}


/*------------------
  Responsive Rules
------------------*/
@media (max-width: 1080px) {
  .container { max-width: 98vw; }
}
@media (max-width: 768px) {
  h1,.h1 { font-size: 2rem; }
  h2,.h2 { font-size: 1.35rem; }
  .section { padding: 24px 7px; margin-bottom: 40px; }
  .footer-wrapper { flex-direction: column; gap: 18px; }
  .feature-item, .card { padding: 16px 10px; }
}
@media (max-width: 490px) {
  .container { padding-left: 4px; padding-right: 4px; }
  .section { padding: 9px 2px; }
}

/*----------------------
  Animations & Effects
----------------------*/
.card, .testimonial-card, .feature-item {
  transition: box-shadow .17s, border-color .16s, background .17s;
}
.cta-btn, .link-btn {
  transition: background .2s, color .21s, box-shadow .15s, transform .12s;
}
.cta-btn:active, .link-btn:active {
  transform: scale(.97);
}
button:focus, a:focus {
  outline: 2px solid #F2B94A;
  outline-offset: 2px;
}

/* Hide from screen readers when needed */
[aria-hidden="true"] { display: none !important; }

/* ------------------------------
   Custom Scrollbar for Elegance
----------------------------------*/
html {
  scrollbar-width: thin;
  scrollbar-color: #E9E3DA #F7F4EF;
}
::-webkit-scrollbar {
  width: 11px;
  background: #F7F4EF;
}
::-webkit-scrollbar-thumb {
  background: #e9e3da;
  border-radius: 7px;
  border: 3px solid #f7f4ef;
}
::-webkit-scrollbar-thumb:hover {
  background: #F2B94A;
}

/*-----------------------------------
  Miscellaneous
-----------------------------------*/
ul:not([class]), ol:not([class]) {
  margin-bottom: 16px;
  padding-left: 30px;
  list-style: disc inside;
}

.section:last-child,
.content-wrapper:last-child {
  margin-bottom: 0 !important;
}

::-webkit-input-placeholder { color: #7A5D44; }
::-moz-placeholder { color: #7A5D44; }
:-ms-input-placeholder { color: #7A5D44; }
::placeholder { color: #7A5D44; opacity: 1; }

/*************************************
 *    END Sabores em Aprendizagem    *
 *************************************/
