/* ============================================
   IMPÉRIO TECH – style.css
   ============================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --gold:       #FFD700;
  --gold-dk:    #e6c200;
  --black:      #0a0a0a;
  --dark:       #111111;
  --dark2:      #1a1a1a;
  --white:      #ffffff;
  --gray:       #cccccc;
  --wpp:        #25D366;
  --wpp-dk:     #1ebe5d;
  --radius:     12px;
  --shadow:     0 4px 24px rgba(0,0,0,0.4);
  --transition: 0.3s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background-color: var(--black);
  color: var(--white);
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

/* ---------- Utilities ---------- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}
.highlight { color: var(--gold); }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform var(--transition), background var(--transition);
}
.btn:hover { transform: translateY(-2px); }

.btn-primary { background: var(--gold); color: var(--black); }
.btn-primary:hover { background: var(--gold-dk); }

.btn-whatsapp { background: var(--wpp); color: var(--white); }
.btn-whatsapp:hover { background: var(--wpp-dk); }

/* ---------- HEADER ---------- */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(10,10,10,0.95);
  border-bottom: 2px solid var(--gold);
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 2px;
}
.crown { font-size: 1.6rem; }

#navbar ul {
  list-style: none;
  display: flex;
  gap: 28px;
}

#navbar a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--white);
  transition: color var(--transition);
  position: relative;
  padding-bottom: 4px;
}
#navbar a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width var(--transition);
}
#navbar a:hover { color: var(--gold); }
#navbar a:hover::after { width: 100%; }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--gold);
  font-size: 1.6rem;
  cursor: pointer;
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 20px 60px;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(255,215,0,0.08) 0%, transparent 70%);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23FFD700' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}
.hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 20px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.8);
}
.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--gray);
  margin-bottom: 36px;
}
.hero-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- SECTIONS ---------- */
.section { padding: 90px 0; }
.section-dark { background: var(--dark2); }

.section-title {
  text-align: center;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 900;
  margin-bottom: 12px;
}
.section-sub {
  text-align: center;
  color: var(--gray);
  font-size: 1rem;
  margin-bottom: 50px;
}

/* ---------- CARDS SERVIÇOS ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}
.card {
  background: var(--dark2);
  border: 1px solid rgba(255,215,0,0.15);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  box-shadow: 0 8px 32px rgba(255,215,0,0.15);
}
.card-icon {
  font-size: 2.8rem;
  color: var(--gold);
  margin-bottom: 18px;
}
.card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.card p { color: var(--gray); font-size: 0.93rem; }

/* ---------- MAPA ---------- */
.map-wrapper {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid rgba(255,215,0,0.3);
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}
.map-wrapper iframe {
  width: 100%;
  height: 420px;
  display: block;
  border: none;
}
.map-btn { display: inline-flex; margin: 0 auto; }

/* ---------- CONTATO ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  align-items: start;
}
.contact-card {
  background: var(--dark2);
  border: 1px solid rgba(255,215,0,0.15);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  transition: border-color var(--transition);
}
.contact-card:hover { border-color: var(--gold); }

.contact-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 20px;
}
.contact-icon.wpp    { background: rgba(37,211,102,0.15); color: var(--wpp); }
.contact-icon.addr   { background: rgba(255,215,0,0.12);  color: var(--gold); }
.contact-icon.form-ic{ background: rgba(255,255,255,0.08); color: var(--white); }

.contact-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; }
.contact-card p  { color: var(--gray); margin-bottom: 20px; font-size: 0.95rem; }

/* Formulário */
.contact-form-card form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}
.contact-form-card input,
.contact-form-card textarea {
  width: 100%;
  padding: 12px 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  color: var(--white);
  font-size: 0.93rem;
  font-family: inherit;
  transition: border-color var(--transition);
  resize: vertical;
}
.contact-form-card input:focus,
.contact-form-card textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.contact-form-card input::placeholder,
.contact-form-card textarea::placeholder { color: #777; }

/* ---------- FOOTER ---------- */
#footer {
  background: var(--dark2);
  border-top: 2px solid rgba(255,215,0,0.2);
  padding: 40px 0;
  text-align: center;
}
.footer-logo {
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 2px;
  color: var(--gold);
  margin-bottom: 8px;
}
.footer-text { color: #666; font-size: 0.88rem; margin-bottom: 4px; }

/* ---------- BOTÃO FLUTUANTE WHATSAPP ---------- */
.float-wpp {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 9999;
  width: 60px; height: 60px;
  background: var(--wpp);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--white);
  box-shadow: 0 4px 20px rgba(37,211,102,0.5);
  transition: transform var(--transition), box-shadow var(--transition);
  animation: pulse-wpp 2.5s infinite;
}
.float-wpp:hover {
  transform: scale(1.12);
  box-shadow: 0 6px 28px rgba(37,211,102,0.7);
}
@keyframes pulse-wpp {
  0%,100% { box-shadow: 0 4px 20px rgba(37,211,102,0.5); }
  50%      { box-shadow: 0 4px 36px rgba(37,211,102,0.85); }
}

/* ---------- RESPONSIVO ---------- */
@media (max-width: 768px) {
  .menu-toggle { display: block; }

  #navbar {
    display: none;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: rgba(10,10,10,0.98);
    border-top: 1px solid rgba(255,215,0,0.2);
    padding: 16px 0;
  }
  #navbar.open { display: block; }
  #navbar ul { flex-direction: column; align-items: center; gap: 4px; }
  #navbar li a { display: block; padding: 12px 20px; font-size: 1rem; }

  .hero-btns { flex-direction: column; align-items: center; }
  .cards-grid, .contact-grid { grid-template-columns: 1fr; }
  .map-wrapper iframe { height: 300px; }
  .float-wpp { bottom: 18px; right: 18px; }
}
