/*
Theme Name: Nova Era Seguros
Theme URI: https://example.com/nova-era-seguros
Author: Nova Era
Author URI: https://example.com
Description: Tema institucional para corretora de seguros, com slider, ramos de atuação e formulário de cotação.
Version: 1.5.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nova-era-seguros
*/

:root {
  --ne-blue: #11145e;
  --ne-red: #c82334;
  --ne-ink: #172033;
  --ne-muted: #647084;
  --ne-line: #d9dfeb;
  --ne-soft: #f5f7fb;
  --ne-green: #16846c;
  --ne-gold: #c69734;
  --ne-white: #ffffff;
  --ne-shadow: 0 18px 50px rgba(21, 29, 55, 0.16);
  --ne-radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ne-ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
  background: var(--ne-white);
}

body.admin-bar .site-header {
  top: 32px;
}

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

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

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(217, 223, 235, 0.8);
  backdrop-filter: blur(14px);
}

.site-header__inner,
.section-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header__inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 180px;
}

.brand img {
  width: 214px;
  max-height: 58px;
  object-fit: contain;
}

.header-badges {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.header-badge {
  width: 38px;
  max-height: 52px;
  object-fit: contain;
}

.receita-badge {
  width: 38px;
  max-height: 38px;
}

.nav-menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
  color: #27304c;
  font-size: 0.94rem;
  font-weight: 700;
}

.nav-menu ul,
.nav-menu__list {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

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

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

.menu-toggle {
  display: none;
  width: 46px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid var(--ne-line);
  border-radius: var(--ne-radius);
  background: var(--ne-white);
  cursor: pointer;
}

.menu-toggle__bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ne-blue);
  border-radius: 999px;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  color: var(--ne-white);
  background: var(--ne-red);
  border-radius: var(--ne-radius);
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(200, 35, 52, 0.22);
}

.hero {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  height: auto;
  aspect-ratio: 1672 / 941;
  min-height: 0;
  margin: 28px auto 0;
  overflow: hidden;
  background: #07143c;
  border-radius: var(--ne-radius);
  box-shadow: var(--ne-shadow);
}

.hero-slider,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  transition: opacity 700ms ease;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #07143c;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--ne-radius);
  border: 1px solid transparent;
  font-weight: 800;
  cursor: pointer;
}

.button-primary {
  color: var(--ne-white);
  background: var(--ne-red);
  box-shadow: 0 14px 28px rgba(200, 35, 52, 0.26);
}

.button-secondary {
  color: var(--ne-white);
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.1);
}

.button-dark {
  color: var(--ne-blue);
  border-color: var(--ne-line);
  background: var(--ne-white);
}

.slider-dots {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 16px;
  display: flex;
  transform: translateX(-50%);
  gap: 10px;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
}

.slider-dot.is-active {
  width: 36px;
  background: #f2c04f;
}

.section {
  padding: 76px 0;
}

.home-intro {
  padding: 34px 0 20px;
}

.home-intro__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}

.home-intro h1 {
  max-width: 760px;
  margin: 0;
  color: var(--ne-blue);
  font-size: clamp(1.65rem, 3.2vw, 2.55rem);
  line-height: 1.12;
}

.home-intro p {
  max-width: 740px;
  margin: 10px 0 0;
  color: var(--ne-muted);
}

.section-soft {
  background: var(--ne-soft);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 34px;
}

.section-heading p {
  margin: 10px 0 0;
  color: var(--ne-muted);
  font-size: 1.04rem;
}

.section-kicker {
  margin: 0 0 8px;
  color: var(--ne-red);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h2 {
  margin: 0;
  color: var(--ne-blue);
  font-size: clamp(1.75rem, 3vw, 2.65rem);
  line-height: 1.1;
  letter-spacing: 0;
}

.branch-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.branch-card {
  overflow: hidden;
  min-height: 100%;
  border: 1px solid var(--ne-line);
  border-radius: var(--ne-radius);
  background: var(--ne-white);
  box-shadow: 0 10px 34px rgba(23, 32, 51, 0.08);
}

.branch-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  object-position: center;
  padding: 8px;
  background: #eef3fb;
}

