/* ═══════════════════════════════════════
   GENERATEPRESS OVERRIDE FIXES
   Must come first to reset GP defaults
═══════════════════════════════════════ */

/* GP wraps content in .site-content with padding and constraints — remove */
.site-content {
  padding: 0 !important;
  margin: 0 !important;
  max-width: none !important;
  float: none !important;
  width: 100% !important;
  overflow: visible !important;
}

/* GP applies article styles that break card layout */
.post-card,
article.post-card {
  padding: 0 !important;
  margin: 0 !important;
  float: none !important;
  width: 100% !important;
  clear: none !important;
}

/* GP grid-container constrains width — our .container handles this */
.grid-container {
  max-width: none !important;
  padding: 0 !important;
}

/* Ensure CSS Grid works — GP uses floats which conflict */
.posts-grid,
.posts-grid-3,
.posts-grid-2,
.features-grid {
  display: grid !important;
  float: none !important;
  clear: none !important;
  overflow: visible !important;
}

.posts-grid-3 {
  grid-template-columns: repeat(3, 1fr) !important;
}

.posts-grid-2 {
  grid-template-columns: repeat(2, 1fr) !important;
}

.features-grid {
  grid-template-columns: repeat(4, 1fr) !important;
}

/* GP's word-wrap causes vertical text in narrow contexts */
.post-card *,
.feature-card *,
.cta-content *,
.section-header * {
  word-wrap: normal !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
  hyphens: none !important;
}

/* GP's .inside-article adds padding — remove for cards */
.post-card .inside-article,
article.post-card .inside-article {
  padding: 0 !important;
}

/* GP #page wrapper — ensure full width */
#page {
  max-width: none !important;
  overflow-x: hidden;
}

/* GP header — hide GP's default, we use our own */
#masthead.site-header,
.gen-sidebar-nav {
  display: none !important;
}

/* GP footer — hide if we have custom */
.site-info {
  display: none !important;
}

/* Remove GP's content-area float constraints */
#content,
.content-area,
#primary {
  float: none !important;
  width: 100% !important;
  max-width: none !important;
}

/* Section full-width override */
.hero-section,
.features-section,
.latest-articles,
.category-section,
.cta-banner,
.site-footer-custom {
  width: 100vw !important;
  margin-left: calc(-50vw + 50%) !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Responsive overrides — must beat GP's mobile grid */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .posts-grid-3 { grid-template-columns: repeat(2, 1fr) !important; }
}

