/*
Theme Name: MSE Theme
Theme URI: https://mse.emp.br
Author: Marcos Paulo
Description: Tema institucional custom para segurança, monitoramento e tecnologia.
Version: 1.0
*/

:root {
  --bg-dark: #0b0f14;
  --bg-blue: #0e2233;
  --card-dark: #1a1f26;
  --accent: #c4622d;
  --text-main: #ffffff;
  --text-muted: #a0a6ad;
}

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

body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(180deg, var(--bg-blue), var(--bg-dark));
  color: var(--text-main);
}

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


/* ===============================
   HERO
================================ */
.hero {
  position: relative;
  padding: 140px 60px;
  background: radial-gradient(circle at center, #12344d 0%, #06080c 70%);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/wp-content/uploads/bg-grid.png");
  opacity: 0.08;
}

.hero h2 {
  font-size: clamp(36px, 5vw, 58px);
  max-width: 650px;
  line-height: 1.15;
  z-index: 2;
  position: relative;
}

/* ===============================
   GRID SERVIÇOS
================================ */
.services {
  max-width: 1300px;
  margin: auto;
  padding: 80px 60px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.service-card {
  background: linear-gradient(180deg, #1b222b, #141920);
  border-radius: 22px;
  padding: 34px;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all .35s ease;
  box-shadow: 0 20px 50px rgba(0,0,0,.45);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.08), transparent);
  transform: translateX(-100%);
}

.service-card:hover::before {
  transform: translateX(100%);
  transition: 0.6s;
}

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

.service-card.accent {
  background: linear-gradient(180deg, #d0723b, #b4531f);
}

.service-title {
  font-size: 18px;
  font-weight: 600;
}

/* ===============================
   SEÇÕES
================================ */
.section-title {
  text-align: center;
  font-size: 28px;
  margin: 100px 0 40px;
}

.cta {
  text-align: center;
  padding: 80px;
}

.cta a {
  display: inline-block;
  padding: 18px 60px;
  border-radius: 40px;
  background: linear-gradient(90deg, #c4622d, #ff8b4a);
  font-weight: 600;
  transition: transform .3s, box-shadow .3s;
}

.cta a:hover {
  transform: scale(1.05);
  box-shadow: 0 20px 40px rgba(196,98,45,.45);
}

/* ===============================
   MOBILE
================================ */
@media (max-width: 768px) {
  header {
    padding: 20px 30px;
  }
  .hero {
    padding: 100px 30px;
  }
  .services {
    padding: 40px 30px;
  }
}


/* ===============================
   ÍCONES SVG
================================ */
.icon {
  width: 52px;
  height: 52px;
  margin-bottom: 25px;
  background-repeat: no-repeat;
  background-size: contain;
  filter: drop-shadow(0 0 12px rgba(0,0,0,.4));
  transition: transform .4s ease, filter .4s ease;
}

.service-card:hover .icon {
  transform: scale(1.15) rotate(3deg);
  filter: drop-shadow(0 0 18px rgba(255,255,255,.35));
}

/* ===============================
   SVGs INLINE
================================ */
.icon.camera {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.5'%3E%3Crect x='3' y='7' width='15' height='10' rx='2'/%3E%3Ccircle cx='10.5' cy='12' r='2.5'/%3E%3Cpath d='M18 9l3-2v10l-3-2z'/%3E%3C/svg%3E");
}

.icon.alarm {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.5'%3E%3Cpath d='M12 3a7 7 0 017 7v4l1.5 2H3.5L5 14V10a7 7 0 017-7z'/%3E%3Cpath d='M9 21h6'/%3E%3C/svg%3E");
}

.icon.shield {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.5'%3E%3Cpath d='M12 3l8 4v5c0 5-3.5 8-8 9-4.5-1-8-4-8-9V7l8-4z'/%3E%3Cpath d='M9 12l2 2 4-4'/%3E%3C/svg%3E");
}

.icon.access {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.5'%3E%3Crect x='5' y='3' width='14' height='18' rx='2'/%3E%3Cpath d='M9 7h6M9 11h6M9 15h6'/%3E%3C/svg%3E");
}

/* ===============================
   CARD LARANJA – ÍCONE DIFERENTE
================================ */
.service-card.accent .icon {
  filter: drop-shadow(0 0 15px rgba(255,180,120,.6));
}
