/* ============================================================
   Ramos & Ramos Representações — Landing Page
   Identidade: WEG (institucional) + Ramos & Ramos (marca própria)
   ============================================================ */

:root {
  --rr-blue: #0093c0;
  --rr-blue-dark: #00688a;
  --weg-blue: #00579d;
  --weg-blue-dark: #003f73;
  --weg-blue-darker: #041e30;
  --weg-cyan: #28b9da;
  --weg-cyan-light: #96cbe2;
  --weg-cyan-lighter: #a4d8e3;
  --weg-cyan-lightest: #d5edfa;

  --ink: #0f2233;
  --text: #33475a;
  --muted: #64798c;
  --bg: #ffffff;
  --bg-alt: #f3f8fb;
  --border: #e1ebf2;

  --font: "Helvetica Neue", Helvetica, Arial, -apple-system, BlinkMacSystemFont, sans-serif;

  --radius: 10px;
  --shadow: 0 4px 20px rgba(15, 34, 51, 0.08);
  --shadow-lg: 0 12px 40px rgba(15, 34, 51, 0.16);

  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* Trava de arraste lateral — sem isso, no modo "Adicionar à Tela de Início"
   (iPhone/iPad/Android), um zoom sem querer (pinch/duplo-toque) deixa a
   página arrastável de lado a lado, sem barra de navegador pra "resetar".
   overflow-x:hidden é rede de segurança contra qualquer overflow residual e
   fica sempre ativo. overscroll-behavior:none, porém, só entra no modo PWA
   instalado (display-mode:standalone) — combinado com o header fixo
   (position:sticky) logo abaixo, ele trava COMPLETAMENTE a rolagem no
   Safari/macOS quando o scroll vem de um mouse por gesto (Magic Mouse) ou
   trackpad — bug reportado e corrigido em 18/09/2026. */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}