@media (max-width: 768px) {
  .posts-grid-3 { grid-template-columns: 1fr !important; }
  .features-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

@media (max-width: 480px) {
  .features-grid { grid-template-columns: 1fr 1fr !important; }
  .posts-grid-2 { grid-template-columns: 1fr !important; }
}
/* ═══════════════════════════════════════════════════════
   Airlines & Destinations — Main Stylesheet
   Design: Dark header, gold accents, aviation polish
═══════════════════════════════════════════════════════ */

/* ───────────────────────────────────────
   DESIGN TOKENS
─────────────────────────────────────── */
:root {
  /* Colors */
  --gold-start:   #c9872e;
  --gold-end:     #f0c96e;
  --gold-mid:     #daa84e;
  --blue-dark:    #164685;
  --near-black:   #1A1A1A;
  --header-bg:    rgba(10, 15, 30, 0.95);
  --text-primary: #1A1A1A;
  --text-muted:   #666;
  --text-light:   #999;
  --bg-white:     #ffffff;
  --bg-light:     #f8f9fc;
  --bg-dark:      #0a0f1e;
  --border:       #e8e8e8;

  /* Typography */
  --font-base:    'Space Grotesk', sans-serif;
  --font-size-sm: 0.875rem;
  --font-size-md: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.375rem;
  --font-size-2xl: 1.75rem;
  --font-size-3xl: 2.25rem;
  --font-size-4xl: 3rem;

  /* Spacing */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  1.5rem;
  --space-lg:  2.5rem;
  --space-xl:  4rem;
  --space-2xl: 6rem;

  /* Border radius */
  --radius-sm:   8px;
  --radius-md:   16px;
  --radius-lg:   24px;
  --radius-pill: 50px;

  /* Shadows */
  --shadow-sm:   0 2px 8px rgba(0,0,0,0.08);
  --shadow-md:   0 4px 20px rgba(0,0,0,0.12);
  --shadow-lg:   0 8px 40px rgba(0,0,0,0.16);
  --shadow-gold: 0 4px 20px rgba(201,135,46,0.3);

  /* Transitions */
  --trans-fast: 150ms ease;
  --trans-base: 250ms ease;
  --trans-slow: 400ms ease;

  /* Layout */
  --container:    1200px;
  --header-h:     72px;
}

/* ───────────────────────────────────────
   RESET & BASE
─────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-base);
  font-size: var(--font-size-md);
  color: var(--text-primary);
  background: var(--bg-white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--blue-dark);
  text-decoration: none;
  transition: color var(--trans-fast);
}
a:hover { color: var(--gold-start); }

/* ───────────────────────────────────────
   CONTAINER
─────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* ───────────────────────────────────────
   SECTION HELPERS
─────────────────────────────────────── */
.section-pad      { padding: var(--space-xl) 0; }
.section-alt      { background: var(--bg-light); }
.section-dark     { background: var(--bg-dark); color: #fff; }

/* ───────────────────────────────────────
   BUTTONS
─────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 0.625rem 1.5rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-base);
  font-size: var(--font-size-md);
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform var(--trans-base), box-shadow var(--trans-base), background var(--trans-base);
  white-space: nowrap;
  text-decoration: none;
}
.btn:hover {
  transform: translateY(-2px);
  text-decoration: none;
}
.btn-lg {
  padding: 0.875rem 2rem;
  font-size: var(--font-size-lg);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-start), var(--gold-end));
  color: var(--near-black);
  border-color: transparent;
  box-shadow: var(--shadow-gold);
}
.btn-gold:hover {
  box-shadow: 0 6px 28px rgba(201,135,46,0.45);
  color: var(--near-black);
}

.btn-outline {
  background: transparent;
  color: var(--blue-dark);
  border-color: var(--blue-dark);
}
.btn-outline:hover {
  background: var(--blue-dark);
  color: #fff;
}

.btn-outline-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.7);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
}

/* ───────────────────────────────────────
   SITE HEADER
─────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: background var(--trans-base), box-shadow var(--trans-base);
}
.site-header.scrolled {
  background: rgba(10, 15, 30, 0.99);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-md);
  gap: var(--space-md);
}

/* Branding */
.site-branding .site-logo-text,
.site-branding .custom-logo-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.01em;
}
.site-branding .custom-logo-link img {
  height: 44px;
  width: auto;
}
.site-branding .logo-icon {
  font-size: 1.4rem;
  filter: drop-shadow(0 0 6px var(--gold-mid));
}

/* Primary Nav */
.primary-nav { flex: 1; display: flex; justify-content: flex-end; }
.primary-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 0.25rem;
}
.primary-menu li a {
  display: block;
  padding: 0.5rem 0.875rem;
  color: rgba(255,255,255,0.85);
  font-size: var(--font-size-sm);
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: color var(--trans-fast), background var(--trans-fast);
}
.primary-menu li a:hover,
.primary-menu li.current-menu-item > a {
  color: var(--gold-mid);
  background: rgba(255,255,255,0.06);
}

/* Dropdown */
.primary-menu .sub-menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 220px;
  background: rgba(10,15,30,0.97);
  border-radius: var(--radius-sm);
  padding: var(--space-xs);
  box-shadow: var(--shadow-lg);
  list-style: none;
}
.primary-menu li:hover > .sub-menu { display: block; }
.primary-menu .sub-menu li a {
  padding: 0.5rem 0.875rem;
  font-size: var(--font-size-sm);
}

/* Nav Toggle (mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform var(--trans-base), opacity var(--trans-base);
}
.nav-toggle.active .toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active .toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle.active .toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Body offset for fixed header */
body { padding-top: var(--header-h); }
.airlines-homepage { padding-top: 0; } /* Homepage hero goes under header */