.branch-card__body {
  padding: 22px;
}

.branch-card h3 {
  margin: 0 0 10px;
  color: var(--ne-blue);
  font-size: 1.18rem;
}

.branch-card p {
  margin: 0;
  color: var(--ne-muted);
  font-size: 0.96rem;
}

.text-link {
  display: inline-flex;
  margin-top: 16px;
  color: var(--ne-red);
  font-weight: 900;
}

.inner-hero {
  padding: 72px 0;
  color: var(--ne-white);
  background:
    linear-gradient(90deg, rgba(17, 20, 94, 0.96), rgba(17, 20, 94, 0.76)),
    url("assets/img/patrimoniais-slide.png") center / cover;
}

.inner-hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 42px;
  align-items: center;
}

.inner-hero__grid > div:only-child {
  grid-column: 1 / -1;
  max-width: 760px;
}

.inner-hero h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(2.1rem, 4vw, 3.5rem);
  line-height: 1.08;
}

.inner-hero p:not(.section-kicker) {
  max-width: 670px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.08rem;
}

.inner-hero img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border-radius: var(--ne-radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--ne-shadow);
}

.inner-hero .inner-logo {
  padding: 22px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.detail-card {
  min-height: 100%;
  padding: 24px;
  border: 1px solid var(--ne-line);
  border-radius: var(--ne-radius);
  background: var(--ne-white);
  box-shadow: 0 12px 32px rgba(23, 32, 51, 0.08);
}

.detail-card h2 {
  font-size: 1.18rem;
  line-height: 1.25;
}

.detail-card p {
  color: var(--ne-muted);
}

.proof {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
}

.proof-media {
  overflow: hidden;
  border-radius: var(--ne-radius);
  box-shadow: var(--ne-shadow);
}

.proof-list {
  display: grid;
  gap: 16px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.proof-list li {
  position: relative;
  padding-left: 34px;
  color: #2f3a56;
  font-weight: 700;
}

.proof-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--ne-green);
  box-shadow: inset 0 0 0 6px #dff2ec;
}

.contact-wrap {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 38px;
  align-items: start;
}

.contact-panel {
  color: var(--ne-white);
  background: var(--ne-blue);
  border-radius: var(--ne-radius);
  padding: 34px;
  box-shadow: var(--ne-shadow);
}

.contact-panel h2,
.contact-panel .section-kicker {
  color: var(--ne-white);
}

.contact-panel p {
  color: rgba(255, 255, 255, 0.78);
}

.contact-methods {
  display: grid;
  gap: 12px;
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 34px;
  border: 1px solid var(--ne-line);
  border-radius: var(--ne-radius);
  background: var(--ne-white);
  box-shadow: 0 12px 42px rgba(23, 32, 51, 0.09);
}

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

.field label {
  display: block;
  margin-bottom: 7px;
  color: #303a55;
  font-size: 0.9rem;
  font-weight: 800;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  color: var(--ne-ink);
  border: 1px solid #cbd3e2;
  border-radius: var(--ne-radius);
  background: var(--ne-white);
  font: inherit;
}

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

.form-status {
  padding: 12px 14px;
  border-radius: var(--ne-radius);
  font-weight: 800;
}

.form-status.success {
  color: #115940;
  background: #ddf3eb;
}

.form-status.error {
  color: #8b1f2b;
  background: #fde4e8;
}

.site-footer {
  padding: 34px 0;
  color: var(--ne-blue);
  background: var(--ne-white);
  border-top: 1px solid var(--ne-line);
}

.site-footer__inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-footer img {
  width: 164px;
  padding: 8px;
  background: #ffffff;
  border: 1px solid var(--ne-line);
  border-radius: var(--ne-radius);
}

.bio-page {
  min-height: calc(100vh - 82px);
  display: grid;
  place-items: center;
  padding: 48px 16px;
  background:
    linear-gradient(135deg, rgba(17, 20, 94, 0.93), rgba(8, 38, 88, 0.86)),
    url("assets/img/auto-slide.png") center / cover;
}

.bio-panel {
  width: min(440px, 100%);
  padding: 28px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--ne-radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--ne-shadow);
}

