/* =============================
  CSS RESET & BASELINE
============================= */
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,
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;
}

body {
  font-family: 'Open Sans', Arial, sans-serif;
  color: #3C2E21;
  background: #FFFBE6;
  font-size: 16px;
  line-height: 1.65;
  min-height: 100vh;
  letter-spacing: 0.02em;
}

img {
  max-width: 100%;
  display: inline-block;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  outline: none;
  background: none;
  border: none;
}
ul, ol {
  list-style: none;
  padding-left: 0;
}

strong {
  font-weight: 600;
}

a {
  color: #1B3059;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #C75C32;
  text-decoration: underline;
}

/* =============================
  VINTAGE RETRO BASE THEME
============================= */
:root {
  --primary: #1B3059;
  --secondary: #F8C05C;
  --accent: #E4EDF5;
  --off-white: #FFFBE6;
  --brown: #3C2E21;
  --retro-orange: #C75C32;
  --retro-blue: #4F7CAC;
  --retro-green: #7FB285;
  --retro-red: #E85F5C;
  --retro-bg: #FAF1DF;
}

/* Vintage Fonts */
h1, h2, h3, h4, .btn-primary, nav a, .blog-category, .star-rating {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
}

/* =============================
  STRUCTURE AND SECTION LAYOUT
============================= */
.container {
  width: 100%;
  max-width: 1160px;
  padding-left: 20px;
  padding-right: 20px;
  margin: 0 auto;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 24px;
}

section,
.section {
  margin-bottom: 60px;
  padding: 40px 0 40px 0;
  background: none;
}

@media (max-width: 768px) {
  section, .section {
    padding: 32px 0 32px 0;
    margin-bottom: 36px;
  }
  .container {
    padding-left: 12px;
    padding-right: 12px;
  }
}

.text-section {
  max-width: 740px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Flex Containers for Patterns */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  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;
  background: #FCF4DD;
  padding: 24px 28px;
  border-radius: 18px;
  border: 2px solid #F8C05C;
  box-shadow: 0 4px 16px 0 rgba(60,46,33,0.08);
  margin-bottom: 20px;
  min-width: 0;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

@media (max-width: 768px) {
  .content-wrapper, .content-grid {
    gap: 16px;
  }
  .testimonial-card {
    padding: 18px 14px;
    gap: 14px;
    font-size: 15px;
  }
  .text-image-section, .feature-item {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
}

/* =============================
  TYPOGRAPHY
============================= */
h1 {
  font-size: 2.6rem;
  color: var(--primary);
  line-height: 1.13;
  margin-bottom: 16px;
}
h2 {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 10px;
}
h3 {
  font-size: 1.35rem;
  color: var(--retro-orange);
}
h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--retro-blue);
}
p, li, .faq-list p {
  font-size: 1rem;
  line-height: 1.72;
  color: #3C2E21;
}
.hero h1 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 800;
  font-size: 2.2rem;
  color: var(--retro-orange);
}
@media (max-width: 420px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.7rem; }
  h3 { font-size: 1.1rem; }
}

/* =============================
  HEADER & NAVIGATION
============================= */
header {
  background: #FFF7CE;
  border-bottom: 5px solid var(--secondary);
  box-shadow: 0 3px 18px -8px rgba(27,48,89,0.10);
  z-index: 101;
  position: relative;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 78px;
  position: relative;
}
header nav {
  display: flex;
  gap: 18px;
  align-items: center;
}
header nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  color: var(--primary);
  font-size: 1.02rem;
  border-radius: 4px;
  padding: 4px 10px;
  transition: background 0.2s, color 0.2s;
}
header nav a:hover, header nav a:focus {
  background: var(--secondary);
  color: var(--retro-orange);
  text-decoration: none;
}
.btn-primary {
  font-size: 1.05rem;
  background-color: var(--retro-orange);
  color: var(--off-white);
  border-radius: 28px;
  padding: 12px 32px;
  margin-left: 14px;
  font-weight: 800;
  box-shadow: 0 2px 6px 0 rgba(27,48,89,0.13);
  border: 2.5px solid transparent;
  transition: background 0.2s, border 0.2s, color 0.2s, box-shadow 0.18s;
  cursor: pointer;
  text-shadow: 1px 1px #a63e21;
}
.btn-primary:hover, .btn-primary:focus {
  background: #fff;
  color: var(--retro-orange);
  border-color: var(--retro-orange);
  box-shadow: 0 3px 16px 0 rgba(199,92,50,0.14);
  text-decoration: underline;
}

