/*
Theme Name: Airline Basics Modern
Theme URI: https://airlinebasics.com/
Author: Airline Basics
Description: A lightweight, responsive editorial theme for AirlineBasics.com.
Version: 1.0.0
Requires at least: 5.3
Requires PHP: 5.6
Text Domain: airlinebasics-modern
*/

:root {
  --ab-navy: #081e33;
  --ab-navy-2: #0d355b;
  --ab-blue: #1976d2;
  --ab-blue-2: #2893ff;
  --ab-sky: #eaf4fc;
  --ab-warm: #f7f5f1;
  --ab-white: #ffffff;
  --ab-ink: #10243a;
  --ab-muted: #5f7083;
  --ab-line: #dce5ed;
  --ab-amber: #f3ad45;
  --ab-shadow: 0 18px 48px rgba(8, 30, 51, 0.09);
  --ab-radius: 16px;
  --ab-width: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ab-warm);
  color: var(--ab-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--ab-blue); text-decoration: none; }
a:hover, a:focus { color: #0b57a0; }
button, input, textarea { font: inherit; }

.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: 12px; left: 12px; z-index: 100000;
  width: auto; height: auto; padding: 12px 16px; margin: 0;
  clip: auto; background: #fff; color: var(--ab-navy); border-radius: 8px;
}

.ab-container { width: min(calc(100% - 40px), var(--ab-width)); margin: 0 auto; }
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid rgba(8, 30, 51, 0.08);
  backdrop-filter: blur(12px);
}
.admin-bar .site-header { top: 32px; }
.header-inner { min-height: 76px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; flex: 0 0 auto; color: var(--ab-navy); font-weight: 800; letter-spacing: -0.03em; font-size: 21px; }
.brand:hover, .brand:focus { color: var(--ab-navy); }
.brand-mark { width: 39px; height: 32px; color: var(--ab-navy); }
.primary-nav { margin-left: auto; }
.primary-nav ul { display: flex; align-items: center; gap: 24px; list-style: none; padding: 0; margin: 0; }
.primary-nav a { color: #25384b; font-size: 14px; font-weight: 650; white-space: nowrap; }
.primary-nav a:hover, .primary-nav .current-menu-item > a, .primary-nav .current_page_item > a { color: var(--ab-blue); }
.header-actions { display: flex; align-items: center; gap: 11px; }
.search-toggle { display: grid; place-items: center; width: 42px; height: 42px; color: var(--ab-navy); border-radius: 12px; }
.search-toggle:hover { background: var(--ab-sky); }
.search-toggle svg { width: 20px; height: 20px; }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 10px; border: 0; background: var(--ab-sky); color: var(--ab-navy); border-radius: 10px; cursor: pointer; }
.menu-toggle span { display: block; height: 2px; margin: 5px 0; background: currentColor; }

