/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', sans-serif;
  color: #222;
  background: #fff;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ===== VARIÁVEIS ===== */
:root {
  --red: #c41020;           /* vermelho do símbolo RR, botões em fundo claro */
  --red-bright: #ff1a33;    /* neon red do logo, accents em fundo escuro */
  --red-light: #d41828;
  --red-dim: rgba(196,16,32,0.12);
  --blue: #2244dd;          /* neon azul do logo, accent sutil */
  --dark: #131a35;          /* navy escuro, fundo das seções escuras */
  --dark2: #0d1230;         /* navy profundo, header, hero, footer */
  --mid: #1a2548;           /* navy médio, cards escuros */
  --metal: #8898aa;         /* cinza metálico do símbolo RR */
  --gray: #556070;
  --light-gray: #f0f2f8;    /* leve tint azulado, seções claras */
  --border: #dde0ea;
  --white: #ffffff;
  --transition: 0.25s ease;
}

/* ===== UTILITIES ===== */
.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 0.4rem;
  line-height: 1.2;
}
.section-subtitle {
  font-size: 1.05rem;
  color: var(--gray);
  margin-bottom: 2.8rem;
}
.section-header { text-align: center; }
.section-header .accent { color: var(--red); }
section { padding: 80px 0; }
section:nth-child(even) { background: var(--light-gray); }

/* ===== HEADER ===== */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--dark2);
  box-shadow: 0 2px 12px rgba(0,0,0,0.5);
  transition: background var(--transition);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo-img-wrap {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.logo-img-wrap img {
  height: 50px;
  width: auto;
  display: block;
}
.logo-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.logo-name {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.3px;
  line-height: 1;
}
.logo-name span { color: var(--red-bright); }
.logo-tagline {
  font-size: 0.6rem;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 400;
  line-height: 1;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 24px;
}
.header-phones {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.header-phone {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
}
.header-phone i { font-size: 0.82rem; }
.header-phone .icon-phone { color: var(--red-bright); }
.header-phone .icon-wa { color: #25D366; }
.nav-links {
  display: flex;
  list-style: none;
  gap: 6px;
}
.nav-links a {
  color: #ccc;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 4px;
  transition: color var(--transition), background var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.nav-links a:hover { color: var(--white); background: var(--red-dim); }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== HERO ===== */
#hero {
  padding: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--dark2);
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 70% at 78% 42%, rgba(255,26,51,0.16) 0%, transparent 60%),
    radial-gradient(ellipse 40% 55% at 90% 68%, rgba(34,68,221,0.14) 0%, transparent 55%),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 38px,
      rgba(255,255,255,0.018) 38px,
      rgba(255,255,255,0.018) 40px
    );
}
.hero-inner {
  display: flex;
  align-items: center;
  gap: 60px;
  padding: 110px 0 70px;
  position: relative;
  z-index: 1;
}
.hero-content {
  flex: 1;
  min-width: 0;
}
.hero-visual {
  flex-shrink: 0;
  width: 400px;
}
.hero-visual img {
  width: 100%;
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.55);
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,26,51,0.15);
  border: 1px solid rgba(255,26,51,0.45);
  color: #ff7088;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 24px;
}
.hero-badge i { font-size: 0.75rem; }
.hero-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 20px;
}
.hero-title span { color: var(--red-bright); }
.hero-subtitle {
  font-size: 1.1rem;
  color: #aaa;
  margin-bottom: 36px;
  max-width: 560px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-light); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(139,0,0,0.4); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.3); }
