/* 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; }
body {
  line-height: 1.6;
  font-family: 'Roboto', Arial, sans-serif;
  background: #fff;
  color: #1a1a1a;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
*, *:before, *:after { box-sizing: inherit; }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; background: none; border: none; cursor: pointer; }

/* COLOR VARIABLES AND FALLBACKS */
:root {
  --brand-primary: #23375C;
  --brand-accent: #26763D;
  --brand-secondary: #F5F7FA;
  --monochrome-black: #101010;
  --monochrome-white: #fff;
  --monochrome-gray: #e5e7eb;
  --text-primary: #202020;
  --text-secondary: #4B5563;
  --border: #d1d5db;
  --hover-card: #f5f7fa;
  --shadow: 0 6px 28px -8px rgba(30,34,41,0.08); 
  --radius: 14px;
  --transition: 0.19s cubic-bezier(.6,.14,.31,.95);
}

body {
  background: var(--monochrome-white);
  color: var(--text-primary);
}

/* TYPOGRAPHY */
h1, .h1 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 2.8rem;
  font-weight: 700;
  letter-spacing: -1px;
  color: var(--monochrome-black);
  margin-bottom: 16px;
  line-height: 1.13;
}
h2, .h2 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 2rem;
  font-weight: 600;
  color: var(--brand-primary);
  margin-bottom: 16px;
  line-height: 1.18;
}
h3, .h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}
h4 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--brand-primary);
  margin-bottom: 8px;
}
p, li, dd, dt {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
strong { font-weight: 700; color: var(--monochrome-black); }
small { font-size: 0.95em; color: var(--text-secondary); }
dl dt {
  font-weight: bold;
  margin-top: 16px;
  color: var(--brand-primary);
}
dl dd {
  margin-left: 0;
  margin-bottom: 8px;
  color: var(--text-secondary);
}

a, nav a, .btn-primary {
  transition: color var(--transition), background var(--transition), border var(--transition), box-shadow var(--transition);
}

/* CONTAINER & SECTION BASE */
.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
  display: flex;
  flex-direction: column;
}
section {
  background: var(--monochrome-white);
  box-shadow: none;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  align-items: flex-start;
}

/* CARD CONTAINER FLEX PATTERNS */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 40px;
}
.card {
  background: var(--monochrome-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  margin-bottom: 20px;
  position: relative;
  padding: 28px 24px;
  min-width: 260px;
  max-width: 400px;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.card:hover {
  box-shadow: 0 14px 28px -10px rgba(35, 55, 92, 0.20);
  border-color: var(--brand-primary);
}
.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;
  margin-bottom: 36px;
}

/* TESTIMONIAL CARDS */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: var(--monochrome-white);
  border-left: 5px solid var(--brand-primary);
  box-shadow: 0 2px 18px -8px rgba(35,55,92,0.08);
  padding: 20px 32px;
  margin-bottom: 20px;
  border-radius: 10px;
  max-width: 650px;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.testimonial-card:hover {
  box-shadow: 0 8px 32px -10px rgba(35,55,92,0.15);
  border-left-color: var(--brand-accent);
}
.testimonial-card p {
  font-style: italic;
  font-size: 1.08rem;
  color: var(--text-primary);
}
.testimonial-card span { color: var(--text-secondary); font-size: 0.99rem; }

/* FEATURE/DETAIL PATTERNS */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 18px;
}
.feature-item strong {
  color: var(--brand-primary);
  font-size: 1.07rem;
}