/* Hamburger for mobile */
.mobile-menu-toggle {
  display: none;
  font-size: 2.1rem;
  background: none;
  border: none;
  color: var(--primary);
  cursor: pointer;
  padding: 5px 16px;
  z-index: 104;
  border-radius: 4px;
  box-shadow: 0 2px 5px 0 rgba(51,34,17,0.07);
  transition: background 0.15s, color 0.15s;
}
.mobile-menu-toggle:active {
  background: var(--secondary);
  color: var(--retro-orange);
}

/* Mobile Navigation Overlay */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; bottom: 0; right: 0;
  background: #FDF6E3;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0;
  transform: translateX(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.36s cubic-bezier(.73,.01,.43,.99), opacity 0.28s;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: all;
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 18px 24px 0 0;
  font-size: 2rem;
  color: var(--retro-orange);
  background: transparent;
  cursor: pointer;
  border: none;
  z-index: 202;
  transition: color 0.15s;
}
.mobile-menu-close:hover {
  color: var(--primary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 54px 0 0 34px;
}
.mobile-nav a {
  color: var(--primary);
  font-size: 1.20rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 8px 0 8px 0px;
  border-radius: 2px;
  transition: background 0.18s, color 0.15s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--secondary);
  color: var(--retro-orange);
  text-decoration: none;
}

