/* ============================================================
   BitLink Tecnologia — Estilos Principais
   Stack: CSS Custom Properties · Flexbox · Grid · Bootstrap 5
   ============================================================ */

:root {
  /* Paleta extraída do logotipo BitLink */
  --primary:     #CC0000;   /* vermelho do bloco "Bit"       */
  --primary-dark:#990000;   /* vermelho escuro (hover)        */
  --secondary:   #1a1a1a;   /* preto/dark de "Link"           */
  --accent:      #00A8B8;   /* teal de "tecnologia"           */
  --accent-dark: #007f8a;   /* teal escuro (hover)            */
  --light:       #f8f9fa;
  --dark:        #111111;
  --text-muted:  #6c757d;
  --card-bg:     #ffffff;
  --border:      #e9ecef;
  --radius:      12px;
  --shadow:      0 4px 24px rgba(0,0,0,.08);
  --shadow-lg:   0 8px 40px rgba(0,0,0,.14);
  --transition:  all .3s cubic-bezier(.4,0,.2,1);
  --font-main:   'Inter', system-ui, -apple-system, sans-serif;
}

/* ── Base ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  color: #333;
  background: #fff;
  overflow-x: hidden;
}

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

img { max-width: 100%; height: auto; }

/* ── Navbar ───────────────────────────────────────────────── */
.navbar {
  background: var(--secondary) !important;
  padding: 1rem 0;
  box-shadow: 0 2px 16px rgba(0,0,0,.3);
  transition: var(--transition);
}

.navbar.scrolled {
  padding: .6rem 0;
  background: rgba(17,17,17,.97) !important;
  backdrop-filter: blur(12px);
}

.navbar-brand {
  display: flex;
  align-items: center;
  padding: 0;
}

.navbar-brand img {
  height: 44px;
  width: auto;
  /* fundo branco translúcido para o logo ficar legível na navbar escura */
  background: rgba(255,255,255,.92);
  border-radius: 8px;
  padding: 4px 8px;
  transition: var(--transition);
}

.navbar-brand:hover img {
  background: rgba(255,255,255,1);
  transform: scale(1.03);
}

.navbar-nav .nav-link {
  color: rgba(255,255,255,.85) !important;
  font-weight: 500;
  padding: .5rem 1rem !important;
  border-radius: 8px;
  transition: var(--transition);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: #fff !important;
  background: rgba(255,255,255,.1);
}

.navbar-toggler { border-color: rgba(255,255,255,.3); }
.navbar-toggler-icon { filter: invert(1); }

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(17,17,17,.93) 0%, rgba(204,0,0,.18) 60%, rgba(0,168,184,.12) 100%),
    url('https://images.unsplash.com/photo-1504639725590-34d0984388bd?w=1600&q=80') center/cover no-repeat;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 80px;
  background: linear-gradient(transparent, #fff);
}

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

.hero-badge {
  display: inline-block;
  background: rgba(0,168,184,.2);
  color: var(--accent);
  border: 1px solid rgba(0,168,184,.4);
  padding: .35rem .9rem;
  border-radius: 50px;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  letter-spacing: .5px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

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

.hero p.lead {
  color: rgba(255,255,255,.8);
  font-size: clamp(1rem, 2vw, 1.2rem);
  max-width: 560px;
  margin-bottom: 2.5rem;
}

.btn-hero-primary {
  background: var(--primary);
  color: #fff;
  padding: .9rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  box-shadow: 0 4px 20px rgba(204,0,0,.4);
  transition: var(--transition);
}

.btn-hero-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(204,0,0,.5);
  color: #fff;
}

.btn-hero-outline {
  background: transparent;
  color: #fff;
  padding: .9rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid rgba(255,255,255,.5);
  transition: var(--transition);
}

.btn-hero-outline:hover {
  background: rgba(255,255,255,.15);
  border-color: #fff;
  color: #fff;
  transform: translateY(-2px);
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.hero-stat-item strong {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.hero-stat-item span {
  font-size: .85rem;
  color: rgba(255,255,255,.7);
}

/* ── Section comum ────────────────────────────────────────── */
section { padding: 5rem 0; }

.section-label {
  display: inline-block;
  background: rgba(204,0,0,.08);
  color: var(--primary);
  padding: .3rem .9rem;
  border-radius: 50px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: .75rem;
}

.section-title {
  font-size: clamp(1.7rem, 3.5vw, 2.6rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--secondary);
}

.section-sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 560px;
}

/* ── Cards de serviços ────────────────────────────────────── */
.service-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  height: 100%;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transition: var(--transition);
}

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

.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, rgba(204,0,0,.1), rgba(0,168,184,.1));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--primary);
  margin-bottom: 1.25rem;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  transform: scale(1.1);
}

.service-card h5 {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: .5rem;
  color: var(--secondary);
}

.service-card p {
  color: var(--text-muted);
  font-size: .9rem;
  line-height: 1.6;
  margin: 0;
}

/* ── Seção Sobre ──────────────────────────────────────────── */
.about-section { background: var(--light); }