.btn-outline:hover { border-color: var(--white); transform: translateY(-2px); }
.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 52px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.hero-stat-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}
.hero-stat-value span { color: var(--red-bright); }
.hero-stat-label { font-size: 0.78rem; color: #888; margin-top: 4px; text-transform: uppercase; letter-spacing: 1px; }

/* ===== PRODUCT CARDS ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px 24px;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.card:hover {
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
  transform: translateY(-5px);
  border-color: transparent;
}
.card:hover::before { transform: scaleX(1); }
.card-icon {
  width: 52px; height: 52px;
  background: var(--red-dim);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.card-icon i { font-size: 1.4rem; color: var(--red); }
.card-title { font-size: 1rem; font-weight: 700; margin-bottom: 10px; color: #111; }
.card-desc { font-size: 0.88rem; color: var(--gray); line-height: 1.7; }
.card-img {
  margin: -28px -24px 20px;
  height: 190px;
  overflow: hidden;
  border-radius: 10px 10px 0 0;
  background: #eee;
}
.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease;
}
.card:hover .card-img img { transform: scale(1.06); }
.card-dark .card-img { background: #111828; }

/* dark card variant */
.card-dark {
  background: var(--mid);
  border-color: rgba(255,255,255,0.06);
  color: var(--white);
}
.card-dark .card-title { color: var(--white); }
.card-dark .card-desc { color: var(--metal); }
.card-dark .card-icon { background: rgba(255,26,51,0.18); }
.card-dark .card-icon i { color: var(--red-bright); }
.card-dark:hover { box-shadow: 0 12px 32px rgba(13,18,48,0.6); }

/* ===== SENSORES SECTION ===== */
#sensores { background: var(--dark); }
#sensores .section-title { color: var(--white); }
#sensores .section-subtitle { color: var(--metal); }
#sensores .accent { color: var(--red-bright); }

/* ===== ACESSÓRIOS ===== */
.acessorios-card {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}
.acessorios-card .card-icon {
  margin: 0 auto 18px;
  width: 70px; height: 70px;
}
.acessorios-card .card-icon i { font-size: 1.8rem; }

/* ===== POR QUE ESCOLHER ===== */
#porque { background: var(--dark); }
#porque .section-title { color: var(--white); }
#porque .section-subtitle { color: var(--metal); }
#porque .accent { color: var(--red-bright); }
.porque-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
}
.porque-item {
  text-align: center;
  padding: 40px 28px;
  border-radius: 12px;
  background: var(--mid);
  border: 1px solid rgba(255,255,255,0.05);
  transition: transform var(--transition), box-shadow var(--transition);
}
.porque-item:hover { transform: translateY(-5px); box-shadow: 0 16px 40px rgba(13,18,48,0.65); }
.porque-icon {
  width: 70px; height: 70px;
  background: rgba(255,26,51,0.15);
  border: 1px solid rgba(255,26,51,0.35);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.porque-icon i { font-size: 1.6rem; color: var(--red-bright); }
.porque-title { font-size: 1.05rem; font-weight: 700; color: var(--white); margin-bottom: 10px; }
.porque-desc { font-size: 0.88rem; color: var(--metal); line-height: 1.7; }

/* ===== MISSÃO / VISÃO / VALORES ===== */
.mvv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 24px;
}
.mvv-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--red);
  border-radius: 10px;
  padding: 32px 28px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.mvv-card:hover { box-shadow: 0 10px 28px rgba(0,0,0,0.09); transform: translateY(-4px); }
