/* ==================== CONFIGURAÇÕES GERAIS ==================== */
:root {
  --azul: #1545C9;
  --azul-escuro: #0D2C81;
  --cinza: #f5f5f7;
  --preto: #0f0f11;
  --branco: #ffffff;
  --verde-whats: #25D366;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--azul);
  background-color: var(--branco);
  line-height: 1.6;
}

/* ==================== CONTAINERS ==================== */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.container.narrow { max-width: 800px; }

/* ==================== NAVBAR ==================== */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  /* Deixa o fundo mais consistente e com mais contraste sobre o hero */
  background: rgba(15, 17, 21, 0.75);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 10px 0;
  transition: background 0.3s ease;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.brand {
  color: var(--branco);
  font-weight: 900;
  font-size: 1.2rem;
  text-decoration: none;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--branco);
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.nav-links a:hover { opacity: 0.8; }

/* >>> IMPORTANTE: não escondemos mais o menu no mobile para evitar sumiço */
@media (max-width: 768px) {
  .brand { font-size: 1rem; }
  .nav-links { gap: 14px; }
  .nav-links a { font-size: 0.95rem; }
}

/* ==================== HERO ==================== */
.hero {
  background: url("imagens/hero-ruah.jpg") no-repeat center center/cover;
  height: 100vh;
  width: 100%;
  position: relative;
}

/* Overlay sutil para dar legibilidade em qualquer luz */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 60% at 50% 50%, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.45) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.28) 0%, rgba(0,0,0,0.0) 35%, rgba(0,0,0,0.28) 100%);
  pointer-events: none;
}

@media (max-width: 768px) {
  .hero { 
    height: 72vh;
    background-position: center top;
  }
}

/* ==================== TAGLINE ==================== */
.section { padding: 80px 0; text-align: center; }

.tagline {
  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(255,255,255,1));
}

.tagline-title {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--azul);
  margin-bottom: 1rem;
}

.tagline-title .highlight {
  color: var(--azul);
  text-shadow: 0 0 10px rgba(21, 69, 201, 0.2);
}

.tagline-sub {
  color: #444;
  font-size: 1.05rem;
  margin-bottom: 1.8rem;
}

.btn-primary {
  display: inline-block;
  background: var(--azul);
  color: #fff;
  padding: 14px 24px;
  border-radius: 10px;
  font-weight: 800;
  text-decoration: none;
  transition: 0.2s ease;
}

.btn-primary:hover {
  background: var(--azul);
  transform: translateY(-2px);
}

/* ==================== PRODUTOS ==================== */
.produtos {
  background-color: var(--cinza);
  padding: 100px 0;
}

.produtos h2 {
  text-align: center;
  font-weight: 900;
  font-size: 2rem;
  margin-bottom: 0.8rem;
  color: var(--azul);
}

.produtos .intro {
  text-align: center;
  color: #555;
  max-width: 800px;
  margin: 0 auto 2rem;
}

.categoria { margin-top: 3rem; }

.categoria h3 {
  text-align: center;
  font-size: 1.6rem;
  color: var(--azul);
  font-weight: 800;
  margin-bottom: 1.2rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transition: 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

.card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center;
}

.card h4 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--azul);
  margin: 16px 0 8px;
  padding: 0 20px;
}

.card p {
  font-size: 0.95rem;
  color: #444;
  padding: 0 20px 20px;
}

/* ==================== ORÇAMENTO ==================== */
.orcamento {
  background: #fff;
  padding: 100px 0;
}

.orcamento h2 {
  text-align: center;
  font-weight: 900;
  color: var(--azul);
  margin-bottom: 0.5rem;
}

.orcamento .intro {
  text-align: center;
  color: #555;
  margin-bottom: 2.5rem;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

label span {
  display: block;
  font-weight: 700;
  color: var(--azul);
  margin-bottom: 6px;
}

input, select, textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid #e4e4e4;
  border-radius: 8px;
  font-size: 1rem;
  font-family: 'Montserrat', sans-serif;
  transition: border-color 0.2s ease;
  background: #fff;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--azul);
  outline: none;
  box-shadow: 0 0 0 4px rgba(21, 69, 201, 0.15);
}

button.btn-primary {
  width: fit-content;
  margin: 0 auto;
}

.muted {
  text-align: center;
  font-size: 0.85rem;
  color: #666;
}

/* ==================== FOOTER ==================== */
footer {
  background: var(--azul);
  color: #fff;
  text-align: center;
  padding: 30px 15px;
  font-size: 0.95rem;
}

footer a {
  color: #fff;
  text-decoration: underline;
}

/* ==================== WHATSAPP FLOAT ==================== */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: var(--verde-whats);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.25);
  z-index: 1000;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  color: #fff;
  text-decoration: none;
}

/* garante que o ícone renderize centralizado */
.whatsapp-float i {
  font-size: 32px;
  line-height: 1;
  display: block;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 20px rgba(37,211,102,0.4);
}

/* ==================== RESPONSIVIDADE ==================== */
@media (max-width: 768px) {
  .tagline-title { font-size: 1.8rem; }
  .tagline-sub  { font-size: 0.95rem; }
  .btn-primary  { font-size: 0.9rem; }

  /* Dá mais respiro visual nos cards no mobile */
  .grid { gap: 20px; }
}


/* ====== AJUSTES MOBILE ====== */

/* Deixa o hero estável no mobile (100svh = viewport real do celular) */
@media (max-width: 768px) {
  .hero {
    min-height: 90svh;   /* ocupa quase a tela toda sem “pular” */
    height: auto;
    background-position: center top; /* mostra mais do logo no topo */
  }
}

/* Barra mais compacta no celular (tudo em 1 linha) */
@media (max-width: 768px) {
  .navbar { padding: 8px 0; }

  .navbar .container {
    gap: 10px;
  }

  .brand {
    font-size: 1rem;          /* reduz um pouco pra caber em 1 linha */
    white-space: nowrap;      /* impede quebra do “Ruah Elevadores” */
  }

  .nav-links {
    gap: 14px;                /* links mais “juntinhos” */
  }

  .nav-links a {
    font-size: 0.95rem;
  }
}

/* Título e espaçamentos da seção logo abaixo do hero */
@media (max-width: 768px) {
  .tagline { padding-top: 28px; }

  .tagline-title {
    font-size: clamp(1.35rem, 5vw, 1.8rem);
    line-height: 1.2;
  }

  .tagline-sub {
    font-size: 0.95rem;
  }
}

/* Move e reduz o botão do WhatsApp pra não cobrir o título */
@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 14px;
    right: 12px;
    transform: scale(0.9);
  }
}
@media (max-width: 420px) {
  .whatsapp-float {
    bottom: 10px;
    right: 8px;
    transform: scale(0.8);
  }
}

@media (max-width: 768px) {
  .hero {
    background-image: url("imagens/hero-ruah-mobile.jpg");
    background-position: center;
    background-size: cover;
    height: 70vh;
  }
}


