/* =======================================================
   CSS RESET & BASE TYPOGRAPHY (Scandinavian Clean)
   ======================================================= */
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 {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}
body {
  min-height: 100vh;
  /* Scandinavian background: subtle warmth */
  background: #FCF8F3;
  color: #3A2B2A;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  letter-spacing: 0.003em;
  overflow-x: hidden;
}
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}
a {
  color: #3A2B2A;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus,
a:hover {
  color: #856F57;
  outline: none;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}
ul, ol {
  list-style: none;
}

/* -- Container & Layouts ----------------------------- */
.container {
  width: 100%;
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

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

/* -- Scandinavian Typography Hierarchy --------------- */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  color: #3A2B2A;
  font-weight: 700;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
  line-height: 1.2;
}
h2 {
  font-size: 2rem;
  margin-bottom: 18px;
  line-height: 1.25;
}
h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
  line-height: 1.35;
}
h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}
p, li, span, address {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #3A2B2A;
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 14px;
}

strong, b {
  font-weight: 700;
}

/* -------------------------------
   HEADER
--------------------------------*/
header {
  background: #FFF;
  border-bottom: 1px solid #EBE6DE;
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-top: 18px;
  padding-bottom: 18px;
}
.logo-link img {
  height: 48px;
  width: auto;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: #3A2B2A;
  padding: 3px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}
.main-nav a:hover,
.main-nav a.active {
  color: #B7985E;
  border-bottom: 2px solid #DBC9A6;
}
.cta-btn {
  background: #DBC9A6;
  color: #3A2B2A;
  border-radius: 32px;
  padding: 12px 32px;
  font-weight: 600;
  letter-spacing: 0.04em;
  display: inline-block;
  box-shadow: 0 2px 10px 0 rgba(150, 130, 104, 0.07);
  transition: box-shadow 0.18s, background 0.16s, color 0.16s;
  border: none;
  margin-left: 10px;
  cursor: pointer;
}
.cta-btn:hover, .cta-btn:focus {
  background: #F7E4C4;
  color: #856F57;
  box-shadow: 0 4px 18px 0 rgba(150, 120, 90, 0.10);
}

/* Burger menu button (hidden on desktop) */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  right: 28px;
  top: 26px;
  height: 40px;
  width: 40px;
  background: #DBC9A6;
  color: #3A2B2A;
  border-radius: 50%;
  border: none;
  font-size: 1.4rem;
  align-items: center;
  justify-content: center;
  z-index: 202;
  cursor: pointer;
  transition: background 0.18s;
}
.mobile-menu-toggle:active, .mobile-menu-toggle:focus {
  background: #F7E4C4;
}

/* Mobile menu overlay */
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 92vw;
  max-width: 370px;
  background: #FFF;
  box-shadow: -4px 0 20px 0 rgba(80, 60, 40, 0.12);
  padding: 38px 32px 32px 32px;
  z-index: 301;
  transform: translateX(102%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(.7,.06,.28,.97), opacity 0.20s;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2rem;
  color: #3A2B2A;
  align-self: flex-end;
  margin-bottom: 18px;
  cursor: pointer;
  transition: color 0.18s;
}
.mobile-menu-close:focus,
.mobile-menu-close:hover {
  color: #B7985E;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
}
.mobile-nav a {
  font-size: 1.09rem;
  font-weight: 600;
  color: #3A2B2A;
  padding: 8px 0 7px 0;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  background: #DBC9A6;
  color: #856F57;
}

