/* ============================================
   A2 Investimentos - Template 5: Dark & Crimson
   Primary: #1a1a2e | Accent: #E94560 | Dark: #0F0F1A | Light bg: #F5F5FA
   Font: Inter Tight (100-900)
   ============================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:ital,wght@0,100..900;1,100..900&display=swap');

/* --- Base --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Inter Tight', sans-serif;
  color: #1a1a2e;
  background: #F5F5FA;
  line-height: 1.7;
  overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 { font-family: 'Inter Tight', sans-serif; font-weight: 700; }
a { text-decoration: none; color: inherit; transition: color 0.3s ease; }
p { margin-bottom: 1rem; }
img { max-width: 100%; height: auto; display: block; }
.container, .container-fluid { padding-left: 1rem; padding-right: 1rem; }

/* --- Typography --- */
.display-1 { font-weight: 900; }
.display-2 { font-weight: 800; }
.display-4 { font-weight: 400; }
.display-5 { font-weight: 600; }
.display-7 { font-weight: 500; }
.text-primary { color: #1a1a2e !important; }
.text-black { color: #1a1a2e !important; }
.text-white { color: #ffffff !important; }

/* --- Buttons --- */
.btn {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 600;
  border-radius: 4px;
  padding: 0.75rem 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
  border: 2px solid transparent;
}
.btn-primary {
  background: #E94560;
  color: #fff;
  border-color: #E94560;
}
.btn-primary:hover {
  background: #c03950;
  border-color: #c03950;
  color: #fff;
}
.btn-black {
  background: #1a1a2e;
  color: #fff;
  border-color: #1a1a2e;
}
.btn-black:hover {
  background: #0F0F1A;
  border-color: #0F0F1A;
  color: #fff;
}
.btn-black-outline {
  background: transparent;
  color: #1a1a2e;
  border-color: #1a1a2e;
}
.btn-black-outline:hover {
  background: #1a1a2e;
  color: #fff;
}
.btn-secondary {
  background: transparent;
  color: #1a1a2e;
  border-color: #E94560;
}
.btn-secondary:hover {
  background: #E94560;
  color: #fff;
}

/* --- Navbar (NO fixed-top per Template 5) --- */
.custom-navbar {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  padding: 0.75rem 0;
  z-index: 1000;
  position: relative;
}
.custom-navbar .navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.custom-navbar .navbar-brand img {
  height: 3rem;
  width: auto;
}
.navbar-caption {
  font-weight: 700;
  font-size: 1.1rem;
  color: #1a1a2e;
}
.navbar-caption.text-primary { color: #1a1a2e !important; }
.navbar-caption.display-5 { font-weight: 700; }
.nav-link.link {
  font-weight: 500;
  color: #1a1a2e !important;
  padding: 0.5rem 1rem !important;
  transition: color 0.3s ease;
  font-size: 0.95rem;
}
.nav-link.link:hover { color: #E94560 !important; }
.nav-link.link.active { color: #E94560 !important; }
.navbar-buttons { margin-left: 0.75rem; }
.navbar-buttons .btn { padding: 0.5rem 1.5rem; font-size: 0.85rem; }
.navbar-toggler {
  border: none;
  padding: 0.5rem;
}
.navbar-toggler:focus {
  box-shadow: none;
  outline: none;
}
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(26, 26, 46, 0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* --- Hero Section (Parallax) --- */
.hero-section {
  position: relative;
  min-height: 100vh;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15, 15, 26, 0.7);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 2rem;
}
.hero-content h1 {
  font-size: 4rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
  color: #fff;
  line-height: 1.2;
}
.hero-content p {
  font-size: 1.2rem;
  font-weight: 300;
  max-width: 700px;
  margin: 0 auto 2rem;
  color: rgba(255,255,255,0.9);
}

/* --- Border Separator (Hero) --- */
.border-wrapper {
  width: 80px;
  height: 3px;
  background: #E94560;
  margin: 2rem auto;
}

/* --- Hero Bottom Row (2 cols under separator) --- */
.hero-bottom-row {
  margin-top: 2rem;
}
.hero-bottom-row .card {
  background: transparent;
  border: none;
}
.hero-bottom-row .card p {
  color: rgba(255,255,255,0.85);
  font-size: 1rem;
}

/* --- Section Spacing --- */
.section { padding: 5rem 0; }
.section-dark { background: #0F0F1A; color: #fff; }
.section-light { background: #F5F5FA; }
.section-parallax {
  position: relative;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

/* --- Section Headings --- */
.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: #1a1a2e;
}
.section-dark .section-title { color: #fff; }
.section-subtitle {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 3rem;
}
.section-dark .section-subtitle { color: rgba(255,255,255,0.7); }

/* --- Features / Advantages --- */
.feature-item {
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.feature-item:last-child { border-bottom: none; }
.feature-item h4 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #1a1a2e;
}
.section-dark .feature-item h4 { color: #fff; }
.feature-item p { color: #555; font-size: 0.95rem; }
.section-dark .feature-item p { color: rgba(255,255,255,0.7); }
.feature-icon {
  font-size: 2rem;
  color: #E94560;
  margin-bottom: 0.5rem;
}

/* --- Service Cards --- */
.service-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}
.service-card .card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.service-card .card-body {
  padding: 1.5rem;
}
.service-card .card-body h4 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #1a1a2e;
}
.service-card .card-body p {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* --- Embla Carousel --- */
.embla {
  overflow: hidden;
  position: relative;
}
.embla__viewport {
  overflow: hidden;
  width: 100%;
}
.embla__container {
  display: flex;
  gap: 1.5rem;
  user-select: none;
  -webkit-touch-callout: none;
}
.embla__slide {
  flex: 0 0 350px;
  min-width: 0;
  position: relative;
}
.embla__slide .slide-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
}
.embla__slide h4 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 0.5rem;
}
.embla__slide p {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.5;
}
.carousel-controls {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}
.carousel-controls button {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid #1a1a2e;
  background: transparent;
  color: #1a1a2e;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.carousel-controls button:hover {
  background: #E94560;
  border-color: #E94560;
  color: #fff;
}

/* --- Contact Form --- */
.contact-form-wrapper {
  background: #fff;
  border-radius: 8px;
  padding: 3rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  max-width: 700px;
  margin: 0 auto;
}
.contact-form-wrapper input,
.contact-form-wrapper textarea {
  width: 100%;
  padding: 0.9rem 1.2rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.95rem;
  margin-bottom: 1.2rem;
  transition: border-color 0.3s ease;
  background: #F5F5FA;
}
.contact-form-wrapper input:focus,
.contact-form-wrapper textarea:focus {
  outline: none;
  border-color: #E94560;
}
.contact-form-wrapper textarea { min-height: 140px; resize: vertical; }

/* --- Contact Cards --- */
.contact-card {
  background: #fff;
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  height: 100%;
}
.contact-card .icon-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #E94560;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.5rem;
}
.contact-card h5 {
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #1a1a2e;
}
.contact-card p { color: #666; font-size: 0.9rem; margin-bottom: 0; }

/* --- FAQ Accordion --- */
.faq-wrapper {
  max-width: 800px;
  margin: 0 auto;
}
.faq-wrapper .accordion-item {
  border: none;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  background: transparent;
  margin-bottom: 0;
}
.faq-wrapper .accordion-button {
  font-weight: 700;
  font-size: 1.1rem;
  color: #1a1a2e;
  padding: 1.25rem 0;
  background: transparent;
  box-shadow: none;
}
.faq-wrapper .accordion-button:not(.collapsed) {
  color: #E94560;
  background: transparent;
  box-shadow: none;
}
.faq-wrapper .accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%231a1a2e'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}
.faq-wrapper .accordion-button:not(.collapsed)::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23E94560'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}
.faq-wrapper .accordion-body {
  padding: 0 0 1.5rem 0;
  color: #555;
  line-height: 1.7;
}

/* --- Map --- */
.map-container iframe {
  width: 100%;
  height: 400px;
  border: none;
}

/* --- Footer --- */
.footer {
  background: #0F0F1A;
  color: rgba(255,255,255,0.8);
  padding: 3rem 0;
  text-align: center;
}
.footer a {
  color: #E94560;
  text-decoration: none;
  transition: color 0.3s ease;
}
.footer a:hover {
  color: #fff;
  text-decoration: underline;
}
.footer .footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}
.footer .copyright {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

/* --- Legal Pages Shared --- */
.legal-page .container a {
  color: #000000;
  text-decoration: none;
}
.legal-page .container a:hover {
  color: #00008B;
  text-decoration: underline;
}
.legal-page h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}
.legal-page .last-updated {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 2.5rem;
}
.legal-page h3.wp-block-heading {
  font-size: 1.3rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #1a1a2e;
}
.legal-page h3.wp-block-heading strong { font-weight: 800; }
.legal-page h4.wp-block-heading {
  font-size: 1.1rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: #333;
}
.legal-page p, .legal-page li {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.8;
}
.legal-page ul, .legal-page ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.legal-page li { margin-bottom: 0.5rem; }

/* --- Cookie Table Styles --- */
.cookie-tables-white .wp-block-table table,
.cookie-tables-white .wp-block-table th,
.cookie-tables-white .wp-block-table td {
  border: 1px solid black !important;
  border-collapse: collapse !important;
}
.cookie-tables-white .wp-block-table th,
.cookie-tables-white .wp-block-table td {
  padding: 12px 8px !important;
}
.cookie-tables-white .wp-block-table th {
  background: #f0f0f0;
  font-weight: 700;
  text-align: left;
}

/* --- Image Wrappers --- */
.img-wrapper {
  overflow: hidden;
  border-radius: 8px;
}
.img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.img-wrapper:hover img { transform: scale(1.05); }

/* --- Stats / Numbers --- */
.stat-number {
  font-size: 3rem;
  font-weight: 900;
  color: #E94560;
  line-height: 1;
}
.stat-label {
  font-size: 0.9rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 0.5rem;
}

/* --- Responsive --- */
@media (max-width: 991px) {
  .hero-content h1 { font-size: 2.5rem; }
  .hero-content p { font-size: 1rem; }
  .section { padding: 3rem 0; }
  .section-title { font-size: 2rem; }
  .parallax-overlay .container { padding: 2rem 1rem; }
  .contact-form-wrapper { padding: 2rem; }
  .embla__slide { flex: 0 0 280px; }
  .navbar-buttons { margin-left: 0; margin-top: 0.5rem; }
}
@media (max-width: 767px) {
  .hero-section { min-height: 70vh; background-attachment: scroll; }
  .section-parallax { background-attachment: scroll; }
  .hero-content h1 { font-size: 2rem; }
}

/* --- Parallax overrides for sections --- */
.parallax-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15, 15, 26, 0.8);
  z-index: 1;
}
.parallax-content {
  position: relative;
  z-index: 2;
  color: #fff;
}

/* --- Full-width image+text sections --- */
.split-section .img-col { padding: 0; }
.split-section .img-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 400px;
}
.split-section .text-col {
  padding: 4rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.split-section .text-col h2 { font-size: 2.2rem; font-weight: 800; margin-bottom: 1.5rem; }
.split-section .text-col p { color: #555; line-height: 1.8; }
.split-section.dark .text-col { background: #0F0F1A; }
.split-section.dark .text-col h2 { color: #fff; }
.split-section.dark .text-col p { color: rgba(255,255,255,0.7); }

/* --- Page Header (internal pages) --- */
.page-header {
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
  padding: 8rem 0 3rem;
}
.page-header .overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15, 15, 26, 0.75);
  z-index: 1;
}
.page-header .container {
  position: relative;
  z-index: 2;
}
.page-header h1 {
  color: #fff;
  font-size: 3rem;
  font-weight: 900;
}
