/* ========================================
   REDES RIBEIRÃO - CSS PROFISSIONAL
   Performance: 90+ PageSpeed
   Design: Moderno e Responsivo
   ======================================== */

/* ========== RESET E VARIÁVEIS ========== */
:root {
  --primary: #ff6b35;
  --primary-dark: #e55100;
  --primary-light: #ff8a50;
  --accent: #1a1a1a;
  --secondary: #333333;
  --text-dark: #1a1a1a;
  --text-light: #ffffff;
  --bg-light: #ffffff;
  --bg-gray: #f5f5f5;
  --border: #e0e0e0;
  --shadow: 0 2px 8px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.15);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text-dark);
  background: var(--bg-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ========== TIPOGRAFIA ========== */
h1 { font-size: 3rem; font-weight: 700; margin-bottom: 1rem; line-height: 1.1; }
h2 { font-size: 2.2rem; font-weight: 700; margin-bottom: 1.5rem; line-height: 1.2; }
h3 { font-size: 1.5rem; font-weight: 600; margin-bottom: 1rem; }
h4 { font-size: 1.2rem; font-weight: 600; margin-bottom: 0.8rem; }
p { margin-bottom: 1rem; font-size: 1rem; line-height: 1.7; }

a { color: var(--primary); text-decoration: none; transition: all 0.3s ease; }
a:hover { color: var(--primary-dark); }

/* ========== CONTAINER ========== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.container-sm {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ========== HEADER ========== */
header {
  background: var(--bg-light);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--border);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
}

.logo img {
  height: 45px;
  width: auto;
  display: block;
}

.header-contact {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.phone-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-weight: 600;
  font-size: 1.05rem;
}

.cta-button {
  background: var(--primary);
  color: white;
  padding: 0.8rem 1.8rem;
  border-radius: 6px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.cta-button:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.cta-button-accent {
  background: var(--secondary);
  color: white;
}

.cta-button-accent:hover {
  background: #000000;
}

/* ========== NAVEGAÇÃO ========== */
nav {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 1rem 0;
}

nav a {
  color: var(--text-dark);
  font-weight: 500;
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}

nav a:hover, nav a.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* ========== HERO SECTION ========== */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="1200" height="600" fill="url(%23grid)"/></svg>');
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  color: white;
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 2.5rem;
  opacity: 0.95;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  background: white;
  color: var(--primary);
  padding: 1.1rem 2.5rem;
  border-radius: 6px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-size: 1.05rem;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: var(--bg-gray);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: transparent;
  color: white;
  padding: 1.1rem 2.5rem;
  border: 2px solid white;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  font-size: 1.05rem;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: white;
  color: var(--primary);
}

/* ========== SEÇÕES ========== */
section {
  padding: 4rem 0;
}

section.light {
  background: var(--bg-gray);
}

section.dark {
  background: var(--text-dark);
  color: white;
}

section.dark h2, section.dark h3 {
  color: white;
}

/* ========== CARDS ========== */
.card {
  background: white;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  border: 1px solid var(--border);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}

.card-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  display: block;
}

.card h3 {
  color: var(--primary);
  margin-bottom: 1rem;
}

/* ========== FORMULÁRIO ========== */
.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.6rem;
  font-weight: 600;
  color: var(--text-dark);
}

input, textarea, select {
  width: 100%;
  padding: 0.9rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

/* ========== FOOTER ========== */
footer {
  background: var(--text-dark);
  color: white;
  padding: 4rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  color: white;
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.6rem;
}

.footer-section a {
  color: #bdc3c7;
  transition: all 0.3s ease;
}

.footer-section a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  text-align: center;
  color: #bdc3c7;
}

/* ========== WHATSAPP FLUTUANTE ========== */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: #25d366;
  color: white;
  width: 65px;
  height: 65px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  text-decoration: none;
  box-shadow: var(--shadow-lg);
  transition: all 0.3s ease;
  z-index: 999;
}

.whatsapp-float:hover {
  background: #1ead4f;
  transform: scale(1.15);
}

/* ========== BREADCRUMB ========== */
.breadcrumb {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  font-size: 0.95rem;
  color: #7f8c8d;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--primary);
}

.breadcrumb span {
  color: #95a5a6;
}

/* ========== FAQ ========== */
.faq-item {
  margin-bottom: 1rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}

.faq-question {
  background: var(--bg-gray);
  padding: 1.2rem;
  cursor: pointer;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

.faq-question:hover {
  background: #ecf0f1;
  color: var(--primary);
}

.faq-answer {
  padding: 1.2rem;
  display: none;
  background: white;
  line-height: 1.8;
}

.faq-answer.active {
  display: block;
}

/* ========== TESTIMONIALS ========== */
.testimonial {
  background: white;
  padding: 2rem;
  border-left: 4px solid var(--primary);
  margin-bottom: 1.5rem;
  border-radius: 6px;
  box-shadow: var(--shadow);
}

.testimonial p {
  font-style: italic;
  margin-bottom: 1rem;
}

.testimonial-author {
  font-weight: 600;
  color: var(--primary);
  margin-top: 1rem;
}

.testimonial-city {
  font-size: 0.9rem;
  color: #7f8c8d;
}

/* ========== TABELAS ========== */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  box-shadow: var(--shadow);
  border-radius: 6px;
  overflow: hidden;
}

th {
  background: var(--primary);
  color: white;
  padding: 1.2rem;
  text-align: left;
  font-weight: 600;
}

td {
  padding: 1rem;
  border-bottom: 1px solid var(--border);
}

tr:hover {
  background: var(--bg-gray);
}

/* ========== LISTAS ========== */
ul, ol {
  margin-left: 2rem;
  margin-bottom: 1.5rem;
}

li {
  margin-bottom: 0.7rem;
  line-height: 1.8;
}

/* ========== IMAGENS ========== */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

.img-responsive {
  width: 100%;
  height: auto;
}

/* ========== UTILITÁRIOS ========== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.pt-1 { padding-top: 0.5rem; }
.pt-2 { padding-top: 1rem; }
.pt-3 { padding-top: 1.5rem; }
.pt-4 { padding-top: 2rem; }
.pb-1 { padding-bottom: 0.5rem; }
.pb-2 { padding-bottom: 1rem; }
.pb-3 { padding-bottom: 1.5rem; }
.pb-4 { padding-bottom: 2rem; }

/* ========== RESPONSIVO ========== */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  
  .hero { padding: 3rem 0; }
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1.1rem; }
  
  .header-contact {
    gap: 1rem;
    flex-direction: column;
  }
  
  nav { gap: 1rem; }
  .card-grid { grid-template-columns: 1fr; }
  .footer-content { grid-template-columns: 1fr; }
  .hero-buttons { flex-direction: column; }
  .btn-primary, .btn-secondary { width: 100%; }
  
  section { padding: 2.5rem 0; }
}

@media (max-width: 480px) {
  .container, .container-sm { padding: 0 15px; }
  
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.2rem; }
  
  .header-top { flex-direction: column; gap: 1rem; }
  nav { flex-direction: column; gap: 0.5rem; }
  
  .whatsapp-float {
    width: 55px;
    height: 55px;
    font-size: 1.5rem;
    bottom: 15px;
    right: 15px;
  }
  
  section { padding: 2rem 0; }
}

/* ========== ACESSIBILIDADE ========== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