/* ───────────────────────────────────────
   HERO SECTION
─────────────────────────────────────── */
.hero-section {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  margin-top: calc(-1 * var(--header-h)); /* Overlap header */
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.02);
  transition: transform 8s ease;
}
.hero-section:hover .hero-bg { transform: scale(1.0); }
.hero-bg-default {
  background-image: linear-gradient(135deg, #0a0f1e 0%, #164685 50%, #1a2a4a 100%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom right,
    rgba(10,15,30,0.75) 0%,
    rgba(22,70,133,0.45) 50%,
    rgba(10,15,30,0.65) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: calc(var(--header-h) + var(--space-xl));
  padding-bottom: var(--space-xl);
  text-align: center;
  color: #fff;
  max-width: 760px;
  margin: 0 auto;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-md);
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}
.hero-title span {
  background: linear-gradient(135deg, var(--gold-start), var(--gold-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255,255,255,0.85);
  margin-bottom: var(--space-lg);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
}

/* ───────────────────────────────────────
   FEATURES SECTION
─────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

.feature-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: var(--space-lg) var(--space-md);
  text-align: center;
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: transform var(--trans-base), box-shadow var(--trans-base), border-color var(--trans-base);
  display: block;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold-start);
  color: inherit;
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-sm);
  display: block;
}

.feature-card h3 {
  font-size: var(--font-size-xl);
  font-weight: 700;
  margin-bottom: var(--space-xs);
  color: var(--near-black);
}

.feature-card p {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  line-height: 1.55;
}

/* ───────────────────────────────────────
   SECTION HEADER
─────────────────────────────────────── */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
  gap: var(--space-md);
  flex-wrap: wrap;
}
.section-title {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: var(--near-black);
  position: relative;
}
.section-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-start), var(--gold-end));
  border-radius: 2px;
  margin-top: 8px;
}

/* ───────────────────────────────────────
   POST CARDS & GRID
─────────────────────────────────────── */
.posts-grid {
  display: grid;
  gap: var(--space-md);
}
.posts-grid-3 { grid-template-columns: repeat(3, 1fr); }
.posts-grid-2 { grid-template-columns: repeat(2, 1fr); }

.post-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform var(--trans-base), box-shadow var(--trans-base);
  display: flex;
  flex-direction: column;
}
.post-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.card-thumbnail-link { display: block; overflow: hidden; }
.card-thumbnail {
  aspect-ratio: 3/2;
  overflow: hidden;
}
.card-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--trans-slow);
}
.post-card:hover .card-thumbnail img { transform: scale(1.04); }

.card-body {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-category { margin-bottom: 0.5rem; }
.category-badge {
  display: inline-block;
  padding: 0.2rem 0.75rem;
  background: linear-gradient(135deg, var(--gold-start), var(--gold-end));
  color: var(--near-black);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
}
.category-badge:hover { color: var(--near-black); opacity: 0.9; }

.card-title {
  font-size: var(--font-size-lg);
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.5rem;
}
.card-title a {
  color: var(--near-black);
  text-decoration: none;
}
.card-title a:hover { color: var(--gold-start); }

.card-meta {
  font-size: var(--font-size-sm);
  color: var(--text-light);
  margin-bottom: 0.75rem;
}

.card-excerpt {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: var(--space-md);
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-readmore {
  align-self: flex-start;
  font-size: var(--font-size-sm);
  padding: 0.4rem 1rem;
}

/* ───────────────────────────────────────
   CTA BANNER
─────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, var(--blue-dark) 0%, #1a3a70 50%, var(--near-black) 100%);
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '✈';
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%) rotate(-20deg);
  font-size: 12rem;
  opacity: 0.04;
  pointer-events: none;
}

.cta-content {
  text-align: center;
  color: #fff;
  max-width: 640px;
  margin: 0 auto;
}
.cta-title {
  font-size: var(--font-size-3xl);
  font-weight: 700;
  margin-bottom: var(--space-sm);
}
.cta-text {
  color: rgba(255,255,255,0.8);
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-lg);
}

/* ───────────────────────────────────────
   ARCHIVE HERO
─────────────────────────────────────── */
.archive-hero {
  padding: var(--space-xl) 0;
  text-align: center;
}
.archive-hero-content { max-width: 640px; margin: 0 auto; }
.archive-badge {
  display: inline-block;
  padding: 0.2rem 1rem;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-pill);
  font-size: var(--font-size-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold-mid);
  margin-bottom: var(--space-sm);
}
.archive-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  margin-bottom: var(--space-sm);
}
.archive-description {
  color: rgba(255,255,255,0.75);
  font-size: var(--font-size-lg);
}

/* ───────────────────────────────────────
   PAGINATION
─────────────────────────────────────── */
.archive-pagination {
  margin-top: var(--space-xl);
  text-align: center;
}
.archive-pagination .nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  flex-wrap: wrap;
}
.archive-pagination a,
.archive-pagination span.current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-weight: 500;
  font-size: var(--font-size-sm);
  transition: background var(--trans-fast), color var(--trans-fast);
}
.archive-pagination a:hover {
  background: var(--blue-dark);
  color: #fff;
  border-color: var(--blue-dark);
}
.archive-pagination span.current {
  background: linear-gradient(135deg, var(--gold-start), var(--gold-end));
  color: var(--near-black);
  border-color: transparent;
  font-weight: 700;
}

