/* ==========================================================================
   Opera+ Saúde — stylesheet
   ========================================================================== */

:root {
  --teal: #24b4b0;
  --teal-dark: #1a8f8c;
  --navy: #1f1e2e;
  --ink: rgba(0, 0, 0, 0.87);
  --ink-soft: rgba(0, 0, 0, 0.65);
  --bg-gray: #f0f3f5;
  --bg-black: #000000;
  --footer-black: #1f1e1e;
  --radius: 10px;
  --max-width: 1180px;
  --font: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  margin: 0;
  padding: 0;
}

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

.eyebrow {
  color: var(--teal);
}

h1, h2, h3, h4 {
  margin: 0 0 16px;
  font-weight: 700;
  line-height: 1.25;
}

h2.section-title {
  font-size: 34px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

p {
  margin: 0 0 16px;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 30px;
  background: var(--teal);
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
  text-align: center;
}

.btn:hover {
  background: var(--teal-dark);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--teal);
  color: var(--teal);
}

.btn-outline:hover {
  background: var(--teal);
  color: #fff;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #000;
}

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

.logo img {
  height: 66px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.main-nav a {
  color: #fff;
  font-size: 15px;
  font-weight: 400;
  white-space: nowrap;
}

.main-nav a:hover {
  color: var(--teal);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background: #000 url("../img/hero-bg.jpg") right center / cover no-repeat;
  color: #fff;
  padding: 110px 0;
  min-height: 560px;
  display: flex;
  align-items: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.75) 42%, rgba(0, 0, 0, 0.15) 75%);
}

.hero .container {
  position: relative;
  z-index: 1;
  max-width: 620px;
  margin: 0;
  margin-left: max(24px, calc((100% - var(--max-width)) / 2 + 24px));
}

.hero h1 {
  font-size: clamp(32px, 4.2vw, 60px);
  line-height: 1.1;
}

.hero p {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.9);
  max-width: 480px;
}

/* ---------- Expertise ---------- */

.expertise {
  padding: 130px 0 100px;
  position: relative;
  overflow: visible;
}

.expertise::before,
.expertise::after {
  content: "";
  position: absolute;
  background: url("../img/shape-decor.png") no-repeat center / contain;
  z-index: 0;
  pointer-events: none;
}

.expertise::before {
  top: clamp(-220px, -16vw, -90px);
  left: clamp(-60px, -3vw, -10px);
  width: clamp(280px, 34vw, 520px);
  height: clamp(268px, 32.6vw, 498px);
}

.expertise::after {
  bottom: clamp(-30px, -2vw, 10px);
  right: clamp(-70px, -4vw, -10px);
  width: clamp(240px, 30vw, 460px);
  height: clamp(230px, 28.8vw, 441px);
  transform: scaleX(-1);
  opacity: 0.8;
}

.expertise .grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: center;
}

.expertise-photo-wrap {
  position: relative;
}

.expertise-photo-wrap img {
  position: relative;
  z-index: 1;
  border-radius: var(--radius);
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.expertise-text h2 {
  font-size: 36px;
}

.expertise-text p {
  color: var(--ink-soft);
}

/* ---------- Executivos ---------- */

.executivos {
  background: var(--bg-gray);
  padding: 100px 0;
}

.executivos > .container > h2 {
  font-size: 34px;
}

.executivos-intro {
  max-width: 780px;
  color: var(--ink-soft);
  font-size: 18px;
  margin-bottom: 56px;
}

.exec-list {
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.exec-row {
  display: flex;
  gap: 36px;
  align-items: flex-start;
}

.exec-photo-wrap {
  position: relative;
  flex: none;
  width: 210px;
}

.exec-photo-wrap img:first-child {
  width: 210px;
  height: 230px;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
}

.exec-mark {
  position: absolute;
  bottom: -20px;
  left: -20px;
  width: 58px;
  height: auto;
}

.exec-content {
  padding-top: 4px;
}

.exec-content h3 {
  font-size: 19px;
  margin-bottom: 2px;
}

.exec-content .role {
  color: var(--ink);
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 16px;
}

.exec-content p {
  color: var(--ink-soft);
  font-size: 15px;
  margin-bottom: 0;
}

/* ---------- Soluções ---------- */

.solucoes {
  padding: 100px 0;
  text-align: center;
}

.solucoes h2 {
  font-size: 34px;
}

.solucoes .lead {
  max-width: 720px;
  margin: 0 auto 24px;
  font-size: 20px;
  font-weight: 600;
}

.solucoes .desc {
  max-width: 760px;
  margin: 0 auto 56px;
  color: var(--ink-soft);
  text-align: left;
}

.solution-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  text-align: left;
}

.solution-card {
  background: var(--bg-gray);
  border-radius: var(--radius);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.solution-card .icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
}

.solution-card .icon svg {
  width: 26px;
  height: 26px;
  fill: #fff;
}

.solution-card h3 {
  font-size: 20px;
  margin-bottom: 0;
}

.solution-card .btn {
  align-self: flex-start;
}

/* ---------- Detail sections (Compliance / Financeiro) ---------- */

.detail-section {
  padding: 100px 0;
}

.detail-section.alt {
  background: var(--bg-gray);
}

.detail-section .section-head {
  max-width: 820px;
  margin-bottom: 56px;
}

.detail-section .section-head h2 {
  font-size: 32px;
}

.detail-section .section-head p {
  color: var(--ink-soft);
  font-size: 18px;
}

.detail-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: flex-start;
  margin-bottom: 64px;
}

