@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
  --color-bordo: #722f37;
  --color-bordo-dark: #4a141c;
  --color-bordo-light: #9e4450;
  --color-bege: #f0ead6;
  --color-bege-light: #faf7f2;
  --color-accent: #c5a059;
  --color-text: #2c1b18;
  --color-text-light: #6a5e5c;
  --color-white: #ffffff;
  
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
  
  --transition: all 0.3s ease;
  --radius: 8px;
  --shadow: 0 10px 30px rgba(74, 20, 28, 0.08);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bege-light);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-bordo-dark);
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* NAVBAR */
header {
  background-color: rgba(250, 247, 242, 0.95);
  backdrop-filter: blur(10px);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: var(--transition);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-bordo);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo span {
  color: var(--color-accent);
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-weight: 500;
  color: var(--color-text);
  position: relative;
  padding: 0.5rem 0;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-bordo);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-accent);
  transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  background-color: var(--color-bordo);
  color: var(--color-white);
  border-radius: var(--radius);
  font-weight: 500;
  border: 1px solid var(--color-bordo);
  cursor: pointer;
  transition: var(--transition);
}

.btn:hover {
  background-color: var(--color-bordo-dark);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-bordo);
  border: 1px solid var(--color-bordo);
}

.btn-outline:hover {
  background-color: var(--color-bordo);
  color: var(--color-white);
}

/* HERO SECTION */
.hero {
  padding: 180px 0 100px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--color-bege-light) 0%, var(--color-bege) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -5%;
  width: 500px;
  height: 500px;
  background-color: rgba(197, 160, 89, 0.1);
  border-radius: 50%;
  filter: blur(80px);
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -10%;
  left: -5%;
  width: 600px;
  height: 600px;
  background-color: rgba(114, 47, 55, 0.05);
  border-radius: 50%;
  filter: blur(80px);
}

.hero-content {
  max-width: 600px;
  position: relative;
  z-index: 10;
}

.hero-subtitle {
  color: var(--color-accent);
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: block;
}

.hero h1 {
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.hero p {
  color: var(--color-text-light);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.hero-img-wrapper {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  width: 45%;
  z-index: 5;
}

.hero-img {
  width: 100%;
  height: 600px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

/* SECTIONS */
section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}

.section-header h2 {
  font-size: 2.5rem;
  position: relative;
  display: inline-block;
}

.section-header p {
  color: var(--color-text-light);
  margin-top: 1rem;
}

/* CARDS / FEATURES */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--color-white);
  padding: 3rem 2rem;
  border-radius: 16px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.03);
  transition: var(--transition);
  border-top: 4px solid var(--color-white);
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-10px);
  border-top: 4px solid var(--color-bordo);
  box-shadow: var(--shadow);
}

