/*
Theme Name: ADS Solucoes Seguros
Theme URI: https://ads-solucoes.local
Author: Codex
Description: Tema institucional e comercial para corretora ADS Solucoes, com home de cotacao, cards de seguros, depoimentos e formularios de lead.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: ads-solucoes
*/

:root {
  --ads-blue: #062b4f;
  --ads-blue-2: #0b3b69;
  --ads-gold: #c88b24;
  --ads-gold-2: #eba83b;
  --ads-ink: #172536;
  --ads-muted: #627083;
  --ads-line: #dfe6ee;
  --ads-bg: #f5f8fb;
  --ads-white: #ffffff;
  --ads-shadow: 0 20px 48px rgba(6, 43, 79, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ads-white);
  color: var(--ads-ink);
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  line-height: 1.55;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  z-index: 100;
  background: var(--ads-blue);
  color: var(--ads-white);
  padding: 10px 14px;
}

.skip-link:focus {
  left: 12px;
}

.topbar {
  background: var(--ads-blue);
  color: var(--ads-white);
  font-size: 14px;
}

.topbar__inner,
.site-header__inner,
.nav-menu,
.hero__actions,
.trust-strip,
.section-title,
.footer-grid {
  display: flex;
  align-items: center;
}

.topbar__inner {
  justify-content: space-between;
  gap: 16px;
  min-height: 42px;
}

.topbar__links {
  display: flex;
  align-items: center;
  gap: 18px;
  white-space: nowrap;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--ads-line);
  backdrop-filter: blur(14px);
}

.site-header__inner {
  justify-content: space-between;
  min-height: 82px;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.brand img {
  width: 164px;
  height: auto;
}

.brand__fallback {
  display: none;
  font-weight: 900;
  color: var(--ads-blue);
  letter-spacing: 0;
}

.nav-menu {
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #314156;
  font-weight: 700;
}

.nav-menu a {
  padding: 12px 0;
}

.nav-menu a:hover,
.nav-menu a:focus {
  color: var(--ads-gold);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 0;
  border-radius: 8px;
  background: var(--ads-blue);
  color: var(--ads-white);
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover,
.btn:focus {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(6, 43, 79, 0.18);
}

.btn--gold {
  background: var(--ads-gold);
}

.btn--outline {
  background: transparent;
  border: 1px solid rgba(6, 43, 79, 0.2);
  color: var(--ads-blue);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--ads-line);
  border-radius: 8px;
  background: var(--ads-white);
  color: var(--ads-blue);
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 18%, rgba(200, 139, 36, 0.25), transparent 30%),
    linear-gradient(135deg, #ffffff 0%, #eef5fb 54%, #ffffff 100%);
}

.hero::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -120px;
  width: 360px;
  height: 360px;
  border: 32px solid rgba(200, 139, 36, 0.22);
  border-radius: 50%;
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.78fr);
  gap: 48px;
  align-items: center;
  padding: 74px 0 64px;
}

.eyebrow {
  color: var(--ads-gold);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.08em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 700px;
  color: var(--ads-blue);
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.02;
  margin-bottom: 22px;
}

.hero__copy {
  max-width: 600px;
  color: #526174;
  font-size: 19px;
}

.hero__actions {
  gap: 16px;
  flex-wrap: wrap;
  margin: 30px 0;
}

.trust-strip {
  gap: 18px;
  flex-wrap: wrap;
  color: #334459;
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
}

.quote-card {
  position: relative;
  background: var(--ads-white);
  border: 1px solid rgba(6, 43, 79, 0.1);
  border-radius: 8px;
  box-shadow: var(--ads-shadow);
  padding: 26px;
}

.quote-card h2 {
  color: var(--ads-blue);
  font-size: 26px;
  margin-bottom: 6px;
}

.quote-card p {
  color: var(--ads-muted);
  margin-bottom: 18px;
}

.quote-form {
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  color: #34465a;
  font-weight: 800;
  font-size: 14px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid #cfd9e4;
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--ads-ink);
  background: #fff;
}

