/*
Theme Name: EasyDr Blog
Theme URI: https://www.easydr.com.br
Author: EasyDr
Description: Blog de contabilidade e finanças para médicos e clínicas, no visual do site EasyDr.
Version: 2.2.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
Text Domain: easydr-blog
*/

:root {
  --blue: #035fe5;
  --blue-deep: #0636b8;
  --blue-bright: #0944e5;
  --ink: #1c2430;
  --muted: #5c6b7a;
  --line: #e4ebf5;
  --paper: #f5f8fd;
  --white: #fff;
  --max: 1120px;
  --read: 42rem;
  --font: Poppins, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
}

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

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  color: var(--blue-deep);
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 80;
  background: var(--white);
  color: var(--blue);
  padding: 8px 12px;
  border-radius: 9px;
  font-weight: 600;
}

.skip:focus {
  top: 12px;
}

.screen-reader {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--blue);
}

.site-header :focus-visible {
  outline-color: var(--white);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 80px;
}

.brand {
  display: inline-flex;
  align-items: center;
  background: var(--white);
  border-radius: 10px;
  padding: 6px 8px;
  line-height: 0;
}

.brand:hover {
  background: var(--white);
}

.brand img {
  height: 36px;
  width: auto;
}

.nav-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
}

.nav-toggle-label {
  display: none;
}

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

.site-nav a {
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  font-weight: 400;
  padding: 10px 14px;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--white);
}

.site-nav a[aria-current="page"] {
  font-weight: 500;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
  background: var(--white);
  color: var(--ink) !important;
  border-radius: 9px;
  padding: 11px 16px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
}

.cta:hover {
  background: var(--paper);
  color: var(--ink) !important;
}

.blog-bar {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.blog-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 68px;
}