/* -- Hide main-nav + cta-btn when mobile ------------ */
@media (max-width: 991px) {
  .main-nav,
  .header-flex .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 992px) {
  .mobile-menu,
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* -- HERO ------------------------------------------- */
.hero {
  background: #F7E4C4;
  border-radius: 0 0 48px 48px;
  box-shadow: 0 4px 52px 0 rgba(210, 170, 120, 0.10);
  padding-top: 54px;
  padding-bottom: 54px;
  margin-bottom: 56px;
  overflow: hidden;
}
@media (max-width: 650px) {
  .hero {
    border-radius: 0 0 30px 30px;
    padding-top: 24px;
    padding-bottom: 32px;
  }
}
.hero .content-wrapper {
  align-items: flex-start;
  max-width: 600px;
}
.hero h1 {
  color: #3A2B2A;
  text-shadow: 0 2px 2px rgba(200,183,140,0.07);
}
.hero p {
  font-size: 1.17rem;
  color: #5F504A;
  margin-bottom: 30px;
  margin-top: 10px;
}
.hero .cta-btn {
  margin-top: 10px;
}


/* -- Feature/Value Grid for Index, Catalog, Personalizacao -- */
.feature-grid, .value-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 24px;
  margin-bottom: 30px;
}
.feature-grid li, .value-item {
  background: #FFF;
  border: 1px solid #F1EFEB;
  border-radius: 18px;
  box-shadow: 0 2px 10px 0 rgba(220,200,170, 0.11);
  flex: 1 1 200px;
  padding: 30px 22px 24px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  transition: box-shadow 0.20s, transform 0.16s;
  margin-bottom: 20px;
}
.feature-grid li:hover, .value-item:hover {
  box-shadow: 0 8px 30px 0 rgba(180,150,95,0.15);
  transform: translateY(-4px) scale(1.02);
}
.feature-grid li img, .value-item img {
  width: 42px;
  height: 42px;
  margin-bottom: 10px;
}
.feature-grid li h3,
.value-item h3 {
  font-size: 1.18rem;
  margin-bottom: 8px;
}
.feature-grid li ul, .value-item ul {
  margin-top: 8px;
  padding-left: 6px;
}

/* -- Value Grid -- */
.value-grid {
  gap: 24px;
}
.value-item {
  flex: 1 1 220px;
}


/* -- Testimonial Cards ------------------------------------- */
.testimonial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.testimonial-card {
  background: #FFF;
  border: 1px solid #E6E1D7;
  border-radius: 16px;
  min-width: 280px;
  max-width: 380px;
  flex: 1 1 280px;
  color: #3A2B2A;
  box-shadow: 0 2px 12px 0 rgba(86,74,57,0.08);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  font-size: 1.02rem;
  margin-bottom: 20px;
  transition: box-shadow 0.17s, transform 0.13s;
  border-left: 4px solid #DBC9A6;
}
.testimonial-card:hover {
  box-shadow: 0 7px 24px 0 rgba(144,120,80,0.13);
  transform: translateY(-3px);
}
.testimonial-card p {
  color: #3A2B2A;
  margin-bottom: 0;
}
.star-rating {
  color: #E2C47E;
  font-size: 1.18rem;
  font-family: inherit;
  letter-spacing: 2px;
  margin-bottom: -4px;
}
.testimonial-card span {
  font-size: 0.98rem;
  color: #7C6B63;
}

/* -- FAQ (Como Encomendar) ---------------------------- */
.faq-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 14px;
  margin-bottom: 18px;
}
.faq-item {
  flex: 1 1 250px;
  background: #FAF6EF;
  border: 1px solid #E8E3DB;
  border-radius: 13px;
  box-shadow: 0 2px 10px 0 rgba(220,200,170, 0.10);
  padding: 18px 16px;
  margin-bottom: 20px;
  transition: box-shadow 0.16s;
}
.faq-item h3 {
  font-size: 1.02rem;
  margin-bottom: 7px;
  color: #3A2B2A;
}
.faq-item p {
  font-size: 0.98rem;
}
.faq-item:hover {
  box-shadow: 0 6px 20px 0 rgba(200,170,110,0.12);
}

/* -- CTA Section -------------------------------------- */
.cta-section {
  background: #F7E4C4;
  border-radius: 20px;
  margin-bottom: 60px;
  box-shadow: 0 2px 12px 0 rgba(220,200,170, 0.10);
  padding: 40px 20px;
  text-align: center;
}
.cta-section .content-wrapper {
  align-items: center;
}
.cta-section h2 {
  color: #3A2B2A;
  font-size: 2rem;
 }
.cta-section p {
  color: #5F504A;
  max-width: 540px;
}
.cta-section .cta-btn {
  margin-top: 18px;
}

