/*
Theme Name: UAV.org
Theme URI: https://www.uav.org/
Author: UAV.org
Description: An editorial WordPress theme for UAV.org news, intelligence, analysis, advertising, and product recommendations.
Version: 0.1.0
Requires at least: 6.1
Requires PHP: 7.4
Text Domain: uav-org
*/

:root {
  --navy-950: #06111f;
  --navy-900: #0a192b;
  --navy-800: #10243b;
  --navy-700: #18324d;
  --ink: #122033;
  --muted: #617083;
  --line: #dfe7ef;
  --paper: #f5f8fb;
  --white: #ffffff;
  --cyan: #08a6df;
  --cyan-dark: #087eaf;
  --orange: #f59e0b;
  --shadow: 0 16px 42px rgba(6, 17, 31, .08);
  --radius: 4px;
  --max-width: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--cyan-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy-900); }
button, input, textarea, select { font: inherit; }
.screen-reader-text { clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; overflow: hidden; position: absolute !important; width: 1px; word-wrap: normal !important; }
.screen-reader-text:focus { background: var(--white); clip: auto !important; clip-path: none; color: var(--ink); display: block; height: auto; left: 10px; padding: 12px 16px; top: 10px; width: auto; z-index: 100000; }
.site-shell, .site-header__inner, .site-footer__inner { width: min(calc(100% - 40px), var(--max-width)); margin-inline: auto; }

