/* =========================================
   1. GERAIS, RESET E LAYOUT (Sincronizado c/ Global)
   ========================================= */
@import url("https://fonts.googleapis.com/css2?family=Caveat:wght@600&display=swap");

html {
  scroll-behavior: smooth;
}

:root {
  --brand-gold: #baa360;
  --brand-red: #7f1810;
  --text-dark: #212529;
  --text-muted: #5f5f5f;
  --white: #ffffff;
  --bg-soft: #f4f7f9;
  --border-color: #e5e7eb;
  --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Open Sans", sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

ul { list-style: none; }

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

h1, h2, h3, h4 {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.section-padding {
  padding: 80px 0;
}

.bg-soft {
  background-color: var(--bg-soft);
}

.text-center {
  text-align: center;
}

section { scroll-margin-top: 100px; }

.sub-eyebrow {
  color: var(--brand-red);
  font-size: 0.95rem;
  font-weight: 700;
  display: block;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.title-xl {
  font-size: 2.5rem;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 30px;
  line-height: 1.2;
}

.line {
  width: 60px;
  height: 3px;
  background: var(--brand-red);
  margin: 0 auto 20px auto;
  border-radius: 2px;
}

/* Regras específicas para o Footer */
footer a {
  text-decoration: none !important;
  color: inherit !important;
}

footer a:hover {
  color: var(--brand-gold) !important;
}

/* =========================================
   2. HERO SECTION VENDUS (UPGRADE)
   ========================================= */
.product-hero {
  margin-top: 110px;
  padding: 80px 0 0 0;
  background:
    linear-gradient(
      135deg,
      rgba(21, 21, 21, 0.95) 0%,
      rgba(127, 24, 16, 0.9) 100%
    ),
    url("../img/capa-tech2.jpg") center/cover;
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden; 
}

.product-hero-content {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.back-link-wrapper {
  width: 100%;
  text-align: left;
  margin-bottom: 30px;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.btn-back i {
  font-size: 1.1rem;
}

.btn-back:hover {
  color: var(--white);
  transform: translateX(-6px);
}

.partner-badge-wrapper {
  margin-bottom: 25px;
}

.partner-badge {
  display: inline-flex;
  align-items: center;
  background: var(--white);
  padding: 8px 20px;
  border-radius: 50px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  gap: 15px;
}

.badge-text {
  color: #666;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-right: 1px solid #e0e0e0;
  padding-right: 15px;
  font-family: "Montserrat", sans-serif;
}

.badge-logo {
  height: 24px;
  width: auto;
  object-fit: contain;
}

.hero-title {
  font-size: 3.5rem;
  line-height: 1.15;
  font-family: "Montserrat", sans-serif;
  margin-bottom: 20px;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 40px;
  max-width: 700px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 50px;
}

.btn-main {
  background: var(--brand-red);
  color: var(--white);
  padding: 16px 36px;
  border-radius: 8px;
  font-weight: 700;
  font-family: "Montserrat", sans-serif;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1.1rem;
  border: 2px solid var(--brand-red);
}

.btn-main:hover {
  background: #5a110b;
  border-color: #5a110b;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(127, 24, 16, 0.4);
  color: var(--white);
}

.btn-alt-hero {
  background: transparent;
  color: var(--white);
  padding: 16px 36px;
  border-radius: 8px;
  font-weight: 700;
  font-family: "Montserrat", sans-serif;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1.1rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-alt-hero:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
  transform: translateY(-3px);
}

.hero-mockup-wrapper {
  margin-top: 20px;
  margin-bottom: -60px;
}

.hero-mockup {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 12px 12px 0 0;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-bottom: none;
}

/* =========================================
   3. INFO GRID / VANTAGENS (DESIGN PREMIUM)
   ========================================= */
.features-highlight {
  background-color: var(--white);
  position: relative;
}

.modern-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  margin-top: 20px;
}

.modern-info-card {
  background: var(--white);
  padding: 50px 40px;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 10px 30px rgba(0,0,0,0.02);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.modern-info-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 4px;
  background: var(--brand-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.modern-info-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
  border-color: rgba(186, 163, 96, 0.2);
}

.modern-info-card:hover::before {
  transform: scaleX(1);
}

.card-icon-wrapper {
  width: 80px;
  height: 80px;
  background: rgba(127, 24, 16, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px auto;
  transition: all 0.4s ease;
}

.card-icon-wrapper i {
  font-size: 2.2rem;
  color: var(--brand-red);
  transition: all 0.4s ease;
}

.modern-info-card:hover .card-icon-wrapper {
  background: var(--brand-red);
  transform: scale(1.1);
  box-shadow: 0 10px 20px rgba(127, 24, 16, 0.2);
}

.modern-info-card:hover .card-icon-wrapper i {
  color: var(--white);
}

.modern-info-card h3 {
  font-family: "Montserrat", sans-serif;
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--text-dark);
}

.modern-info-card p {
  color: #666;
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0;
}

/* =========================================
   11. SEPARADORES (TABS)
   ========================================= */
.solutions-tabs-section {
  background-color: #f4f7f9;
}

.tabs-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  border-bottom: 2px solid #e5e7eb;
  margin-bottom: 50px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.tab-btn {
  background: transparent;
  border: none;
  padding: 15px 30px;
  font-size: 1.1rem;
  font-weight: 700;
  font-family: "Montserrat", sans-serif;
  color: #888;
  cursor: pointer;
  position: relative;
  transition: color 0.3s ease;
}

.tab-btn:hover {
  color: var(--brand-red);
}

.tab-btn.active {
  color: var(--brand-red);
}

.tab-btn.active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--brand-red);
  border-radius: 3px 3px 0 0;
}

.tabs-content-container {
  min-height: 400px;
}

.tab-panel {
  display: none; 
  opacity: 0;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.tab-panel.active {
  display: grid; 
  animation: fadeInTab 0.5s forwards;
}

@keyframes fadeInTab {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.tab-image img {
  width: 100%;
  max-width: 450px;
  height: auto;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.15));
}

.tab-text h3 {
  font-size: 1.8rem;
  font-family: "Montserrat", sans-serif;
  color: var(--text-dark);
  line-height: 1.3;
  margin-bottom: 25px;
}

.tab-features-list {
  list-style: none;
  padding: 0;
  margin-bottom: 35px;
}

.tab-features-list li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 12px;
  font-size: 1.05rem;
  color: #444;
}

.tab-features-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  background-color: var(--brand-gold);
  border-radius: 50%;
}

.tab-ideal-for span {
  display: block;
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 12px;
}

.ideal-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ideal-badges .badge {
  background: var(--white);
  color: var(--text-dark);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
  border: 1px solid #f0f0f0;
}

/* =========================================
   4. CLONE DOS PREÇOS (VENDUS STYLE)
   ========================================= */
.price-toggle-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  width: fit-content;
  margin: 0 auto 60px auto; 
}