@media (max-width: 1025px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 1026px) {
  .mobile-menu,
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* =============================
  HERO SECTION & PAGE HEADINGS
============================= */
.hero {
  background-color: #191855;
  border-bottom: 6px double var(--secondary);
  padding: 62px 0 62px 0;
  margin-bottom: 60px;
}
.hero .content-wrapper {
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 24px;
}
.hero h1 {
  color: var(--secondary);
  text-shadow: 3.5px 2.5px #1B3059;
  font-size: 2.5rem;
  margin-bottom: 6px;
  letter-spacing: 0.06em;
}
.hero p {
  color: #fff9e9;
  font-size: 1.17rem;
  font-family: 'Open Sans';
  margin-bottom: 18px;
}
.hero .btn-primary {
  background: var(--secondary);
  color: var(--primary);
  text-shadow: none;
  margin-left: 0;
  margin-top: 16px;
  font-size: 1.15rem;
  border: 2px solid var(--primary);
}
.hero .btn-primary:hover {
  background: #fff;
  color: var(--retro-orange);
  border-color: var(--retro-orange);
}
@media (max-width: 650px) {
  .hero {
    padding: 38px 0 38px 0;
  }
  .hero h1 {
    font-size: 1.35rem;
  }
}

/* =============================
  LISTS, FEATURES, VALORES, FAQ
============================= */
section ul, section ol, .faq-list {
  margin-left: 0;
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
section ul li, section ol li, .faq-list li {
  position: relative;
  background: #FFF9EA;
  border-radius: 11px;
  padding: 14px 20px 14px 54px;
  margin-bottom: 2px;
  font-size: 1.08rem;
  color: var(--brown);
  box-shadow: 0 1px 8px 0 rgba(31,24,9,0.07);
  font-family: 'Open Sans', Arial, sans-serif;
  min-height: 44px;
}
section ul li img, .faq-list li img {
  position: absolute;
  top: 13px;
  left: 15px;
  width: 24px;
  height: 24px;
  object-fit: contain;
  opacity: 0.82;
}
section ul li strong {
  color: var(--primary);
  font-family: 'Montserrat', Arial, sans-serif;
}

.faq-list h3 {
  color: var(--retro-orange);
  font-size: 1.18rem;
  margin-bottom: 0.5em;
  font-family: 'Montserrat';
}
.faq-list li p {
  margin: 0;
}

@media (max-width: 650px) {
  section ul li, section ol li, .faq-list li {
    padding: 12px 12px 12px 40px;
    font-size: 0.96rem;
    border-radius: 7px;
  }
  section ul li img, .faq-list li img {
    left: 8px; top: 10px; width: 18px; height: 18px;
  }
}

/* =============================
  CARDS & BLOG PREVIEWS
============================= */
.card, .blog-preview {
  background: #FCF0CF;
  border: 2.5px solid var(--secondary);
  border-radius: 15px;
  box-shadow: 0 2px 11px 0 rgba(31,24,9,0.08);
  padding: 22px 28px 20px 28px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.13s, box-shadow 0.18s;
}
.blog-preview:hover, .card:hover {
  transform: translateY(-4px) scale(1.015);
  box-shadow: 0 8px 32px 0 rgba(199,92,50,0.11);
}
.blog-preview h3 {
  color: var(--retro-orange);
  margin-bottom: 5px;
}
.blog-category {
  display: inline-block;
  background: var(--retro-orange);
  color: #fffbe6;
  border-radius: 19px;
  padding: 3px 12px;
  font-size: 0.88rem;
  margin-right: 7px;
  margin-bottom: 7px;
  font-family: 'Montserrat';
}

@media (max-width: 700px) {
  .card, .blog-preview {
    padding: 12px 10px 12px 10px;
    gap: 6px;
  }
  .blog-category { font-size: 0.81rem; }
}

/* =============================
  TESTIMONIALS & STAR RATING
============================= */
.testimonial-card {
  background: #FBF5E9;
  border: 2px dashed var(--retro-orange);
  color: #2E2A23;
  position: relative;
  font-size: 1.01rem;
  box-shadow: 0 2px 24px 0 rgba(27,48,89,0.10);
  transition: transform 0.13s, box-shadow 0.16s;
}
.testimonial-card:hover {
  transform: scale(1.014) translateY(-2px);
  box-shadow: 0 8px 28px 0 rgba(199,92,50,0.08);
}
.testimonial-card p {
  font-style: italic;
  color: #472E13;
  margin-bottom: 0.4em;
}
.testimonial-card span {
  color: var(--retro-blue);
  font-size: 1.04em;
}
.star-rating {
  color: #F2C34D;
  font-size: 1.25em;
  font-family: 'Montserrat', Arial, sans-serif;
  letter-spacing: 1.4px;
}

@media (max-width: 450px) {
  .testimonial-card {
    font-size: .96rem;
    padding: 12px 6px;
    border-radius: 7px;
  }
}

/* =============================
  FOOTER
============================= */
footer {
  background: #F5E8C3;
  border-top: 6px double var(--secondary);
  padding: 40px 0 14px 0;
  font-size: 1rem;
}
footer .container {
  display: flex;
  flex-direction: column;
}
.footer-logo, footer img[alt="Voz Viva"] {
  width: 110px;
  height: auto;
  margin-bottom: 16px;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 38px;
  justify-content: space-between;
  align-items: flex-start;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
footer nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--primary);
  font-size: 0.97rem;
  padding: 2px 0;
  border-radius: 2px;
}
footer nav a:hover {
  background: var(--secondary);
  color: var(--retro-orange);
}
footer p {
  margin-bottom: 2px;  
}
footer div:last-child a {
  margin-right: 9px;
}
footer img[alt^='icon-'] {
  width: 22px;
  height: 22px;
  vertical-align: middle;
  margin-right: 4px;
}
@media (max-width: 900px) {
  footer .content-wrapper {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
}

/* =============================
  BUTTONS & INTERACTIONS
============================= */
button {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  border-radius: 6px;
  background: var(--retro-blue);
  color: #fffbe6;
  padding: 9px 20px;
  box-shadow: 0 2px 6px 0 rgba(27,48,89,0.10);
  border: 2px solid var(--retro-blue);
  cursor: pointer;
  transition: background 0.14s, color 0.15s, box-shadow 0.15s;
}
button:hover, button:focus {
  background: #fffbe6;
  color: var(--retro-blue);
  border: 2px solid var(--retro-blue);
  box-shadow: 0 4px 17px 0 rgba(31,24,9,0.07);
}

/* =============================
  INPUTS & FORMS
============================= */
input[type="search"], input[type="text"], input[type="email"], textarea {
  border-radius: 8px;
  border: 2.2px solid var(--secondary);
  background: #FEFBE9;
  font-size: 1rem;
  color: var(--brown);
  padding: 9px 18px;
  margin: 10px 0 18px 0;
  transition: border .22s;
}
input[type="search"]:focus, input[type="text"]:focus, input[type="email"]:focus, textarea:focus {
  border-color: var(--retro-orange);
}

/* =============================
  COOKIE BANNER & CONSENT MODAL
============================= */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: #402F1B;
  color: #FFF7E3;
  font-size: 1rem;
  z-index: 5000;
  box-shadow: 0 -2px 18px 0 rgba(27,48,89,0.16);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 18px 12px;
  min-height: 74px;
  animation: banner-slide-up 0.48s cubic-bezier(.61,.27,.49,.95);
}
@keyframes banner-slide-up {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  max-width: 1160px;
  width: 100%;
  justify-content: space-between;
}
.cookie-banner__text {
  flex: 1 1 250px;
  font-size: 1.04rem;
  color: #FFF7E3;
}
.cookie-banner__actions {
  display: flex;
  gap: 12px;
  align-items: center;
}
.banner-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  padding: 7px 20px;
  border-radius: 20px;
  border-width: 2px;
  font-weight: 700;
  background: var(--secondary);
  color: var(--brown);
  border: 2px solid var(--secondary);
  transition: background 0.16s, color 0.16s, border 0.16s;
  cursor: pointer;
}
.banner-btn.accept {
  background: var(--retro-orange);
  color: #FFFBE6;
  border: 2px solid var(--retro-orange);
}
.banner-btn.reject {
  background: #fffbe6;
  color: var(--retro-orange);
  border: 2px solid var(--retro-orange);
}
.banner-btn.settings {
  background: #F8C05C;
  color: var(--primary);
  border: 2px solid var(--secondary);
}
.banner-btn:hover, .banner-btn:focus {
  background: var(--primary);
  color: #FFFBE6;
  border-color: var(--primary);
}

