/*
Theme Name: Excellence Monitoramento
Theme URI: https://excellencemonitoramento.com.br
Author: Excellence
Description: Tema personalizado para Excellence Monitoramento
Version: 1.0
Text Domain: excellence
*/

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

:root {
  --header-bg: #ffffff;
  --services-bg: #3a3a3a;
  --about-bg: #000000;
  --footer-bg: #000000;
  --card-bg: #ffffff;
  --text-dark: #111111;
  --text-white: #ffffff;
  --text-muted-dark: #555555;
  --text-muted-light: #cccccc;
  --border-light: rgba(0,0,0,0.1);
  --border-dark: rgba(255,255,255,0.12);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Barlow', sans-serif;
  color: var(--text-dark);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  background: #ffffff;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ===== HEADER ===== */
#site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--header-bg);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 1px 8px rgba(0,0,0,0.08);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-logo-icon {
  height: 64px;
  width: auto;
  flex-shrink: 0;
}

.site-logo-text {
  font-family: 'Barlow', sans-serif;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dark);
  line-height: 1.15;
}

.site-logo-text small {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: #555;
}

.main-nav ul {
  display: flex;
  gap: 40px;
}

.main-nav a {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-dark);
  transition: color 0.2s;
  position: relative;
  padding-bottom: 4px;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--text-dark);
  transition: width 0.2s;
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--text-dark);
  transition: all 0.3s;
}

/* ===== HERO CAROUSEL ===== */
.hero-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #0d0f14;
  line-height: 0;
}

.carousel-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carousel-slide {
  min-width: 100%;
  background: #0d0f14;
  line-height: 0;
}

.carousel-slide img {
  width: 100%;
  height: auto;
  display: block;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: white;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  line-height: 1;
}

.carousel-btn:hover { background: rgba(255,255,255,0.28); }
.carousel-prev { left: 20px; }
.carousel-next { right: 20px; }

.carousel-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.carousel-dot.active {
  background: #ffffff;
  transform: scale(1.2);
}

/* ===== NOSSOS SERVIÇOS ===== */
.services-section {
  background: var(--services-bg);
  padding: 72px 40px;
}

.section-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.services-header {
  text-align: center;
  margin-bottom: 48px;
}

.services-header h2 {
  font-size: 36px;
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 10px;
}

.services-header p {
  font-size: 16px;
  color: var(--text-muted-light);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  transition: transform 0.25s;
}

.service-card:hover { transform: translateY(-5px); }

.service-card-image {
  width: 100%;
  height: 220px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #e0e0e0;
  display: block;
}

.service-card-body {
  padding: 24px 28px 28px;
}

.service-card-body h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.service-card-body p {
  font-size: 14px;
  color: var(--text-muted-dark);
  line-height: 1.6;
}

/* ===== QUEM SOMOS ===== */
.about-section {
  background: var(--about-bg);
  padding: 80px 40px;
}

.about-header {
  text-align: center;
  margin-bottom: 48px;
}

.about-header h2 {
  font-size: 42px;
  font-weight: 900;
  color: var(--text-white);
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}

.about-header p {
  font-size: 16px;
  color: var(--text-muted-light);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-image img {
  width: 100%;
  max-width: 480px;
  height: auto;
  margin: 0 auto;
}

.about-image-placeholder {
  width: 100%;
  max-width: 480px;
  height: 400px;
  background: #111;
  border: 1px solid var(--border-dark);
  border-radius: 4px;
  margin: 0 auto;
}

.about-text p {
  font-size: 15px;
  color: var(--text-muted-light);
  line-height: 1.8;
  margin-bottom: 18px;
}

.about-text p strong {
  color: var(--text-white);
  font-weight: 700;
}

.about-tags {
  margin-top: 24px;
  font-size: 14px;
  color: #888;
}

/* ===== FOOTER ===== */
#site-footer {
  background: var(--footer-bg);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 28px 40px;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-copy {
  font-size: 13px;
  color: #888;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  width: 56px;
  height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}

.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(37,211,102,0.5);
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
  fill: white;
}

/* ===== LOCALIZAÇÃO ===== */
.location-section {
  background: #0d0f14;
  padding: 80px 40px;
  border-top: 1px solid rgba(255,255,255,.08);
}

.location-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: center;
}

.location-info {}

.location-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 36px;
}

.location-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.location-item svg { flex-shrink: 0; margin-top: 2px; }

.location-map {
  height: 340px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.1);
}

.btn-gps {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  color: #000;
  font-weight: 700;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: 6px;
  text-decoration: none;
  transition: background .2s, transform .2s;
}