.price-toggle {
  display: inline-flex;
  border-bottom: 2px solid #e0e0e0;
}

.price-toggle button {
  background: transparent;
  border: none;
  padding: 10px 20px;
  font-weight: 700;
  font-family: "Montserrat", sans-serif;
  color: #888;
  cursor: pointer;
  font-size: 1.1rem;
  position: relative;
  transition: color 0.2s ease;
}

.price-toggle button.active {
  color: var(--brand-red);
}
.price-toggle button.active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--brand-red);
}

.promo-arrow {
  position: absolute;
  left: 100%; 
  top: 50%;
  transform: translateY(-50%) translateX(15px); 
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap; 
}

.handwritten-text {
  font-family: "Caveat", cursive;
  color: var(--brand-gold);
  font-size: 1.4rem;
  line-height: 1;
  transform: rotate(-3deg);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  align-items: stretch;
}

.price-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 40px 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  position: relative;
  display: flex;
  flex-direction: column;
}

.price-card.featured {
  border: 2px solid var(--brand-gold);
  box-shadow: 0 15px 40px rgba(186, 163, 96, 0.12);
}

.pc-badge {
  position: absolute;
  top: 25px;
  right: 25px;
  background: var(--brand-gold);
  color: var(--white);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
}

.pc-header {
  margin-bottom: 20px;
}
.pc-header h3 {
  font-family: "Montserrat", sans-serif;
  font-size: 2rem;
  color: var(--text-dark);
  margin: 0 0 5px 0;
}
.pc-header p {
  color: var(--text-dark);
  font-weight: 600;
  font-size: 0.95rem;
  margin: 0;
}