@media (display-mode: standalone) {
  html, body {
    overscroll-behavior: none;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  color: var(--ink);
  margin: 0 0 .5em;
  font-weight: 700;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; }
a { color: var(--weg-blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--weg-blue);
  margin-bottom: 10px;
}

.section {
  padding: 88px 0;
}
.section-alt { background: var(--bg-alt); }
.section-head {
  max-width: 640px;
  margin: 0 0 48px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 17px; }

/* ---------- GRID motif (decorative, from WEG brand manual) ---------- */
.grid-motif {
  display: flex;
  gap: 6px;
}
.grid-motif span {
  width: 28px;
  height: 20px;
  border-radius: 2px;
}
.grid-motif span:nth-child(1) { background: var(--weg-cyan-lighter); }
.grid-motif span:nth-child(2) { background: var(--weg-cyan); }
.grid-motif span:nth-child(3) { background: var(--weg-blue); }
.grid-motif span:nth-child(4) { background: var(--weg-cyan-light); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: var(--weg-cyan);
  color: var(--weg-blue-darker);
}
.btn-primary:hover { background: #43c6e5; box-shadow: var(--shadow); }
.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,.55);
  color: #fff;
}
.btn-outline:hover { background: rgba(255,255,255,.12); }
.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--weg-blue);
}
.btn-ghost:hover { background: var(--bg-alt); }
.btn-block { width: 100%; justify-content: center; }
.btn[disabled], .btn.disabled {
  opacity: .55;
  cursor: not-allowed;
  pointer-events: none;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Logo lockup: ícone "R" + texto (a imagem original é vertical demais
   pra caber legível num header baixo, então recriamos a leitura em CSS) */
.logo-lockup { display: flex; align-items: center; gap: 10px; }
.logo-lockup img { height: 36px; width: auto; }
.logo-lockup .brand-text strong {
  display: block;
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: .01em;
  color: var(--ink);
  line-height: 1.15;
}
.logo-lockup .brand-text span {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer-brand .logo-lockup img { height: 46px; }
.footer-brand .logo-lockup .brand-text strong { color: #fff; }
.footer-brand .logo-lockup .brand-text span { color: rgba(255,255,255,.5); }
.weg-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 14px;
  border-left: 1px solid var(--border);
}
.weg-badge img { height: 16px; }
.weg-badge span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--muted);
  line-height: 1.2;
}

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a {
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 600;
}
.main-nav a:hover { color: var(--weg-blue); text-decoration: none; }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: radial-gradient(120% 140% at 15% 0%, #0a3a63 0%, var(--weg-blue-darker) 55%, #061626 100%);
  color: #fff;
  overflow: hidden;
  padding: 110px 0 100px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 82% 15%, rgba(40,185,218,.35), transparent 45%),
    radial-gradient(circle at 100% 90%, rgba(94,156,199,.25), transparent 50%);
  pointer-events: none;
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: start; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  padding: 6px 14px 6px 8px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .04em;
  margin-bottom: 22px;
}
.hero-eyebrow img { height: 14px; }
.hero h1 {
  color: #fff;
  font-size: clamp(32px, 4.2vw, 50px);
  line-height: 1.12;
  margin-bottom: 20px;
}
.hero h1 em { color: var(--weg-cyan); font-style: normal; }
.hero p.lead {
  color: rgba(255,255,255,.82);
  font-size: 18px;
  max-width: 520px;
  margin-bottom: 32px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-stats {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
}
.hero-stats div strong {
  display: block;
  font-size: 26px;
  color: #fff;
}
.hero-stats div span {
  font-size: 13px;
  color: rgba(255,255,255,.65);
}
.hero-visual {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 16px;
  padding: 28px;
}
.hero-visual-logo {
  background: #fff;
  border-radius: 12px;
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-visual-logo img { height: 46px; }
/* GIF oficial da WEG (baixado direto do weg.net, 23/09/2026) — já traz
   slogan + barras + logo prontos num único arquivo, no lugar do que antes
   era montado à mão com texto e barras separados. */
.hero-visual-logo img.weg-driving-gif { height: auto; width: 100%; max-width: 340px; }
.hero-visual-caption {
  margin-top: 16px;
  font-size: 13.5px;
  color: rgba(255,255,255,.68);
  text-align: center;
}

/* ---------- Missão / Visão / Propósito ---------- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.value-card { text-align: center; }
.value-card .icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--rr-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}
.value-card .icon svg { width: 26px; height: 26px; }
.value-card h3 { font-size: 18px; margin-bottom: 10px; }
.value-card p { font-size: 14.5px; color: var(--muted); margin: 0; }

/* ---------- Products ---------- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.product-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--weg-cyan-light); }
.product-card .icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: var(--rr-blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.product-card .icon svg {
  width: 22px;
  height: 22px;
}
.product-card h3 { font-size: 16.5px; margin-bottom: 6px; }
.product-card p { font-size: 14px; color: var(--muted); margin: 0; }
.products-note {
  margin-top: 28px;
  font-size: 13.5px;
  color: var(--muted);
}

/* ---------- Área de atuação ---------- */
.coverage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.coverage-map {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}
.coverage-map img { border-radius: 6px; }
.bairros-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 18px;
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}
.bairros-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  color: var(--text);
  padding: 4px 0;
}
.bairros-list li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--weg-cyan);
  flex-shrink: 0;
}