.feature-icon {
  width: 70px;
  height: 70px;
  background-color: rgba(197, 160, 89, 0.15);
  color: var(--color-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.feature-icon svg {
  width: 32px;
  height: 32px;
}

.feature-card h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.feature-card p {
  color: var(--color-text-light);
}

/* CTA SECTION */
.cta-section {
  background-color: var(--color-bordo);
  color: var(--color-white);
  text-align: center;
  padding: 80px 0;
  position: relative;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at center, rgba(197,160,89,0.1) 0%, transparent 70%);
}

.cta-content {
  position: relative;
  z-index: 2;
}

.cta-section h2 {
  color: var(--color-white);
  margin-bottom: 1.5rem;
}

.cta-section p {
  margin-bottom: 2rem;
  opacity: 0.9;
  font-size: 1.1rem;
}

.cta-section .btn {
  background-color: var(--color-accent);
  color: var(--color-text);
  border-color: var(--color-accent);
}

.cta-section .btn:hover {
  background-color: var(--color-white);
  color: var(--color-bordo);
}

/* FOOTER */
footer {
  background-color: var(--color-bordo-dark);
  color: rgba(255,255,255,0.7);
  padding: 80px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-logo {
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 1.8rem;
  margin-bottom: 1rem;
  display: inline-block;
}

.footer-logo span {
  color: var(--color-accent);
}

.footer-col h4 {
  color: var(--color-white);
  margin-bottom: 1.5rem;
  font-family: var(--font-body);
  font-weight: 600;
}

.footer-col ul li {
  margin-bottom: 0.8rem;
}

.footer-col ul li a {
  transition: var(--transition);
}
.footer-col ul li a:hover {
  color: var(--color-accent);
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.9rem;
}

/* ANIMATIONS */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* PAGE WRAPPERS FOR INNER PAGES */
.page-header {
  padding: 180px 0 100px;
  background-color: var(--color-bordo-dark);
  background-image: linear-gradient(135deg, var(--color-bordo-dark) 0%, var(--color-bordo) 100%);
  color: var(--color-white);
  text-align: center;
}
.page-header h1 {
  color: var(--color-white);
  font-size: 3.5rem;
  margin-bottom: 1rem;
}
.page-header p {
  font-size: 1.2rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

/* CONTACT FORM */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
}

.contact-info {
  background-color: var(--color-white);
  padding: 3rem;
  border-radius: 16px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.03);
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 2rem;
}

.info-icon {
  color: var(--color-accent);
  background-color: rgba(197, 160, 89, 0.1);
  padding: 12px;
  border-radius: 50%;
  display: inline-flex;
}

.info-content h4 {
  margin-bottom: 0.2rem;
  font-size: 1.1rem;
}

.contact-form-card {
  background-color: var(--color-white);
  padding: 3rem;
  border-radius: 16px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.03);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--color-bordo-dark);
}

.form-control {
  width: 100%;
  padding: 1rem;
  border: 1px solid #e0dbd1;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  background-color: var(--color-bege-light);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-bordo);
  box-shadow: 0 0 0 3px rgba(114, 47, 55, 0.1);
  background-color: var(--color-white);
}

textarea.form-control {
  resize: vertical;
  min-height: 150px;
}

/* SERVICES GRID INNER PAGE */
.services-detailed-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
}

.service-row {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.service-row:nth-child(even) {
  flex-direction: row-reverse;
}

.service-image {
  flex: 1;
  height: 400px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.service-content {
  flex: 1;
}

.service-content h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.service-content ul {
  margin-top: 1.5rem;
}

.service-content ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.8rem;
}

.service-content ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: bold;
}

/* NEW DARK HERO STYLES */
.dark-header {
  background-color: transparent;
  box-shadow: none;
  backdrop-filter: none;
  position: absolute;
  top: 0;
  width: 100%;
}
.dark-header .nav-container {
  max-width: 1400px;
}
.dark-header .nav-links {
  width: 100%;
  justify-content: flex-start;
  gap: 2rem;
  padding-left: 2rem;
}
.dark-header .nav-links a {
  color: var(--color-white);
  font-weight: 400;
  font-size: 1rem;
}
.dark-header .nav-links a::after {
  display: none;
}
.dark-header .nav-links a:hover {
  text-decoration: underline;
}

.dark-hero {
  background-color: var(--color-bordo-dark);
  background-image: radial-gradient(circle at center, #5a1822 0%, var(--color-bordo-dark) 100%);
  min-height: 80vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 50px;
  position: relative;
  overflow: hidden;
}
.dark-hero::before {
  content: '';
  position: absolute;
  top: -10%; left: -5%;
  width: 500px; height: 500px;
  background-color: rgba(197, 160, 89, 0.08);
  border-radius: 50%;
  filter: blur(80px);
}
.dark-hero::after {
  content: '';
  position: absolute;
  bottom: -10%; right: -5%;
  width: 600px; height: 600px;
  background-color: rgba(114, 47, 55, 0.2);
  border-radius: 50%;
  filter: blur(100px);
}
.dark-hero .centered-content {
  text-align: center;
  margin: 0 auto;
  max-width: 900px;
  position: relative;
  z-index: 10;
}
.dark-hero h1.text-gold {
  color: #c8a54d;
  font-size: 5rem;
  font-weight: 400;
  margin-bottom: 2rem;
  font-family: var(--font-heading);
}
.dark-hero p.text-white {
  color: #ffffff;
  font-size: 1.35rem;
  line-height: 1.6;
  font-weight: 400;
  font-family: var(--font-body);
  opacity: 1;
}

.dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding-bottom: 20px;
  margin-bottom: -20px;
}