.pc-price {
  display: flex;
  align-items: baseline;
  margin-bottom: 15px;
}
.pc-price .currency {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brand-gold);
  margin-right: 5px;
}
.pc-price .amount {
  font-size: 4.5rem;
  font-weight: 700;
  color: var(--brand-gold);
  line-height: 1;
  font-family: "Montserrat", sans-serif;
}
.pc-price .period {
  font-size: 1rem;
  font-weight: 600;
  color: var(--brand-gold);
  margin-left: 5px;
}

.pc-savings {
  color: #444;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 25px;
  line-height: 1.4;
  min-height: 38px;
}

.btn-price {
  display: block;
  width: 100%;
  text-align: center;
  background: transparent;
  border: 2px solid var(--brand-red);
  color: var(--brand-red);
  padding: 12px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 30px;
  transition: all 0.3s ease;
  text-decoration: none;
}
.btn-price:hover {
  background: var(--brand-red);
  color: var(--white);
}

.featured-btn {
  background: var(--brand-red);
  color: var(--white);
}
.featured-btn:hover {
  background: #5a110b;
  border-color: #5a110b;
}

.pc-features {
  list-style: none;
  padding: 0;
  margin: 0 0 30px 0;
  flex-grow: 1;
}
.pc-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: #333;
  margin-bottom: 12px;
  line-height: 1.4;
}
.pc-features li i {
  font-size: 1.1rem;
  color: #999;
  margin-top: 2px;
}

.pc-link {
  display: block;
  text-align: center;
  color: var(--brand-gold) !important;
  font-size: 0.9rem;
  font-weight: 600;
}

.price-footer-notes {
  text-align: center;
  margin-top: 40px;
}
.price-footer-notes p {
  color: #888;
  font-size: 0.85rem;
  margin: 0 0 5px 0;
}

.compare-table tbody tr {
  transition: background-color 0.2s ease; 
}
.compare-table tbody tr:hover {
  background-color: rgba(186, 163, 96, 0.1) !important; 
}

/* =========================================
   6. FAQs (DESIGN LIMPO / VENDUS)
   ========================================= */
.clean-faq {
  max-width: 100%;
  margin: 0 auto;
}

.clean-faq .faq-item {
  background: transparent;
  border: none;
  border-bottom: 1px solid #f0f0f0;
  border-radius: 0;
  margin-bottom: 0;
}

.clean-faq .faq-item:last-child {
  border-bottom: none;
}

.clean-faq .faq-question {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 30px 0;
  font-family: "Montserrat", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #3b404d; 
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-icon-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #f5f6f8; 
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-left: 20px;
}

.faq-icon-circle i {
  color: #7f1810; 
  font-size: 0.9rem;
  transition: transform 0.2s;
}

.clean-faq .faq-item.open .faq-icon-circle i {
  transform: rotate(45deg); 
}

.clean-faq .faq-answer {
  display: none;
  padding: 0 0 30px 0;
}

.clean-faq .faq-item.open .faq-answer {
  display: block;
}

.clean-faq .faq-answer p {
  margin: 0;
  color: #666;
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 90%;
}

/* =========================================
   10. COMPARAÇÃO DE PLANOS (ACORDEÃO VENDUS)
   ========================================= */
#funcionalidades {
  scroll-margin-top: 130px;
}
.compare-section-wrapper {
  margin-top: 60px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.compare-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.compare-item {
  background: #f4f7f9;
  border-radius: 8px;
  overflow: hidden;
}

.compare-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  border: none;
  padding: 20px 30px;
  font-family: "Montserrat", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  cursor: pointer;
  transition: background 0.2s ease;
}

.compare-header:hover {
  background: rgba(0, 0, 0, 0.03);
}

.icon-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--brand-red);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-red);
  transition: all 0.2s ease;
}

.icon-circle i {
  font-size: 0.8rem;
  transition: transform 0.2s ease;
}

.compare-item.open .icon-circle {
  background: var(--brand-red);
  color: var(--white);
}

.compare-item.open .icon-circle i {
  transform: rotate(45deg); 
}

.compare-body {
  display: none;
  padding: 0 30px 30px 30px;
  background: var(--white);
}