/* BUTTONS AND LINKS */
.btn-primary, .btn-primary:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--monochrome-black);
  color: var(--monochrome-white);
  border-radius: 8px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  padding: 14px 34px;
  border: none;
  cursor: pointer;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 8px -4px rgba(30,34,41,0.07);
  margin-top: 10px;
  margin-bottom: 10px;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--brand-primary);
  color: var(--brand-accent);
  box-shadow: 0 4px 22px -6px rgba(35,55,92,0.22);
}
.btn-primary:active {
  background: var(--brand-accent);
  color: #fff;
}
nav a, .mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1.03rem;
  position: relative;
  color: var(--brand-primary);
  margin: 0 14px;
  padding: 6px 2px;
  border-radius: 3px;
  transition: color var(--transition), background var(--transition);
}
nav a:hover, nav a:focus {
  color: var(--brand-accent);
  background: rgba(35,55,92,0.05);
}
.mobile-nav a {
  color: var(--monochrome-black);
  padding: 16px 0 16px 0;
  font-size: 1.25rem;
  border-bottom: 1px solid var(--border);
  margin: 0;
  width: 100%;
  display: block;
}
.mobile-nav a:active {
  background: var(--hover-card);
}

/* HEADER & NAVIGATION */
header {
  width: 100%;
  background: var(--monochrome-white);
  box-shadow: 0 2px 22px -18px rgba(35,55,92,0.12);
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 10;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  padding-bottom: 10px;
  gap: 24px;
}
header img {
  height: 46px;
  width: auto;
  margin-right: 20px;
}
header nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}
header .btn-primary {
  margin-left: 10px;
  min-width: 150px;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  color: var(--brand-primary);
  font-size: 2.1rem;
  padding: 6px 10px;
  border-radius: 6px;
  margin-left: 10px;
  transition: background var(--transition);
  z-index: 20;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--hover-card);
  color: var(--brand-accent);
}

/* MOBILE MENU */
.mobile-menu {
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(16,16,16,0.95);
  will-change: transform;
  transform: translateX(-100vw);
  transition: transform 0.35s cubic-bezier(.63,.04,.31,1);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: all;
  animation: slideInMobileMenu 0.38s ease;
}
@keyframes slideInMobileMenu {
  from { transform: translateX(-100vw); }
  to { transform: translateX(0); }
}
.mobile-menu-close {
  font-size: 2rem;
  margin: 22px 0 8px 26px;
  color: var(--monochrome-white);
  background: none;
  border-radius: 5px;
  padding: 8px 16px;
  align-self: flex-end;
  transition: background var(--transition);
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--brand-primary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  padding: 12px 32px;
  gap: 6px;
}

/* MAIN CONTENT SECTIONS */
main section {
  border-radius: var(--radius);
  box-shadow: none;
  margin-bottom: 32px;
  padding: 40px 0 18px 0;
}
main .content-wrapper > h1,
main .content-wrapper > h2 {
  margin-top: 0px;
  margin-bottom: 12px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
}
main ul, main ol {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 20px;
  margin-left: 1.2em;
}
main ol {
  list-style-type: decimal;
  margin-left: 1.4em;
}
main ul li, main ol li {
  background: var(--hover-card);
  border-radius: 8px;
  padding: 16px 18px;
  color: var(--text-primary);
  line-height: 1.55;
  font-size: 1.03rem;
  display: flex;
  align-items: flex-start;
  gap: 18px;
}
main ul li img {
  width: 38px;
  height: 38px;
  margin-right: 8px;
}

/* TEXT SECTION INSIDE CONTENT */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.text-section ul {
  gap: 8px;
  margin-left: 1.2em;
}
.text-section li {
  background: none;
  padding: 0;
  font-size: 1.02rem;
}

/* MAP PLACEHOLDER (CONTACT PAGE) */
.map-placeholder {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 13px 18px;
  border-radius: 8px;
  background: var(--monochrome-gray);
  margin-top: 10px;
}

/* TABELA STIL */
table {
  border-collapse: collapse;
  width: 100%;
  margin-bottom: 18px;
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 1.04rem;
  background: var(--monochrome-white);
  box-shadow: var(--shadow);
}
thead th {
  background: var(--brand-primary);
  color: var(--monochrome-white);
  font-weight: 700;
  padding: 14px 10px;
  text-align: left;
}
tbody td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--border);
}
tbody tr:last-child td {
  border-bottom: none;
}
tbody tr:nth-child(even) td {
  background: var(--hover-card);
}