.blog-bar-label {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.blog-bar-label:hover {
  color: var(--blue);
}

.blog-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.blog-search input[type="search"] {
  width: 220px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 10px 12px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
  font-size: 0.95rem;
}

.blog-search button {
  border: 0;
  background: transparent;
  color: var(--blue);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  padding: 10px 4px;
}

.blog-search button:hover {
  color: var(--blue-deep);
}

.hero-band {
  background: var(--paper);
}

.hero {
  display: grid;
  gap: 28px 48px;
  align-items: center;
  padding: 52px 0 56px;
}

.hero.has-media {
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
}

.hero-title {
  margin: 0;
  font-size: clamp(1.85rem, 3.1vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.18;
}

.hero-title a {
  color: var(--ink);
}

.hero-title a:hover {
  color: var(--blue);
}

.hero time {
  display: block;
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.hero-copy p {
  margin: 14px 0 0;
  max-width: 38em;
  color: var(--muted);
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  margin-top: 22px;
  padding: 12px 18px;
  border-radius: 9px;
  background: var(--blue);
  color: var(--white);
  font-weight: 600;
}

.hero-btn:hover {
  background: var(--blue-deep);
  color: var(--white);
}

.hero-media {
  display: block;
  overflow: hidden;
  border-radius: 16px;
  background: #e7eef8;
  aspect-ratio: 16 / 9;
}

.hero-media img,
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section-head {
  padding: 56px 0 4px;
  text-align: center;
}

.section-head h1,
.section-head h2 {
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 2.3rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.section-head p {
  margin: 12px auto 0;
  max-width: 36em;
  color: var(--muted);
  font-size: 1.05rem;
}

.page-intro {
  padding: 48px 0 4px;
}

.page-intro h1 {
  margin: 0;
  max-width: 16em;
  font-size: clamp(1.9rem, 3.2vw, 2.65rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.18;
}

.page-intro h1::before {
  content: "";
  display: block;
  width: 48px;
  height: 4px;
  margin-bottom: 16px;
  border-radius: 4px;
  background: var(--blue);
}

.page-intro p {
  margin: 14px 0 0;
  max-width: 38em;
  color: var(--muted);
  font-size: 1.05rem;
}

.card time {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 500;
}

.card-title a {
  color: var(--ink);
}

.card-title a:hover {
  color: var(--blue);
}

.card-body p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.more {
  display: inline-block;
  margin-top: 12px;
  color: var(--blue);
  font-size: 0.95rem;
  font-weight: 600;
}

.more:hover {
  color: var(--blue-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.listing {
  padding: 28px 0 72px;
}

.card-grid {
  display: grid;
  gap: 32px 18px;
}

.cards-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cards-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 40px;
}

.listing > .cards-3:first-child {
  margin-top: 0;
}

.card {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.card-media {
  display: block;
  margin-bottom: 12px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--paper);
  aspect-ratio: 16 / 10;
}

.card-title {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.more-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin-top: 44px;
}

.more-prev,
.more-next {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 148px;
  padding: 12px 22px;
  border: 1px solid var(--blue);
  border-radius: 9px;
  font-weight: 600;
}

.more-prev {
  color: var(--blue);
  background: var(--white);
}

.more-next {
  color: var(--white);
  background: var(--blue);
}

.more-prev:hover {
  background: var(--paper);
  color: var(--blue-deep);
}

.more-next:hover {
  background: var(--blue-deep);
  color: var(--white);
}

.pagination {
  margin-top: 36px;
}

.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 9px;
  color: var(--blue);
  font-weight: 500;
}

.pagination .page-numbers:hover {
  background: var(--paper);
  color: var(--blue-deep);
}

.pagination .page-numbers.current {
  background: var(--blue);
  color: var(--white);
}

.pagination .page-numbers.current:hover {
  background: var(--blue);
  color: var(--white);
}

.article {
  width: min(var(--read), calc(100% - 40px));
  margin: 0 auto;
  padding: 36px 0 72px;
}

.back {
  display: inline-block;
  margin-bottom: 18px;
  font-size: 0.95rem;
  font-weight: 500;
}

.article time {
  display: block;
  margin-bottom: 10px;
  color: var(--blue);
  font-size: 0.9rem;
  font-weight: 500;
}

.article h1 {
  margin: 0 0 8px;
  font-size: clamp(1.85rem, 3vw, 2.45rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.article-media {
  margin: 22px 0 8px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--paper);
}

.article-media img {
  width: 100%;
  height: auto;
}

.entry-content {
  display: flow-root;
  margin-top: 8px;
  font-size: 1.0625rem;
  line-height: 1.75;
}

.entry-content > * + * {
  margin-top: 1em;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.entry-content h2 {
  margin-top: 1.7em;
  font-size: 1.45rem;
}

.entry-content h3 {
  margin-top: 1.4em;
  font-size: 1.2rem;
}

.entry-content p,
.entry-content li {
  color: var(--ink);
}

.entry-content a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.entry-content ul,
.entry-content ol {
  margin: 0.6em 0 0.6em 1.2em;
  padding: 0;
}

.entry-content li + li {
  margin-top: 0.35em;
}

.entry-content img {
  border-radius: 12px;
  margin-top: 0.4em;
  margin-bottom: 0.4em;
}

.entry-content figure {
  margin: 1.4em 0;
}

.entry-content figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.entry-content blockquote {
  margin: 1.4em 0;
  padding: 4px 0 4px 16px;
  border-left: 3px solid var(--blue);
  color: var(--ink);
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  line-height: 1.45;
}

.entry-content th,
.entry-content td {
  padding: 10px 12px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.entry-content th {
  background: var(--paper);
  font-weight: 600;
}

.entry-content .aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.entry-content .alignleft {
  float: left;
  margin: 0.2em 1.2em 0.8em 0;
}

.entry-content .alignright {
  float: right;
  margin: 0.2em 0 0.8em 1.2em;
}

.entry-content iframe,
.entry-content video {
  max-width: 100%;
}

.search-form {
  display: flex;
  gap: 8px;
  margin: 18px 0 8px;
  max-width: 32rem;
}

.search-form input[type="search"] {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 12px 14px;
  color: var(--ink);
  font: inherit;
  background: var(--white);
}

.search-form button {
  border: 0;
  border-radius: 9px;
  padding: 12px 16px;
  background: var(--blue);
  color: var(--white);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.search-form button:hover {
  background: var(--blue-deep);
}

.empty {
  margin: 12px 0 0;
  color: var(--muted);
}

.site-footer {
  background: var(--blue-deep);
  color: var(--white);
  padding: 48px 0 28px;
}

.site-footer a {
  color: var(--white);
}

.site-footer a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 28px 32px;
}

.footer-name {
  margin: 0 0 10px;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.footer-meta,
.footer-col p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-col h2 {
  margin: 0 0 10px;
  font-size: 0.95rem;
  font-weight: 600;
}

.footer-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-col li + li {
  margin-top: 8px;
}

.footer-legal {
  margin: 28px 0 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.88rem;
}

@media (max-width: 900px) {
  .cards-4,
  .cards-3 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .wrap {
    width: min(var(--max), calc(100% - 32px));
  }

  .nav-toggle-label {
    display: inline-flex;
    align-items: center;
    margin-left: auto;
    padding: 8px 14px;
    border-radius: 9px;
    background: var(--white);
    color: var(--ink);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
  }

  .nav-close {
    display: none;
  }

  .nav-toggle:checked ~ .nav-toggle-label .nav-open {
    display: none;
  }

  .nav-toggle:checked ~ .nav-toggle-label .nav-close {
    display: inline;
  }

  .nav-toggle:focus-visible + .nav-toggle-label {
    outline: 2px solid var(--white);
    outline-offset: 3px;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 6px 16px 18px;
    background: var(--blue);
    border-top: 1px solid rgba(255, 255, 255, 0.18);
  }

  .nav-toggle:checked ~ .site-nav {
    display: flex;
  }

  .site-nav a {
    padding: 12px 4px;
    font-size: 16px;
  }

  .cta {
    margin: 8px 0 0;
    align-self: flex-start;
  }

  .blog-bar-inner {
    flex-direction: column;
    align-items: stretch;
    padding: 14px 0;
    min-height: 0;
  }

  .blog-search {
    width: 100%;
  }

  .blog-search input[type="search"] {
    flex: 1;
    width: auto;
    min-width: 0;
  }

  .hero.has-media,
  .cards-4,
  .cards-3,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .page-intro {
    padding-top: 32px;
  }

  .entry-content .alignleft,
  .entry-content .alignright {
    float: none;
    margin: 0.8em 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