.compare-item.open .compare-body {
  display: block;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
  margin-top: 10px;
}

.compare-table th,
.compare-table td {
  padding: 16px 10px;
  border-bottom: 1px solid #eee;
  font-size: 0.95rem;
  color: #444;
}

.compare-table th {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  color: var(--text-dark);
}

.compare-table th:first-child,
.compare-table td:first-child {
  text-align: left;
  width: 55%;
}

.compare-table tr:last-child td {
  border-bottom: none;
}

.check-icon {
  color: var(--brand-gold);
  font-size: 1.2rem;
}

/* =========================================
   7. CONTACTOS E FORMULÁRIO (Sincronizado)
   ========================================= */
#contactos {
  background: var(--light-bg);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: start;
}

.contact-info h2 {
  color: var(--brand-red);
  margin-bottom: 20px;
  font-size: 2rem;
  line-height: 1.2;
}

.contact-info > p {
  color: #555;
  font-size: 1rem;
  line-height: 1.7;
}

.info-item {
  margin-top: 28px;
}

.info-item strong {
  color: var(--brand-gold);
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.info-item p {
  color: #444;
  font-size: 0.95rem;
  line-height: 1.6;
}

.contact-form-container {
  background: var(--white);
  border-radius: 12px;
  padding: 36px;
  border: 1px solid rgba(0, 0, 0, 0.07);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 7px;
  font-weight: 600;
  font-size: 0.85rem;
  color: #444;
  letter-spacing: 0.02em;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  background: #fafafa;
  color: #222;
  transition:
    border-color 0.25s,
    box-shadow 0.25s,
    background 0.25s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--brand-gold);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(186, 163, 96, 0.18);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.82rem;
  color: #666;
  margin-bottom: 20px;
  line-height: 1.5;
}

.form-check input[type="checkbox"] {
  margin-top: 2px;
  accent-color: var(--brand-red);
  flex-shrink: 0;
}


.g-recaptcha {
  margin-top: 12px !important;
  margin-bottom: 16px !important;
}

.btn-submit {
  background: var(--brand-red);
  color: var(--white);
  border: none;
  padding: 15px 30px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  border-radius: 8px;
  width: 100%;
  transition:
    background 0.3s ease,
    transform 0.2s ease,
    box-shadow 0.3s ease;
  box-shadow: 0 4px 14px rgba(127, 24, 16, 0.2);
}

.btn-submit:hover {
  background: #5a110b;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(127, 24, 16, 0.3);
}

.btn-submit:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(127, 24, 16, 0.2);
}

/* =========================================
   8. RESPONSIVIDADE (Sincronizado c/ Global)
   ========================================= */
@media (max-width: 992px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto 50px auto;
  }
  .promo-arrow {
    display: none;
  }
}

@media (max-width: 768px) {
  .product-hero {
    margin-top: 74px; /* Altura do header mobile */
    min-height: 45vh;
    padding: 60px 0 0 0;
  }
  .hero-title {
    font-size: 2.2rem;
  }
  .title-xl {
    font-size: 1.8rem;
  }
  
  .hero-actions {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
    margin: 0 auto 30px auto;
  }
  .btn-main, .btn-alt-hero { width: 100%; }

  .pc-price .amount {
    font-size: 3.5rem;
  }
  
  .compare-header {
    padding: 15px 20px;
    font-size: 1rem;
  }
  .compare-body {
    padding: 0 10px 20px 10px;
    overflow-x: auto;
  }
  .compare-table th,
  .compare-table td {
    padding: 12px 5px;
    font-size: 0.85rem;
  }

  /* Sincronização Contactos Mobile */
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .contact-form-container {
    padding: 24px;
  }
  
  /* Tabs */
  .tabs-nav {
    flex-wrap: wrap;
    gap: 0;
  }
  .tab-btn {
    padding: 12px 15px;
    font-size: 1rem;
  }
  .tab-panel.active {
    grid-template-columns: 1fr; 
    gap: 30px;
    text-align: center;
  }
  .tab-features-list li {
    text-align: left;
  }
  .ideal-badges {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  /* Sincronização Espaçamento Mobile */
  .section-padding { 
    padding: 60px 0; 
  }
}