/* FOOTER */
footer {
  background: var(--monochrome-black);
  color: var(--monochrome-white);
  padding: 42px 0 30px 0;
  margin-top: 40px;
  border-top: 1px solid #20242b;
}
footer .container {
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}
footer img {
  width: 44px;
  height: 44px;
  margin-right: 24px;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
footer nav a {
  color: var(--monochrome-white);
  opacity: 0.88;
  font-size: 0.98rem;
  margin-bottom: 4px;
  padding: 0px;
}
footer nav a:hover, footer nav a:focus {
  color: var(--brand-accent);
  opacity: 1;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.96rem;
  color: var(--monochrome-white);
  opacity: 0.92;
  text-align: right;
}

/* SPACING AND FLEX UTILS - OVERRIDES TO ENFORCE REQUIREMENTS */
.section { margin-bottom: 60px; padding: 40px 20px; }
.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; align-items: center; gap: 20px; padding: 20px; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* RESPONSIVE STYLES (MOBILE FIRST: <768PX) */
@media (max-width: 940px) {
  .container, footer .container {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 18px !important;
    padding-left: 14px;
    padding-right: 14px;
  }
  header .container { align-items: center; gap: 13px; }
}
@media (max-width: 768px) {
  header nav { display: none !important; }
  header .btn-primary { display: none; }
  .mobile-menu-toggle { display: inline-flex; }
  .mobile-menu { display: flex; }
  main section, .section {
    padding: 24px 0 18px 0;
    margin-bottom: 32px;
  }
  .text-image-section, .content-grid, .card-container {
    flex-direction: column;
    gap: 20px !important;
    align-items: flex-start;
  }
  .testimonial-card {
    padding: 20px 14px;
    margin-left: 0;
    max-width: 100%;
  }
  footer .container {
    flex-direction: column;
    gap: 20px;
    padding: 0 8px;
    align-items: flex-start;
  }
  .footer-contact { text-align: left; }
  .map-placeholder img { width: 34px; height: 34px; }
}

/* DESKTOP-ONLY: Slightly larger type and wider layouts */
@media (min-width: 1100px) {
  h1, .h1 { font-size: 3.5rem; }
  h2, .h2 { font-size: 2.35rem; }
  .container { padding-left: 38px; padding-right: 38px; }
}

/* MICROINTERACTIONS & TRANSITIONS */
.card, .btn-primary, .testimonial-card, nav a, .mobile-nav a, .mobile-menu, .mobile-menu-close {
  transition: all var(--transition);
}

/* HIDE SCROLL WHEN MOBILE MENU OPEN */
body.mobile-menu-open { overflow: hidden; }

/* ================ COOKIE CONSENT STYLES ================ */
.cookie-consent-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  background: var(--monochrome-black);
  color: var(--monochrome-white);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  z-index: 9870;
  padding: 20px 18px;
  box-shadow: 0 -4px 26px -10px rgba(35,55,92,0.12);
  justify-content: center;
  gap: 16px;
  animation: banner-appear 0.7s cubic-bezier(.63,.04,.31,1);
}
@keyframes banner-appear {
  from { transform: translateY(60px); opacity: 0; }
  to   { transform: translateY(0);   opacity: 1; }
}
.cookie-consent-banner p {
  font-size: 1.05rem;
  margin-bottom: 0;
  color: var(--monochrome-white);
}
.cookie-consent-btn, .cookie-settings-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 7px;
  padding: 10px 26px;
  border: none;
  margin-right: 7px;
  margin-left: 7px;
  box-shadow: 0 2px 10px -6px rgba(16,16,16,0.09);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.cookie-consent-btn.accept {
  background: var(--brand-accent);
  color: var(--monochrome-white);
}
.cookie-consent-btn.accept:hover, .cookie-consent-btn.accept:focus {
  background: var(--brand-primary);
}
.cookie-consent-btn.reject {
  background: var(--monochrome-gray);
  color: var(--monochrome-black);
}
.cookie-consent-btn.reject:hover, .cookie-consent-btn.reject:focus {
  background: #b0b7c3;
}
.cookie-settings-btn {
  background: none;
  color: var(--brand-accent);
  padding: 10px 14px;
  border: 1px solid var(--brand-accent);
}
.cookie-settings-btn:hover, .cookie-settings-btn:focus {
  background: var(--brand-accent);
  color: #fff;
}