/* ───────────────────────────────────────
   SINGLE ARTICLE
─────────────────────────────────────── */
.single-wrap, .page-wrap {
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
}

.single-article { max-width: 780px; margin: 0 auto; }

.article-header { margin-bottom: var(--space-lg); }
.article-cats { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: var(--space-sm); }
.article-title {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: var(--space-sm);
  color: var(--near-black);
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--font-size-sm);
  color: var(--text-light);
}
.meta-sep { color: var(--border); }

.article-featured-image {
  margin: var(--space-md) 0 var(--space-lg);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.article-featured-image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}

/* Article Content Typography */
.article-content {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: #2a2a2a;
}
.article-content h2 {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  margin: var(--space-lg) 0 var(--space-sm);
  color: var(--near-black);
}
.article-content h3 {
  font-size: var(--font-size-xl);
  font-weight: 600;
  margin: var(--space-md) 0 var(--space-xs);
}
.article-content p { margin-bottom: var(--space-md); }
.article-content a { color: var(--blue-dark); text-decoration: underline; }
.article-content a:hover { color: var(--gold-start); }
.article-content ul, .article-content ol {
  margin: 0 0 var(--space-md) var(--space-md);
}
.article-content li { margin-bottom: 0.4rem; }
.article-content blockquote {
  border-left: 4px solid var(--gold-start);
  padding: var(--space-sm) var(--space-md);
  margin: var(--space-md) 0;
  background: var(--bg-light);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--text-muted);
}
.article-content img {
  border-radius: var(--radius-sm);
  margin: var(--space-md) 0;
}
.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--space-md);
  font-size: var(--font-size-sm);
}
.article-content th, .article-content td {
  border: 1px solid var(--border);
  padding: 0.625rem 0.875rem;
  text-align: left;
}
.article-content th {
  background: var(--bg-dark);
  color: #fff;
  font-weight: 600;
}

/* Tags */
.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
}
.tags-label {
  font-size: var(--font-size-sm);
  color: var(--text-light);
  font-weight: 600;
  margin-right: 0.25rem;
}
.tag-badge {
  display: inline-block;
  padding: 0.2rem 0.75rem;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 0.8125rem;
  color: var(--text-muted);
  transition: border-color var(--trans-fast), color var(--trans-fast);
}
.tag-badge:hover { border-color: var(--gold-start); color: var(--gold-start); }

/* Related Posts */
.related-posts { margin-top: var(--space-xl); }
.related-title {
  font-size: var(--font-size-xl);
  font-weight: 700;
  margin-bottom: var(--space-lg);
}

/* ───────────────────────────────────────
   PAGE ARTICLE
─────────────────────────────────────── */
.page-article { max-width: 860px; margin: 0 auto; }
.page-header { margin-bottom: var(--space-lg); }
.page-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--near-black);
}
.page-featured-image {
  margin-bottom: var(--space-lg);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.page-content { font-size: 1.0625rem; line-height: 1.75; }
.page-content p { margin-bottom: var(--space-md); }
.page-content h2 { font-size: var(--font-size-2xl); font-weight: 700; margin: var(--space-lg) 0 var(--space-sm); }
.page-content h3 { font-size: var(--font-size-xl); font-weight: 600; margin: var(--space-md) 0 var(--space-xs); }
.page-content a { color: var(--blue-dark); text-decoration: underline; }
.page-content ul, .page-content ol { margin: 0 0 var(--space-md) var(--space-md); }

/* ───────────────────────────────────────
   404 PAGE
─────────────────────────────────────── */
.error-404 {
  text-align: center;
  padding: var(--space-2xl) 0;
}
.error-icon {
  font-size: 5rem;
  margin-bottom: var(--space-md);
  display: block;
  animation: float 3s ease-in-out infinite;
}
.error-title {
  font-size: var(--font-size-3xl);
  font-weight: 700;
  margin-bottom: var(--space-sm);
}
.error-text {
  font-size: var(--font-size-lg);
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-20deg); }
  50% { transform: translateY(-10px) rotate(-20deg); }
}

/* ───────────────────────────────────────
   FOOTER
─────────────────────────────────────── */
.site-footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.75);
  padding: var(--space-xl) 0 0;
}

.footer-inner { max-width: var(--container); margin: 0 auto; padding: 0 var(--space-md); }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-lg);
  padding-bottom: var(--space-xl);
}

.footer-logo-text {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
  text-decoration: none;
}
.footer-tagline { font-size: var(--font-size-sm); line-height: 1.6; }

