/* Norfolk Aviation - Design System */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --red: #c5221f;
  --red-dark: #a01c1a;
  --dark: #1a1a1a;
  --gray-900: #222;
  --gray-700: #444;
  --gray-500: #777;
  --gray-300: #ccc;
  --gray-100: #f5f5f5;
  --white: #fff;
  --font: 'Inter', sans-serif;
  --max-width: 1200px;
  --transition: 0.3s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--gray-900);
  line-height: 1.6;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; transition: color var(--transition); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* ============ HEADER / NAV ============ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid rgba(0,0,0,0.08);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.1); }

.nav-wrap {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--max-width); margin: 0 auto; padding: 0 24px; height: 72px;
}

.nav-logo img { height: 32px; width: auto; }

.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--gray-700);
  letter-spacing: 0.3px; position: relative; padding: 4px 0;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px;
  background: var(--red); transition: width var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--red); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-phone { font-size: 16px; font-weight: 700; color: var(--red); }
.nav-phone small { display: block; font-size: 11px; font-weight: 400; color: var(--gray-500); text-align: right; }

/* Services Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown > a::before {
  content: ''; display: inline-block; width: 0; height: 0;
  border-left: 4px solid transparent; border-right: 4px solid transparent;
  border-top: 4px solid currentColor; margin-left: 6px; vertical-align: middle;
}
.dropdown-menu {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  background: var(--white); border-radius: 8px; padding: 12px 0;
  min-width: 220px; box-shadow: 0 10px 40px rgba(0,0,0,0.12);
  opacity: 0; visibility: hidden; transition: all var(--transition);
  margin-top: 12px;
}
.nav-dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; margin-top: 4px; }
.dropdown-menu a {
  display: block; padding: 10px 20px; font-size: 13px; color: var(--gray-700);
}
.dropdown-menu a:hover { background: var(--gray-100); color: var(--red); }
.dropdown-menu a::after { display: none; }

/* Mobile Nav */
.nav-toggle {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  background: none; border: none; padding: 8px;
}
.nav-toggle span {
  width: 24px; height: 2px; background: var(--dark);
  transition: all var(--transition);
}
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============ HERO ============ */
.hero {
  position: relative; min-height: 480px;
  display: flex; align-items: center; justify-content: center;
  text-align: center; color: var(--white); margin-top: 72px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.4) 100%);
}
.hero-content { position: relative; z-index: 1; padding: 60px 24px; }
.hero-label {
  font-size: 12px; letter-spacing: 3px; text-transform: uppercase;
  font-weight: 500; opacity: 0.85; margin-bottom: 12px;
}
.hero h1 { font-size: 48px; font-weight: 800; margin-bottom: 8px; }
.hero p { font-size: 16px; opacity: 0.9; font-weight: 300; }

/* Home Hero - taller */
.hero--home { min-height: 560px; }

/* Search Box */
.search-box {
  background: var(--white); color: var(--dark); border-radius: 12px;
  padding: 32px 40px; text-align: center; margin-top: -48px;
  position: relative; z-index: 2; box-shadow: 0 8px 40px rgba(0,0,0,0.1);
  max-width: 640px; margin-left: auto; margin-right: auto;
}
.search-box h2 { font-size: 22px; font-weight: 700; margin-bottom: 16px; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: 50px; font-size: 14px;
  font-weight: 600; cursor: pointer; border: none;
  transition: all var(--transition); letter-spacing: 0.3px;
}
.btn--red { background: var(--red); color: var(--white); }
.btn--red:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(197,34,31,0.3); }
.btn--outline {
  background: transparent; color: var(--dark);
  border: 2px solid var(--gray-300);
}
.btn--outline:hover { border-color: var(--red); color: var(--red); }
.btn--white { background: var(--white); color: var(--dark); }
.btn--white:hover { background: var(--gray-100); }
.btn--dark { background: var(--dark); color: var(--white); }
.btn--dark:hover { background: #333; }

/* ============ SECTIONS ============ */
.section { padding: 80px 0; }
.section--gray { background: var(--gray-100); }
.section--dark { background: var(--dark); color: var(--white); }

.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 { font-size: 32px; font-weight: 800; margin-bottom: 8px; }
.section-header p { color: var(--gray-500); font-size: 16px; max-width: 560px; margin: 0 auto; }

.separator {
  display: flex; gap: 6px; justify-content: center; margin: 16px 0;
}
.separator span {
  width: 12px; height: 3px; background: var(--red); border-radius: 2px;
}

/* ============ SERVICE CARDS ============ */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }

.service-card {
  text-align: center; padding: 32px 24px;
  border-radius: 12px; transition: all var(--transition);
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.08); }
.service-icon {
  width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  background: var(--gray-100); color: var(--red); font-size: 22px;
}
.service-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.service-card p { font-size: 14px; color: var(--gray-500); line-height: 1.7; }

/* ============ AIRCRAFT GRID ============ */
.aircraft-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }

.aircraft-card {
  border-radius: 12px; overflow: hidden; background: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: all var(--transition); border: 1px solid rgba(0,0,0,0.06);
}
.aircraft-card:hover { transform: translateY(-6px); box-shadow: 0 16px 48px rgba(0,0,0,0.12); }
.aircraft-card-img {
  height: 200px; overflow: hidden;
}
.aircraft-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.aircraft-card:hover .aircraft-card-img img { transform: scale(1.05); }
.aircraft-card-body { padding: 20px; }
.aircraft-card-body h3 { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.aircraft-card-body .specs { font-size: 13px; color: var(--gray-500); margin-bottom: 4px; }
.aircraft-card-body .location { font-size: 13px; color: var(--gray-500); margin-bottom: 12px; }
.aircraft-card-body .price-row { display: flex; align-items: center; gap: 8px; }
.aircraft-card-body .price-label { font-size: 13px; color: var(--gray-500); }
.aircraft-card-body .price { font-size: 18px; font-weight: 700; color: var(--red); }

/* ============ STATS ============ */
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.stat-card {
  text-align: center; padding: 40px 24px; background: var(--white);
  border-radius: 12px; border: 1px solid rgba(0,0,0,0.06);
}
.stat-number { font-size: 42px; font-weight: 800; color: var(--dark); margin-bottom: 8px; }
.stat-label { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.stat-desc { font-size: 13px; color: var(--gray-500); }

/* ============ APPRAISALS ============ */
.appraisal-section { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.appraisal-content h2 { font-size: 32px; font-weight: 800; margin-bottom: 8px; }
.appraisal-content .subtitle { color: var(--red); font-weight: 600; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.appraisal-content p { color: var(--gray-500); font-size: 15px; line-height: 1.8; }
.appraisal-img { border-radius: 16px; overflow: hidden; }
.appraisal-img img { width: 100%; }

/* ============ BLOG CARDS ============ */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.blog-grid--featured { grid-template-columns: repeat(2, 1fr); }

.blog-card {
  border-radius: 12px; overflow: hidden; background: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06); transition: all var(--transition);
  border: 1px solid rgba(0,0,0,0.06);
}
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.1); }
.blog-card-img { height: 200px; overflow: hidden; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.blog-card:hover .blog-card-img img { transform: scale(1.05); }
.blog-card-body { padding: 20px; }
.blog-card-body h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; line-height: 1.4; }
.blog-card-body .tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.blog-card-body .tag {
  font-size: 11px; font-weight: 600; color: var(--red);
  background: rgba(197,34,31,0.08); padding: 4px 10px; border-radius: 20px;
}
.blog-card-body p { font-size: 14px; color: var(--gray-500); line-height: 1.7; margin-bottom: 12px; }
.blog-card-body .read-more { font-size: 13px; font-weight: 600; color: var(--red); display: inline-flex; align-items: center; gap: 4px; }
.blog-card-body .read-more:hover { gap: 8px; }

/* ============ CTA BANNER ============ */
.cta-banner {
  background: var(--dark); color: var(--white); padding: 60px 0;
  position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ''; position: absolute; top: 0; right: 0;
  width: 50%; height: 100%;
  background: linear-gradient(135deg, rgba(197,34,31,0.15) 0%, transparent 100%);
}
.cta-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.cta-inner h2 { font-size: 28px; font-weight: 800; margin-bottom: 8px; }
.cta-inner p { opacity: 0.8; margin-bottom: 24px; }
.cta-checks { display: flex; flex-direction: column; gap: 12px; }
.cta-checks li { display: flex; align-items: center; gap: 10px; font-size: 14px; opacity: 0.9; }
.cta-checks li::before {
  content: '✓'; width: 22px; height: 22px; border-radius: 50%;
  background: var(--red); display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; flex-shrink: 0;
}

/* ============ CONTACT ============ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 60px; }

.contact-info-item {
  display: flex; gap: 16px; align-items: flex-start; margin-bottom: 28px;
  padding-bottom: 28px; border-bottom: 1px solid var(--gray-100);
}
.contact-info-item:last-child { border-bottom: none; }
.contact-icon {
  width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(197,34,31,0.08); color: var(--red); font-size: 20px;
}
.contact-info-item h4 { font-size: 16px; font-weight: 700; margin-bottom: 2px; }
.contact-info-item p { font-size: 14px; color: var(--gray-500); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-row--3 { grid-template-columns: 1fr 1fr 1fr; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 16px; border: 1px solid var(--gray-300);
  border-radius: 8px; font-family: var(--font); font-size: 14px;
  transition: border-color var(--transition);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--red);
}
.form-group textarea { min-height: 120px; resize: vertical; }

/* ============ SERVICES PAGE ============ */
.service-block {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
  align-items: center; padding: 60px 0;
  border-bottom: 1px solid var(--gray-100);
}
.service-block:nth-child(even) .service-block-img { order: -1; }
.service-block-label { font-size: 12px; color: var(--red); font-weight: 600; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 8px; }
.service-block h3 { font-size: 28px; font-weight: 800; margin-bottom: 12px; }
.service-block p { color: var(--gray-500); font-size: 15px; line-height: 1.8; margin-bottom: 20px; }
.service-block-img { border-radius: 12px; overflow: hidden; }
.service-block-img img { width: 100%; height: 320px; object-fit: cover; }

/* ============ LISTING DETAIL ============ */
.listing-hero { min-height: 320px; }
.listing-breadcrumb { font-size: 13px; opacity: 0.8; margin-top: 8px; }
.listing-breadcrumb a { text-decoration: underline; }

.listing-overview {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
  padding: 48px 0;
}
.listing-gallery { border-radius: 12px; overflow: hidden; }
.listing-gallery img { width: 100%; }
.listing-thumbnails { display: flex; gap: 8px; margin-top: 12px; }
.listing-thumbnails img {
  width: 64px; height: 48px; object-fit: cover; border-radius: 6px;
  cursor: pointer; opacity: 0.6; transition: opacity var(--transition);
  border: 2px solid transparent;
}
.listing-thumbnails img.active, .listing-thumbnails img:hover { opacity: 1; border-color: var(--red); }

.listing-info h2 { font-size: 28px; font-weight: 800; margin-bottom: 4px; }
.listing-info .listing-specs { font-size: 14px; color: var(--gray-500); margin-bottom: 8px; }
.listing-info .listing-price { font-size: 24px; font-weight: 800; color: var(--red); margin-bottom: 16px; }
.listing-info .listing-desc { font-size: 15px; color: var(--gray-500); line-height: 1.8; margin-bottom: 16px; }
.listing-info .listing-meta { font-size: 14px; margin-bottom: 4px; }
.listing-info .listing-meta svg { margin-right: 6px; }

/* Tabs */
.tabs { display: flex; gap: 0; border-bottom: 2px solid var(--gray-100); margin-bottom: 24px; }
.tab-btn {
  padding: 12px 24px; font-size: 14px; font-weight: 600;
  background: none; border: none; cursor: pointer; color: var(--gray-500);
  border-bottom: 2px solid transparent; margin-bottom: -2px;
  transition: all var(--transition);
}
.tab-btn.active, .tab-btn:hover { color: var(--dark); border-bottom-color: var(--red); }
.tab-content { display: none; }
.tab-content.active { display: block; }
.tab-content h3 { font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.tab-content h4 { font-size: 16px; font-weight: 700; margin: 20px 0 8px; }
.tab-content ul { padding-left: 20px; margin-bottom: 16px; }
.tab-content ul li { font-size: 14px; color: var(--gray-500); margin-bottom: 6px; list-style: disc; }

/* ============ FAQ BOX ============ */
.faq-box {
  background: var(--gray-100); border-radius: 12px; padding: 32px;
  margin-top: 40px;
}
.faq-box h3 { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.faq-box p { color: var(--gray-500); margin-bottom: 16px; }

/* ============ FILTER BAR ============ */
.filter-bar {
  background: var(--gray-100); padding: 24px 0; margin-top: -1px;
}
.filter-inner {
  display: flex; align-items: center; gap: 32px; flex-wrap: wrap;
}
.filter-inner label { font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.filter-inner select, .filter-inner input[type="range"] {
  padding: 8px 16px; border: 1px solid var(--gray-300); border-radius: 8px;
  font-family: var(--font); font-size: 14px;
}

/* ============ FOOTER ============ */
.site-footer { background: var(--white); padding-top: 32px; text-align: center; }
.footer-phone { font-size: 18px; font-weight: 700; color: var(--red); margin-bottom: 24px; }
.footer-phone a { color: var(--red); }
.footer-links {
  display: flex; justify-content: center; gap: 32px; padding: 20px 0;
  border-top: 1px solid var(--gray-100);
}
.footer-links a { font-size: 14px; color: var(--gray-500); }
.footer-links a:hover { color: var(--red); }
.footer-links a.active { color: var(--red); }
.footer-copy {
  font-size: 12px; color: var(--gray-500); padding: 20px 0;
  border-top: 1px solid var(--gray-100);
}

/* ============ BANNERS (Sell/Buy dual) ============ */
.dual-banner { display: grid; grid-template-columns: 1fr 1fr; }
.dual-banner-item {
  position: relative; padding: 60px 40px; color: var(--white);
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 240px; overflow: hidden;
}
.dual-banner-item::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.2) 100%);
  z-index: 1;
}
.dual-banner-item > * { position: relative; z-index: 2; }
.dual-banner-item h3 { font-size: 28px; font-weight: 800; margin-bottom: 4px; }
.dual-banner-item p { opacity: 0.85; margin-bottom: 16px; }

/* Values row */
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; text-align: center; padding: 48px 0; }
.value-item svg { width: 48px; height: 48px; color: var(--red); margin: 0 auto 12px; }
.value-item h4 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.value-item p { font-size: 14px; color: var(--gray-500); }

