/*
Theme Name: Vértice Blog
Theme URI: https://verticeescolar.com.br/blog/
Author: Evolyn Digital
Description: Tema editorial desenvolvido para o blog da Vértice.
Version: 1.1.0
Text Domain: vertice-blog
*/

:root {
  --navy: #0f1b2d;
  --navy-soft: #17263b;
  --petrol: #4a8581;
  --sage: #79aaa7;
  --mist: #f4f7f7;
  --ink: #172337;
  --muted: #6d737c;
  --line: #e0e5e6;
  --white: #fff;
  --shadow: 0 24px 50px rgba(15, 27, 45, .13);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
.container { width: min(1200px, calc(100% - 48px)); margin-inline: auto; }
.eyebrow {
  margin: 0;
  color: var(--sage);
  font-size: .67rem;
  font-weight: 800;
  letter-spacing: .24em;
  text-transform: uppercase;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid #eef0f0;
  backdrop-filter: blur(14px);
}
.header-inner { min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 36px; }
.brand img { width: 65px; max-height: 58px; object-fit: contain; }
.main-nav { display: flex; align-items: center; gap: 37px; }
.main-nav a { color: #69717c; font-size: .8rem; font-weight: 600; transition: color .2s ease; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--petrol); }
.nav-cta {
  padding: 14px 24px;
  color: var(--white) !important;
  background: var(--navy);
  font-size: .66rem !important;
  font-weight: 800 !important;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.nav-cta:hover { background: var(--petrol); }
.menu-toggle { display: none; border: 0; background: transparent; color: var(--navy); font-size: 1.6rem; cursor: pointer; }

.blog-hero {
  position: relative;
  min-height: 575px;
  overflow: hidden;
  color: var(--white);
  background: var(--navy);
}
.blog-hero__inner { padding-top: 94px; padding-bottom: 140px; }
.hero-rule { display: block; width: 62px; height: 5px; margin-bottom: 33px; background: var(--petrol); }
.blog-hero h1 {
  max-width: 780px;
  margin: 22px 0 24px;
  font-size: clamp(2.8rem, 5.2vw, 4.8rem);
  font-weight: 760;
  line-height: 1.08;
  letter-spacing: -.035em;
  text-transform: uppercase;
}
.blog-hero p:not(.eyebrow) {
  max-width: 760px;
  margin: 0;
  color: rgba(255,255,255,.62);
  font-size: .98rem;
  line-height: 1.65;
}

.editorial-section { padding: 0 0 112px; background: #fff; }
.editorial-shell { position: relative; margin-top: -72px; z-index: 2; }
.featured-story {
  display: grid;
  grid-template-columns: 1.45fr .95fr;
  min-height: 430px;
  background: white;
  box-shadow: var(--shadow);
}
.featured-story__image { overflow: hidden; min-height: 430px; background: var(--navy-soft); }
.featured-story__image img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.featured-story__body { display: flex; flex-direction: column; justify-content: center; padding: 54px 50px; }
.story-meta { display: flex; align-items: center; justify-content: space-between; gap: 16px; color: #747a80; font-size: .59rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.story-meta span:first-child { color: var(--petrol); }
.featured-story h2 { margin: 25px 0 18px; font-size: clamp(1.8rem, 2.8vw, 2.6rem); line-height: 1.12; letter-spacing: -.025em; }
.featured-story__body > p { margin: 0; color: var(--muted); font-size: .91rem; line-height: 1.72; }
.read-more { display: inline-flex; align-items: center; gap: 10px; margin-top: 31px; color: var(--petrol); font-size: .65rem; font-weight: 850; letter-spacing: .15em; text-transform: uppercase; }
.read-more--preview { cursor: default; }

.story-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 31px; margin-top: 62px; }
.story-card { min-width: 0; border: 1px solid var(--line); background: white; transition: transform .25s ease, box-shadow .25s ease; }
.story-card:not(.is-preview):hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(15, 27, 45, .09); }
.story-card__image { height: 245px; overflow: hidden; background: var(--navy-soft); }
.story-card__image img { width: 100%; height: 100%; object-fit: cover; }
.image-crop-1 img { object-position: 8% center; transform: scale(1.17); }
.image-crop-2 img { object-position: 88% center; transform: scale(1.13); }
.image-crop-3 img { object-position: 55% center; transform: scale(1.15); }
.image-crop-4 img { object-position: 30% center; transform: scale(1.22); }
.image-crop-5 img { object-position: 72% center; transform: scale(1.18); }
.image-placeholder { height: 100%; display: grid; place-items: center; color: white; letter-spacing: .2em; text-transform: uppercase; }
.story-card__body { min-height: 280px; padding: 29px 31px 26px; }
.story-card h2 { margin: 19px 0 16px; font-size: 1.25rem; line-height: 1.3; letter-spacing: -.018em; }
.story-card p { margin: 0; color: var(--muted); font-size: .84rem; line-height: 1.7; }
.card-rule { display: block; width: 30px; height: 1px; margin-top: 27px; background: #cad3d4; }
.coming-soon { display: grid; place-items: center; margin: 85px 0 0; text-align: center; }
.coming-soon span { width: 1px; height: 50px; background: #cbd5d6; }
.coming-soon p { margin: 22px 0 0; color: var(--navy); font-size: .72rem; font-weight: 850; letter-spacing: .3em; text-transform: uppercase; }

.pagination { margin-top: 48px; display: flex; justify-content: center; gap: 8px; }
.pagination .page-numbers { min-width: 42px; height: 42px; padding: 0 12px; display: grid; place-items: center; border: 1px solid var(--line); color: var(--navy); font-weight: 700; }
.pagination .current, .pagination .page-numbers:hover { color: white; border-color: var(--petrol); background: var(--petrol); }

.article-hero { padding: 82px 0 58px; background: var(--mist); border-bottom: 1px solid var(--line); }
.article-hero h1 { max-width: 900px; margin: 16px 0 20px; color: var(--navy); font-size: clamp(2.25rem, 4.8vw, 4.35rem); line-height: 1.06; letter-spacing: -.04em; }
.article-shell { width: min(820px, calc(100% - 40px)); margin: 0 auto; padding: 60px 0 90px; }
.article-featured { margin: -20px auto 48px; width: min(1100px, calc(100% - 40px)); }
.article-featured img { width: 100%; max-height: 610px; object-fit: cover; }
.article-content { font-size: 1.08rem; }
.article-content h2, .article-content h3 { color: var(--navy); line-height: 1.2; }
.article-content h2 { margin-top: 2.3em; font-size: 1.8rem; }
.article-content h3 { margin-top: 1.9em; font-size: 1.35rem; }
.article-content p, .article-content ul, .article-content ol { margin: 0 0 1.35em; }
.article-content a { color: var(--petrol); text-decoration: underline; text-underline-offset: 3px; }
.article-content blockquote { margin: 2em 0; padding: 20px 24px; border-left: 4px solid var(--petrol); background: var(--mist); color: var(--navy); }
.article-footer { margin-top: 48px; padding-top: 26px; border-top: 1px solid var(--line); }
.share-links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.share-links a { padding: 9px 13px; border: 1px solid var(--line); color: var(--navy); font-size: .8rem; font-weight: 700; }

.newsletter-cta { padding: 76px 0; color: var(--white); background: var(--petrol); }
.newsletter-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.newsletter-cta h2 { max-width: 580px; margin: 13px 0 0; font-size: clamp(1.75rem, 3vw, 2.55rem); line-height: 1.2; }
.cta-button { flex: 0 0 auto; min-width: 226px; display: inline-flex; justify-content: center; padding: 16px 22px; color: var(--navy); background: var(--white); font-size: .67rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }

.site-footer { color: rgba(255,255,255,.7); background: var(--navy); }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr 1fr; gap: 80px; padding: 72px 0 67px; }
.footer-wordmark { color: white; font-size: 1.35rem; font-weight: 800; letter-spacing: .28em; text-transform: uppercase; }
.site-footer h3 { margin: 0 0 20px; color: var(--sage); font-size: .63rem; letter-spacing: .22em; text-transform: uppercase; }
.site-footer p { margin: 14px 0 0; font-size: .78rem; }
.site-footer .footer-manifesto { margin-top: 26px; color: var(--sage); }
.footer-links { display: grid; gap: 11px; font-size: .78rem; }
.footer-links a:hover { color: white; }
.copyright { padding: 24px 0; border-top: 1px solid rgba(255,255,255,.12); font-size: .68rem; color: rgba(255,255,255,.42); }
.whatsapp-float { position: fixed; right: 22px; bottom: 22px; z-index: 80; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; color: white; background: #22c55e; box-shadow: 0 12px 28px rgba(0,0,0,.2); font-size: 1.4rem; font-weight: 900; }
.whatsapp-float:hover { transform: translateY(-2px); }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 960px) {
  .menu-toggle { display: block; }
  .main-nav { position: absolute; top: 100%; left: 0; right: 0; display: none; padding: 24px; align-items: stretch; flex-direction: column; gap: 18px; background: white; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .main-nav.is-open { display: flex; }
  .featured-story { grid-template-columns: 1fr; }
  .featured-story__image { min-height: 380px; }
  .story-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 30px, 1200px); }
  .header-inner { min-height: 74px; }
  .brand img { width: 58px; }
  .blog-hero { min-height: 520px; }
  .blog-hero__inner { padding-top: 70px; }
  .blog-hero h1 { font-size: 2.55rem; }
  .desktop-only { display: none; }
  .editorial-shell { margin-top: -54px; }
  .featured-story__image { min-height: 280px; }
  .featured-story__body { padding: 36px 27px 40px; }
  .featured-story h2 { font-size: 1.85rem; }
  .story-grid { grid-template-columns: 1fr; gap: 24px; margin-top: 38px; }
  .story-card__image { height: 230px; }
  .story-card__body { min-height: 0; }
  .newsletter-inner { align-items: flex-start; flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid > :first-child { grid-column: auto; }
  .article-shell { padding-top: 42px; }
}
