/*
Theme Name: FlightMetrix
Theme URI: https://flightmetrix.com
Author: FlightMetrix
Author URI: https://flightmetrix.com
Description: Custom theme for FlightMetrix — Aviation Analytics & Risk Intelligence
Version: 1.0
License: All Rights Reserved
Text Domain: flightmetrix
*/

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

  :root {
    --navy: #0B2A45;
    --deep-blue: #0B4F8A;
    --mid-blue: #1B7FD4;
    --sky-blue: #22A7F0;
    --pale-blue: #E8F2FB;
    --ice: #F4F8FC;
    --slate: #3A5068;
    --light-slate: #6B8299;
    --warm-white: #FAFCFE;
    --font-display: 'Instrument Serif', Georgia, serif;
    --font-body: 'DM Sans', system-ui, sans-serif;
  }

  html { scroll-behavior: smooth; }

  body {
    font-family: var(--font-body);
    color: var(--navy);
    background: var(--warm-white);
    line-height: 1.7;
    overflow-x: hidden;
  }

  /* ─── NAV ─── */
  nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 48px;
    background: rgba(250, 252, 254, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(11, 79, 138, 0.08);
    transition: padding 0.3s ease, box-shadow 0.3s ease;
  }
  nav.scrolled {
    padding: 12px 48px;
    box-shadow: 0 4px 30px rgba(11, 42, 69, 0.06);
  }
  nav .logo-link { display: flex; align-items: center; text-decoration: none; }
  nav .logo-link svg { height: 48px; width: auto; }
  .nav-right { display: flex; align-items: center; gap: 36px; }
  .nav-right ul { list-style: none; display: flex; gap: 36px; align-items: center; }
  .nav-right ul li a {
    text-decoration: none; color: var(--slate);
    font-size: 13px; font-weight: 500; letter-spacing: 0.05em;
    text-transform: uppercase; transition: color 0.3s;
  }
  .nav-right ul li a:hover { color: var(--mid-blue); }
  .login-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 24px;
    background: var(--navy);
    color: white; font-family: var(--font-body);
    font-size: 13px; font-weight: 600;
    letter-spacing: 0.05em; text-transform: uppercase;
    text-decoration: none; border-radius: 4px;
    border: 1.5px solid var(--navy);
    transition: all 0.3s ease;
    cursor: pointer;
  }
  .login-btn:hover {
    background: transparent; color: var(--navy);
  }
  .login-btn svg { width: 15px; height: 15px; }

  /* ─── HERO — SPLIT LAYOUT ─── */
  .hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: relative;
  }

  /* Left: light side with logo */
  .hero-left {
    display: flex; flex-direction: column;
    justify-content: center;
    padding: 140px 64px 80px 64px;
    background: var(--warm-white);
    position: relative;
  }
  .hero-left::after {
    content: '';
    position: absolute; top: 0; right: 0; bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(11,79,138,0.1) 30%, rgba(11,79,138,0.1) 70%, transparent);
  }
  .hero-logo-wrap {
    margin-bottom: 48px;
    opacity: 0; animation: heroFadeUp 1s ease 0.2s forwards;
  }
  .hero-logo-wrap svg { width: min(580px, 90%); height: auto; display: block; }

  .hero-tagline {
    font-family: var(--font-display);
    font-size: clamp(30px, 3.5vw, 44px);
    color: var(--navy);
    line-height: 1.25;
    margin-bottom: 24px;
    opacity: 0; animation: heroFadeUp 1s ease 0.5s forwards;
  }
  .hero-sub {
    font-size: 15px; color: var(--light-slate);
    letter-spacing: 0.06em; text-transform: uppercase; font-weight: 500;
    opacity: 0; animation: heroFadeUp 1s ease 0.8s forwards;
  }
  .hero-sub span { color: var(--mid-blue); }

  /* Right: dark side with charts */
  .hero-right {
    background: linear-gradient(165deg, var(--navy) 0%, #0D3A60 40%, var(--deep-blue) 100%);
    position: relative; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
  }
  .hero-right::before {
    content: '';
    position: absolute; inset: 0;
    background:
      radial-gradient(ellipse 80% 60% at 60% 30%, rgba(34,167,240,0.1), transparent),
      radial-gradient(ellipse 60% 50% at 30% 80%, rgba(11,79,138,0.15), transparent);
    pointer-events: none;
  }

  .charts-stack {
    position: relative; z-index: 2;
    display: flex; flex-direction: column;
    gap: 16px;
    width: 82%; max-width: 490px;
    margin-left: -70px;
    margin-top: 70px;
    perspective: 1200px;
    perspective-origin: 200% 50%;
  }

  .chart-panel {
    opacity: 0;
    transform: rotateY(-16deg);
    transform-origin: right center;
  }
  .chart-panel:nth-child(1) { animation: chartFadeIn 1s ease 0.5s forwards; }
  .chart-panel:nth-child(2) { animation: chartFadeIn 1s ease 0.9s forwards; }

  /* Subtle animated grid on dark side */
  .hero-grid {
    position: absolute; inset: 0; overflow: hidden; opacity: 0.06;
  }
  .hero-grid .h-line, .hero-grid .v-line {
    position: absolute; background: var(--sky-blue);
  }
  .hero-grid .h-line {
    height: 1px; width: 100%; left: 0;
    animation: fadeGrid 3s ease-in-out infinite alternate;
  }
  .hero-grid .v-line {
    width: 1px; height: 100%; top: 0;
    animation: fadeGrid 3s ease-in-out infinite alternate;
  }
  @keyframes fadeGrid {
    0% { opacity: 0.3; } 100% { opacity: 1; }
  }

  @keyframes chartFadeIn {
    from { opacity: 0; transform: rotateY(-16deg) translateX(-20px) scale(0.97); }
    to { opacity: 1; transform: rotateY(-16deg) translateX(0) scale(1); }
  }
  .chart-panel svg { width: 100%; height: auto; display: block; filter: drop-shadow(-4px 6px 20px rgba(0,0,0,0.3)); }

  /* Bar grow animation via CSS on SVG rects */
  .td-bar { animation: svgBarGrow 0.6s cubic-bezier(0.25,0.46,0.45,0.94) forwards; }
  @keyframes svgBarGrow {
    from { transform: scaleY(0); }
    to { transform: scaleY(1); }
  }

  @keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
  }

  /* ─── SECTION COMMON ─── */
  section:not(.hero) { padding: 120px 48px; }
  .section-inner { max-width: 1080px; margin: 0 auto; }

  .section-label {
    font-size: 12px; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.14em; color: var(--mid-blue);
    margin-bottom: 16px;
    display: flex; align-items: center; gap: 12px;
  }
  .section-label::before {
    content: ''; display: block; width: 28px; height: 2px;
    background: linear-gradient(90deg, var(--mid-blue), var(--sky-blue));
  }

  .section-heading {
    font-family: var(--font-display);
    font-size: clamp(32px, 4vw, 48px);
    color: var(--navy); line-height: 1.2;
    margin-bottom: 32px;
  }

  /* ─── ABOUT ─── */
  .about { background: var(--warm-white); }
  .about-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 80px; align-items: start;
  }
  .about-text {
    font-size: 17px; color: var(--slate); line-height: 1.85;
  }
  .about-stats {
    display: grid; grid-template-columns: 1fr 1fr; gap: 32px;
    margin-top: 12px;
  }
  .stat-card {
    padding: 32px;
    background: white;
    border: 1px solid rgba(11, 79, 138, 0.06);
    border-radius: 4px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  .stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(11, 42, 69, 0.08);
  }
  .stat-icon {
    width: 36px; height: 36px; margin-bottom: 16px;
    color: var(--mid-blue);
  }
  .stat-title {
    font-size: 13px; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.08em; color: var(--light-slate);
    margin-bottom: 6px;
  }
  .stat-desc {
    font-size: 14px; color: var(--slate); line-height: 1.6;
  }

  /* ─── DIVIDER ─── */
  .divider-bar {
    height: 4px; max-width: 1080px; margin: 0 auto;
    background: linear-gradient(90deg, var(--deep-blue), var(--mid-blue), var(--sky-blue));
    border-radius: 2px; opacity: 0.3;
  }

  /* ─── LEADERSHIP ─── */
  .leadership { background: var(--ice); }
  .leadership-intro {
    text-align: center; max-width: 680px; margin: 0 auto 80px;
  }
  .leadership-intro .section-label { justify-content: center; }
  .leadership-intro .section-label::before { display: none; }

  .leader-cards { display: flex; flex-direction: column; gap: 48px; }

  .leader-card {
    display: grid; grid-template-columns: 220px 1fr;
    gap: 48px; align-items: center;
    background: white;
    border-radius: 6px;
    padding: 36px;
    border: 1px solid rgba(11, 79, 138, 0.06);
    box-shadow: 0 2px 20px rgba(11, 42, 69, 0.03);
    transition: box-shadow 0.4s ease;
  }
  .leader-card:hover {
    box-shadow: 0 8px 40px rgba(11, 42, 69, 0.07);
  }

  .leader-meta { position: relative; }
  .leader-role-badge {
    display: inline-block;
    font-size: 11px; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 6px 14px; border-radius: 3px;
    margin-bottom: 14px;
  }
  .leader-role-badge.vision {
    background: rgba(11, 79, 138, 0.08); color: var(--deep-blue);
  }
  .leader-role-badge.realization {
    background: rgba(34, 167, 240, 0.1); color: #1690CC;
  }

  .leader-avatar {
    width: 100%; aspect-ratio: 1;
    border-radius: 4px;
    background: linear-gradient(145deg, var(--navy) 0%, var(--deep-blue) 100%);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 16px;
    position: relative; overflow: hidden;
  }
  .leader-avatar::after {
    content: '';
    position: absolute; inset: 0;
    background:
      radial-gradient(circle at 70% 30%, rgba(34,167,240,0.15), transparent 60%),
      linear-gradient(135deg, transparent 40%, rgba(27,127,212,0.08));
  }
  .leader-avatar .initials {
    font-family: var(--font-display);
    font-size: 56px; color: rgba(255,255,255,0.2);
    position: relative; z-index: 1;
  }
  .leader-avatar img {
    width: 100%; height: 100%;
    object-fit: cover; object-position: center top;
    border-radius: 4px;
    position: relative; z-index: 1;
  }

  .leader-name {
    font-family: var(--font-display);
    font-size: 28px; color: var(--navy);
    margin-bottom: 4px;
  }

  .leader-bio {
    font-size: 15px; color: var(--slate); line-height: 1.75;
    padding-top: 4px;
  }
  .leader-bio::first-line { color: var(--navy); }

  /* ─── CONTACT STRIP ─── */
  .contact-strip {
    background: linear-gradient(165deg, var(--navy) 0%, #0D3A60 100%);
    padding: 80px 48px;
    text-align: center;
  }
  .contact-strip .section-heading {
    color: white; margin-bottom: 16px;
  }
  .contact-strip p {
    color: rgba(255,255,255,0.5); font-size: 16px; margin-bottom: 36px;
    max-width: 500px; margin-left: auto; margin-right: auto;
  }
  .contact-btn {
    display: inline-block;
    padding: 16px 40px;
    background: transparent;
    border: 1.5px solid rgba(255,255,255,0.25);
    color: white; font-family: var(--font-body);
    font-size: 14px; font-weight: 600;
    letter-spacing: 0.08em; text-transform: uppercase;
    text-decoration: none; border-radius: 3px;
    transition: all 0.3s ease;
    cursor: pointer;
  }
  .contact-btn:hover {
    background: white; color: var(--navy);
    border-color: white;
  }

  /* ─── FOOTER ─── */
  footer {
    background: #071D30;
    padding: 40px 48px;
    display: flex; align-items: center; justify-content: space-between;
    font-size: 13px; color: rgba(255,255,255,0.3);
  }
  footer .footer-logo svg { height: 36px; }
  footer .footer-logo {
    background: rgba(255,255,255,0.9);
    padding: 6px 14px 2px 6px;
    border-radius: 4px;
  }

  /* ─── RESPONSIVE ─── */
  @media (max-width: 1024px) {
    .hero { grid-template-columns: 1fr; }
    .hero-left { padding: 140px 48px 60px; }
    .hero-right { min-height: 50vh; }
    .charts-stack { max-width: 440px; perspective: 1400px; }
    .chart-panel, .chart-panel:nth-child(1), .chart-panel:nth-child(2) { transform: rotateY(-10deg); }
    @keyframes chartFadeIn {
      from { opacity: 0; transform: rotateY(-10deg) translateX(-20px) scale(0.97); }
      to { opacity: 1; transform: rotateY(-10deg) translateX(0) scale(1); }
    }
  }
  @media (max-width: 900px) {
    nav { padding: 14px 24px; }
    .nav-right ul { gap: 20px; }
    section:not(.hero) { padding: 80px 24px; }
    .about-grid { grid-template-columns: 1fr; gap: 48px; }
    .leader-card { grid-template-columns: 1fr; gap: 32px; padding: 32px; }
    .leader-avatar { max-width: 200px; }
    footer { flex-direction: column; gap: 16px; text-align: center; }
  }
  @media (max-width: 600px) {
    .nav-right ul { display: none; }
    .hero-left { padding: 120px 24px 48px; }
    .hero-logo-wrap svg { width: 280px; }
    .about-stats { grid-template-columns: 1fr; }
    .contact-strip { padding: 60px 24px; }
    .charts-stack { max-width: 340px; gap: 12px; }
  }

  /* ─── SCROLL REVEAL ─── */
  .reveal {
    opacity: 0; transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
  }
  .reveal.visible {
    opacity: 1; transform: translateY(0);
  }