.field textarea {
  min-height: 92px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-message {
  display: none;
  padding: 12px;
  border-radius: 8px;
  background: #eaf7ef;
  color: #16582a;
  font-weight: 700;
}

.form-message.is-visible {
  display: block;
}

.logos {
  padding: 52px 0 44px;
  background: var(--ads-white);
}

.section-title {
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.section-title h2 {
  color: var(--ads-blue);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.12;
  margin: 0;
}

.section-title p {
  max-width: 520px;
  margin: 0;
  color: var(--ads-muted);
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.partner-logo {
  min-height: 82px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ads-line);
  border-radius: 8px;
  color: #405066;
  background: #fff;
  font-weight: 900;
}

.why,
.products,
.testimonials {
  padding: 70px 0;
  background: var(--ads-bg);
}

.why-grid,
.product-grid,
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.feature-card,
.product-card,
.testimonial-card,
.step-card {
  background: var(--ads-white);
  border: 1px solid var(--ads-line);
  border-radius: 8px;
  padding: 22px;
}

.feature-card strong,
.product-card h3,
.testimonial-card strong,
.step-card h3 {
  color: var(--ads-blue);
}

.feature-icon,
.product-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  margin-bottom: 16px;
  background: rgba(200, 139, 36, 0.12);
  color: var(--ads-gold);
  font-weight: 900;
}

.split {
  padding: 78px 0;
  background: var(--ads-blue);
  color: var(--ads-white);
}

.split__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 44px;
  align-items: center;
}

.split h2 {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.1;
}

.split p {
  color: rgba(255, 255, 255, 0.82);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 26px;
}

.stat {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 18px;
}

.stat strong {
  display: block;
  color: var(--ads-gold-2);
  font-size: 34px;
}

.steps {
  padding: 74px 0;
  background: var(--ads-white);
}

.tabs {
  display: inline-flex;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--ads-line);
  border-radius: 8px;
  background: #fff;
  margin-bottom: 22px;
}

.tab {
  border: 0;
  border-radius: 6px;
  padding: 10px 16px;
  background: transparent;
  color: var(--ads-blue);
  font-weight: 900;
  cursor: pointer;
}

.tab.is-active {
  background: var(--ads-blue);
  color: var(--ads-white);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.step-number {
  color: var(--ads-gold);
  font-size: 13px;
  font-weight: 900;
}

.product-card {
  display: flex;
  flex-direction: column;
  min-height: 246px;
}

.product-card p {
  color: var(--ads-muted);
}

.product-card a {
  margin-top: auto;
  color: var(--ads-gold);
  font-weight: 900;
}

.testimonial-grid {
  grid-template-columns: 0.9fr 1.1fr;
}

.score {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: var(--ads-blue);
  margin: 18px 0;
}

.score strong {
  font-size: 58px;
  line-height: 1;
}

.quotes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.site-footer {
  background: #061c35;
  color: rgba(255, 255, 255, 0.82);
  padding: 58px 0 24px;
}

.footer-grid {
  align-items: flex-start;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 1fr;
  gap: 32px;
}

.footer-brand img {
  width: 150px;
  filter: brightness(1.06);
  background: #fff;
  border-radius: 8px;
  padding: 8px;
  margin-bottom: 16px;
}

.site-footer h3 {
  color: #fff;
  font-size: 16px;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 9px;
}

.footer-bottom {
  margin-top: 38px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
}

.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 8px;
  background: #22a95a;
  color: #fff;
  font-weight: 900;
  box-shadow: 0 16px 34px rgba(10, 88, 49, 0.28);
}

@media (max-width: 980px) {
  .container {
    width: min(100% - 28px, 760px);
  }

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .main-nav {
    position: fixed;
    inset: 124px 14px auto 14px;
    display: none;
    padding: 18px;
    background: #fff;
    border: 1px solid var(--ads-line);
    border-radius: 8px;
    box-shadow: var(--ads-shadow);
  }

  body.menu-open .main-nav {
    display: block;
  }

  .nav-menu {
    display: grid;
    gap: 6px;
  }

  .header-actions .btn--outline {
    display: none;
  }

  .hero__grid,
  .split__grid,
  .testimonial-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .logo-grid,
  .why-grid,
  .product-grid,
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .topbar__inner,
  .topbar__links,
  .section-title,
  .hero__actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar__inner {
    padding: 10px 0;
  }

  .site-header__inner {
    min-height: 72px;
  }

  .brand img {
    width: 132px;
  }

  .hero__grid {
    padding: 48px 0;
  }

  h1 {
    font-size: 40px;
  }

  .form-row,
  .logo-grid,
  .why-grid,
  .product-grid,
  .steps-grid,
  .quotes,
  .stats {
    grid-template-columns: 1fr;
  }

  .whatsapp-float {
    left: 14px;
    right: 14px;
    justify-content: center;
  }
}