/* ---------- Sobre Eduardo ---------- */
.about {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 56px;
  align-items: start;
}
.about-photo {
  aspect-ratio: 4/5;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-badges { display: flex; gap: 10px; margin: 18px 0 22px; flex-wrap: wrap; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px 6px 6px;
  border-radius: 999px;
}
.badge-icon {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: var(--rr-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.badge-icon svg {
  width: 13px;
  height: 13px;
}
.highlight-box {
  background: var(--bg-alt);
  border-left: 3px solid var(--weg-cyan);
  border-radius: 6px;
  padding: 18px 20px;
  font-size: 14.5px;
  color: var(--text);
  margin: 22px 0;
}
.highlight-box strong { color: var(--ink); }

/* ---------- Team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
.team-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 18px;
  text-align: center;
}
.team-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rr-blue), var(--weg-blue));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 20px;
  margin: 0 auto 14px;
}
.team-card h3 { font-size: 15.5px; margin-bottom: 4px; }
.team-card p { font-size: 13px; color: var(--muted); margin: 0; }

/* ---------- Future areas ---------- */
.areas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
/* Triângulo invertido: 3 cards em cima, 2 centralizados embaixo */
.areas-bottom {
  grid-template-columns: repeat(2, 1fr);
  max-width: 760px;
  margin: 20px auto 0;
}
.area-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  position: relative;
  display: flex;
  flex-direction: column;
}
.area-card .btn {
  margin-top: auto;
  align-self: flex-start;
}
.area-card .tag {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--weg-blue);
  background: var(--weg-cyan-lightest);
  padding: 4px 9px;
  border-radius: 999px;
}
.area-card .icon {
  width: 42px;
  height: 42px;
  border-radius: 9px;
  background: var(--rr-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.area-card .icon svg {
  width: 20px;
  height: 20px;
}
.area-card h3 { font-size: 16px; margin-bottom: 6px; padding-right: 70px; }
.area-card p { font-size: 13.5px; color: var(--muted); margin-bottom: 16px; }

/* ---------- Contact / Demand channel ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 48px;
}
.contact-info-card {
  background: linear-gradient(160deg, var(--weg-blue-dark), var(--weg-blue-darker));
  color: #fff;
  border-radius: var(--radius);
  padding: 32px 28px;
}
.contact-info-card h3 { color: #fff; }
.contact-line {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 18px;
  font-size: 14.5px;
}
.contact-line strong { display: block; font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; color: rgba(255,255,255,.6); margin-bottom: 2px; font-weight: 700; }
.contact-line a { color: #fff; }
.contact-line a:hover { color: var(--weg-cyan); }

.form-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  height: 44px;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: 7px;
  font-family: var(--font);
  font-size: 14.5px;
  line-height: 1.2;
  color: var(--text);
  background: var(--bg);
}
.field select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364798c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 15px;
  cursor: pointer;
}
.field textarea { height: auto; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--weg-cyan);
  box-shadow: 0 0 0 3px rgba(40,185,218,.18);
}
.field textarea { resize: vertical; min-height: 100px; }
.form-note {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 10px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--weg-blue-darker);
  color: rgba(255,255,255,.7);
  padding: 56px 0 28px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,.12);
  margin-bottom: 24px;
}
.footer-brand .logo-lockup { margin-bottom: 16px; }
.footer-brand p { font-size: 13.5px; color: rgba(255,255,255,.55); max-width: 280px; }
.footer-col h4 { color: #fff; font-size: 14px; margin-bottom: 14px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { color: rgba(255,255,255,.65); font-size: 14px; }
.footer-col a:hover { color: #fff; text-decoration: none; }
.footer-weg {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  padding: 10px 14px;
  border-radius: 8px;
  margin-top: 14px;
}
.footer-weg img { height: 15px; margin: 0; }
.footer-weg span { font-size: 11px; color: rgba(255,255,255,.6); font-weight: 700; letter-spacing: .03em; }
.footer-weg-link { margin: 10px 0 0; font-size: 13px; }
.footer-weg-link a { color: rgba(255,255,255,.6); }
.footer-weg-link a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: rgba(255,255,255,.45);
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .main-nav { display: none; }
  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: none;
    cursor: pointer;
  }
  .weg-badge { display: none; }
}

@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .coverage { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; }
  .about-photo { max-width: 260px; }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .areas-grid { grid-template-columns: repeat(2, 1fr); }
  .areas-bottom { max-width: none; margin-top: 20px; }
  .contact-grid { grid-template-columns: 1fr; }
  /* Empilhado (mobile), o formulário vem primeiro — é a ação que queremos
     que a pessoa veja logo, o card de contato direto fica depois. No
     desktop (grid de 2 colunas acima) a ordem visual não muda. Pedido do
     Eduardo, 23/09/2026. */
  .form-card { order: -1; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .section { padding: 60px 0; }
  .main-nav { display: none; }
  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: none;
    cursor: pointer;
  }
  .weg-badge { display: none; }
  .products-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; gap: 32px; }
  .bairros-list { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .areas-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .hero { padding: 90px 0 70px; }
  .hero-stats { flex-direction: column; gap: 18px; }
}


/* iPhone/Android: campos com fonte menor que 16 px fazem o iOS AMPLIAR a página ao tocar (e ela não volta sozinha — cortava rótulos e botões nas telas internas).
   Em celular todo campo de formulário usa 16 px. */
@media (max-width: 820px) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="color"]),
  select, textarea { font-size: 16px !important; }
  html { -webkit-text-size-adjust: 100%; }
  body { overflow-x: hidden; }
  button, .btn, a.btn, select { touch-action: manipulation; }
}


/* Pente-fino 07/10/2026: botões vizinhos (cabeçalho das telas e barras de ação) SEMPRE com a mesma altura, mesmo com emoji/ícone no texto. */
.dash-user .btn, .dash-user button.btn, .barra .btn { height: 42px; padding-top: 0 !important; padding-bottom: 0 !important; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; line-height: 1; white-space: nowrap; }