.dropdown-content {
  position: absolute;
  top: 40px;
  right: -20px;
  background-color: rgba(74, 20, 28, 0.85);
  backdrop-filter: blur(15px);
  min-width: 220px;
  z-index: 20;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  text-align: right;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  transform: translateY(10px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--radius);
}

.dropdown:hover .dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-content a {
  color: var(--color-white) !important;
  font-size: 0.95rem !important;
  font-weight: 300 !important;
  text-decoration: none;
  display: block;
}

.dropdown-content a:hover {
  opacity: 0.7;
}

/* RESPONSIVE */
.menu-toggle {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--color-bordo);
}

@media (max-width: 900px) {
  .hero-img-wrapper {
    display: none;
  }
  .hero-content {
    max-width: 100%;
    text-align: center;
  }
  .hero h1 {
    font-size: 2.8rem;
  }
  .footer-grid, .contact-grid, .service-row {
    grid-template-columns: 1fr;
    flex-direction: column !important;
  }
  .nav-links {
    display: none;
  }
  .menu-toggle {
    display: block;
  }
  .page-header h1 {
    font-size: 2.5rem;
  }
}

/* ACESSIBILIDADE WIDGET */
#access-widget {
  position: fixed;
  bottom: 30px;
  left: 30px;
  z-index: 9999;
}
.access-btn {
  background: var(--color-bordo);
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px; height: 50px;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  transition: transform 0.3s;
}
.access-btn:hover {
  transform: scale(1.1);
}
.access-menu {
  position: absolute;
  bottom: 60px;
  left: 0;
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 200px;
  opacity: 1;
  transition: opacity 0.3s;
}
.access-menu.hidden {
  opacity: 0;
  pointer-events: none;
}
.access-menu button {
  background: none; border: none;
  font-family: var(--font-body);
  text-align: left;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 4px;
  color: var(--color-text);
}
.access-menu button:hover {
  background: var(--color-bege);
}

/* DARK MODE OVERRIDES */
body.dark-theme {
  --color-bege-light: #120508;
  --color-bege: #2b0b14;
  --color-white: #1e080d;
  --color-text: #e0dbd1;
  --color-text-light: #a39997;
  color: var(--color-text);
  background-color: var(--color-bege-light);
}
body.dark-theme .feature-card { border-top-color: var(--color-bordo-dark); }
body.dark-theme .dropdown-content a { color: #fff !important; }

/* HIGH CONTRAST (DALTONICO) OVERRIDES */
body.daltonico-theme {
  --color-bordo: #0055ff;
  --color-bordo-dark: #00008B;
  --color-bordo-light: #4488ff;
  --color-accent: #ffeb3b; 
}

/* ROI CALCULATOR */
.roi-calculator {
  background: var(--color-white);
  padding: 3rem;
  border-radius: 16px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--color-accent);
}
.roi-calculator input[type=range] {
  width: 100%;
  margin: 15px 0;
}
.roi-result {
  font-size: 2.5rem;
  color: var(--color-bordo);
  font-family: var(--font-heading);
  font-weight: bold;
  margin-top: 10px;
}

/* FAQ ACCORDION */
.faq-item {
  border-bottom: 1px solid #e0dbd1;
  margin-bottom: 10px;
}
.faq-item-header {
  padding: 15px 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 500;
  color: var(--color-bordo-dark);
}
.faq-item-header:after {
  content: '+';
  font-size: 1.5rem;
  transition: transform 0.3s;
}
.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  color: var(--color-text-light);
}
.faq-item.open .faq-content {
  max-height: 200px;
  padding-bottom: 15px;
}
.faq-item.open .faq-item-header {
  color: var(--color-accent);
}
.faq-item.open .faq-item-header:after {
  transform: rotate(45deg);
}