.bio-logo {
  width: 190px;
  margin: 0 auto 18px;
}

.bio-kicker {
  margin: 0 0 8px;
  color: var(--ne-red);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bio-panel h1 {
  margin: 0 0 22px;
  color: var(--ne-blue);
  font-size: 1.7rem;
  line-height: 1.15;
}

.bio-links {
  display: grid;
  gap: 12px;
}

.bio-links a {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  color: var(--ne-blue);
  border: 1px solid var(--ne-line);
  border-radius: var(--ne-radius);
  background: var(--ne-white);
  font-weight: 900;
  box-shadow: 0 8px 22px rgba(23, 32, 51, 0.08);
}

.bio-links a:hover,
.bio-links a:focus {
  color: var(--ne-white);
  background: var(--ne-blue);
}

.bio-links .bio-primary {
  color: var(--ne-white);
  border-color: var(--ne-red);
  background: var(--ne-red);
}

.bio-links .bio-whatsapp {
  color: var(--ne-white);
  border-color: #16846c;
  background: #16846c;
}

.bio-links .bio-whatsapp[aria-disabled="true"] {
  opacity: 0.7;
  cursor: not-allowed;
}

@media (max-width: 940px) {
  .site-header__inner {
    flex-wrap: wrap;
    padding: 12px 0 16px;
  }

  .brand {
    order: 1;
  }

  .header-badges {
    order: 2;
    gap: 8px;
  }

  .header-badge {
    width: 30px;
    max-height: 42px;
  }

  .receita-badge {
    width: 30px;
    max-height: 30px;
  }

  .menu-toggle {
    display: inline-flex;
    order: 3;
  }

  .header-cta {
    order: 4;
    min-height: 40px;
    padding: 0 14px;
    font-size: 0.86rem;
  }

  .nav-menu {
    display: none;
    order: 4;
    width: 100%;
    max-height: calc(100vh - 120px);
    justify-content: flex-start;
    overflow: auto;
    padding: 10px 0 0;
  }

  .nav-menu.is-open {
    display: block;
  }

  .nav-menu ul,
  .nav-menu__list {
    display: grid;
    gap: 0;
    width: 100%;
  }

  .nav-menu a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--ne-line);
  }

  .hero {
    width: min(980px, calc(100% - 24px));
    margin-top: 20px;
  }

  .home-intro__inner {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    justify-content: flex-start;
  }

  .branch-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .inner-hero__grid,
  .proof,
  .contact-wrap {
    grid-template-columns: 1fr;
  }

  .detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  body.admin-bar .site-header {
    top: 46px;
  }

  .brand img {
    width: 160px;
  }

  .header-badge {
    width: 25px;
    max-height: 35px;
  }

  .receita-badge {
    width: 25px;
    max-height: 25px;
  }

  .header-cta {
    order: 4;
    width: auto;
    margin-left: auto;
  }

  .site-header__inner {
    gap: 12px;
  }

  .nav-menu {
    font-size: 0.92rem;
  }

  .hero {
    width: min(680px, calc(100% - 20px));
    margin-top: 14px;
    border-radius: 6px;
    box-shadow: 0 10px 28px rgba(21, 29, 55, 0.14);
  }

  .slider-dots {
    bottom: 8px;
    gap: 7px;
  }

  .slider-dot {
    width: 9px;
    height: 9px;
  }

  .slider-dot.is-active {
    width: 24px;
  }

  .home-intro {
    padding: 24px 0 12px;
  }

  .home-intro h1 {
    font-size: 1.45rem;
  }

  .home-intro p {
    font-size: 0.96rem;
  }

  .button {
    width: 100%;
  }

  .section {
    padding: 56px 0;
  }

  .branch-grid,
  .detail-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .inner-hero {
    padding: 44px 0;
  }

  .inner-hero img {
    max-height: none;
    aspect-ratio: 1672 / 941;
    object-fit: contain;
  }

  .contact-panel,
  .contact-form {
    padding: 24px;
  }

  .site-footer__inner {
    align-items: flex-start;
    flex-direction: column;
  }
}
