/*
Theme Name: Airton Craveiro
Theme URI: https://airtoncraveiro.com.br
Author: Airton Craveiro
Author URI: https://airtoncraveiro.com.br
Description: Tema personalizado, leve e responsivo para o site pessoal de Airton Craveiro.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 7.4
Text Domain: airton-craveiro
*/
:root {
      --bg: #f7f7f5;
      --surface: #fcfcfa;
      --text: #171717;
      --muted: #666660;
      --faint: #8c8c85;
      --line: #d8d8d2;
      --soft-line: #e8e8e3;
      --whatsapp: #1f8f55;
      --whatsapp-hover: #187547;
      --max: 1120px;
      --reading: 760px;
      --header-h: 72px;
    }

    html[data-theme="dark"] {
      --bg: #121212;
      --surface: #171717;
      --text: #f1f1ee;
      --muted: #aaa9a2;
      --faint: #7f7f79;
      --line: #353532;
      --soft-line: #272725;
      --whatsapp: #2fa66a;
      --whatsapp-hover: #39b777;
    }

    * { box-sizing: border-box; }

    html { scroll-behavior: smooth; }

    body {
      margin: 0;
      background: var(--bg);
      color: var(--text);
      font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      font-size: 17px;
      line-height: 1.65;
      letter-spacing: -0.01em;
      transition: background-color .2s ease, color .2s ease;
    }

    a { color: inherit; }

    ::selection {
      background: var(--text);
      color: var(--bg);
    }

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

    .site-header {
      position: sticky;
      top: 0;
      z-index: 20;
      height: var(--header-h);
      background: color-mix(in srgb, var(--bg) 88%, transparent);
      border-bottom: 1px solid var(--soft-line);
      backdrop-filter: blur(14px);
    }

    .header-inner {
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 24px;
    }

    .brand {
      text-decoration: none;
      font-weight: 680;
      letter-spacing: -0.035em;
      white-space: nowrap;
    }

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

    .desktop-nav {
      display: flex;
      align-items: center;
      gap: 22px;
      margin-left: auto;
    }

    .desktop-nav a {
      color: var(--muted);
      text-decoration: none;
      font-size: 14px;
    }

    .desktop-nav a:hover { color: var(--text); }

    .theme-toggle {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 42px;
      height: 42px;
      border-radius: 999px;
      border: 1px solid var(--line);
      background: transparent;
      color: var(--muted);
      cursor: pointer;
      transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
    }

    .theme-toggle:hover {
      color: var(--text);
      border-color: var(--text);
      transform: translateY(-1px);
    }

    .theme-toggle svg {
      width: 18px;
      height: 18px;
      display: block;
    }

    .wa-button {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 9px;
      min-height: 46px;
      padding: 0 16px;
      border-radius: 9px;
      border: 1px solid var(--whatsapp);
      background: var(--whatsapp);
      color: white;
      text-decoration: none;
      font-weight: 650;
      font-size: 14px;
      line-height: 1;
      box-shadow: 0 1px 1px rgba(0,0,0,.08);
      transition: background-color .15s ease, transform .15s ease;
    }

    .wa-button:hover { background: var(--whatsapp-hover); transform: translateY(-1px); }
    .wa-button svg { width: 18px; height: 18px; flex: 0 0 auto; }
    .wa-button.large { min-height: 52px; padding-inline: 20px; font-size: 15px; }

    main { overflow: clip; }

    .hero {
      min-height: calc(100svh - var(--header-h));
      min-height: calc(100vh - var(--header-h));
      display: grid;
      align-items: center;
      padding: 92px 0 78px;
      border-bottom: 1px solid var(--line);
    }

    .eyebrow, .section-index, .meta, .note-label {
      font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
      text-transform: uppercase;
      letter-spacing: .09em;
      font-size: 11px;
      color: var(--faint);
    }

    .hero h1 {
      max-width: 900px;
      margin: 10px 0 22px;
      font-size: clamp(52px, 8vw, 104px);
      line-height: .96;
      letter-spacing: -.075em;
      font-weight: 720;
    }

    .hero-deck {
      max-width: 720px;
      margin: 0;
      color: var(--muted);
      font-size: clamp(20px, 2.4vw, 29px);
      line-height: 1.4;
      letter-spacing: -.03em;
    }

    .hero-actions {
      margin-top: 34px;
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 18px;
    }

    .text-link {
      color: var(--muted);
      text-underline-offset: 5px;
      text-decoration-thickness: 1px;
      font-size: 15px;
    }
    .text-link:hover { color: var(--text); }

    .hero-foot {
      margin-top: 62px;
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 0;
      border-top: 1px solid var(--line);
      border-bottom: 1px solid var(--line);
    }

    .hero-foot div {
      padding: 15px 18px 15px 0;
      color: var(--muted);
      font-size: 14px;
    }
    .hero-foot div + div { border-left: 1px solid var(--line); padding-left: 18px; }

    .section {
      padding: 104px 0;
      border-bottom: 1px solid var(--line);
      scroll-margin-top: calc(var(--header-h) + 20px);
    }

    .section-grid {
      display: grid;
      grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
      gap: 64px;
      align-items: start;
    }

    .section-title {
      margin: 6px 0 0;
      font-size: clamp(30px, 4.2vw, 52px);
      line-height: 1.08;
      letter-spacing: -.055em;
      font-weight: 680;
    }

    .reading {
      max-width: var(--reading);
    }

    .reading p {
      margin: 0 0 1.2em;
      font-size: clamp(18px, 1.95vw, 22px);
      line-height: 1.58;
      letter-spacing: -.025em;
    }

    .reading p:last-child { margin-bottom: 0; }

    .pullquote {
      margin-top: 42px;
      padding: 22px 0 0 22px;
      border-top: 1px solid var(--line);
      border-left: 3px solid var(--text);
      font-size: clamp(24px, 3vw, 38px);
      line-height: 1.24;
      letter-spacing: -.045em;
      max-width: 820px;
    }

    .service-list { border-top: 1px solid var(--line); }

    .service {
      display: grid;
      grid-template-columns: 52px minmax(0, 1fr);
      gap: 18px;
      padding: 30px 0;
      border-bottom: 1px solid var(--line);
    }

    .service-number {
      font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
      color: var(--faint);
      font-size: 13px;
      padding-top: 5px;
    }

    .service h3 {
      margin: 0 0 9px;
      font-size: 24px;
      line-height: 1.2;
      letter-spacing: -.035em;
    }

    .service p { margin: 0; color: var(--muted); max-width: 720px; }

    .timeline { border-top: 1px solid var(--line); }

    .timeline-item {
      display: grid;
      grid-template-columns: 120px minmax(0, 1fr);
      gap: 28px;
      padding: 30px 0 34px;
      border-bottom: 1px solid var(--line);
    }

    .timeline-year {
      font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
      color: var(--faint);
      font-size: 13px;
      padding-top: 5px;
    }

    .timeline-item h3 {
      margin: 0 0 8px;
      font-size: 23px;
      letter-spacing: -.035em;
    }

    .timeline-item p { margin: 0; color: var(--muted); }

    .proof-strip {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      border-top: 1px solid var(--line);
      border-bottom: 1px solid var(--line);
      margin-bottom: 48px;
    }

    .proof {
      padding: 24px 22px 24px 0;
    }
    .proof + .proof { border-left: 1px solid var(--line); padding-left: 22px; }
    .proof strong { display: block; font-size: 26px; letter-spacing: -.04em; }
    .proof span { display: block; color: var(--muted); font-size: 13px; margin-top: 4px; }

    .case-list { border-top: 1px solid var(--line); }

    .case {
      padding: 34px 0 38px;
      border-bottom: 1px solid var(--line);
    }

    .case h3 {
      margin: 0 0 22px;
      font-size: 27px;
      line-height: 1.2;
      letter-spacing: -.04em;
    }

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

    .case-block h4 {
      margin: 0 0 7px;
      font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
      text-transform: uppercase;
      letter-spacing: .08em;
      font-size: 10px;
      color: var(--faint);
    }

    .case-block p { margin: 0; color: var(--muted); font-size: 15px; }

    .process {
      counter-reset: process;
      border-top: 1px solid var(--line);
    }

    .process li {
      counter-increment: process;
      list-style: none;
      display: grid;
      grid-template-columns: 52px minmax(0, 1fr);
      gap: 18px;
      padding: 24px 0;
      border-bottom: 1px solid var(--line);
      font-size: 21px;
      letter-spacing: -.025em;
    }

    .process li::before {
      content: "0" counter(process);
      font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
      color: var(--faint);
      font-size: 12px;
      padding-top: 6px;
    }

    .article-list { border-top: 1px solid var(--line); }

    .article {
      display: grid;
      grid-template-columns: 130px minmax(0, 1fr) 28px;
      gap: 24px;
      padding: 26px 0;
      border-bottom: 1px solid var(--line);
      text-decoration: none;
    }

    .article:hover h3 { text-decoration: underline; text-underline-offset: 5px; }
    .article time { color: var(--faint); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; padding-top: 5px; }
    .article h3 { margin: 0 0 5px; font-size: 22px; letter-spacing: -.035em; }
    .article p { margin: 0; color: var(--muted); font-size: 15px; }
    .article-arrow { color: var(--faint); font-size: 21px; }

    .contact-section {
      padding: 108px 0 116px;
    }

    .contact-card {
      border-top: 1px solid var(--line);
      border-bottom: 1px solid var(--line);
      padding: 56px 0;
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 40px;
      align-items: end;
    }

    .contact-card h2 {
      margin: 8px 0 18px;
      max-width: 780px;
      font-size: clamp(42px, 6vw, 76px);
      line-height: 1;
      letter-spacing: -.065em;
    }

    .contact-card p { margin: 0; max-width: 710px; color: var(--muted); font-size: 19px; }
    .contact-note { margin-top: 10px; color: var(--faint); font-size: 12px; text-align: center; }

    footer { border-top: 1px solid var(--line); padding: 30px 0 42px; }

    .footer-grid {
      display: grid;
      grid-template-columns: 1fr auto;
      gap: 30px;
      align-items: end;
    }

    .footer-brand { font-weight: 670; letter-spacing: -.03em; }
    .footer-copy { color: var(--muted); font-size: 13px; margin-top: 5px; }
    .footer-links { display: flex; gap: 18px; flex-wrap: wrap; justify-content: flex-end; }
    .footer-links a { color: var(--muted); font-size: 13px; text-underline-offset: 4px; }

    .prototype-note {
      position: fixed;
      left: 14px;
      bottom: 14px;
      z-index: 30;
      background: var(--text);
      color: var(--bg);
      border-radius: 7px;
      padding: 7px 10px;
      font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
      font-size: 10px;
      letter-spacing: .04em;
      opacity: .88;
    }

    @media (max-width: 960px) {
      .desktop-nav { display: none; }
      .section-grid { grid-template-columns: 1fr; gap: 34px; }
      .section-title { max-width: 680px; }
      .contact-card { grid-template-columns: 1fr; align-items: start; }
      .contact-actions { justify-self: start; }
    }

    @media (max-width: 720px) {
      :root { --header-h: 64px; }
      body { font-size: 16px; }
      .site-header { backdrop-filter: blur(10px); }
      .container { width: min(calc(100% - 24px), var(--max)); }
      .header-inner { gap: 12px; }
      .brand { font-size: 15px; }
      .header-actions { gap: 8px; }
      .theme-toggle { width: 40px; height: 40px; }
      .wa-button.header-cta span { display: none; }
      .wa-button.header-cta { width: 44px; min-height: 44px; padding: 0; }
      .hero { padding: 48px 0 44px; min-height: auto; }
      .hero h1 {
        max-width: 8ch;
        font-size: clamp(42px, 14vw, 64px);
        line-height: .94;
        margin-bottom: 18px;
      }
      .hero-deck {
        max-width: 30ch;
        font-size: 18px;
        line-height: 1.48;
      }
      .hero-actions {
        margin-top: 28px;
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
      }
      .hero-actions .wa-button.large { width: 100%; }
      .hero-actions .text-link {
        display: inline-block;
        width: 100%;
        text-align: center;
        font-size: 14px;
      }
      .hero-foot {
        margin-top: 44px;
        grid-template-columns: 1fr;
      }
      .hero-foot div {
        padding: 14px 0;
        font-size: 13px;
      }
      .hero-foot div + div { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
      .section { padding: 68px 0; }
      .section-grid { gap: 22px; }
      .section-title {
        max-width: 10ch;
        font-size: clamp(34px, 10vw, 42px);
      }
      .reading p {
        font-size: 18px;
        line-height: 1.58;
      }
      .pullquote {
        margin-top: 30px;
        padding-left: 18px;
        font-size: 24px;
      }
      .service {
        grid-template-columns: 42px minmax(0, 1fr);
        gap: 14px;
        padding: 22px 0;
      }
      .service h3 { font-size: 21px; }
      .timeline-item { grid-template-columns: 1fr; gap: 8px; padding: 22px 0 24px; }
      .timeline-item h3 { font-size: 21px; }
      .proof-strip { grid-template-columns: 1fr; margin-bottom: 36px; }
      .proof { padding: 18px 0; }
      .proof strong { font-size: 22px; }
      .proof + .proof { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
      .case { padding: 24px 0 28px; }
      .case h3 { font-size: 23px; margin-bottom: 18px; }
      .case-grid { grid-template-columns: 1fr; gap: 18px; }
      .process li {
        grid-template-columns: 42px minmax(0, 1fr);
        gap: 14px;
        padding: 18px 0;
        font-size: 18px;
      }
      .contact-section { padding: 74px 0 82px; }
      .contact-card { padding: 40px 0; gap: 24px; }
      .contact-card h2 {
        font-size: clamp(34px, 12vw, 50px);
        margin-bottom: 14px;
      }
      .contact-card p { font-size: 17px; }
      .contact-actions { width: 100%; }
      .contact-actions .wa-button.large { width: 100%; }
      .contact-note { text-align: left; }
      footer { padding: 24px 0 36px; }
      .footer-grid { grid-template-columns: 1fr; gap: 18px; }
      .footer-links { justify-content: flex-start; gap: 16px; }
      .prototype-note { display: none; }
    }

    @media (prefers-reduced-motion: reduce) {
      html { scroll-behavior: auto; }
      *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
    }

/* Integração com WordPress */
body.admin-bar .site-header { top: 32px; }
body { min-height: 100vh; }
.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.screen-reader-text:focus {
  position: fixed !important;
  top: 8px;
  left: 8px;
  z-index: 100000;
  width: auto;
  height: auto;
  padding: 12px 16px;
  margin: 0;
  overflow: visible;
  clip: auto;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 8px;
}
@media (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
}

