/* =========================================================
   SGR Corretora de Seguros — estilos
   ========================================================= */

:root {
  --green-900: #0F3D31;
  --green-700: #1B5C4A;
  --green-100: #E7F1ED;

  --ink-900: #111827;
  --ink-700: #374151;
  --ink-500: #6B7280;
  --line: #ECEEF0;
  --surface: #F8F9FA;
  --white: #FFFFFF;

  --radius-lg: 20px;
  --radius-md: 14px;
  --shadow-card: 0 1px 2px rgba(17, 24, 39, .04), 0 12px 32px rgba(17, 24, 39, .08);

  --container: 1360px;
  --gutter: clamp(24px, 4vw, 56px);
  --hero-h: 620px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-700);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
ul { list-style: none; margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
h1, h2, p { margin: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------------- Header ---------------- */
.site-header {
  position: relative;
  z-index: 10;
  background: var(--white);
}

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

/* Logo */
.brand {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--green-900);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding-inline: 20px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  gap: 8px;
  transition: background-color .15s ease;
}

.btn-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn-primary {
  background: var(--green-900);
  color: var(--white);
}

.btn-primary:hover { background: var(--green-700); }

.btn-primary:focus-visible {
  outline: 2px solid var(--green-700);
  outline-offset: 2px;
}

/* ---------------- Hero ---------------- */
.hero { position: relative; }

.hero-grid {
  display: flex;
  align-items: center;
  min-height: var(--hero-h);
}

.hero-copy {
  width: 50%;
  padding-right: 48px;
  padding-bottom: 60px;
}

.hero h1 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--ink-900);
}

.hero-sub {
  margin-top: 24px;
  max-width: 460px;
  font-size: 18px;
  color: var(--ink-500);
}

/* Imagem verde: encosta na borda direita da tela */
.hero-visual {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: var(--hero-h);
  overflow: hidden;
  background: var(--green-900);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% center;
}

/* ---------------- Cards de ramos ---------------- */
.ramos {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: -72px;
}

.ramo-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 28px 24px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: transform .2s ease, box-shadow .2s ease;
}

.ramo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 1px 2px rgba(17, 24, 39, .04), 0 20px 40px rgba(17, 24, 39, .12);
}

.ramo-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--green-100);
  color: var(--green-900);
}

.ramo-icon svg { width: 24px; height: 24px; }

.ramo-card h2 {
  margin-top: 20px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink-900);
}

.ramo-card p {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-500);
}

/* ---------------- Seguradoras ---------------- */
.parceiros { padding-block: 112px 96px; }

.parceiros-title {
  text-align: center;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink-900);
}

.parceiros-sub {
  max-width: 520px;
  margin: 12px auto 0;
  text-align: center;
  color: var(--ink-500);
}

.logos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 48px;
  border-top: 1px solid var(--line);
}

/* Bloco de 208px centralizado na célula: ícones e nomes ficam alinhados em coluna */
.logo-cell {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 96px;
  padding-block: 16px;
  padding-inline: max(12px, calc(50% - 104px)) 12px;
  border-bottom: 1px solid var(--line);
}

.logo-mark {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
  outline: 1px solid rgba(17, 24, 39, .08);
  outline-offset: -1px;
}

.logo-name {
  font-size: 16px;
  font-weight: 400;
  color: var(--ink-700);
  white-space: nowrap;
}

.parceiros-more {
  margin-top: 28px;
  text-align: center;
  font-size: 15px;
  color: var(--ink-500);
}

/* ---------------- Footer ---------------- */
.site-footer {
  padding-block: 32px;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px 24px;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 14px;
  color: var(--ink-500);
}

/* ---------------- Responsivo ---------------- */
@media (max-width: 1024px) {
  .ramos { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --gutter: 16px; }

  .hero-grid {
    flex-direction: column;
    align-items: stretch;
    gap: 32px;
    min-height: 0;
    padding-block: 40px 32px;
  }

  .hero-copy { width: 100%; padding: 0; }
  .hero-sub { font-size: 16px; }

  .hero-visual {
    position: static;
    width: 100%;
    height: 200px;
  }

  .ramos {
    grid-template-columns: 1fr;
    margin-top: -40px;
  }

  .parceiros { padding-block: 72px; }
  .logos-grid { grid-template-columns: 1fr; }
  .logo-cell { gap: 12px; height: 64px; padding: 12px 4px; }
  .logo-mark { width: 32px; height: 32px; border-radius: 8px; }
  .logo-name { font-size: 15px; }
  .btn { height: 40px; padding-inline: 14px; font-size: 14px; }

}