/* -- Content Grid/Row Layout as flex ------------------ */
.card-container,
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 32px;
}
.card-container {
  gap: 24px;
}
.card {
  background: #FFF;
  border: 1px solid #F2EADF;
  border-radius: 16px;
  box-shadow: 0 2px 10px 0 rgba(110,90,50,0.07);
  padding: 28px 18px 26px 18px;
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.17s, transform 0.13s;
}
.card:hover {
  box-shadow: 0 7px 24px 0 rgba(144,120,80,0.13);
  transform: translateY(-3px);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.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;
  }
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* -- Blog article list ------------------------------- */
.latest-articles-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 36px;
}
.latest-articles-list li {
  background: #FFFBF5;
  border: 1px solid #F3EBDF;
  border-radius: 15px;
  flex: 1 1 250px;
  min-width: 220px;
  max-width: 350px;
  padding: 18px 16px;
  margin-bottom: 20px;
  transition: box-shadow 0.15s, transform 0.13s;
}
.latest-articles-list li:hover {
  box-shadow: 0 6px 20px 0 rgba(200,170,110,0.12);
  transform: translateY(-4px) scale(1.03);
}
.latest-articles-list h3 {
  font-size: 1.19rem;
  margin-bottom: 7px;
}

.blog-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.blog-categories li {
  background: #DBC9A6;
  color: #3A2B2A;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 0.97rem;
  font-weight: 500;
  padding: 7px 18px;
  border-radius: 16px;
  margin-bottom: 10px;
}

/* -- Special pages (Thank You) ----------------------- */
.thank-you-hero {
  background: #F7E4C4;
  border-radius: 28px;
  padding: 70px 20px;
  margin-top: 50px;
  box-shadow: 0 2px 26px 0 rgba(180,165,120, 0.10);
}
.thank-you-hero h1 {
  font-size: 2.3rem;
}

/* -- Text section for About, Privacy, etc. ----------- */
.text-section {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.text-section > h1, .text-section > h2, .text-section > h3 {
  margin-top: 36px;
}
.text-section ul, .text-section ol {
  padding-left: 16px;
  margin-bottom: 10px;
}
.text-section li {
  margin-bottom: 8px;
  font-size: 1rem;
}
.text-section a {
  color: #3A2B2A;
  text-decoration: underline;
}

/* -- Contact Details Block ----------------- */
.contact-details p {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 1rem;
  margin-bottom: 8px;
}
.contact-details img {
  width: 22px;
  height: 22px;
}
.map p {
  font-size: 1.05rem;
  color: #523726;
  font-weight: 500;
}

/* =============== FOOTER ================== */
footer {
  background: #F7E4C4;
  border-top: 1px solid #E9E3D5;
  padding-top: 34px;
  padding-bottom: 16px;
}
.footer-flex {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 36px;
  justify-content: space-between;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.footer-nav a {
  color: #3A2B2A;
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: color 0.17s;
}
.footer-nav a:hover { color: #856F57; }

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  font-size: 0.97rem;
}
.footer-contact img {
  width: 19px;
  height: 19px;
}
.footer-copy {
  text-align: center;
  margin-top: 24px;
  font-size: 0.97rem;
  color: #816D5E;
  letter-spacing: 0.01em;
  font-family: 'Montserrat', Arial, sans-serif;
}

/* =====================
   COOKIE BANNER
======================*/
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #FFF9F4;
  border-top: 1px solid #E6DAC7;
  box-shadow: 0 -2px 14px 0 rgba(210,183,140,0.17);
  z-index: 4010;
  padding: 22px 20px 20px 20px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 30px;
  font-size: 1rem;
  transition: transform 0.3s cubic-bezier(.7,.11,.12,.99), opacity 0.22s;
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
}
.cookie-banner-text {
  flex: 1 1 280px;
  color: #3A2B2A;
  margin-bottom: 0;
}
.cookie-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
}
.cookie-btn {
  border: none;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  padding: 9px 22px;
  border-radius: 22px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.16s, color 0.16s, box-shadow 0.16s;
  margin-bottom: 0;
}
.cookie-btn.accept {
  background: #DBC9A6;
  color: #3A2B2A;
}
.cookie-btn.accept:hover,
.cookie-btn.accept:focus {
  background: #B7985E;
  color: #FFF;
}
.cookie-btn.reject {
  background: #FFF;
  color: #937856;
  border: 1.5px solid #DBC9A6;
}
.cookie-btn.reject:hover,
.cookie-btn.reject:focus {
  background: #DBC9A6;
  color: #3A2B2A;
}
.cookie-btn.settings {
  background: #F7E4C4;
  color: #6B533A;
  border: 1.5px solid #DBC9A6;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #DBC9A6;
  color: #3A2B2A;
}