.ab-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 48px; padding: 0 21px; border: 1px solid transparent; border-radius: 10px;
  background: var(--ab-blue); color: white; font-weight: 750; font-size: 15px;
  box-shadow: 0 8px 22px rgba(25, 118, 210, 0.22);
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.ab-button:hover, .ab-button:focus { color: white; background: #0f66b9; transform: translateY(-1px); box-shadow: 0 12px 28px rgba(25, 118, 210, 0.28); }
.ab-button--small { min-height: 42px; padding: 0 17px; }
.ab-button--outline { background: transparent; color: white; border-color: rgba(255,255,255,.68); box-shadow: none; }
.ab-button--outline:hover, .ab-button--outline:focus { background: white; color: var(--ab-navy); }

.hero {
  position: relative; overflow: hidden; color: white;
  background: linear-gradient(115deg, #061a2d 0%, #0a3156 54%, #236da8 100%);
}
.hero:after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 82% 32%, rgba(255,255,255,.2), transparent 29%), linear-gradient(90deg, rgba(8,30,51,.05), rgba(8,30,51,.22));
}
.hero-inner { position: relative; z-index: 2; min-height: 500px; display: grid; grid-template-columns: 1.02fr .98fr; align-items: center; gap: 48px; }
.hero-copy { padding: 72px 0; }
.eyebrow { margin: 0 0 17px; color: #a9d3f6; font-size: 12px; font-weight: 800; letter-spacing: .28em; text-transform: uppercase; }
.hero h1 { max-width: 650px; margin: 0; color: white; font-size: clamp(48px, 5vw, 76px); line-height: .99; letter-spacing: -.05em; }
.hero h1 span { display: block; color: var(--ab-blue-2); }
.hero-lede { max-width: 610px; margin: 25px 0 30px; color: #e2edf6; font-size: 20px; line-height: 1.5; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; }
.hero-art { position: relative; min-height: 420px; align-self: stretch; }
.hero-art img { position: absolute; inset: 0 0 0 -40px; width: calc(100% + 80px); height: 100%; object-fit: contain; object-position: center; opacity: .98; }
.hero-note { position: absolute; z-index: 3; top: 64px; right: 0; max-width: 140px; color: rgba(255,255,255,.72); font-size: 11px; font-weight: 800; letter-spacing: .3em; line-height: 1.75; text-transform: uppercase; }

.trust-strip { background: #fff; border-bottom: 1px solid var(--ab-line); }
.trust-inner { display: grid; grid-template-columns: .72fr .72fr 1.56fr; min-height: 92px; align-items: center; }
.trust-item { display: flex; align-items: center; gap: 16px; min-height: 46px; padding: 0 34px; border-right: 1px solid var(--ab-line); }
.trust-item:first-child { padding-left: 0; }
.trust-item:last-child { border-right: 0; }
.trust-icon { width: 34px; color: var(--ab-blue); flex: 0 0 auto; }
.trust-number, .trust-title { display: block; color: var(--ab-navy); font-size: 20px; font-weight: 850; line-height: 1.1; }
.trust-label { display: block; color: var(--ab-muted); font-size: 14px; line-height: 1.35; }

.home-section { padding: 66px 0 12px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.section-heading h2 { margin: 0; color: var(--ab-navy); font-size: clamp(29px, 3vw, 38px); letter-spacing: -.035em; line-height: 1.15; }
.section-link { font-size: 15px; font-weight: 750; white-space: nowrap; }

.topic-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.topic-card {
  min-height: 226px; display: flex; flex-direction: column; padding: 22px 20px;
  background: #fff; border: 1px solid var(--ab-line); border-radius: var(--ab-radius);
  color: var(--ab-ink); box-shadow: 0 7px 22px rgba(8,30,51,.035);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.topic-card:hover, .topic-card:focus { color: var(--ab-ink); transform: translateY(-5px); border-color: #9cc9ee; box-shadow: var(--ab-shadow); }
.topic-icon { width: 42px; height: 42px; display: grid; place-items: center; margin-bottom: 18px; color: var(--ab-blue); }
.topic-icon svg { width: 38px; height: 38px; }
.topic-card h3 { margin: 0 0 8px; color: var(--ab-navy); font-size: 17px; line-height: 1.25; }
.topic-card p { margin: 0; color: var(--ab-muted); font-size: 14px; line-height: 1.45; }
.topic-arrow { margin-top: auto; color: var(--ab-blue); font-size: 25px; line-height: 1; }

.featured-grid { display: grid; grid-template-columns: 1.38fr 1fr 1fr; gap: 18px; }
.post-card { overflow: hidden; display: flex; flex-direction: column; min-width: 0; background: #fff; border: 1px solid var(--ab-line); border-radius: var(--ab-radius); box-shadow: 0 9px 28px rgba(8,30,51,.045); }
.post-card-image { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(135deg, #0b3154, #2176b6); }
.post-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.post-card:hover .post-card-image img { transform: scale(1.035); }
.post-card-fallback { display: grid; place-items: center; height: 100%; color: rgba(255,255,255,.9); }
.post-card-fallback svg { width: 75px; height: 75px; }
.post-card-body { display: flex; flex-direction: column; flex: 1; padding: 21px 22px 19px; }
.post-kicker { margin-bottom: 8px; color: var(--ab-blue); font-size: 11px; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.post-card h3 { margin: 0 0 10px; color: var(--ab-navy); font-size: 22px; line-height: 1.16; letter-spacing: -.025em; }
.post-card h3 a { color: inherit; }
.post-card h3 a:hover { color: var(--ab-blue); }
.post-card-excerpt { margin: 0; color: var(--ab-muted); font-size: 15px; line-height: 1.5; }
.post-meta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: auto; padding-top: 18px; color: #718397; font-size: 12px; }

.insight-cta { padding: 58px 0 72px; }
.insight-inner {
  position: relative; overflow: hidden; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 25px;
  min-height: 150px; padding: 32px 38px; color: white; background: linear-gradient(118deg, #071e35, #0b426f); border-radius: var(--ab-radius);
}
.insight-inner:after { content: ""; position: absolute; right: -55px; bottom: -120px; width: 330px; height: 260px; border: 1px dashed rgba(86,171,235,.35); border-radius: 50%; }
.insight-icon { width: 64px; color: var(--ab-blue-2); }
.insight-copy { position: relative; z-index: 1; }
.insight-copy .eyebrow { margin-bottom: 8px; }
.insight-copy h2 { margin: 0 0 4px; color: white; font-size: 27px; letter-spacing: -.025em; }
.insight-copy p { margin: 0; color: #c9dae8; font-size: 15px; }
.insight-inner .ab-button { position: relative; z-index: 1; min-width: 178px; }

.site-main { min-height: 55vh; }
.content-shell { padding: 64px 0 80px; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 54px; align-items: start; }
.page-header { padding: 54px 0; color: white; background: linear-gradient(120deg, #081e33, #0f4978); }
.page-header .eyebrow { margin-bottom: 10px; }
.page-header h1 { margin: 0; color: white; font-size: clamp(38px, 5vw, 58px); line-height: 1.08; letter-spacing: -.04em; }
.page-header p { max-width: 710px; margin: 14px 0 0; color: #d3e2ed; }
.article-list { display: grid; gap: 22px; }
.list-card { display: grid; grid-template-columns: 250px 1fr; overflow: hidden; background: #fff; border: 1px solid var(--ab-line); border-radius: var(--ab-radius); }
.list-card .post-card-image { aspect-ratio: auto; min-height: 210px; }
.list-card-body { padding: 25px; }
.list-card h2 { margin: 0 0 9px; font-size: 27px; line-height: 1.2; letter-spacing: -.03em; }
.list-card h2 a { color: var(--ab-navy); }
.list-card h2 a:hover { color: var(--ab-blue); }
.list-card p { color: var(--ab-muted); }
.sidebar { position: sticky; top: 104px; }
.widget { margin-bottom: 20px; padding: 24px; background: #fff; border: 1px solid var(--ab-line); border-radius: var(--ab-radius); }
.widget-title { margin: 0 0 15px; color: var(--ab-navy); font-size: 19px; }
.widget ul { padding-left: 19px; margin: 0; }
.widget li { margin: 7px 0; }
.search-form { display: flex; }
.search-form label { flex: 1; }
.search-field { width: 100%; height: 46px; padding: 0 13px; border: 1px solid var(--ab-line); border-radius: 9px 0 0 9px; background: #fff; }
.search-submit { width: 48px; border: 0; border-radius: 0 9px 9px 0; color: white; background: var(--ab-blue); cursor: pointer; }

.article { max-width: 820px; }
.article-header { margin-bottom: 30px; }
.article-header h1 { margin: 0 0 15px; color: var(--ab-navy); font-size: clamp(38px, 5vw, 58px); line-height: 1.08; letter-spacing: -.045em; }
.article-featured { overflow: hidden; margin: 0 0 34px; border-radius: var(--ab-radius); box-shadow: var(--ab-shadow); }
.entry-content { color: #24384c; font-family: Georgia, "Times New Roman", serif; font-size: 19px; line-height: 1.8; }
.entry-content h2, .entry-content h3, .entry-content h4 { color: var(--ab-navy); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; line-height: 1.2; letter-spacing: -.025em; }
.entry-content h2 { margin-top: 2em; font-size: 34px; }
.entry-content h3 { margin-top: 1.7em; font-size: 26px; }
.entry-content a { text-decoration: underline; text-underline-offset: 3px; }
.entry-content blockquote { margin: 2em 0; padding: 2px 0 2px 24px; border-left: 4px solid var(--ab-blue); color: #41546a; font-style: italic; }
.entry-content img { border-radius: 10px; }
.entry-content table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; font-family: inherit; font-size: 16px; }
.entry-content th, .entry-content td { padding: 11px; border: 1px solid var(--ab-line); }
.post-navigation { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--ab-line); }
.nav-links { display: flex; justify-content: space-between; gap: 24px; }
.nav-previous, .nav-next { max-width: 48%; }
.comments-area { margin-top: 46px; padding-top: 32px; border-top: 1px solid var(--ab-line); }
.comment-list { padding-left: 22px; }
.comment-body { margin-bottom: 24px; padding: 20px; background: #fff; border: 1px solid var(--ab-line); border-radius: 12px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; padding: 12px; border: 1px solid var(--ab-line); border-radius: 9px; background: #fff; }
.comment-form .submit { padding: 12px 20px; border: 0; border-radius: 9px; background: var(--ab-blue); color: #fff; font-weight: 700; cursor: pointer; }
.pagination { margin-top: 34px; }
.pagination .nav-links { justify-content: center; }
.page-numbers { padding: 8px 12px; background: #fff; border: 1px solid var(--ab-line); border-radius: 8px; }
.page-numbers.current { background: var(--ab-blue); color: white; border-color: var(--ab-blue); }

.site-footer { padding: 55px 0 22px; background: #fff; border-top: 1px solid var(--ab-line); }
.footer-grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr .65fr; gap: 48px; }
.footer-brand p { max-width: 290px; color: var(--ab-muted); font-size: 14px; }
.footer-title { margin: 0 0 13px; color: var(--ab-navy); font-size: 14px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin: 5px 0; }
.footer-links a { color: #52667b; font-size: 13px; }
.social-links { display: flex; gap: 10px; }
.social-links a { display: grid; place-items: center; width: 36px; height: 36px; background: var(--ab-sky); color: var(--ab-navy); border-radius: 50%; font-weight: 800; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--ab-line); color: #6e7f91; font-size: 12px; }

@media (max-width: 1100px) {
  .header-actions .ab-button { display: none; }
  .primary-nav ul { gap: 15px; }
  .primary-nav a { font-size: 13px; }
  .topic-grid { grid-template-columns: repeat(3, 1fr); }
  .featured-grid { grid-template-columns: 1fr 1fr; }
  .featured-grid .post-card:first-child { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .admin-bar .site-header { top: 46px; }
  .header-inner { min-height: 68px; }
  .menu-toggle { display: block; }
  .primary-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; padding: 12px 20px 22px; background: #fff; border-bottom: 1px solid var(--ab-line); box-shadow: var(--ab-shadow); }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { display: grid; gap: 0; }
  .primary-nav a { display: block; padding: 10px; font-size: 15px; }
  .hero-inner { grid-template-columns: 1fr; min-height: 540px; }
  .hero-copy { padding: 68px 0 245px; }
  .hero-art { position: absolute; right: -10%; bottom: -60px; width: 76%; height: 340px; min-height: 0; opacity: .72; }
  .hero-note { display: none; }
  .trust-inner { grid-template-columns: 1fr 1fr; padding: 18px 0; }
  .trust-item { padding: 12px 22px; }
  .trust-item:first-child { padding-left: 22px; }
  .trust-item:nth-child(2) { border-right: 0; }
  .trust-item:last-child { grid-column: 1 / -1; border-top: 1px solid var(--ab-line); }
  .content-grid { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .ab-container { width: min(calc(100% - 28px), var(--ab-width)); }
  .brand { font-size: 18px; }
  .brand-mark { width: 34px; }
  .search-toggle { display: none; }
  .hero-copy { padding-top: 58px; }
  .hero h1 { font-size: 50px; }
  .hero-lede { font-size: 18px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .ab-button { width: 100%; }
  .trust-inner { grid-template-columns: 1fr; }
  .trust-item, .trust-item:nth-child(2), .trust-item:last-child { grid-column: auto; border-right: 0; border-top: 1px solid var(--ab-line); }
  .trust-item:first-child { border-top: 0; }
  .home-section { padding-top: 48px; }
  .section-heading { align-items: start; flex-direction: column; }
  .topic-grid, .featured-grid { grid-template-columns: 1fr; }
  .featured-grid .post-card:first-child { grid-column: auto; }
  .topic-card { min-height: 195px; }
  .insight-inner { grid-template-columns: 1fr; text-align: center; }
  .insight-icon { margin: 0 auto; }
  .list-card { grid-template-columns: 1fr; }
  .list-card .post-card-image { min-height: 190px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; }
}

