/*
Theme Name: Alexandre Hedlund Advocacia
Theme URI: https://alexandrehedlund.adv.br/
Author: Alexandre Hedlund
Description: Tema institucional minimalista para Alexandre Hedlund Advocacia Criminal.
Version: 1.0.0
Requires at least: 6.6
Requires PHP: 8.2
Text Domain: alexandre-hedlund
*/

    :root {
      --wine: #731D2C;
      --wine-deep: #4A111C;
      --taupe: #73675D;
      --beige: #D9CEC5;
      --paper: #F7F3F0;
      --white: #FFFCFA;
      --ink: #2D2728;
      --muted: #73675D;
      --accent: #731D2C;
      --line: rgba(115, 103, 93, .30);
      --line-dark: rgba(255,255,255,.16);
      --serif: Georgia, "Times New Roman", serif;
      --sans: Arial, Helvetica, sans-serif;
      --max: 1120px;
    }

    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body {
      margin: 0;
      background: var(--paper);
      color: var(--ink);
      font-family: var(--sans);
      line-height: 1.65;
      text-rendering: optimizeLegibility;
    }
    a { color: inherit; text-decoration: none; }
    ::selection { background: var(--accent); color: var(--white); }
    .container { width: min(calc(100% - 44px), var(--max)); margin-inline: auto; }
    .skip-link { position: fixed; z-index: 999; top: 10px; left: 10px; transform: translateY(-150%); padding: 10px 14px; background: var(--white); }
    .skip-link:focus { transform: none; }
    :focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

    .eyebrow {
      margin: 0 0 18px;
      color: var(--accent);
      font-size: .7rem;
      font-weight: 700;
      letter-spacing: .2em;
      text-transform: uppercase;
    }
    h1, h2, h3, p { margin-top: 0; }
    h1, h2, h3 { font-family: var(--serif); font-weight: 400; }
    h1 { max-width: 850px; margin-bottom: 28px; font-size: clamp(3.3rem, 7vw, 6.5rem); line-height: .98; letter-spacing: -.04em; }
    h2 { margin-bottom: 0; font-size: clamp(2.55rem, 5vw, 4.8rem); line-height: 1.04; letter-spacing: -.035em; }
    h3 { font-size: 1.55rem; line-height: 1.25; }
    .lead { max-width: 700px; color: var(--muted); font-size: clamp(1.05rem, 1.8vw, 1.22rem); line-height: 1.75; }

    header.site-header { position: sticky; z-index: 50; top: 0; background: rgba(247,243,240,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
    .header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 26px; }
    .brand { display: flex; align-items: baseline; gap: 13px; }
    .brand strong { font-family: var(--serif); font-size: 1.12rem; font-weight: 400; }
    .brand span { color: var(--muted); font-size: .58rem; letter-spacing: .15em; text-transform: uppercase; }
    .desktop-nav { display: flex; align-items: center; gap: 24px; }
    .desktop-nav a { color: var(--taupe); font-size: .69rem; letter-spacing: .08em; text-transform: uppercase; }
    .desktop-nav a:hover { color: var(--accent); }
    .contact-link { padding-bottom: 4px; border-bottom: 1px solid var(--accent); }
    .mobile-nav { display: none; }

    .hero { padding: clamp(92px, 12vw, 155px) 0 clamp(76px, 9vw, 120px); border-bottom: 1px solid var(--line); }
    .hero-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(245px, .45fr); gap: clamp(52px, 8vw, 110px); align-items: end; }
    .hero-copy .lead { margin-bottom: 0; }
    .hero-facts { margin: 0; border-top: 1px solid var(--line); }
    .hero-facts div { padding: 16px 0; border-bottom: 1px solid var(--line); }
    .hero-facts dt { margin-bottom: 4px; color: var(--accent); font-size: .62rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
    .hero-facts dd { margin: 0; color: var(--ink); font-family: var(--serif); font-size: 1.06rem; }
    .hero-actions { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 16px; }
    .button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 12px 19px; border: 1px solid var(--wine); font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; transition: background .2s, color .2s; }
    .button-dark { background: var(--wine); color: var(--white); }
    .button-dark:hover { background: var(--wine-deep); border-color: var(--wine-deep); }
    .button-light:hover { background: var(--wine); color: var(--white); }

    section { scroll-margin-top: 78px; }
    .section { padding: clamp(90px, 11vw, 145px) 0; }
    .section-head { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(38px, 8vw, 110px); align-items: end; margin-bottom: 66px; }
    .section-head .lead { justify-self: end; margin-bottom: 0; }

    .practice-list { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 38px; border-top: 1px solid var(--line); }
    .practice { display: grid; grid-template-columns: 42px 1fr; gap: 14px; padding: 30px 0 34px; border-bottom: 1px solid var(--line); }
    .practice-number { padding-top: 5px; color: var(--accent); font-family: var(--serif); font-size: .9rem; }
    .practice h3 { margin-bottom: 12px; }
    .practice p { margin-bottom: 0; color: var(--muted); font-size: .9rem; }
    .integrated-note { max-width: 780px; margin: 38px 0 0; padding-left: 22px; border-left: 1px solid var(--accent); color: var(--muted); }

    .dark { background: var(--wine-deep); color: var(--white); }
    .trajectory-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(60px, 10vw, 135px); align-items: center; }
    .dark .lead { margin: 28px 0 0; color: var(--beige); }
    .credentials { margin: 34px 0 0; padding: 0; list-style: none; }
    .credentials li { padding: 15px 0; border-top: 1px solid var(--line-dark); color: var(--beige); font-size: .9rem; }
    .credentials li:last-child { border-bottom: 1px solid var(--line-dark); }
    .credentials strong { color: var(--white); font-weight: 600; }
    .portrait { aspect-ratio: 4 / 5; margin: 0; overflow: hidden; border: 1px solid rgba(217,206,197,.55); background: var(--beige); }
    .portrait img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center top; }

    .contact { padding: clamp(88px, 10vw, 130px) 0; background: var(--wine); color: var(--white); }
    .contact-grid { display: grid; grid-template-columns: .72fr 1.28fr; gap: clamp(55px, 9vw, 120px); align-items: start; }
    .contact h2 { max-width: 760px; }
    .contact .lead { margin: 28px 0 0; color: var(--beige); }
    .contact-info { margin: 42px 0 0; }
    .contact-info div { padding: 16px 0; border-top: 1px solid var(--line-dark); }
    .contact-info div:last-child { border-bottom: 1px solid var(--line-dark); }
    .contact-info dt { margin-bottom: 5px; color: var(--beige); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; }
    .contact-info dd { margin: 0; color: var(--white); font-size: .9rem; }
    .contact-info a { text-decoration: underline; text-decoration-color: rgba(255,255,255,.35); text-underline-offset: 4px; }
    .contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 22px; padding-top: 4px; }
    .form-field { display: grid; gap: 8px; }
    .form-field-full, .form-consent, .form-submit, .form-status { grid-column: 1 / -1; }
    .form-field label { color: var(--beige); font-size: .65rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
    .form-field input, .form-field textarea {
      width: 100%; border: 1px solid rgba(255,255,255,.32); border-radius: 0; background: rgba(255,255,255,.04);
      color: var(--white); font: inherit; font-size: .95rem; padding: 13px 14px;
    }
    .form-field textarea { min-height: 132px; resize: vertical; }
    .form-field input::placeholder, .form-field textarea::placeholder { color: rgba(255,255,255,.48); }
    .form-consent { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; color: var(--beige); font-size: .77rem; }
    .form-consent input { width: 16px; height: 16px; margin: 3px 0 0; accent-color: var(--white); }
    .form-consent a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
    .form-submit { justify-self: start; min-width: 180px; background: var(--white); color: var(--wine-deep); border-color: var(--white); cursor: pointer; }
    .form-submit:hover { background: var(--beige); border-color: var(--beige); }
    .form-status { min-height: 1.5em; margin: 0; color: var(--beige); font-size: .84rem; }
    .form-status.success { color: var(--white); }
    .form-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

    footer { padding: 34px 0; background: var(--wine-deep); color: var(--beige); }
    .footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; }
    .footer-name { margin-bottom: 5px; color: var(--white); font-family: var(--serif); font-size: 1.15rem; }
    .footer-meta, .footer-note { margin-bottom: 0; font-size: .7rem; }
    .footer-links { display: flex; flex-wrap: wrap; gap: 18px; justify-content: flex-end; font-size: .68rem; }
    .footer-note { grid-column: 1 / -1; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.08); }

    @media (max-width: 900px) {
      .desktop-nav { display: none; }
      .mobile-nav { display: block; position: relative; }
      .mobile-nav summary { cursor: pointer; list-style: none; color: var(--accent); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; }
      .mobile-nav summary::-webkit-details-marker { display: none; }
      .mobile-nav nav { position: absolute; right: 0; top: 34px; width: min(290px, calc(100vw - 30px)); display: grid; padding: 12px; background: var(--paper); border: 1px solid var(--line); }
      .mobile-nav nav a { padding: 12px; border-bottom: 1px solid var(--line); font-size: .78rem; }
      .hero-grid, .section-head, .trajectory-grid, .contact-grid { grid-template-columns: 1fr; }
      .hero-facts { max-width: 420px; }
      .section-head .lead { justify-self: start; }
      .portrait { max-width: 440px; }
      .practice-list { grid-template-columns: 1fr; }
      .contact-form { max-width: 760px; }
    }

    @media (max-width: 620px) {
      .container { width: min(calc(100% - 30px), var(--max)); }
      .header-inner { min-height: 68px; }
      .brand span { display: none; }
      h1 { font-size: clamp(3rem, 15vw, 4.6rem); }
      .contact-form { grid-template-columns: 1fr; }
      .form-field-full, .form-consent, .form-submit, .form-status { grid-column: 1; }
      .footer-grid { grid-template-columns: 1fr; }
      .footer-links { justify-content: flex-start; }
    }

    @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

body.admin-bar header.site-header { top: 32px; }
.content-section { min-height: 65vh; padding: clamp(90px, 11vw, 145px) 0; }
.content-title { max-width: 900px; margin-bottom: 48px; font-size: clamp(2.8rem, 6vw, 5.4rem); }
.post-list { border-top: 1px solid var(--line); }
.post-list article { display: grid; grid-template-columns: 140px 1fr 1fr; gap: 34px; padding: 34px 0; border-bottom: 1px solid var(--line); }
.post-list h2 { font-size: 1.8rem; }
.post-list p { color: var(--muted); }
.post-date { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.prose { max-width: 850px; }
.prose h2 { margin: 58px 0 20px; font-size: clamp(1.8rem, 4vw, 2.7rem); }
.prose h3 { margin: 38px 0 16px; }
.prose p, .prose li { color: var(--muted); font-size: 1.02rem; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.informative-note { margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); font-size: .8rem !important; }
.nav-links { display: flex; gap: 18px; margin-top: 42px; }

@media (max-width: 782px) { body.admin-bar header.site-header { top: 46px; } }
@media (max-width: 760px) { .post-list article { grid-template-columns: 1fr; gap: 8px; } }
