/* =============================================
   CONECTA FIOS — Global Styles
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* === RESET & BASE === */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-bg: #ffffff;
  --color-surface: #f8f9fa;
  --color-border: #e8eaed;
  --color-text: #0d0d0d;
  --color-text-muted: #6b7280;
  --color-accent: #f97316;       /* Orange - electrical spark */
  --color-accent-dark: #ea6c0a;
  --color-primary: #111827;
  --color-primary-light: #374151;
  --color-blue: #2563eb;
  --color-blue-light: #dbeafe;
  --nav-height: 72px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.10);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.14);
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* =============================================
   NAVBAR
   ============================================= */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  z-index: 1000;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.navbar.scrolled {
  border-bottom-color: var(--color-border);
  box-shadow: var(--shadow-sm);
  background: rgba(255,255,255,0.97);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  padding: 0 32px;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--color-primary);
}

.nav-logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--color-accent), #fb923c);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  color: white;
  letter-spacing: -0.02em;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(249, 115, 22, 0.35);
}

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

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-muted);
  padding: 8px 14px;
  border-radius: var(--radius-full);
  transition: color var(--transition), background var(--transition);
  position: relative;
}

.nav-links a:hover {
  color: var(--color-primary);
  background: var(--color-surface);
}

.nav-links a.active {
  color: var(--color-primary);
  font-weight: 600;
}

/* CTA Button */
.nav-cta {
  background: var(--color-primary);
  color: white !important;
  padding: 10px 22px !important;
  border-radius: var(--radius-full) !important;
  font-weight: 600 !important;
  font-size: 0.875rem !important;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition) !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

.nav-cta:hover {
  background: var(--color-primary-light) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.22) !important;
}

/* Hamburger Mobile */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}

.nav-toggle:hover {
  background: var(--color-surface);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: all var(--transition);
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu */
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  width: 100%;
  background: white;
  border-bottom: 1px solid var(--color-border);
  padding: 16px 32px 24px;
  z-index: 999;
  flex-direction: column;
  gap: 4px;
  box-shadow: var(--shadow-md);
  animation: slideDown 0.2s ease;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text-muted);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}

.nav-mobile a:hover,
.nav-mobile a.active {
  color: var(--color-primary);
  background: var(--color-surface);
}

.nav-mobile .nav-cta {
  margin-top: 8px;
  text-align: center;
  padding: 13px 22px !important;
  border-radius: var(--radius-sm) !important;
}

/* =============================================
   PAGE WRAPPER
   ============================================= */

.page-wrapper {
  padding-top: var(--nav-height);
}

/* =============================================
   HERO SECTION
   ============================================= */

.hero {
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
  padding: 80px 32px;
  max-width: 1200px;
  margin: 0 auto;
  gap: 64px;
}

.hero-content {
  flex: 1;
  max-width: 580px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-blue-light);
  color: var(--color-blue);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 28px;
}

.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--color-accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  color: var(--color-primary);
}

.hero-title .accent {
  color: var(--color-accent);
}

.hero-title .muted {
  color: var(--color-text-muted);
}

.hero-description {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  margin-bottom: 40px;
  line-height: 1.7;
  max-width: 460px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-primary);
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  transition: all var(--transition);
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
}

.btn-primary:hover {
  background: var(--color-primary-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 14px 20px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--color-border);
  transition: all var(--transition);
}

.btn-secondary:hover {
  color: var(--color-primary);
  border-color: var(--color-primary-light);
  background: var(--color-surface);
  transform: translateY(-2px);
}

.hero-image-wrap {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-visual {
  width: 100%;
  max-width: 520px;
  aspect-ratio: 4/3;
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--color-border);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =============================================
   STATS BAR
   ============================================= */

.stats-bar {
  background: var(--color-primary);
  color: white;
  padding: 48px 32px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--color-accent);
}

.stat-label {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.65);
  margin-top: 4px;
  font-weight: 400;
}

/* =============================================
   SECTION BASE
   ============================================= */

.section {
  padding: 100px 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--color-primary);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 520px;
}

/* =============================================
   SERVICE SLIDER & CARDS
   ============================================= */

.services-container {
  position: relative;
  margin-top: 56px;
  overflow: visible; /* Allows nav buttons to peek out if needed */
}

.services-slider-wrapper {
  overflow: hidden;
  border-radius: var(--radius-lg);
  cursor: grab;
}

.services-slider-wrapper:active {
  cursor: grabbing;
}

.services-slider-track {
  display: flex;
  gap: 24px;
  transition: transform 0.5s cubic-bezier(0.2, 0, 0, 1);
  will-change: transform;
}

.service-card {
  flex: 0 0 calc(33.333% - 16px); /* 3 cards on desktop */
  min-width: 300px;
  height: 420px;
  border-radius: 40px; /* "Meio circular" as requested */
  padding: 40px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background-size: cover;
  background-position: center;
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid var(--color-border);
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.82); /* White overlay layer */
  z-index: 1;
  transition: background var(--transition);
}

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

.service-card:hover::before {
  background: rgba(255, 255, 255, 0.75); /* Slightly clearer on hover */
}

/* Card Content Styling */
.service-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  position: relative;
  z-index: 2;
}

.service-icon {
  font-size: 1.6rem;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 0;
  letter-spacing: -0.02em;
}

.service-desc {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  position: relative;
  z-index: 2;
}

/* Slider Navigation Buttons */
.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  background: white;
  border: 1.5px solid var(--color-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: var(--shadow-md);
  transition: all var(--transition);
  font-size: 1.2rem;
  color: var(--color-primary);
}

.slider-nav:hover {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
  transform: translateY(-50%) scale(1.1);
}

.nav-prev { left: -26px; }
.nav-next { right: -26px; }

/* Responsive adjustments */
@media (max-width: 1024px) {
  .service-card {
    flex: 0 0 calc(50% - 12px); /* 2 cards */
  }
}

@media (max-width: 768px) {
  .service-card {
    flex: 0 0 100%; /* 1 card */
    min-width: 280px;
    height: 380px;
    padding: 32px;
  }
  .nav-prev { left: 0; }
  .nav-next { right: 0; }
  .slider-nav { width: 44px; height: 44px; }
}

/* =============================================
   FOOTER
   ============================================= */

footer {
  background: var(--color-primary);
  color: white;
  padding: 64px 32px 32px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
}

.footer-logo-icon {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--color-accent), #fb923c);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
}

.footer-tagline {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
  max-width: 240px;
}

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.45);
  margin-bottom: 16px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul li a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
  transition: color var(--transition);
}

.footer-col ul li a:hover {
  color: white;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  flex-wrap: wrap;
  gap: 12px;
}

/* =============================================
   PAGE HEADER (inner pages)
   ============================================= */

.page-header {
  padding: 80px 32px 60px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-cta-wrap { display: none; }
  .nav-toggle { display: flex; }

  .hero {
    flex-direction: column;
    gap: 48px;
    padding: 48px 24px;
    text-align: center;
  }

  .hero-actions { justify-content: center; }
  .hero-description { margin: 0 auto 40px; }

  .services-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 24px; }

  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 600px) {
  .services-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .section { padding: 64px 20px; }
  .nav-container { padding: 0 20px; }
  .nav-mobile { padding: 16px 20px 24px; }
}
