
/* =========================================================
   AIRVENOR — Responsive Styles
   Mobile / Tablet / Desktop Optimization
   Compatible with:
   - style.css
   - main.js
   - scroll-animations.js
   ========================================================= */


/* =========================================================
   LARGE TABLETS / SMALL DESKTOPS
   ========================================================= */

@media (max-width: 1100px) {

  .container {
    width: min(100% - 2rem, 1000px);
  }

  .nav {
    gap: 0.75rem;
  }

  .nav-links {
    gap: 1rem;
  }

  .nav-links a {
    font-size: 0.92rem;
  }

  .hero-grid {
    gap: 2rem;
  }

  .hero-copy h1 {
    font-size: clamp(2.6rem, 5vw, 3.8rem);
  }

  .card-grid {
    gap: 1.25rem;
  }

  .stats-grid {
    gap: 1rem;
  }

}


/* =========================================================
   TABLETS
   ========================================================= */

@media (max-width: 900px) {

  .container {
    width: min(100% - 2rem, 850px);
  }

  .hero-grid,
  .grid.two-col {
    grid-template-columns: 1fr;
  }

  .hero {
    text-align: center;
  }

  .hero-copy {
    width: 100%;
    margin: 0 auto;
  }

  .hero-copy h1,
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-highlights {
    justify-content: center;
  }

  .hero-visual {
    width: min(100%, 720px);
    margin: 0 auto;
  }

  .feature-panel {
    text-align: center;
  }

  .feature-panel .feature-list {
    text-align: left;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }

  .feature-panel .button {
    margin-top: 0.5rem;
  }

  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cta-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .newsletter-form {
    width: 100%;
  }

  .newsletter-form input {
    flex: 1;
    min-width: 0;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}


/* =========================================================
   MOBILE NAVIGATION
   ========================================================= */

@media (max-width: 760px) {

  /* -------------------------------------------------------
     HEADER
     ------------------------------------------------------- */

  .site-header {
    position: sticky;
    top: 0;
    z-index: var(--z-header);

    background: rgba(6, 26, 45, 0.96);

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }


  /* -------------------------------------------------------
     NAVIGATION BAR
     ------------------------------------------------------- */

  .nav {
    position: relative;

    min-height: 72px;

    padding: 0.55rem 0;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 1rem;
  }


  /* -------------------------------------------------------
     LOGO
     ------------------------------------------------------- */

  .brand-mark {
    width: 58px;
    height: 58px;
  }


  /* -------------------------------------------------------
     HAMBURGER
     ------------------------------------------------------- */

  .nav-toggle {
    display: flex;

    position: relative;
    z-index: calc(var(--z-header) + 2);

    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;

    flex-shrink: 0;

    align-items: center;
    justify-content: center;

    padding: 0.5rem;

    cursor: pointer;

    touch-action: manipulation;

    -webkit-tap-highlight-color: transparent;
  }

  .nav-toggle span {
    pointer-events: none;
  }


  /* -------------------------------------------------------
     DESKTOP CTA
     ------------------------------------------------------- */

  .nav > .button-small {
    display: none;
  }


  /* -------------------------------------------------------
     MOBILE MENU
     ------------------------------------------------------- */

  .nav-links {

    display: none;

    position: absolute;

    top: 100%;
    left: 0;
    right: 0;

    z-index: calc(var(--z-header) + 1);

    width: 100%;

    flex-direction: column;
    align-items: stretch;

    gap: 0;

    padding: 0.5rem 1rem 1rem;

    background: rgba(6, 26, 45, 0.98);

    border-top: 1px solid var(--color-border-light);
    border-bottom: 1px solid var(--color-border-light);

    box-shadow:
      0 12px 30px rgba(0, 0, 0, 0.25);

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }


  /* -------------------------------------------------------
     OPEN MENU
     Controlled by main.js
     ------------------------------------------------------- */

  .nav-links.is-open {
    display: flex;
  }


  /* -------------------------------------------------------
     MOBILE LINKS
     ------------------------------------------------------- */

  .nav-links a {

    display: flex;
    align-items: center;

    width: 100%;

    min-height: 48px;

    padding: 0.75rem;

    border-bottom:
      1px solid var(--color-border-light);

    color: var(--color-text-secondary);

    font-size: 1rem;

    touch-action: manipulation;
  }

  .nav-links a:last-child {
    border-bottom: 0;
  }


  /* Remove desktop underline */
  .nav-links a::after {
    display: none;
  }


  /* Active / hover */
  .nav-links a:hover,
  .nav-links a.active {
    color: var(--color-text);

    background:
      rgba(255, 255, 255, 0.05);
  }


  /* -------------------------------------------------------
     PREVENT BODY SCROLL
     Controlled by main.js
     ------------------------------------------------------- */

  body.menu-open {
    overflow: hidden;
  }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 600px) {

  .container {
    width: min(100% - 1.5rem, 100%);
  }

  .section {
    padding: 3.5rem 0;
  }

  .hero {
    min-height: auto;
    padding-top: 3rem;
    padding-bottom: 3.5rem;
  }

  .hero-copy h1 {
    font-size: clamp(2.25rem, 11vw, 3.2rem);
    line-height: 1.08;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .eyebrow {
    font-size: 0.7rem;
    letter-spacing: 0.12em;
  }


  /* -------------------------------------------------------
     HERO BUTTONS
     ------------------------------------------------------- */

  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }

  .hero-actions .button {
    width: 100%;
  }


  /* -------------------------------------------------------
     HERO HIGHLIGHTS
     ------------------------------------------------------- */

  .hero-highlights {
    flex-direction: column;
    align-items: stretch;
    gap: 0.55rem;
  }

  .hero-highlights li {
    width: 100%;
    text-align: center;
  }


  /* -------------------------------------------------------
     HERO CARD
     ------------------------------------------------------- */

  .hero-card {
    padding: 0.65rem;
  }


  /* -------------------------------------------------------
     SINGLE COLUMN GRIDS
     ------------------------------------------------------- */

  .card-grid,
  .stats-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }


  /* -------------------------------------------------------
     CARDS
     ------------------------------------------------------- */

  .card,
  .stat-card,
  .testimonial-card,
  .contact-card {
    padding: 1.25rem;
  }


  /* -------------------------------------------------------
     BRAND PILLS
     ------------------------------------------------------- */

  .brand-pill-row {
    flex-direction: column;
    align-items: stretch;
  }

  .brand-pill {
    text-align: center;
  }


  /* -------------------------------------------------------
     FEATURE PANEL
     ------------------------------------------------------- */

  .feature-panel {
    padding: 0;
  }

  .feature-panel img {
    border-radius: var(--radius-md);
  }


  /* -------------------------------------------------------
     CTA
     ------------------------------------------------------- */

  .cta-card {
    padding: 1.4rem;
    gap: 1.5rem;
  }

  .cta-card .button {
    width: 100%;
  }


  /* -------------------------------------------------------
     NEWSLETTER
     ------------------------------------------------------- */

  .newsletter-form {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .newsletter-form input {
    width: 100%;
    min-width: 0;
  }

  .newsletter-form .button {
    width: 100%;
  }


  /* -------------------------------------------------------
     TOOLBAR
     ------------------------------------------------------- */

  .toolbar {
    flex-direction: column;
    align-items: stretch;
  }


  /* -------------------------------------------------------
     PAGE HERO
     ------------------------------------------------------- */

  .page-hero {
    padding-top: 3rem;
    padding-bottom: 2rem;
  }


  /* -------------------------------------------------------
     FOOTER
     ------------------------------------------------------- */

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .site-footer {
    padding-top: 3rem;
  }

}


/* =========================================================
   VERY SMALL DEVICES
   ========================================================= */

@media (max-width: 400px) {

  body {
    font-size: 15px;
  }

  .container {
    width: min(100% - 1.25rem, 100%);
  }

  .brand-mark {
    width: 52px;
    height: 52px;
  }

  .nav {
    min-height: 64px;
  }

  .nav-toggle {
    width: 42px;
    height: 42px;
    min-width: 42px;
    min-height: 42px;
  }

  .hero-copy h1 {
    font-size: 2.15rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  .button {
    min-height: 44px;
    padding: 0.8rem 1.1rem;
  }

  .hero-card {
    padding: 0.5rem;
  }

  .stat-card .counter {
    font-size: 2.2rem;
  }

}


/* =========================================================
   LANDSCAPE MOBILE
   ========================================================= */

@media (max-height: 600px) and (orientation: landscape) {

  .hero {
    min-height: auto;
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  /*
   * Keep header sticky.
   * Do not switch to position: relative,
   * otherwise mobile navigation can behave inconsistently.
   */

  .site-header {
    position: sticky;
    top: 0;
  }

  .nav {
    min-height: 64px;
  }

  .brand-mark {
    width: 52px;
    height: 52px;
  }

}


/* =========================================================
   TOUCH DEVICES
   ========================================================= */

@media (hover: none) and (pointer: coarse) {

  .button:hover,
  .card:hover,
  .brand-pill:hover,
  .brand-mark:hover,
  .back-to-top:hover {
    transform: none;
  }

  .button {
    min-height: 48px;
  }

  .nav-links a {
    min-height: 48px;
    display: flex;
    align-items: center;
  }

  .nav-toggle {
    min-width: 44px;
    min-height: 44px;
    touch-action: manipulation;
  }

}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  .hero-card,
  .button-primary {
    animation: none !important;
  }

  .button,
  .card,
  .brand-pill,
  .back-to-top {
    transition: none !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

}
/* =========================================================
   AIRVENOR 2.0 — MOBILE FOUNDATION
   ========================================================= */

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (max-width: 760px) {

  .site-header {
    isolation: isolate;
  }

  .nav {
    min-height: 68px;
    padding-inline: 0;
  }

  .nav-toggle {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    border-radius: 12px;
    touch-action: manipulation;
  }

  .nav-links {
    max-height: calc(100dvh - 68px);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding-bottom: max(1rem, env(safe-area-inset-bottom));
  }

  .nav-links a {
    min-height: 48px;
    padding: 0.8rem 0.75rem;
  }

  .button,
  .hero-actions .button,
  .cta-card .button {
    min-height: 48px;
    touch-action: manipulation;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions .button {
    width: 100%;
  }

  .container,
  .section,
  .hero,
  .page-hero,
  .card,
  .feature-panel,
  .cta-card {
    max-width: 100%;
  }

  img,
  video,
  iframe {
    max-width: 100%;
  }
}

@media (max-width: 400px) {

  .nav {
    min-height: 64px;
  }

  .nav-toggle {
    width: 46px;
    height: 46px;
    min-width: 46px;
    min-height: 46px;
  }

  .nav-links {
    max-height: calc(100dvh - 64px);
  }

  .button {
    min-height: 46px;
  }
}

.nav-toggle:focus-visible,
.nav-links a:focus-visible,
.button:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.85);
  outline-offset: 3px;
}
/* =========================================================
   AIRVENOR 2.0 — HOMEPAGE MOBILE UX
   ========================================================= */

@media (max-width: 760px) {

  /* HERO */

  .hero {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-copy {
    text-align: center;
  }

  .hero-copy .eyebrow {
    margin-inline: auto;
    max-width: 330px;
  }

  .hero-copy h1 {
    font-size: clamp(2.25rem, 10vw, 3rem);
    line-height: 1.08;
    max-width: 600px;
    margin-inline: auto;
  }

  .hero-subtitle {
    font-size: 1.05rem;
    margin-inline: auto;
  }

  .hero-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 440px;
    margin-inline: auto;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-highlights {
    width: 100%;
    max-width: 420px;
    margin-inline: auto;
    text-align: left;
  }

  /* HERO IMAGE */

  .hero-visual {
    width: 100%;
    max-width: 430px;
    margin-inline: auto;
  }

  .hero-card {
    width: 100%;
  }

  .hero-card img {
    width: 100%;
    height: auto;
    display: block;
  }

  /* ABOUT */

  .company-overview .two-col {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* BRAND STRIP */

  .brand-pill-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }

  .brand-pill {
    max-width: 100%;
  }

  /* FEATURED APPLICATION */

  .feature-panel {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .feature-panel > div:first-child {
    order: 1;
  }

  .feature-panel > div:last-child {
    order: 2;
  }

  .feature-panel img {
    width: 100%;
    height: auto;
    display: block;
  }

  .feature-panel .hero-actions {
    margin-top: 24px;
  }

  /* FAQ */

  .faq-section .two-col {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  /* FINAL CTA */

  .cta-card {
    text-align: center;
  }

  .cta-card .hero-actions {
    margin-top: 24px;
  }
}


/* =========================================================
   SMALL PHONES
   ========================================================= */

@media (max-width: 400px) {

  .hero {
    padding-top: 36px;
    padding-bottom: 40px;
  }

  .hero-copy h1 {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-highlights {
    font-size: 0.92rem;
  }

  .section {
    padding-block: 52px;
  }
}
/* =========================================================
   AIRVENOR 2.0 — PILOT LOGBOOK MOBILE
   ========================================================= */

.app-showcase {
  overflow: hidden;
  width: 100%;
}

.app-showcase img {
  width: 100%;
  height: auto;
  display: block;
}

.feature-lead {
  font-size: 1.05rem;
  line-height: 1.7;
}

.feature-panel .feature-list {
  margin-top: 1.5rem;
}

.feature-panel .feature-list li {
  margin-bottom: 1rem;
}

.feature-panel .feature-list li strong {
  display: block;
}

.feature-panel .feature-list li span {
  display: block;
  margin-top: 0.2rem;
  opacity: 0.82;
}

.app-platform-note {
  margin-top: 1rem;
  font-size: 0.9rem;
  opacity: 0.7;
}


@media (max-width: 760px) {

  .featured-app {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .feature-panel {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .feature-panel > div:first-child {
    order: 1;
  }

  .feature-panel > div:last-child {
    order: 2;
  }

  .app-showcase {
    max-width: 430px;
    margin-inline: auto;
  }

  .feature-panel h2 {
    font-size: clamp(2rem, 9vw, 2.7rem);
    line-height: 1.1;
  }

  .feature-lead {
    font-size: 1rem;
    line-height: 1.65;
  }

  .feature-panel .feature-list {
    margin-top: 1.25rem;
  }

  .feature-panel .feature-list li {
    margin-bottom: 1rem;
  }

  .feature-panel .hero-actions {
    margin-top: 1.75rem;
  }

  .feature-panel .hero-actions .button {
    width: 100%;
  }

  .app-platform-note {
    text-align: center;
  }
}


@media (max-width: 400px) {

  .featured-app {
    padding-top: 44px;
    padding-bottom: 44px;
  }

  .feature-panel {
    gap: 26px;
  }

  .feature-lead {
    font-size: 0.96rem;
  }

  .feature-panel .feature-list li {
    margin-bottom: 0.85rem;
  }

}
/* =========================================================
   AIRVENOR 2.0 — APPLICATION PORTFOLIO
   ========================================================= */

.applications-section .section-heading {
  max-width: 760px;
}

.applications-section .section-heading > p:last-child {
  max-width: 680px;
}

.app-card {
  position: relative;
}

.app-status {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.app-status-available {
  border: 1px solid rgba(80, 200, 140, 0.35);
}

.app-status-coming {
  border: 1px solid rgba(255, 190, 80, 0.35);
}

.app-card h3 {
  margin-top: 0;
}

.applications-cta {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

@media (max-width: 760px) {

  .applications-section {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .applications-section .section-heading {
    text-align: center;
  }

  .applications-section .section-heading > p:last-child {
    margin-inline: auto;
  }

  .app-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .app-card {
    padding: 1.25rem;
  }

  .applications-cta {
    margin-top: 1.5rem;
  }

  .applications-cta .button {
    width: 100%;
  }
}

@media (max-width: 400px) {

  .applications-section {
    padding-top: 44px;
    padding-bottom: 44px;
  }

  .app-status {
    font-size: 0.7rem;
  }

}
/* =========================================================
   AIRVENOR 2.0 — WHY AIRVENOR + FINAL CTA
   ========================================================= */

.why-airvenor .section-heading {
  max-width: 760px;
}

.why-airvenor .card h3 {
  margin-bottom: 0.6rem;
}

.cta-section {
  padding-top: 64px;
  padding-bottom: 64px;
}

.cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.cta-card > div:first-child {
  flex: 1;
}

.cta-card .hero-actions {
  flex-shrink: 0;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 760px) {

  .why-airvenor {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .why-airvenor .section-heading {
    text-align: center;
    margin-inline: auto;
  }

  .why-airvenor .card-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .why-airvenor .card {
    text-align: center;
  }


  /* FINAL CTA */

  .cta-section {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .cta-card {
    flex-direction: column;
    text-align: center;
    gap: 24px;
  }

  .cta-card > div:first-child {
    width: 100%;
  }

  .cta-card h2 {
    font-size: clamp(1.9rem, 8vw, 2.5rem);
    line-height: 1.12;
  }

  .cta-card .hero-actions {
    width: 100%;
    max-width: 440px;
    margin-inline: auto;
  }

  .cta-card .hero-actions .button {
    width: 100%;
  }

}


/* =========================================================
   SMALL PHONES
   ========================================================= */

@media (max-width: 400px) {

  .why-airvenor {
    padding-top: 44px;
    padding-bottom: 44px;
  }

  .cta-section {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .cta-card {
    gap: 20px;
  }

}