.mvv-card-full { grid-column: 1 / -1; }
.mvv-icon {
  width: 48px; height: 48px;
  background: var(--red-dim);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.mvv-icon i { font-size: 1.3rem; color: var(--red); }
.mvv-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--red);
  margin-bottom: 8px;
}
.mvv-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #111;
  margin-bottom: 12px;
}
.mvv-text { font-size: 0.95rem; color: #444; line-height: 1.75; }
.mvv-text strong { color: var(--red); font-weight: 700; }
@media (max-width: 768px) {
  .mvv-grid { grid-template-columns: 1fr; }
  .mvv-card-full { grid-column: auto; }
}

/* ===== CONTATO ===== */
#contato { background: var(--light-gray); }
.contato-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.contato-info h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: #111;
}
.contato-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 20px;
}
.contato-item-icon {
  width: 42px; height: 42px;
  background: var(--red);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contato-item-icon i { color: var(--white); font-size: 1rem; }
.contato-item-text strong { display: block; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; color: #999; margin-bottom: 2px; }
.contato-item-text span, .contato-item-text a { font-size: 0.95rem; color: #222; }
.contato-item-text a:hover { color: var(--red); }
.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: var(--white);
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  margin-top: 10px;
  transition: background var(--transition), transform var(--transition);
}
.whatsapp-btn:hover { background: #1ebe59; transform: translateY(-2px); }

/* map */
.contato-map {
  margin-top: 48px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(0,0,0,0.1);
  border: 1px solid var(--border);
  height: 360px;
}
.contato-map iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* form */
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #555;
  margin-bottom: 6px;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: #222;
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(139,0,0,0.1);
}
.form-group input.error,
.form-group textarea.error { border-color: #e53e3e; }
.form-group .field-error {
  font-size: 0.78rem;
  color: #e53e3e;
  margin-top: 4px;
  display: none;
}
.form-group textarea { resize: vertical; min-height: 110px; }
.btn-submit {
  width: 100%;
  justify-content: center;
  padding: 15px;
  font-size: 1rem;
}
.form-success {
  display: none;
  background: #f0fff4;
  border: 1px solid #9ae6b4;
  color: #276749;
  border-radius: 8px;
  padding: 16px;
  text-align: center;
  font-weight: 600;
  margin-top: 16px;
}

/* ===== FOOTER ===== */
footer {
  background: var(--dark2);
  padding: 40px 0 24px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.footer-brand .logo-name { font-size: 1.2rem; }
.footer-brand .logo-tagline { margin-top: 4px; }
.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #aaa;
  font-size: 0.9rem;
  margin-bottom: 8px;
}
.footer-contact-item i { color: var(--red-bright); width: 16px; }
.footer-contact-item a { color: #aaa; }
.footer-contact-item a:hover { color: var(--white); }
.footer-copy {
  text-align: center;
  color: #555;
  font-size: 0.82rem;
  padding-top: 20px;
}
.footer-dev {
  text-align: center;
  color: #3a3f55;
  font-size: 0.75rem;
  margin-top: 8px;
}
.footer-dev a {
  color: var(--metal);
  font-size: 0.90rem;
  text-decoration: none;
  transition: color var(--transition);
}
.footer-dev a:hover { color: var(--white); }

/* ===== FLOATING WHATSAPP ===== */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 900;
  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.45);
  transition: transform var(--transition), box-shadow var(--transition);
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 24px rgba(37,211,102,0.6);
}
.whatsapp-float i { font-size: 1.5rem; color: var(--white); }
.whatsapp-float::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(37,211,102,0.4);
  animation: pulse-ring 2s ease-out infinite;
}
@keyframes pulse-ring {
  0%   { transform: scale(1);   opacity: 0.8; }
  100% { transform: scale(1.45); opacity: 0; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero-stats { gap: 28px; }
  .contato-grid { gap: 40px; }
}

@media (max-width: 768px) {
  section { padding: 60px 0; }
  .hero-inner { flex-direction: column; padding: 90px 0 50px; gap: 36px; }
  .hero-visual { width: 100%; max-width: 360px; margin: 0 auto; }
  .header-phones { display: none; }
  .logo-text { display: none; }
  .nav-links {
    display: none;
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: var(--dark2);
    flex-direction: column;
    padding: 16px 20px 24px;
    gap: 4px;
    border-top: 1px solid rgba(255,255,255,0.07);
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    font-size: 0.95rem;
    padding: 12px 14px;
    border-radius: 6px;
  }
  .nav-toggle { display: flex; }
  .hero-stats { flex-wrap: wrap; gap: 24px; }
  .contato-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-inner { flex-direction: column; gap: 24px; }
  .whatsapp-float { bottom: 20px; right: 20px; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .cards-grid { grid-template-columns: 1fr; }
  .porque-grid { grid-template-columns: 1fr; }
}