.footer-heading {
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-sm);
}

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a {
  color: rgba(255,255,255,0.65);
  font-size: var(--font-size-sm);
  transition: color var(--trans-fast);
}
.footer-links a:hover { color: var(--gold-mid); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: var(--space-md) 0;
  text-align: center;
}
.footer-copyright {
  font-size: var(--font-size-sm);
  color: rgba(255,255,255,0.4);
}
.footer-copyright a {
  color: rgba(255,255,255,0.6);
}
.footer-copyright a:hover { color: var(--gold-mid); }

/* ───────────────────────────────────────
   GENERATEPRESS OVERRIDES
─────────────────────────────────────── */
/* Remove GP default sidebar, content-wrap etc that conflict */
.generate-columns-container { max-width: 100% !important; }
#page { padding-top: 0 !important; }
.site-content { padding: 0 !important; }
.site-content .inside-site-content { padding: 0 !important; }
#site-header-wrap { display: none !important; } /* Hide GP's default header */
#site-footer { display: none !important; }      /* Hide GP's default footer */

/* GP's content area — reset */
.content-area { width: 100% !important; margin: 0 !important; padding: 0 !important; }
.site-main { width: 100%; }

/* ───────────────────────────────────────
   CONTACT FORM 7
─────────────────────────────────────── */
.wpcf7 { max-width: 640px; }
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea,
.wpcf7 select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-base);
  font-size: var(--font-size-md);
  transition: border-color var(--trans-fast);
}
.wpcf7 input:focus, .wpcf7 textarea:focus {
  outline: none;
  border-color: var(--blue-dark);
}
.wpcf7 input[type="submit"] {
  background: linear-gradient(135deg, var(--gold-start), var(--gold-end));
  color: var(--near-black);
  border: none;
  border-radius: var(--radius-pill);
  font-family: var(--font-base);
  font-size: var(--font-size-md);
  font-weight: 700;
  padding: 0.75rem 2rem;
  cursor: pointer;
  transition: box-shadow var(--trans-base), transform var(--trans-base);
}
.wpcf7 input[type="submit"]:hover {
  box-shadow: var(--shadow-gold);
  transform: translateY(-2px);
}

/* ───────────────────────────────────────
   UTILITY CLASSES
─────────────────────────────────────── */
.no-results { text-align: center; padding: var(--space-2xl) 0; }
.no-results p { font-size: var(--font-size-lg); color: var(--text-muted); margin-bottom: var(--space-lg); }

/* ───────────────────────────────────────
   RESPONSIVE
─────────────────────────────────────── */

/* Large Tablets */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-md); }
  .posts-grid-3 { grid-template-columns: repeat(2, 1fr); }
}

/* Tablets */
@media (max-width: 768px) {
  :root {
    --space-xl: 3rem;
    --space-2xl: 4rem;
  }

  .primary-nav { display: none; }
  .primary-nav.is-open { display: flex; }
  .nav-toggle { display: flex; }

  .primary-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: rgba(10,15,30,0.99);
    padding: var(--space-md);
    flex-direction: column;
    align-items: stretch;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  .primary-menu {
    flex-direction: column;
    gap: 0;
  }
  .primary-menu li a {
    padding: 0.875rem 1rem;
    font-size: var(--font-size-md);
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }
  .primary-menu .sub-menu {
    position: static;
    background: rgba(255,255,255,0.05);
    display: none;
    border-radius: var(--radius-sm);
    margin-top: 0.25rem;
  }
  .primary-menu li.menu-open > .sub-menu { display: block; }

  .hero-section { min-height: 70vh; }
  .hero-content { padding-top: calc(var(--header-h) + 2rem); }

  .section-header { flex-direction: column; align-items: flex-start; }
  .posts-grid-3 { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-sm); }

  .footer-grid { grid-template-columns: 1fr; }
  .single-article, .page-article { max-width: 100%; }
}

/* Mobile */
@media (max-width: 480px) {
  :root { --space-xl: 2.5rem; }

  .features-grid { grid-template-columns: 1fr 1fr; }
  .hero-title { font-size: 1.75rem; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 100%; max-width: 280px; justify-content: center; }

  .posts-grid-2 { grid-template-columns: 1fr; }
  .cta-title { font-size: var(--font-size-2xl); }

  .article-title { font-size: 1.5rem; }
  .page-title { font-size: 1.5rem; }
}

/* Print */
@media print {
  .site-header, .site-footer, .nav-toggle, .hero-section, .cta-banner { display: none; }
  body { padding-top: 0; }
}
