/*
Theme Name: Brazilian Airlines Editorial
Theme URI: https://brazilianairlines.com
Author: Brazilian Airlines
Description: Lightweight block theme for the Brazilian Airlines editorial site.
Version: 1.0.0
Requires at least: 6.6
Requires PHP: 7.4
Text Domain: ba-editorial
*/

:root {
  --ba-ink: #133039;
  --ba-muted: #68777a;
  --ba-paper: #f7f5ef;
  --ba-white: #fffefa;
  --ba-line: #d9ded9;
  --ba-teal: #0c4750;
  --ba-mint: #d9eee8;
  --ba-orange: #ef8b51;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ba-paper); color: var(--ba-ink); font-family: Arial, Helvetica, sans-serif; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--ba-teal); }
.site-header { background: var(--ba-paper); border-bottom: 1px solid var(--ba-line); }
.site-header-inner { max-width: 1240px; margin: 0 auto; padding: 22px 28px; display: flex; justify-content: space-between; align-items: center; gap: 28px; }
.brand { font-family: Georgia, 'Times New Roman', serif; font-size: 25px; font-weight: 700; letter-spacing: -.04em; text-decoration: none; white-space: nowrap; }
.brand span { color: var(--ba-orange); }
.site-nav .wp-block-navigation__container { gap: 24px; }
.site-nav a { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-decoration: none; text-transform: uppercase; }
.page-wrap { max-width: 1240px; margin: 0 auto; padding: 0 28px; }
.hero { padding: 48px 0 62px; }
.hero-grid { display: grid; grid-template-columns: .78fr 1.22fr; gap: 56px; align-items: center; }
.eyebrow { color: var(--ba-teal); font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.hero h1 { font: 500 clamp(42px, 5vw, 72px)/.98 Georgia, 'Times New Roman', serif; letter-spacing: -.055em; margin: 17px 0 20px; }
.hero-copy { max-width: 430px; color: var(--ba-muted); font-size: 17px; line-height: 1.65; }
.hero-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.ba-button, .wp-block-button__link { display: inline-block; padding: 13px 18px; border-radius: 2px; background: var(--ba-teal); color: white !important; font-size: 11px; font-weight: 800; letter-spacing: .09em; text-decoration: none; text-transform: uppercase; }
.ba-button.secondary { color: var(--ba-teal) !important; background: transparent; border: 1px solid #9ab1ad; }
.hero-feature { position: relative; min-height: 420px; overflow: hidden; background: #174a52; color: white; }
.hero-feature .wp-block-post-featured-image { position: absolute; inset: 0; margin: 0; }
.hero-feature .wp-block-post-featured-image img { width: 100%; height: 100%; object-fit: cover; }
.hero-feature:after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(3,22,27,.86), rgba(3,22,27,.03) 72%); pointer-events: none; }
.hero-feature-content { position: absolute; z-index: 1; left: 30px; right: 30px; bottom: 28px; color: white; }
.hero-feature-content a { color: white; text-decoration: none; }
.hero-feature-content .wp-block-post-date { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.hero-feature-content .wp-block-post-title { max-width: 690px; font: 500 clamp(28px, 3.2vw, 45px)/1.05 Georgia, 'Times New Roman', serif; margin: 11px 0; }
.hero-feature-content .wp-block-post-excerpt { max-width: 620px; color: rgba(255,255,255,.84); line-height: 1.5; }
.section { padding: 52px 0; border-top: 1px solid var(--ba-line); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 24px; }
.section-heading h2 { margin: 6px 0 0; font: 500 clamp(30px, 3vw, 43px)/1.05 Georgia, 'Times New Roman', serif; letter-spacing: -.04em; }
.section-heading a { color: var(--ba-teal); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-decoration: none; text-transform: uppercase; }
.article-grid .wp-block-post-template { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
.article-card { height: 100%; overflow: hidden; background: var(--ba-white); border: 1px solid var(--ba-line); }
.article-card .wp-block-post-featured-image { margin: 0; aspect-ratio: 1.55; overflow: hidden; background: var(--ba-mint); }
.article-card .wp-block-post-featured-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.article-card:hover .wp-block-post-featured-image img { transform: scale(1.035); }
.article-card-body { padding: 21px; }
.article-card .wp-block-post-date { color: var(--ba-muted); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.article-card .wp-block-post-title { margin: 10px 0 11px; font: 500 23px/1.12 Georgia, 'Times New Roman', serif; letter-spacing: -.025em; }
.article-card .wp-block-post-title a { text-decoration: none; }
.article-card .wp-block-post-excerpt { color: var(--ba-muted); font-size: 14px; line-height: 1.55; }
.article-card .wp-block-read-more { color: var(--ba-teal); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; }
.airline-grid,.guide-grid,.social-grid,.popular-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.info-tile { display: flex; min-height: 170px; flex-direction: column; justify-content: space-between; padding: 24px; background: var(--ba-white); border: 1px solid var(--ba-line); text-decoration: none; }
.info-tile:hover { background: var(--ba-mint); }
.info-tile .tile-label { color: var(--ba-muted); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.info-tile h3 { margin: 26px 0 8px; font: 500 27px/1.05 Georgia, 'Times New Roman', serif; letter-spacing: -.035em; }
.info-tile p { margin: 0; color: var(--ba-muted); font-size: 14px; line-height: 1.5; }
.info-tile .arrow { align-self: end; color: var(--ba-teal); font-size: 22px; }
.guides-band { margin: 0 calc((1240px - 100vw)/2); padding: 50px max(28px,calc((100vw - 1184px)/2)); background: var(--ba-mint); }
.popular-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.popular-card { padding: 24px; background: var(--ba-white); border-top: 3px solid var(--ba-orange); }
.popular-card a { text-decoration: none; }
.popular-card h3 { margin: 12px 0; font: 500 25px/1.1 Georgia, 'Times New Roman', serif; }
.popular-card p { color: var(--ba-muted); font-size: 14px; line-height: 1.55; }
.social-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
.social-card { padding: 19px; border: 1px solid var(--ba-line); background: var(--ba-white); }
.social-card strong { display: block; font-size: 12px; letter-spacing: .07em; text-transform: uppercase; }
.social-card span { display: block; margin-top: 8px; color: var(--ba-muted); font-size: 13px; }
.editorial-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 30px; background: var(--ba-teal); color: white; }
.editorial-cta h2 { margin: 0; font: 500 32px/1.05 Georgia, 'Times New Roman', serif; }
.editorial-cta p { margin: 9px 0 0; color: rgba(255,255,255,.8); }
.editorial-cta .ba-button { color: var(--ba-ink) !important; background: #f7f5ef; white-space: nowrap; }
.site-footer { margin-top: 64px; background: #102f37; color: #fff; }
.site-footer-inner { max-width: 1240px; margin: auto; padding: 34px 28px; display: flex; justify-content: space-between; gap: 24px; align-items: center; }
.site-footer a { color: #fff; }
.footer-copy { color: rgba(255,255,255,.68); font-size: 12px; }
.single-layout,.page-layout { max-width: 820px; margin: 0 auto; padding: 56px 28px 80px; }
.single-title,.page-title { margin: 13px 0 20px; font: 500 clamp(38px, 5vw, 64px)/1 Georgia, 'Times New Roman', serif; letter-spacing: -.05em; }
.single-excerpt { color: var(--ba-muted); font: 20px/1.55 Georgia, 'Times New Roman', serif; }
.single-feature { margin: 30px 0; }
.single-content,.page-content { font-size: 17px; line-height: 1.75; }
.single-content h2,.page-content h2 { margin-top: 1.7em; font: 500 34px/1.1 Georgia, 'Times New Roman', serif; }
.single-content img,.page-content img { max-width: 100%; height: auto; }
.archive-header { padding: 54px 0 24px; }
.archive-header h1 { margin: 10px 0; font: 500 clamp(40px,5vw,64px)/1 Georgia, 'Times New Roman', serif; }
.pagination { padding: 28px 0; }
@media (max-width: 800px) {
  .site-header-inner { align-items: flex-start; flex-direction: column; gap: 18px; padding: 18px 20px; }
  .site-nav .wp-block-navigation__container { flex-wrap: wrap; gap: 12px 18px; }
  .page-wrap { padding: 0 20px; }
  .hero { padding: 34px 0 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-feature { min-height: 350px; }
  .article-grid .wp-block-post-template,.airline-grid,.guide-grid,.popular-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .social-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .guides-band { margin: 0 -20px; padding: 38px 20px; }
}
@media (max-width: 540px) {
  .article-grid .wp-block-post-template,.airline-grid,.guide-grid,.popular-grid { grid-template-columns: 1fr; }
  .hero-feature { min-height: 310px; }
  .hero-feature-content { left: 20px; right: 20px; bottom: 20px; }
  .section { padding: 38px 0; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .editorial-cta,.site-footer-inner { align-items: flex-start; flex-direction: column; }
}