/* Cookie modal (overlay) */
.cookie-modal-bg {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(58,43,42,0.16);
  z-index: 4020;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.21s;
}
.cookie-modal-bg.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: #FFF;
  border-radius: 18px;
  box-shadow: 0 8px 44px rgba(120,100,70,0.13);
  max-width: 410px;
  width: 92vw;
  padding: 36px 30px 28px 30px;
  position: relative;
}
.cookie-modal h2 {
  font-size: 1.22rem;
  margin-bottom: 15px;
  font-family: 'Playfair Display', serif;
}
.cookie-modal-close {
  position: absolute;
  top: 17px;
  right: 13px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #826A4C;
  cursor: pointer;
  transition: color 0.18s;
}
.cookie-modal-close:focus, .cookie-modal-close:hover {
  color: #3A2B2A;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 16px;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.cookie-category label {
  font-size: 1rem;
  font-weight: 600;
  color: #3A2B2A;
}
.cookie-category small {
  color: #927D6B;
  font-size: 0.91rem;
  margin-left: 10px;
}
.cookie-toggle {
  width: 36px;
  height: 21px;
  border-radius: 16px;
  background: #F0E6CF;
  position: relative;
  transition: background 0.18s;
  display: inline-block;
  vertical-align: middle;
}
.cookie-toggle input {
  display: none;
}
.cookie-toggle-slider {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #CCC;
  transition: left 0.18s, background 0.18s;
}
.cookie-toggle input:checked + .cookie-toggle-slider {
  left: 17px;
  background: #DBC9A6;
}
.cookie-category.essential .cookie-toggle {
  background: #DBC9A6 !important;
}
.cookie-category.essential .cookie-toggle-slider {
  background: #B7985E !important;
}
.cookie-category.essential small {
  color: #9B846F;
}
.cookie-modal-actions {
  text-align: right;
  margin-top: 16px;
}
.cookie-modal-actions .cookie-btn {
  margin-left: 12px;
}

/* =====================
   RESPONSIVE DESIGN
======================*/
@media (max-width: 1200px) {
  .container {
    max-width: 99vw;
  }
}
@media (max-width: 900px) {
  .container {
    max-width: 99vw;
  }
  .footer-flex {
    flex-direction: column;
    gap: 28px;
  }
}
@media (max-width: 768px) {
  header, .header-flex {
    padding-left: 0;
    padding-right: 0;
  }
  .footer-flex {
    padding-left: 0;
    padding-right: 0;
  }
  .hero {
    padding-top: 30px;
    padding-bottom: 26px;
    border-radius: 0 0 18px 18px;
    margin-bottom: 42px;
  }
  .feature-grid, .value-grid, .testimonial-list, .faq-list, .latest-articles-list, .content-grid, .card-container {
    flex-direction: column;
    gap: 18px;
  }
  .feature-grid li, .value-item, .card, .testimonial-card, .faq-item, .latest-articles-list li {
    max-width: 100%;
    min-width: 0;
  }
}
@media (max-width: 650px) {
  body, html {
    font-size: 15px;
  }
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.22rem; }
  .thank-you-hero {
    padding: 40px 10px;
    margin-top: 18px;
  }
  .cookie-banner {
    flex-direction: column;
    gap: 14px;
    font-size: 0.93rem;
    align-items: flex-start;
    padding: 16px 8px 8px 8px;
  }
}

/* Accessibility focus state */
a:focus, button:focus, .cta-btn:focus, .cookie-btn:focus {
  outline: 2px solid #B7985E;
  outline-offset: 1px;
}

/* ============== CUSTOM UTILS ============== */
.mt-32 { margin-top: 32px; }
.mb-20 { margin-bottom: 20px; }
.mb-36 { margin-bottom: 36px; }
.gap-12 { gap: 12px; }
.nowrap { white-space: nowrap; }

/* Hide visually but keep for screen readers */
.sr-only {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

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