.btn-gps:hover {
  background: #e0e0e0;
  transform: translateY(-2px);
}

/* ===== PÁGINAS INTERNAS ===== */
.page-hero { padding: 72px 40px 56px; }
.page-hero-title { font-size: 42px; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; color: #fff; margin-bottom: 12px; }
.page-divider { width: 60px; height: 3px; background: #fff; margin: 0 auto 16px; }
.page-hero-sub { color: #a0aab8; font-size: 17px; }
.page-body { padding: 72px 40px; }

.svc-page-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; max-width: 1280px; margin: 0 auto; }
.svc-page-card { background: #161a22; border: 1px solid rgba(255,255,255,.1); border-radius: 10px; overflow: hidden; transition: transform .25s; }
.svc-page-card:hover { transform: translateY(-5px); }
.svc-page-card-img { height: 200px; background-size: cover; background-position: center; }
.svc-page-card-body { padding: 28px; }
.svc-page-card-body h3 { font-size: 18px; font-weight: 800; color: #fff; text-transform: uppercase; margin-bottom: 10px; }
.svc-page-card-body p { color: #a0aab8; font-size: 14px; line-height: 1.7; }

.contato-main-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; max-width: 1100px; margin: 0 auto; }
.contato-map-section { padding: 0 40px 72px; }
.contato-map-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; align-items: center; max-width: 1100px; margin: 0 auto; }
.contato-map-frame { height: 340px; border-radius: 8px; overflow: hidden; border: 1px solid rgba(255,255,255,.1); }

.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.news-card { background: #161a22; border: 1px solid rgba(255,255,255,.1); border-radius: 10px; overflow: hidden; transition: transform .25s; }
.news-card:hover { transform: translateY(-5px); }

/* ===== MOBILE ===== */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-image { text-align: center; }
  .location-grid { grid-template-columns: 1fr; gap: 40px; }
  .location-map { height: 280px; }
  .svc-page-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .services-section,
  .about-section,
  .location-section { padding: 44px 20px; }

  #site-footer { padding: 20px 16px; }

  .header-inner { padding: 0 16px; height: 72px; }

  .site-logo-icon { height: 46px; }
  .site-logo-text { font-size: 14px; }
  .site-logo-text small { font-size: 10px; }

  .carousel-slide { height: 75vw; }
  .carousel-slide picture { display: block; width: 100%; height: 100%; }
  .carousel-slide img { width: 100%; height: 100%; object-fit: cover; object-position: center; }

  .main-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
    padding: 12px 16px;
    z-index: 999;
  }

  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav a { display: block; padding: 12px 0; border-bottom: 1px solid var(--border-light); font-size: 14px; }
  .nav-toggle { display: flex; }

  .services-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .services-grid .service-card:last-child:nth-child(2n+1) { grid-column: span 2; }
  .service-card-image { height: 140px; }
  .service-card-body { padding: 14px 16px 18px; }
  .service-card-body h3 { font-size: 13px; }
  .service-card-body p { font-size: 12px; }

  .services-header { margin-bottom: 28px; }
  .services-header h2 { font-size: 24px; }
  .services-header p { font-size: 14px; }

  .about-header { margin-bottom: 28px; }
  .about-header h2 { font-size: 28px; }
  .about-header p { font-size: 14px; }

  .about-text p { font-size: 14px; }

  .location-map { height: 230px; }

  .footer-inner { flex-direction: column; gap: 10px; text-align: center; }
  .footer-copy { font-size: 12px; }

  .carousel-btn { display: none; }

  .whatsapp-float { width: 50px; height: 50px; bottom: 18px; right: 18px; }
  .whatsapp-float svg { width: 26px; height: 26px; }

  /* páginas internas mobile */
  .page-hero { padding: 44px 20px 32px; }
  .page-hero-title { font-size: 26px; }
  .page-hero-sub { font-size: 14px; }
  .page-body { padding: 40px 16px; }
  .svc-page-grid { grid-template-columns: 1fr; gap: 14px; }
  .svc-page-card-img { height: 160px; }
  .svc-page-card-body { padding: 18px; }
  .svc-page-card-body h3 { font-size: 15px; }
  .contato-main-grid { grid-template-columns: 1fr; gap: 36px; }
  .contato-map-section { padding: 0 16px 48px; }
  .contato-map-grid { grid-template-columns: 1fr; gap: 24px; }
  .contato-map-frame { height: 220px; }
  .news-grid { grid-template-columns: 1fr; gap: 16px; }
}

@media (max-width: 420px) {
  .services-grid { grid-template-columns: 1fr; }
  .services-grid .service-card:last-child:nth-child(2n+1) { grid-column: span 1; }
}
