/**
 * ==============================================================================
 * Instituto de Fadiga - Estilos de Condições e Doenças
 * ==============================================================================
 */

@import url('global.css');

:root {
      --ink: #13262a;
      --ink-soft: #40565a;
      --brand: #0f4f56;
      --brand-2: #1f6b70;
      --green: #6f8f55;
      --green-soft: #eaf1e5;
      --blue-soft: #e8f2f4;
      --paper: #f8f7f2;
      --white: #ffffff;
      --line: #d8e1df;
      --warm: #e5a45d;
      --shadow: 0 20px 60px rgba(15, 79, 86, .12);
      --radius: 22px;
      --radius-sm: 14px;
      --container: 1180px;
    }

    * { box-sizing: border-box; }
    html {
      scroll-behavior: smooth;
      overflow-x: hidden;
      max-width: 100%;
    }
    body {
      margin: 0;
      font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      color: var(--ink);
      background: var(--paper);
      line-height: 1.65;
      -webkit-font-smoothing: antialiased;
      text-rendering: optimizeLegibility;
      overflow-x: hidden;
      max-width: 100%;
      width: 100%;
    }
    img, video, iframe, svg { max-width: 100%; }
    img { height: auto; display: block; }
    a { color: inherit; text-decoration: none; }
    button, input, textarea { font: inherit; max-width: 100%; }
    button { cursor: pointer; }

    .container {
      width: min(calc(100% - 36px), var(--container));
      margin-inline: auto;
      max-width: 100%;
    }

    .skip-link {
      position: fixed;
      top: 12px;
      left: 12px;
      transform: translateY(-150%);
      z-index: 9999;
      background: var(--ink);
      color: white;
      padding: 10px 14px;
      border-radius: 8px;
    }
    .skip-link:focus { transform: translateY(0); }

    .eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 9px;
      margin-bottom: 14px;
      color: var(--brand);
      font-size: .8rem;
      font-weight: 800;
      letter-spacing: .11em;
      text-transform: uppercase;
      max-width: 100%;
    }
    .eyebrow::before {
      content: "";
      width: 24px;
      height: 2px;
      background: var(--warm);
      border-radius: 99px;
      flex-shrink: 0;
    }

    h1, h2, h3, h4 {
      margin-top: 0;
      line-height: 1.15;
      letter-spacing: -.03em;
      overflow-wrap: break-word;
      word-wrap: break-word;
    }
    h1, h2, h3 { font-family: "Source Serif 4", Georgia, serif; }
    h1 { font-size: clamp(2.1rem, 5.5vw, 4.2rem); margin-bottom: 20px; word-break: break-word; }
    h2 { font-size: clamp(1.75rem, 3.5vw, 2.8rem); margin-bottom: 18px; color: var(--brand); word-break: break-word; }
    h3 { font-size: 1.35rem; margin-bottom: 12px; color: var(--ink); }
    h4 { font-size: 1.05rem; font-weight: 800; margin-bottom: 8px; }
    p { margin-top: 0; overflow-wrap: break-word; word-wrap: break-word; }

    .section {
      padding: 92px 0;
      position: relative;
    }
    .section-white { background: var(--white); }
    .section-blue { background: var(--blue-soft); }
    .section-green { background: var(--green-soft); }
    .section-dark { background: var(--brand); color: white; }

    .section-head {
      max-width: 840px;
      margin-bottom: 44px;
    }
    .section-head p {
      color: var(--ink-soft);
      font-size: 1.08rem;
      max-width: 760px;
    }
    .section-dark .section-head p { color: rgba(255,255,255,.85); }
    .section-dark .eyebrow { color: #dff1e7; }

    /* Header & Navigation */
    .header {
      position: sticky;
      top: 0;
      z-index: 1000;
      background: rgba(248, 247, 242, .93);
      backdrop-filter: blur(16px);
      border-bottom: 1px solid rgba(216,225,223,.85);
    }
    .nav {
      min-height: 80px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 24px;
    }
    .brand {
      display: inline-flex;
      align-items: center;
      gap: 12px;
      min-width: 180px;
    }
    .brand img { width: 172px; height: auto; }
    .nav-links {
      display: flex;
      align-items: center;
      gap: 24px;
      font-size: .92rem;
      font-weight: 700;
      color: #334b4f;
    }
    .nav-links a:hover, .nav-links a:focus-visible { color: var(--brand); }
    .nav-links a.active { color: var(--brand); font-weight: 800; }
    .nav-toggle { display: none; background: transparent; border: 0; padding: 9px; }
    .nav-toggle svg { width: 26px; height: 26px; }

    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 9px;
      min-height: 50px;
      padding: 13px 22px;
      border-radius: 999px;
      border: 1px solid transparent;
      font-weight: 800;
      transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
    }
    .btn:hover { transform: translateY(-1px); }
    .btn:focus-visible, a:focus-visible, summary:focus-visible {
      outline: 3px solid rgba(229,164,93,.65);
      outline-offset: 3px;
    }
    .btn-primary { background: var(--brand); color: white; }
    .btn-primary:hover { background: #0a444a; }
    .btn-outline { border-color: var(--brand); color: var(--brand); background: transparent; }
    .btn-outline:hover { background: rgba(15,79,86,.08); }
    .btn-light { background: white; color: var(--brand); }
    .btn-light:hover { background: #f0f7f5; }
    .btn-ghost-light { border-color: rgba(255,255,255,.55); color: white; }
    .btn-ghost-light:hover { background: rgba(255,255,255,.1); }
    .btn-small { min-height: 44px; padding: 10px 17px; font-size: .9rem; }

    /* Page Hero Hub */
    .page-hero {
      padding: 64px 0 44px;
      background: linear-gradient(180deg, rgba(232,242,244,.75) 0%, var(--paper) 100%);
      border-bottom: 1px solid var(--line);
    }
    .page-hero-inner {
      max-width: 900px;
    }
    .page-hero p.lead {
      color: var(--ink-soft);
      font-size: 1.15rem;
      line-height: 1.7;
      margin-bottom: 28px;
    }

    /* Quick Jump Pills */
    .quick-nav {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin-top: 24px;
    }
    .quick-pill {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 10px 18px;
      background: white;
      border: 1px solid var(--line);
      border-radius: 999px;
      font-size: .88rem;
      font-weight: 700;
      color: var(--brand);
      box-shadow: 0 4px 14px rgba(15,79,86,.05);
      transition: all .2s ease;
    }
    .quick-pill:hover {
      background: var(--brand);
      color: white;
      border-color: var(--brand);
      transform: translateY(-2px);
    }

    /* Highlight Category: Síndromes de Fadiga Persistente */
    .highlight-banner {
      background: linear-gradient(145deg, #0d3e44, #0f4f56);
      color: white;
      border-radius: var(--radius);
      padding: 44px 40px;
      box-shadow: var(--shadow);
      margin-bottom: 60px;
      position: relative;
      overflow: hidden;
      border: 1px solid rgba(255,255,255,.15);
    }
    .highlight-banner::after {
      content: "⚡";
      position: absolute;
      right: 20px;
      bottom: -20px;
      font-size: 140px;
      opacity: .08;
      pointer-events: none;
    }
    .highlight-banner h2 {
      color: white;
      font-size: clamp(1.8rem, 3.2vw, 2.4rem);
      margin-bottom: 14px;
    }
    .highlight-banner p.intro {
      color: rgba(255,255,255,.88);
      font-size: 1.08rem;
      max-width: 820px;
      margin-bottom: 28px;
    }
    .highlight-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin-bottom: 30px;
    }
    .highlight-tag {
      background: rgba(255,255,255,.14);
      backdrop-filter: blur(8px);
      border: 1px solid rgba(255,255,255,.24);
      padding: 9px 18px;
      border-radius: 999px;
      font-weight: 700;
      font-size: .92rem;
      color: #ffffff;
      display: inline-flex;
      align-items: center;
      gap: 8px;
    }

    /* Medical Alert / Callout Box */
    .clinical-callout {
      background: rgba(255,255,255,.1);
      border-left: 5px solid var(--warm);
      border-radius: 12px;
      padding: 22px 24px;
      backdrop-filter: blur(6px);
      margin-top: 20px;
    }
    .clinical-callout strong {
      display: block;
      color: #ffd8a8;
      font-size: 1.02rem;
      margin-bottom: 8px;
    }
    .clinical-callout p {
      color: rgba(255,255,255,.9);
      font-size: .94rem;
      line-height: 1.6;
      margin: 0;
    }

    /* Category Cards Grid */
    .conditions-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 28px;
      margin-bottom: 32px;
    }
    .condition-card {
      background: white;
      border: 1px solid var(--line);
      border-radius: 20px;
      padding: 32px;
      box-shadow: 0 6px 24px rgba(15,79,86,.04);
      display: flex;
      flex-direction: column;
      transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    }
    .condition-card:hover {
      transform: translateY(-3px);
      box-shadow: var(--shadow);
      border-color: rgba(15,79,86,.25);
    }
    .card-header {
      display: flex;
      align-items: center;
      gap: 14px;
      margin-bottom: 18px;
      padding-bottom: 16px;
      border-bottom: 1px solid var(--line);
    }
    .card-icon {
      font-size: 1.8rem;
      line-height: 1;
      width: 48px;
      height: 48px;
      display: flex;
      align-items: center;
      justify-content: center;
      background: var(--blue-soft);
      border-radius: 14px;
      flex-shrink: 0;
    }
    .card-title {
      margin: 0;
      font-size: 1.3rem;
      color: var(--brand);
    }
    .condition-list {
      list-style: none;
      padding: 0;
      margin: 0 0 20px;
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px 14px;
    }
    .condition-list.single-col {
      grid-template-columns: 1fr;
    }
    .condition-list li {
      position: relative;
      padding-left: 18px;
      font-size: .92rem;
      font-weight: 600;
      color: var(--ink);
      line-height: 1.45;
    }
    .condition-list li::before {
      content: "";
      position: absolute;
      left: 0;
      top: 7px;
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: var(--green);
    }

    /* Note Box inside card */
    .card-note {
      background: var(--blue-soft);
      border-left: 4px solid var(--brand);
      padding: 14px 16px;
      border-radius: 10px;
      font-size: .86rem;
      color: var(--ink-soft);
      margin-top: auto;
      line-height: 1.5;
    }
    .card-note strong {
      color: var(--brand);
      display: block;
      margin-bottom: 4px;
    }

    /* Situations Grid */
    .situations-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 24px;
    }
    .situation-card {
      background: white;
      border: 1px solid var(--line);
      border-radius: 20px;
      padding: 28px;
      box-shadow: 0 4px 20px rgba(15,79,86,.04);
      display: flex;
      flex-direction: column;
      transition: transform .2s ease, box-shadow .2s ease;
    }
    .situation-card:hover {
      transform: translateY(-3px);
      box-shadow: var(--shadow);
    }
    .situation-card .card-header {
      border-bottom: 0;
      padding-bottom: 0;
      margin-bottom: 14px;
    }
    .situation-card .condition-list {
      grid-template-columns: 1fr;
      margin-bottom: 16px;
    }

    /* CTA Bottom Section */
    .final-cta {
      display: grid;
      grid-template-columns: 1.2fr .8fr;
      gap: 40px;
      align-items: center;
    }
    .final-cta p {
      max-width: 700px;
      color: rgba(255,255,255,.85);
      font-size: 1.05rem;
    }
    .final-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      justify-content: flex-end;
    }

    /* Footer */
    footer {
      background: #0b363b;
      color: white;
      padding: 58px 0 28px;
    }
    .footer-grid {
      display: grid;
      grid-template-columns: 1.1fr .7fr .7fr 1fr;
      gap: 32px;
    }
    .footer-logo img { width: 185px; filter: brightness(0) invert(1); opacity: .95; }
    .footer-copy { color: rgba(255,255,255,.68); font-size: .86rem; max-width: 360px; margin-top: 18px; }
    .footer-title { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 800; color: #cce2df; margin-bottom: 14px; }
    .footer-links { display: grid; gap: 9px; color: rgba(255,255,255,.78); font-size: .88rem; }
    .footer-links a:hover { color: white; }
    .footer-bottom {
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      text-align: center;
      gap: 12px;
      border-top: 1px solid rgba(255,255,255,.12);
      margin-top: 42px;
      padding-top: 24px;
      color: rgba(255,255,255,.65);
      font-size: .84rem;
      width: 100%;
    }
    .footer-copyright {
      color: rgba(255,255,255,.65);
      text-align: center;
      width: 100%;
    }
    .footer-creator {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      color: rgba(255,255,255,.75);
      text-align: center;
      width: 100%;
    }
    .footer-creator a {
      display: inline-flex;
      align-items: center;
    }
    .footer-creator img {
      height: 22px;
      width: auto;
      display: inline-block;
      vertical-align: middle;
    }

    /* Floating WhatsApp Button */
    .floating-cta {
      position: fixed;
      right: 24px;
      bottom: 28px;
      z-index: 999;
      display: inline-flex;
      align-items: center;
      gap: 12px;
      padding: 12px 22px;
      background: var(--brand);
      color: white;
      border-radius: 999px;
      line-height: 1.25;
      text-align: left;
      box-shadow: 0 10px 28px rgba(15, 79, 86, .24), 0 3px 8px rgba(0, 0, 0, .08);
      transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
      text-decoration: none;
      border: 1px solid rgba(255, 255, 255, .2);
    }
    .floating-cta:hover {
      transform: translateY(-3px);
      background: #093b40;
      box-shadow: 0 14px 34px rgba(15, 79, 86, .32), 0 4px 10px rgba(0, 0, 0, .1);
      color: white;
    }
    .floating-cta svg {
      width: 22px;
      height: 22px;
      flex-shrink: 0;
      color: var(--warm);
    }
    .floating-cta-text {
      display: flex;
      flex-direction: column;
    }
    .floating-cta-text span:first-child {
      font-size: .82rem;
      font-weight: 700;
      opacity: .92;
    }
    .floating-cta-text span:last-child {
      font-size: .95rem;
      font-weight: 800;
      letter-spacing: -.01em;
    }

    @media (max-width: 1020px) {
      .nav-links { display: none; }
      .nav-toggle { display: inline-flex; }
      .nav.open .nav-links {
        display: flex;
        position: absolute;
        top: 80px;
        left: 20px; right: 20px;
        background: white;
        flex-direction: column;
        align-items: stretch;
        padding: 20px;
        border: 1px solid var(--line);
        border-radius: 16px;
        box-shadow: var(--shadow);
      }
      .nav.open .nav-links .btn { width: 100%; }
      .conditions-grid { grid-template-columns: 1fr; }
      .situations-grid { grid-template-columns: repeat(2, 1fr); }
      .final-cta { grid-template-columns: 1fr; }
      .final-actions { justify-content: flex-start; }
      .footer-grid { grid-template-columns: repeat(2, 1fr); }
    }

    /* Social Media Section */
    .social-section {
      padding: 68px 0;
      background: linear-gradient(180deg, var(--white) 0%, var(--blue-soft) 100%);
      border-top: 1px solid var(--line);
      border-bottom: 1px solid var(--line);
    }
    .social-section .section-head {
      margin-inline: auto;
      margin-bottom: 32px;
      text-align: center;
    }
    .social-grid {
      display: flex;
      justify-content: center;
      flex-wrap: wrap;
      gap: 20px;
      max-width: 760px;
      margin-inline: auto;
    }
    .social-card {
      flex: 1;
      min-width: 280px;
      max-width: 360px;
      background: white;
      border: 1px solid var(--line);
      border-radius: 20px;
      padding: 22px 26px;
      display: flex;
      align-items: center;
      gap: 18px;
      text-align: left;
      box-shadow: 0 4px 20px rgba(15, 79, 86, 0.05);
      transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
      color: var(--ink);
      text-decoration: none;
    }
    .social-card:hover {
      transform: translateY(-3px);
      box-shadow: var(--shadow);
      border-color: rgba(15, 79, 86, 0.25);
    }
    .social-icon-box {
      width: 54px;
      height: 54px;
      border-radius: 16px;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      color: white;
      transition: transform .2s ease;
    }
    .social-card:hover .social-icon-box {
      transform: scale(1.08);
    }
    .social-icon-insta {
      background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
      box-shadow: 0 6px 16px rgba(220, 39, 67, 0.3);
    }
    .social-icon-fb {
      background: #1877F2;
      box-shadow: 0 6px 16px rgba(24, 119, 242, 0.3);
    }
    .social-icon-box svg {
      width: 28px;
      height: 28px;
      fill: currentColor;
    }
    .social-info strong {
      display: block;
      font-size: 1.1rem;
      color: var(--brand);
      margin-bottom: 2px;
      font-family: "Source Serif 4", Georgia, serif;
    }
    .social-info span {
      display: block;
      font-size: .85rem;
      color: var(--ink-soft);
      line-height: 1.35;
    }
    .social-arrow {
      margin-left: auto;
      color: var(--brand);
      font-size: 1.25rem;
      font-weight: 800;
      transition: transform .2s ease;
    }
    .social-card:hover .social-arrow {
      transform: translateX(4px);
    }

    @media (max-width: 720px) {
      .container { width: min(calc(100% - 28px), var(--container)); }
      .section { padding: 56px 0; }
      .header .nav { min-height: 68px; }
      .brand img { width: 140px; }
      .nav.open .nav-links { top: 68px; left: 14px; right: 14px; }
      .page-hero { padding: 36px 0 28px; }
      .page-hero p.lead { font-size: 1.02rem; }
      .highlight-banner { padding: 26px 18px; }
      .highlight-banner h2 { font-size: 1.45rem; }
      .highlight-tag { font-size: .82rem; padding: 7px 14px; }
      .conditions-grid, .situations-grid { grid-template-columns: 1fr; }
      .condition-list { grid-template-columns: 1fr; }
      .footer-grid { grid-template-columns: 1fr; }
      .footer { padding-bottom: 84px; }
      .footer-bottom { flex-direction: column; align-items: center; text-align: center; gap: 12px; }
      .desktop-wa { display: none; }
      .floating-cta {
        right: 14px;
        bottom: 18px;
        padding: 10px 16px;
        gap: 10px;
      }
      .floating-cta svg { width: 19px; height: 19px; }
      .floating-cta-text span:first-child { font-size: .76rem; }
      .floating-cta-text span:last-child { font-size: .88rem; }
    }