/* COOKIE CONSENT MODAL */
.cookie-modal-overlay {
  position: fixed; left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(60,46,33,0.76);
  z-index: 6000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fade-in 0.29s cubic-bezier(.87,.07,.42,.95);
}
@keyframes fade-in {
  from { opacity: 0; } to { opacity: 1; }
}
.cookie-modal {
  background: #FFFBE6;
  border-radius: 22px;
  box-shadow: 0 8px 64px 0 rgba(60,46,33,0.23);
  padding: 38px 40px 34px 40px;
  min-width: 330px;
  max-width: 95vw;
  display: flex;
  flex-direction: column;
  gap: 30px;
  position: relative;
  animation: modal-slide-up 0.43s cubic-bezier(.56,.23,.61,.89);
}
@keyframes modal-slide-up {
  from { transform: translateY(60px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-modal h2 {
  color: var(--retro-orange);
  font-size: 1.4rem;
  margin-bottom: 8px;
}
.cookie-modal__categories {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.cookie-modal__category {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}
.cookie-toggle {
  appearance: none;
  width: 38px;
  height: 24px;
  border-radius: 14px;
  background: #E4EDF5;
  position: relative;
  outline: none;
  transition: background 0.23s;
  cursor: pointer;
}
.cookie-toggle:checked {
  background: var(--retro-orange);
}
.cookie-toggle::after {
  content: '';
  display: block;
  height: 20px;
  width: 20px;
  background: #fffbe6;
  border-radius: 50%;
  position: absolute;
  top: 2px; left: 4px;
  box-shadow: 0 1px 3px 0 rgba(60,46,33,0.12);
  transition: left 0.23s cubic-bezier(.66,.03,.30,1);
}
.cookie-toggle:checked::after {
  left: 14px;
  background: #F8C05C;
}
.cookie-modal__actions {
  display: flex;
  gap: 24px;
  justify-content: flex-end;
  margin-top: 6px;
}
.cookie-modal__close {
  position: absolute;
  top: 18px;
  right: 29px;
  font-size: 1.25rem;
  background: none;
  border: none;
  color: var(--retro-orange);
  cursor: pointer;
  z-index: 1;
}
.cookie-modal__close:hover {
  color: var(--primary);
}

@media (max-width: 480px) {
  .cookie-modal {
    padding: 16px 6vw 18px 6vw;
    min-width: 0;
    gap: 18px;
  }
  .cookie-modal__actions {
    flex-direction: column;
    gap: 12px;
    margin-top: 13px;
  }
  .cookie-modal h2 { font-size: 1.08rem; }
}

/* Hide banner if class 'hide' is set */
.cookie-banner.hide,
.cookie-modal-overlay.hide {
  display: none !important;
}

/* =============================
  RESPONSIVE
============================= */
@media (max-width: 900px) {
  .container {
    max-width: 96vw;
  }
}
@media (max-width: 700px) {
  body {
    font-size: 15px;
  }
  h1 { font-size: 1.45rem; }
  h2 { font-size: 1.15rem; }
}

/* =============================
  RETRO ELEMENTS - PATTERNS
============================= */
section {
  position: relative;
}
section::before {
  content: '';
  display: block;
  position: absolute;
  top: 12px; left: 12px;
  width: 44px; height: 44px;
  background: repeating-linear-gradient(-45deg, #F8C05C, #F8C05C 6px, #fffbe6 6px, #fffbe6 12px);
  opacity: 0.1;
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}
section:last-child::before {
  display: none;
}

/* Section separator lines (retro look) */
section:not(.hero)::after {
  content: '';
  display: block;
  margin: 36px auto 0 auto;
  width: 80px;
  height: 5px;
  background: var(--retro-orange);
  border-radius: 9px;
  opacity: 0.19;
}
@media (max-width: 700px) {
  section::before {
    width: 30px; height: 30px; left: 7px; top: 7px;
  }
  section:not(.hero)::after {
    margin: 18px auto 0 auto;
    width: 44px;
    height: 3px;
  }
}

/* Decorative retro dots for cards */
.card::after, .blog-preview::after, .testimonial-card::after {
  content: '';
  display: block;
  position: absolute;
  right: 10px; bottom: 9px;
  width: 26px; height: 12px;
  background: radial-gradient(circle, #C75C32 15%, transparent 17%);
  opacity: 0.09;
  z-index: 0;
}

/* =============================
  UTILITIES
============================= */
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 16px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 16px; }
.align-center { text-align: center; }
.d-flex { display: flex; }
.flex-col { flex-direction: column; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }

/* Hide visually only */
.visually-hidden {
  border: 0 !important;
  clip: rect(1px, 1px, 1px, 1px); /* IE6, IE7 */
  clip: rect(1px 1px 1px 1px);
  height: 1px; width: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  position: absolute !important;
}

/* =============================
  PRINT STYLES
============================= */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal-overlay {
    display: none !important;
  }
  body {
    background: #fff !important;
    color: #111 !important;
  }
}