/* ============ NEWS CATEGORY CARDS ============ */
.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 48px; }
.category-card {
  display: flex; align-items: center; gap: 16px; padding: 20px;
  border-radius: 12px; background: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06); border: 1px solid rgba(0,0,0,0.06);
}
.category-card-icon {
  width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(197,34,31,0.08); color: var(--red); font-size: 20px;
}
.category-card h4 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.category-card p { font-size: 13px; color: var(--gray-500); }

/* ============ RESPONSIVE ============ */
@media (max-width: 968px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute;
    top: 72px; left: 0; right: 0; background: var(--white);
    padding: 24px; gap: 16px; box-shadow: 0 10px 40px rgba(0,0,0,0.1);
  }
  .dropdown-menu {
    position: static; transform: none; box-shadow: none;
    padding-left: 16px; opacity: 1; visibility: visible; margin-top: 0;
  }
  .hero h1 { font-size: 32px; }
  .services-grid, .aircraft-grid, .blog-grid, .stats-grid,
  .category-grid, .values-grid { grid-template-columns: 1fr; }
  .blog-grid--featured { grid-template-columns: 1fr; }
  .contact-grid, .listing-overview, .appraisal-section,
  .service-block, .cta-inner { grid-template-columns: 1fr; }
  .dual-banner { grid-template-columns: 1fr; }
  .service-block:nth-child(even) .service-block-img { order: 0; }
  .filter-inner { flex-direction: column; align-items: stretch; }
}

@media (min-width: 969px) and (max-width: 1100px) {
  .aircraft-grid, .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