.detail-block:last-child {
  margin-bottom: 0;
}

.detail-block.reverse .detail-media {
  order: 2;
}

.detail-media img {
  border-radius: var(--radius);
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.detail-media.duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.detail-media.duo img {
  height: 220px;
}

.detail-text h3 {
  font-size: 22px;
  color: var(--teal);
}

.detail-text p {
  color: var(--ink-soft);
}

.check-list {
  list-style: none;
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.check-list li {
  padding-left: 30px;
  position: relative;
  color: var(--ink-soft);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--teal);
}

.check-list li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 9px;
  width: 6px;
  height: 3px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}

.sub-heading {
  font-weight: 700;
  font-size: 17px;
  margin: 28px 0 10px;
}

/* ---------- Contact / CTA ---------- */

.contato {
  background: #0c0c0c url("../img/contact-bg.jpg") center / cover no-repeat;
  color: #fff;
  padding: 100px 0;
}

.contato .intro {
  max-width: 640px;
  margin-bottom: 48px;
}

.contato .intro h2 {
  font-size: 32px;
}

.contato-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 64px;
}

.contact-form {
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius);
  padding: 40px;
}

.contact-form h3 {
  font-size: 22px;
  margin-bottom: 24px;
}

.contact-form .field {
  margin-bottom: 18px;
}

.contact-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink-soft);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d7dde0;
  border-radius: 8px;
  font-family: var(--font);
  font-size: 15px;
  background: #fafbfc;
}

.contact-form textarea {
  min-height: 110px;
  resize: vertical;
}

.contact-form .consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 22px;
}

.contact-form .consent input {
  margin-top: 3px;
}

.contact-form button {
  width: 100%;
}

.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-alert {
  background: #fdeaea;
  color: #b42318;
  border: 1px solid #f3b4b0;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 14px;
  margin-bottom: 18px;
}

.contact-info {
  display: grid;
  gap: 32px;
  align-content: start;
}

.info-item {
  display: flex;
  gap: 16px;
}

.info-item .ico {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.info-item .ico svg {
  width: 20px;
  height: 20px;
  fill: var(--teal);
}

.info-item h4 {
  font-size: 16px;
  margin-bottom: 4px;
}

.info-item p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  margin-bottom: 0;
}

.social-row {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.social-row a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.social-row a:hover {
  background: var(--teal);
}

.social-row img {
  width: 18px;
  height: 18px;
  filter: brightness(0) invert(1);
}

/* ---------- FAQ ---------- */

.faq {
  background: var(--bg-gray);
  padding: 100px 0;
}

.faq h2 {
  font-size: 32px;
  margin-bottom: 40px;
}

.faq-list {
  max-width: 860px;
  display: grid;
  gap: 12px;
}

.faq-item {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
}

.faq-item summary {
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 22px;
  color: var(--teal);
  flex: none;
}

.faq-item[open] summary::after {
  content: "\2212";
}

.faq-item .faq-body {
  padding: 0 24px 22px;
  color: var(--ink-soft);
}

.faq-item .faq-body p {
  margin-bottom: 10px;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--footer-black);
  color: rgba(255, 255, 255, 0.5);
  padding: 22px 0;
  font-size: 13px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
}

.footer-credit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 600;
}

.footer-credit img {
  height: 14px;
  width: auto;
  opacity: 0.9;
}

.footer-credit:hover {
  color: var(--teal);
}

.footer-credit:hover img {
  opacity: 1;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .expertise .grid,
  .solution-cards,
  .detail-block,
  .contato-grid {
    grid-template-columns: 1fr;
  }

  .detail-block.reverse .detail-media {
    order: 0;
  }

  .exec-row {
    flex-direction: column;
  }

  .exec-photo-wrap {
    width: 160px;
  }

  .exec-photo-wrap img:first-child {
    width: 160px;
    height: 180px;
  }

  .exec-mark {
    width: 46px;
    bottom: -14px;
    left: -14px;
  }

  .exec-content {
    padding-top: 28px;
  }

  .hero .container {
    margin-left: auto;
    max-width: 100%;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 84px;
    left: 0;
    right: 0;
    background: #000;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 20px;
    display: none;
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    padding: 12px 0;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .main-nav .btn {
    margin-top: 12px;
  }

  .hero {
    padding: 70px 0;
    min-height: auto;
    text-align: left;
  }

  .hero h1 {
    font-size: 32px;
  }

  h2.section-title,
  .expertise-text h2,
  .executivos > .container > h2,
  .solucoes h2,
  .detail-section .section-head h2,
  .contato .intro h2,
  .faq h2 {
    font-size: 26px;
  }

  .expertise,
  .executivos,
  .solucoes,
  .detail-section,
  .contato,
  .faq {
    padding: 64px 0;
  }

  .expertise::before,
  .expertise::after {
    display: none;
  }

  .expertise {
    padding: 64px 0;
  }

  .contact-form {
    padding: 26px;
  }
}
