/*
Theme Name: Insônia Nunca Mais
Theme URI: https://insonianuncamais.local
Author: Insônia Nunca Mais
Description: Tema WordPress de página única para o produto Insônia Nunca Mais, com conexões para WhatsApp, Instagram, Facebook e Hotmart.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: insonia-nunca-mais
*/
:root {
        --navy: #172334;
        --ink: #26312f;
        --muted: #62716c;
        --sage: #dfe9e3;
        --sage-strong: #7c9b8c;
        --cream: #f7f0e6;
        --warm: #fffaf2;
        --gold: #c89f56;
        --line: rgba(38, 49, 47, 0.14);
        font-family:
          Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
          "Segoe UI", sans-serif;
      }

      * {
        box-sizing: border-box;
      }

      html {
        scroll-behavior: smooth;
      }

      body {
        margin: 0;
        min-width: 320px;
        color: var(--ink);
        background: var(--cream);
      }

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

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

      .site-header {
        position: sticky;
        z-index: 10;
        top: 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 20px;
        padding: 16px clamp(18px, 5vw, 68px);
        border-bottom: 1px solid rgba(23, 35, 52, 0.1);
        background: rgba(255, 250, 242, 0.88);
        backdrop-filter: blur(16px);
      }

      .brand {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        color: var(--navy);
        font-weight: 900;
      }

      .brand-mark {
        display: grid;
        width: 34px;
        height: 34px;
        place-items: center;
        border-radius: 50%;
        color: var(--warm);
        background: var(--navy);
        font-size: 18px;
      }

      nav {
        display: flex;
        align-items: center;
        gap: clamp(12px, 2vw, 28px);
        color: var(--muted);
        font-size: 0.94rem;
      }

      nav a:hover {
        color: var(--navy);
      }

      .nav-cta,
      .button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 46px;
        padding: 0 20px;
        border-radius: 999px;
        color: var(--warm);
        background: var(--navy);
        font-weight: 800;
        box-shadow: 0 16px 32px rgba(23, 35, 52, 0.2);
      }

      .button.secondary {
        color: var(--navy);
        background: transparent;
        border: 1px solid rgba(23, 35, 52, 0.18);
        box-shadow: none;
      }

      .hero {
        min-height: calc(100vh - 68px);
        display: grid;
        grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
        align-items: center;
        gap: clamp(28px, 5vw, 72px);
        padding: clamp(42px, 7vw, 92px) clamp(18px, 5vw, 68px);
        background:
          linear-gradient(90deg, rgba(247, 240, 230, 0.96), rgba(247, 240, 230, 0.62)),
          var(--cream);
      }

      .eyebrow {
        margin: 0 0 12px;
        color: var(--sage-strong);
        font-size: 0.82rem;
        font-weight: 900;
        letter-spacing: 0.12em;
        text-transform: uppercase;
      }

      h1,
      h2,
      h3 {
        margin: 0;
        color: var(--navy);
        line-height: 1.04;
      }

      h1 {
        max-width: 760px;
        font-family: Georgia, "Times New Roman", serif;
        font-size: clamp(3rem, 7vw, 6.3rem);
        font-weight: 700;
      }

      h2 {
        font-family: Georgia, "Times New Roman", serif;
        font-size: clamp(2rem, 4vw, 4rem);
      }

      h3 {
        font-size: 1.08rem;
      }

      p {
        color: var(--muted);
        font-size: 1.02rem;
        line-height: 1.7;
      }

      .lead {
        max-width: 680px;
        color: #4a5a55;
        font-size: clamp(1.08rem, 2vw, 1.34rem);
      }

      .hero-actions,
      .trust-row,
      .social-links {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 12px;
      }

      .trust-row {
        margin-top: 28px;
        color: #67746f;
        font-size: 0.95rem;
      }

      .trust-row span {
        padding: 8px 12px;
        border: 1px solid var(--line);
        border-radius: 999px;
        background: rgba(255, 250, 242, 0.62);
      }

      .social-links {
        margin-top: 18px;
      }

      .social-links a {
        display: inline-flex;
        min-height: 42px;
        align-items: center;
        justify-content: center;
        padding: 0 16px;
        border: 1px solid var(--line);
        border-radius: 999px;
        color: var(--navy);
        background: rgba(255, 250, 242, 0.7);
        font-weight: 800;
      }

      .hero-media {
        overflow: hidden;
        border: 1px solid rgba(23, 35, 52, 0.12);
        border-radius: 22px;
        background: var(--navy);
        box-shadow: 0 28px 60px rgba(23, 35, 52, 0.22);
      }

      .hero-media img {
        width: 100%;
        height: min(72vh, 720px);
        object-fit: cover;
      }

      section {
        padding: clamp(56px, 8vw, 104px) clamp(18px, 5vw, 68px);
      }

      .section-head {
        max-width: 840px;
        margin-bottom: 34px;
      }

      .band {
        background: var(--warm);
      }

      .problem-grid,
      .method-grid,
      .bonus-grid,
      .article-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
      }

      .item {
        min-height: 154px;
        padding: 22px;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: rgba(255, 250, 242, 0.72);
      }

      .item strong {
        display: block;
        margin-bottom: 10px;
        color: var(--navy);
        font-size: 1.03rem;
      }

      .item p {
        margin: 0;
        font-size: 0.96rem;
      }

      .article-card,
      .soro-box {
        min-height: 190px;
        padding: 24px;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: rgba(255, 250, 242, 0.78);
      }

      .article-card h3 {
        margin-bottom: 10px;
        font-size: 1.35rem;
        line-height: 1.2;
      }

      .article-card p,
      .soro-box p {
        margin: 0 0 14px;
      }

      .article-date {
        color: var(--sage-strong);
        font-size: 0.78rem;
        font-weight: 900;
        letter-spacing: 0.1em;
        text-transform: uppercase;
      }

      .text-link {
        color: var(--navy);
        font-weight: 900;
        text-decoration: underline;
        text-underline-offset: 4px;
      }

      .soro-box {
        max-width: 860px;
        border-left: 4px solid var(--gold);
        background: #fff;
      }

      .soro-box h3 {
        margin-bottom: 12px;
      }

      .article-feature {
        display: grid;
        grid-template-columns: minmax(320px, 1fr) minmax(0, 0.9fr);
        align-items: center;
        gap: clamp(26px, 5vw, 64px);
      }

      .article-feature p {
        max-width: 620px;
      }

      .latest-article-title {
        margin: 0 0 12px;
        font-size: clamp(1.5rem, 3vw, 2.4rem);
        line-height: 1.12;
      }

      .article-image {
        overflow: hidden;
        border-radius: 18px;
        background: var(--navy);
        box-shadow: 0 22px 48px rgba(23, 35, 52, 0.16);
      }

      .article-image img {
        width: 100%;
        aspect-ratio: 16 / 9;
        object-fit: cover;
      }

      .split {
        display: grid;
        grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
        align-items: center;
        gap: clamp(28px, 5vw, 70px);
      }

      .image-frame {
        overflow: hidden;
        border-radius: 18px;
        background: var(--navy);
        box-shadow: 0 22px 48px rgba(23, 35, 52, 0.16);
      }

      .image-frame img {
        width: 100%;
        height: clamp(380px, 56vw, 620px);
        object-fit: contain;
        background: var(--navy);
      }

      .steps {
        display: grid;
        gap: 12px;
        margin-top: 24px;
      }

      .step {
        display: grid;
        grid-template-columns: 42px 1fr;
        gap: 14px;
        align-items: start;
        padding: 16px;
        border-left: 4px solid var(--gold);
        background: #fff;
      }

      .step span {
        display: grid;
        width: 42px;
        height: 42px;
        place-items: center;
        border-radius: 50%;
        color: var(--navy);
        background: #ead7b3;
        font-weight: 900;
      }

      .step p {
        margin: 4px 0 0;
      }

      .offer {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(280px, 0.82fr);
        align-items: center;
        gap: clamp(24px, 5vw, 68px);
        border-top: 1px solid rgba(255, 250, 242, 0.18);
        border-bottom: 1px solid rgba(255, 250, 242, 0.18);
        color: var(--warm);
        background: var(--navy);
      }

      .offer h2,
      .offer h3,
      .offer p {
        color: var(--warm);
      }

      .offer p {
        color: rgba(255, 250, 242, 0.76);
      }

      .offer-panel {
        padding: 26px;
        border: 1px solid rgba(255, 250, 242, 0.18);
        border-radius: 10px;
        background: rgba(255, 250, 242, 0.06);
      }

      .price {
        margin: 16px 0;
        color: var(--gold);
        font-size: clamp(2.4rem, 6vw, 4.8rem);
        font-weight: 900;
      }

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

      details {
        padding: 18px 20px;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: rgba(255, 250, 242, 0.72);
      }

      summary {
        cursor: pointer;
        color: var(--navy);
        font-weight: 800;
      }

      footer {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        padding: 28px clamp(18px, 5vw, 68px);
        color: #6f7b76;
        background: #ede4d8;
        font-size: 0.92rem;
      }

      @media (max-width: 920px) {
        .site-header {
          position: static;
          align-items: flex-start;
        }

        nav {
          display: none;
        }

        .hero,
        .split,
        .offer,
        .article-feature {
          grid-template-columns: 1fr;
        }

        .hero-media img {
          height: auto;
        }

        .problem-grid,
        .method-grid,
        .bonus-grid,
        .article-grid {
          grid-template-columns: 1fr;
        }
      }

      @media (max-width: 560px) {
        h1 {
          font-size: 2.7rem;
        }

        .hero-actions .button {
          width: 100%;
        }

        .trust-row span {
          width: 100%;
        }

        section,
        .hero {
          padding-right: 16px;
          padding-left: 16px;
        }
      }