/* ANIMATED BARS */
.prog-bar-container {
  width: 100%;
  background: var(--color-bege);
  border-radius: 10px;
  height: 20px;
  overflow: hidden;
  margin-top: 15px;
}
.prog-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--color-bordo), var(--color-accent));
  width: 0;
  transition: width 1.5s cubic-bezier(0.22, 1, 0.36, 1);
}

/* OUTROS AJUSTES DE ACESSIBILIDADE */
body.large-text p, body.large-text a, body.large-text span, body.large-text li {
    font-size: 110% !important;
}
body.large-text h1, body.large-text h2, body.large-text h3 {
    font-size: 120% !important;
}
body.highlight-links a {
    text-decoration: underline !important;
    background-color: yellow !important;
    color: black !important;
    font-weight: bold !important;
    padding: 0 2px !important;
}

/* =========================================
   CHATBOT STYLES
   ========================================= */
#chatbot-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    font-family: 'Inter', sans-serif;
}

#chatbot-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--color-accent);
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

#chatbot-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

#chatbot-toggle .close-icon {
    display: none;
}

#chatbot-toggle.active .chat-icon {
    display: none;
}

#chatbot-toggle.active .close-icon {
    display: block;
}

#chatbot-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(20px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

#chatbot-window.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.chatbot-header {
    background: var(--color-bordo);
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.chatbot-avatar {
    width: 40px;
    height: 40px;
    background: var(--color-gold);
    color: var(--color-bordo);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 20px;
}

.chatbot-header-info h4 {
    margin: 0;
    font-size: 16px;
    color: white;
}

.chatbot-header-info span {
    font-size: 12px;
    opacity: 0.8;
    display: flex;
    align-items: center;
    gap: 5px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #4caf50;
    border-radius: 50%;
    display: inline-block;
}

.chatbot-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: #f9f9f9;
}

.chat-msg {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 15px;
    font-size: 14px;
    line-height: 1.5;
    animation: fadeIn_chat 0.3s ease;
}

.chat-msg.bot {
    align-self: flex-start;
    background: white;
    color: #333;
    border-bottom-left-radius: 2px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.chat-msg.user {
    align-self: flex-end;
    background: var(--color-accent);
    color: white;
    border-bottom-right-radius: 2px;
}

.chatbot-input {
    padding: 15px;
    background: white;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
}

#chatbot-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 5px;
    font-size: 14px;
}

.chatbot-send-btn {
    background: none;
    border: none;
    color: var(--color-accent);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    transition: transform 0.2s;
}

.chatbot-send-btn:hover {
    transform: scale(1.1);
}

.chatbot-send-btn svg {
    width: 20px;
    height: 20px;
}

.chat-quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.chat-quick-btn {
    background: rgba(164, 72, 46, 0.1);
    border: 1px solid var(--color-accent);
    color: var(--color-accent);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.chat-quick-btn:hover {
    background: var(--color-accent);
    color: white;
}

.typing-indicator {
    align-self: flex-start;
    background: #eee;
    padding: 10px 15px;
    border-radius: 15px;
    display: flex;
    gap: 4px;
}

.typing-indicator span {
    width: 6px;
    height: 6px;
    background: #999;
    border-radius: 50%;
    animation: blink_chat 1s infinite alternate;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes blink_chat { from { opacity: 0.3; } to { opacity: 1; } }
@keyframes fadeIn_chat { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.pulse-ring {
    position: absolute;
    width: 60px;
    height: 60px;
    background: var(--color-accent);
    border-radius: 50%;
    opacity: 0.4;
    animation: pulse_chat 2s infinite;
    z-index: -1;
}

@keyframes pulse_chat {
    0% { transform: scale(1); opacity: 0.4; }
    100% { transform: scale(1.5); opacity: 0; }
}