/* COOKIE PREFERENCES MODAL */
.cookie-modal-overlay {
  position: fixed;
  z-index: 9880;
  left: 0; right: 0; top: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: rgba(16,16,16,0.66);
  display: none;
  align-items: center;
  justify-content: center;
  animation: fadeInModal 0.4s;
}
.cookie-modal-overlay.open {
  display: flex;
}
@keyframes fadeInModal {
    from { opacity: 0; } to { opacity: 1; }
}
.cookie-modal {
  background: var(--monochrome-white);
  color: var(--text-primary);
  border-radius: 14px;
  max-width: 410px;
  width: 90vw;
  box-shadow: 0 12px 54px -16px rgba(35,55,92,0.22);
  padding: 34px 28px 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: fadeInCookieModal 0.4s;
  position: relative;
}
@keyframes fadeInCookieModal {
  from { transform: scale(0.98); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.cookie-modal h3 {
  color: var(--brand-primary);
  margin-bottom: 8px;
}
.cookie-modal-category {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}
.cookie-modal-category label {
  font-weight: 500;
  color: var(--text-primary);
}
.cookie-switch {
  display: inline-flex;
  align-items: center;
}
.cookie-switch input[type="checkbox"] {
  appearance: none;
  width: 38px;
  height: 20px;
  border-radius: 12px;
  background: #d6d6d6;
  position: relative;
  outline: none;
  margin: 0 10px 0 0;
  transition: background var(--transition);
  cursor: pointer;
}
.cookie-switch input[type="checkbox"]:checked {
  background: var(--brand-accent);
}
.cookie-switch input[type="checkbox"]:disabled {
  background: #c0c1c3;
  cursor: not-allowed;
}
.cookie-switch input[type="checkbox"]:after {
  content: '';
  position: absolute;
  left: 3px; top: 3px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px -1px #8884;
  transition: transform 0.2s;
}
.cookie-switch input[type="checkbox"]:checked:after {
  transform: translateX(18px);
}
.cookie-modal-actions {
  display: flex;
  gap: 14px;
  justify-content: flex-end;
  margin-top: 18px;
}
.cookie-modal .close-modal-btn {
  position: absolute;
  top: 12px; right: 16px;
  background: none;
  color: var(--brand-primary);
  font-size: 1.8rem;
  border-radius: 4px;
  padding: 2px 8px;
  z-index: 9922;
}
.cookie-modal .close-modal-btn:hover, .cookie-modal .close-modal-btn:focus {
  background: var(--monochrome-gray);
}

/* ================ END COOKIE CONSENT ==================== */

/* MISC SMALL EFFECTS */
::-webkit-input-placeholder { color: #b0b7c3; }
::-moz-placeholder { color: #b0b7c3; }
:-ms-input-placeholder { color: #b0b7c3; }
::placeholder { color: #b0b7c3; }

hr {
  border: 0; height: 1px;
  background: var(--border);
  margin: 26px 0;
}

/* ACCESSIBILITY and PRINT IMPROVEMENTS */
@media print {
  header, nav, .btn-primary, footer, .mobile-menu, .cookie-consent-banner, .cookie-modal-overlay { display: none !important; }
  main { padding: 0; }
}