.site-topbar { background: var(--navy-950); color: #c8d7e6; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.site-topbar__inner { display: flex; justify-content: space-between; gap: 24px; padding: 9px 20px; width: min(100%, var(--max-width)); margin-inline: auto; }
.site-topbar a { color: #c8d7e6; text-decoration: none; }
.site-topbar a:hover { color: var(--white); }
.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.site-header__inner { align-items: center; display: flex; gap: 28px; min-height: 88px; }
.site-brand, .custom-logo-link { align-items: center; display: flex; flex: 0 0 auto; text-decoration: none; }
.site-brand img, .custom-logo-link img { max-height: 58px; width: auto; }
.site-brand__fallback { color: var(--navy-950); font-size: 30px; font-weight: 900; letter-spacing: -.08em; }
.site-brand__fallback span { color: var(--cyan); }
.site-nav { align-items: center; display: flex; flex: 1; justify-content: flex-end; }
.site-nav .menu { align-items: center; display: flex; flex-wrap: wrap; gap: 24px; list-style: none; margin: 0; padding: 0; }
.site-nav a { color: var(--navy-800); font-size: 13px; font-weight: 800; letter-spacing: .05em; text-decoration: none; text-transform: uppercase; }
.site-nav a:hover, .current-menu-item > a { color: var(--cyan-dark); }
.menu-toggle { background: none; border: 1px solid var(--line); color: var(--navy-900); cursor: pointer; display: none; padding: 8px 12px; }
.header-search { align-items: center; border-left: 1px solid var(--line); display: flex; margin-left: 2px; padding-left: 22px; }
.header-search a { color: var(--navy-900); font-size: 20px; text-decoration: none; }

.hero { background: var(--navy-900); color: var(--white); display: grid; gap: 44px; grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr); margin: 28px 0 20px; overflow: hidden; padding: clamp(32px, 6vw, 76px); position: relative; }
.hero::after { border: 1px solid rgba(8,166,223,.32); border-radius: 50%; content: ""; height: 420px; position: absolute; right: -160px; top: -190px; width: 420px; }
.hero__copy, .hero__panel { position: relative; z-index: 1; }
.eyebrow { color: var(--cyan); font-size: 11px; font-weight: 900; letter-spacing: .16em; margin: 0 0 15px; text-transform: uppercase; }
.hero h1 { font-size: clamp(38px, 6vw, 74px); letter-spacing: -.065em; line-height: .98; margin: 0; max-width: 730px; }
.hero p:not(.eyebrow) { color: #b8c8d8; font-size: 18px; margin: 22px 0 0; max-width: 640px; }
.button { background: var(--cyan); border: 0; color: var(--white); display: inline-flex; font-size: 12px; font-weight: 900; letter-spacing: .08em; margin-top: 28px; padding: 13px 18px; text-decoration: none; text-transform: uppercase; }
.button:hover { background: var(--white); color: var(--navy-900); }
.hero__panel { align-self: end; border-left: 1px solid rgba(255,255,255,.2); padding-left: 28px; }
.hero__panel h2 { font-size: 14px; letter-spacing: .08em; margin: 0 0 18px; text-transform: uppercase; }
.hero__panel ul { list-style: none; margin: 0; padding: 0; }
.hero__panel li { border-top: 1px solid rgba(255,255,255,.16); display: flex; gap: 15px; padding: 14px 0; }
.hero__panel strong { color: var(--cyan); font-size: 12px; }
.hero__panel span { font-size: 14px; line-height: 1.35; }

.ad-slot { align-items: center; background: #eaf0f5; border: 1px solid #d7e1ea; color: #7a8b9d; display: flex; font-size: 10px; font-weight: 800; justify-content: center; letter-spacing: .14em; min-height: 92px; text-transform: uppercase; }
.ad-slot--leaderboard { margin: 20px 0 34px; min-height: 118px; }
.ad-slot--rail { min-height: 250px; }
.content-grid { align-items: start; display: grid; gap: 40px; grid-template-columns: minmax(0, 1fr) 310px; }
.section-heading { align-items: baseline; border-bottom: 2px solid var(--navy-900); display: flex; justify-content: space-between; margin-bottom: 18px; padding-bottom: 10px; }
.section-heading h2 { font-size: 22px; letter-spacing: -.03em; margin: 0; }
.section-heading a { font-size: 11px; font-weight: 900; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; }
.featured-grid { display: grid; gap: 20px; grid-template-columns: 1.15fr .85fr; }
.post-card { background: var(--white); border: 1px solid var(--line); display: flex; flex-direction: column; min-width: 0; }
.post-card__media { aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--navy-800), #1d567a); overflow: hidden; }
.post-card__media img { height: 100%; object-fit: cover; width: 100%; }
.post-card__placeholder { align-items: center; display: flex; height: 100%; justify-content: center; width: 100%; }
.post-card__placeholder img { filter: brightness(0) invert(1); height: auto; max-height: 34%; max-width: 34%; opacity: .3; object-fit: contain; width: auto; }
.post-card__body { padding: 18px; }
.post-card--featured .post-card__body { padding: 24px; }
.post-card__meta, .entry-meta { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.post-card__meta a { color: var(--cyan-dark); text-decoration: none; }
.post-card h3 { font-size: 20px; letter-spacing: -.035em; line-height: 1.16; margin: 9px 0 8px; }
.post-card--featured h3 { font-size: clamp(25px, 3vw, 36px); }
.post-card h3 a { color: var(--navy-900); text-decoration: none; }
.post-card h3 a:hover { color: var(--cyan-dark); }
.post-card p { color: var(--muted); font-size: 14px; margin: 0; }
.post-list { display: grid; gap: 14px; margin-top: 20px; }
.post-list .post-card { display: grid; grid-template-columns: 210px minmax(0, 1fr); }
.post-list .post-card__media { aspect-ratio: 16 / 10; }
.sidebar { display: grid; gap: 22px; }
.sidebar__block { background: var(--white); border: 1px solid var(--line); padding: 20px; }
.sidebar__title { border-bottom: 2px solid var(--navy-900); font-size: 14px; letter-spacing: .08em; margin: 0 0 16px; padding-bottom: 10px; text-transform: uppercase; }
.newsletter { background: var(--navy-900); color: var(--white); }
.newsletter .sidebar__title { border-color: var(--cyan); }
.newsletter p { color: #b8c8d8; font-size: 14px; }
.newsletter input { border: 0; margin-bottom: 8px; padding: 11px; width: 100%; }
.newsletter .button { cursor: pointer; margin-top: 4px; width: 100%; }
.product-card { background: #f8fafc; border-left: 3px solid var(--orange); padding: 15px; }
.product-card__label { color: #a56800; font-size: 10px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.product-card h3 { font-size: 17px; line-height: 1.2; margin: 7px 0; }
.product-card p { color: var(--muted); font-size: 13px; margin: 0 0 12px; }
.product-card a { font-size: 11px; font-weight: 900; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; }

.page-header { background: var(--navy-900); color: var(--white); margin: 28px 0 34px; padding: 40px clamp(24px, 5vw, 60px); }
.page-header h1 { font-size: clamp(36px, 5vw, 60px); letter-spacing: -.06em; line-height: 1; margin: 0; }
.page-header p { color: #b8c8d8; margin: 14px 0 0; max-width: 650px; }
.author-card { align-items: center; display: flex; gap: 22px; margin-top: 20px; }
.author-card img { border-radius: 50%; flex: 0 0 auto; }
.author-card h1 { font-size: clamp(26px, 4vw, 38px); }
.author-card p { margin: 8px 0 0; max-width: 600px; }
.answer-box { background: var(--paper); border-left: 3px solid var(--cyan); font-family: Inter, ui-sans-serif, system-ui, sans-serif; font-size: 17px; margin: 0 0 28px; padding: 16px 20px; }
.breadcrumb { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .08em; margin: 26px 0 12px; text-transform: uppercase; }
.breadcrumb a { text-decoration: none; }
.single-grid { align-items: start; display: grid; gap: 40px; grid-template-columns: minmax(0, 1fr) 310px; }
.entry { background: var(--white); border: 1px solid var(--line); padding: clamp(22px, 5vw, 58px); }
.entry-header h1 { font-size: clamp(36px, 5vw, 64px); letter-spacing: -.06em; line-height: 1.02; margin: 10px 0 16px; }
.entry-header .entry-meta { margin-bottom: 26px; }
.entry-featured-image { margin: 0 0 30px; }
.entry-content { font-family: Georgia, "Times New Roman", serif; font-size: 19px; line-height: 1.8; }
.entry-content > * { max-width: 760px; }
.entry-content h2, .entry-content h3, .entry-content h4 { color: var(--navy-900); font-family: Inter, ui-sans-serif, system-ui, sans-serif; letter-spacing: -.04em; line-height: 1.2; }
.entry-content blockquote { border-left: 4px solid var(--cyan); color: var(--navy-700); margin: 26px 0; padding: 4px 24px; }
.entry-content img { margin-block: 24px; }
.entry-footer { border-top: 1px solid var(--line); margin-top: 36px; padding-top: 18px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-list a { background: var(--paper); font-size: 11px; font-weight: 800; padding: 6px 10px; text-decoration: none; }
.related-grid { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); margin-top: 40px; }
.related-grid .post-card h3 { font-size: 17px; }
.search-form { display: flex; gap: 8px; }
.search-form input { border: 1px solid var(--line); min-width: 0; padding: 10px 12px; width: 100%; }
.search-form button { background: var(--navy-900); border: 0; color: var(--white); cursor: pointer; padding: 0 16px; }
.empty-state { background: var(--white); border: 1px dashed var(--line); padding: 40px; }

.drone-filters { display: grid; gap: 16px; margin-bottom: 34px; }
.drone-filter-group { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
.drone-filter-label { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .08em; min-width: 100px; text-transform: uppercase; }
.drone-filter-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.drone-pill { background: var(--white); border: 1px solid var(--line); border-radius: 20px; color: var(--navy-800); font-size: 12px; font-weight: 700; padding: 5px 13px; text-decoration: none; }
.drone-pill:hover { border-color: var(--cyan); color: var(--cyan-dark); }
.drone-pill.is-active { background: var(--navy-900); border-color: var(--navy-900); color: var(--white); }
.drone-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); margin-bottom: 30px; }
.drone-card { background: var(--white); border: 1px solid var(--line); display: block; text-decoration: none; }
.drone-card:hover h3 { color: var(--cyan-dark); }
.drone-card__media { aspect-ratio: 16 / 10; background: linear-gradient(135deg, var(--navy-800), #1d567a); overflow: hidden; }
.drone-card__media img { height: 100%; object-fit: cover; width: 100%; }
.drone-card__body { padding: 16px; }
.drone-card__meta { align-items: center; color: var(--muted); display: flex; flex-wrap: wrap; font-size: 11px; font-weight: 800; gap: 8px; letter-spacing: .05em; margin-bottom: 8px; text-transform: uppercase; }
.drone-card h3 { color: var(--navy-900); font-size: 17px; letter-spacing: -.03em; line-height: 1.2; margin: 0 0 4px; }
.drone-card__type { color: var(--muted); font-size: 12px; margin: 0; }
.drone-status { border-radius: 3px; font-size: 10px; font-weight: 900; letter-spacing: .06em; padding: 2px 7px; text-transform: uppercase; }
.drone-status--current { background: #e3f6ea; color: #1a7a43; }
.drone-status--discontinued { background: #fbe9e6; color: #b3402a; }
.drone-facts { border-block: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 26px; margin: 24px 0; padding: 18px 0; }
.drone-fact { display: flex; flex-direction: column; gap: 3px; }
.drone-fact span { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.drone-fact strong { color: var(--navy-900); font-size: 16px; }
.drone-fact em { color: var(--muted); font-size: 12px; font-style: normal; }
.drone-relations { align-items: flex-start; display: flex; flex-direction: column; gap: 10px; }
.drone-relation { color: var(--cyan-dark); font-size: 13px; font-weight: 700; text-decoration: none; }
.drone-relation:hover { text-decoration: underline; }
.drone-relation--article { background: var(--paper); border-left: 3px solid var(--cyan); padding: 10px 14px; }

.site-footer { background: var(--navy-950); color: #b8c8d8; margin-top: 70px; }
.site-footer__inner { display: grid; gap: 40px; grid-template-columns: 1.4fr 1fr 1fr; padding: 54px 20px 30px; }
.site-footer h2, .site-footer h3 { color: var(--white); }
.site-footer h2 { font-size: 30px; letter-spacing: -.06em; margin: 0 0 10px; }
.site-footer h2 span { color: var(--cyan); }
.site-footer h3 { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.site-footer p { font-size: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 7px 0; }
.site-footer a { color: #b8c8d8; text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.site-footer__bottom { border-top: 1px solid rgba(255,255,255,.12); font-size: 12px; padding: 18px 20px; width: min(100%, var(--max-width)); margin-inline: auto; }

@media (max-width: 900px) {
  .content-grid, .single-grid { grid-template-columns: 1fr; }
  .sidebar { grid-template-columns: repeat(2, 1fr); }
  .sidebar .ad-slot { grid-column: span 2; }
  .hero { grid-template-columns: 1fr; }
  .hero__panel { border-left: 0; border-top: 1px solid rgba(255,255,255,.2); padding: 22px 0 0; }
}
@media (max-width: 700px) {
  .site-shell, .site-header__inner, .site-footer__inner { width: min(calc(100% - 28px), var(--max-width)); }
  .site-topbar__inner { padding-inline: 14px; }
  .site-topbar__inner span:first-child { display: none; }
  .site-header__inner { min-height: 72px; }
  .site-brand img, .custom-logo-link img { max-height: 45px; max-width: 180px; }
  .menu-toggle { display: block; margin-left: auto; }
  .site-nav { display: none; position: absolute; right: 14px; top: 73px; z-index: 20; }
  .site-nav.is-open { background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); display: block; padding: 16px; }
  .site-nav .menu { align-items: flex-start; flex-direction: column; gap: 14px; }
  .header-search { display: none; }
  .hero { margin-top: 14px; padding: 30px 22px; }
  .hero h1 { font-size: 44px; }
  .featured-grid, .related-grid { grid-template-columns: 1fr; }
  .post-list .post-card { display: flex; }
  .sidebar { grid-template-columns: 1fr; }
  .sidebar .ad-slot { grid-column: auto; }
  .site-footer__inner { grid-template-columns: 1fr; padding-inline: 0; }
  .site-footer__bottom { padding-inline: 0; }
}