.about-img-wrap {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
}

.about-img-wrap img {
  border-radius: var(--radius);
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.about-badge {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.about-badge strong {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

.about-badge span {
  font-size: .8rem;
  opacity: .9;
}

.feature-list { list-style: none; padding: 0; margin: 1.5rem 0; }

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  margin-bottom: .9rem;
  font-size: .95rem;
  color: #444;
}

.feature-list li i {
  color: var(--primary);
  margin-top: .15rem;
  flex-shrink: 0;
  font-size: 1rem;
}

/* ── Números / Stats ──────────────────────────────────────── */
.stats-section {
  background: linear-gradient(135deg, var(--secondary), #2a0000);
  color: #fff;
  padding: 4rem 0;
}

.stat-item { text-align: center; padding: 1.5rem; }

.stat-number {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  display: block;
}

.stat-label {
  font-size: .9rem;
  color: rgba(255,255,255,.7);
  margin-top: .5rem;
}

/* ── Cards de produtos ────────────────────────────────────── */
.product-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

.product-card-img {
  height: 200px;
  background: linear-gradient(135deg, #e3f2fd, #bbdefb);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: var(--primary);
}

.product-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card-body h5 {
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: .5rem;
}

.product-card-body p {
  color: var(--text-muted);
  font-size: .9rem;
  flex: 1;
}

/* ── Contato ──────────────────────────────────────────────── */
.contact-section { background: var(--light); }

.contact-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow);
  height: 100%;
}

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

.contact-icon {
  width: 48px;
  height: 48px;
  background: rgba(204,0,0,.08);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-info-item h6 {
  font-weight: 700;
  margin-bottom: .15rem;
  color: var(--secondary);
  font-size: .9rem;
}

.contact-info-item p {
  margin: 0;
  color: var(--text-muted);
  font-size: .9rem;
}

.form-control, .form-select {
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: .75rem 1rem;
  font-size: .95rem;
  transition: var(--transition);
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(204,0,0,.12);
}

.form-label { font-weight: 600; font-size: .9rem; color: #444; }

.btn-submit {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  border: none;
  padding: .85rem 2.5rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  width: 100%;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(204,0,0,.3);
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(204,0,0,.4);
  color: #fff;
}

/* ── Mapa ─────────────────────────────────────────────────── */
.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  height: 320px;
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ── Footer ───────────────────────────────────────────────── */
footer {
  background: var(--dark);
  color: rgba(255,255,255,.75);
  padding: 3.5rem 0 1.5rem;
}

.footer-logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: .75rem;
}

.footer-logo span { color: #fff; }

.footer-desc {
  font-size: .9rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.footer-heading {
  color: #fff;
  font-weight: 700;
  font-size: .95rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.footer-links { list-style: none; padding: 0; }

.footer-links li { margin-bottom: .5rem; }

.footer-links a {
  color: rgba(255,255,255,.65);
  font-size: .9rem;
  transition: var(--transition);
}

.footer-links a:hover { color: var(--accent); padding-left: 4px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.5rem;
  margin-top: 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: .85rem;
}

.social-links { display: flex; gap: .75rem; }

.social-link {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.7);
  transition: var(--transition);
  font-size: 1rem;
}

.social-link:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

/* ── Page Header (páginas internas) ───────────────────────── */
.page-header {
  background: linear-gradient(135deg, var(--secondary), #3a0000);
  color: #fff;
  padding: 8rem 0 4rem;
  text-align: center;
}

.page-header h1 {
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: .75rem;
}

.page-header p { color: rgba(255,255,255,.75); font-size: 1.1rem; }

.breadcrumb { justify-content: center; }
.breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.4); }
.breadcrumb-item { color: rgba(255,255,255,.6); font-size: .9rem; }
.breadcrumb-item a { color: var(--accent); }
.breadcrumb-item.active { color: rgba(255,255,255,.9); }

/* ── Animações reveal ─────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}

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

.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }
.reveal-delay-5 { transition-delay: .5s; }

/* ── Utilities ────────────────────────────────────────────── */
.bg-gradient-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
}

.text-accent { color: var(--accent) !important; }
.text-primary-dark { color: var(--primary-dark) !important; }

.btn-primary-custom {
  background: var(--primary);
  color: #fff;
  padding: .75rem 1.75rem;
  border-radius: 50px;
  font-weight: 700;
  border: none;
  transition: var(--transition);
}

.btn-primary-custom:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(204,0,0,.35);
}

/* ── Responsivo ───────────────────────────────────────────── */
@media (max-width: 768px) {
  section { padding: 3.5rem 0; }
  .hero { min-height: 100svh; }
  .hero-stats { gap: 1.5rem; }
  .about-img-wrap img { height: 280px; }
  .contact-card { padding: 1.75rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 576px) {
  .hero h1 { font-size: 1.9rem; }
  .btn-hero-primary, .btn-hero-outline { width: 100%; text-align: center; }
  .d-flex.gap-3 { flex-direction: column; }
}
