/**
 * Nova Landing Page — Mobile & Tablet
 */

/* ═══ HEADER MENU TOGGLE (base) ═══ */
.header__menu {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px;
  cursor: pointer;
  flex-shrink: 0;
}

.header__menu span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--white);
  transition: 0.25s;
}

/* ═══ TABLET / LARGE ═══ */
@media (max-width: 1240px) {
  .wrap,
  .container {
    width: calc(100% - 48px)!important;
    max-width: none;
  }

  .nova-footer__grid {
    grid-template-columns: 1.4fr repeat(3, 1fr) 1.3fr;
    gap: 32px;
  }

  .nova-footer__grid > .nova-footer__col:nth-child(5),
  .nova-footer__grid > .nova-footer__col:nth-child(6) {
    display: none;
  }
}

@media (max-width: 1100px) {
  .eco-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .eco-layout > :first-child {
    order: 2;
  }

  .eco-layout > :last-child {
      order: 1;
  }
  .eco-feeds{
    gap: 20px;
  }
  .engine-section .wrap .section-title {
    max-width: 100%;
  }

  .hero__title {
    font-size: 56px;
  }

  .heading {
    font-size: 40px;
    line-height: 44px;
  }

  .why-left .heading {
    font-size: 42px;
    line-height: 46px;
  }
}

/* ═══ TABLET ═══ */
@media (max-width: 900px) {
  header.header {
    height: 72px;
    padding: 0 16px;
  }

  .nav-left {
    gap: 16px;
  }

  .logo-text img {
    max-height: 28px;
    width: auto;
  }

  .main-nav.header__nav {
    position: fixed;
    top: 72px;
    left: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 0;
    max-height: calc(100vh - 96px);
    overflow-y: auto;
    background: rgba(0,60,49,0.97);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: 0.25s;
    z-index: 999;
    pointer-events: none;
  }

  .main-nav.header__nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-item-container {
    position: static;
    padding: 0;
    border-bottom: 1px solid var(--border);
  }

  .nav-item-container:last-child {
    border-bottom: none;
  }

  .nav-item {
    padding: 14px 18px;
    width: 100%;
    justify-content: space-between;
  }

  .dropdown-menu {
    position: static;
    width: 100%;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    box-shadow: none;
    border: none;
    border-top: 1px solid var(--border);
    margin: 0;
    padding: 0 0 8px;
    background: #0B241E;
  }

  .nav-item-container:hover .dropdown-menu,
  .nav-item-container.is-open .dropdown-menu {
    display: flex;
  }

  .dropdown-menu a {
    padding: 10px 28px;
  }

  .header__menu {
    display: flex;
  }

  .nav-right .btn--lime.btn--hero {
    display: none;
  }

  .wrap,
  .container {
    width: calc(100% - 32px)!important;
  }

  .section {
    padding: 64px 0;
  }

  .hero__content {
    padding: 56px 0 40px;
  }

  .hero__top {
    padding-top: 24px;
  }

  .hero__title {
    font-size: 42px;
    max-width: 100%;
    margin-bottom: 24px;
  }

  .hero__desc {
    font-size: 16px;
    line-height: 26px;
    margin-bottom: 28px;
  }

  .hero__divider {
    width: 100%;
    margin: 36px auto 24px;
  }

  .hero__features,
  .suite-grid,
  .method-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feat-card {
    min-height: 160px;
  }

  .need-togetright .heading,
  .need-togetright .lead {
    width: 100%;
    max-width: 100%;
  }

  .need-panel,
  .why-grid,
  .cert-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .need-panel {
    display: flex;
    flex-direction: column;
  }

  .need-tabs {
    border-right: none;
    border-bottom: 1px solid var(--border);
    display: flex;
    flex-direction: column;
  }

  .suite-head {
    flex-direction: column;
    gap: 24px;
  }

  .suite-stepper {
    justify-content: flex-start;
  }

  .eco-core {
    padding: 32px 24px;
  }

  .proof-diagram {
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .proof-diagram__lines {
    display: none;
  }

  .proof-box,
  .proof-hub {
    position: static;
    transform: none;
    width: 100%;
    max-width: 360px;
  }

  .proof-actions {
    flex-wrap: wrap;
    justify-content: center;
  }

  .why-photo {
    height: auto;
    margin-top: 24px;
  }

  .why-photo img {
    width: 100%;
    height: auto;
  }

  .why-timeline {
    margin-top: 32px;
  }
  .why-timeline__marker {
    left: -24px;
  }
  .reports-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .reports-section .reports-head p {
    width: 100%;
  }

  .reports-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    min-height: 0;
  }

  .report-card--tall {
    grid-row: auto;
    min-height: 320px;
  }

  .report-card--wide {
    grid-column: 1 / -1;
    min-height: 200px;
  }

  .nova-footer {
    padding: 56px 0 0;
  }

  .nova-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px 24px;
  }

  .nova-footer__social {
    grid-column: 1 / -1;
  }

  .nova-footer__watermark {
    font-size: 160px;
    line-height: 160px;
    bottom: -40px;
    letter-spacing: -8px;
  }

  .cta h2 {
    font-size: 36px;
    line-height: 1.15;
  }
}

/* ═══ MOBILE ═══ */
@media (max-width: 600px) {
  header.header {
    height: 64px;
    padding: 0 14px;
  }

  .main-nav.header__nav {
    top: 64px;
  }

  .wrap,
  .container {
    width: calc(100% - 28px)!important;
  }

  .section {
    padding: 48px 0;
  }

  .heading {
    font-size: 30px;
    line-height: 34px;
    margin-bottom: 14px;
  }

  .lead {
    font-size: 15px;
    line-height: 24px;
    margin-bottom: 28px;
    width: 100%!important;
  }

  .eyebrow {
    font-size: 11px;
    letter-spacing: 1.8px;
    margin-bottom: 10px;
  }

  .btn {
    font-size: 12px;
  }

  .btn--hero {
    min-width: 0;
    padding: 13px 22px;
    font-size: 14px;
  }

  /* Hero */
  .hero__content {
    padding: 40px 0 28px;
  }

  .hero__badge {
    font-size: 12px;
    padding: 6px 12px;
    max-width: 100%;
    text-align: left;
  }

  .hero__title {
    font-size: 32px;
    letter-spacing: -0.5px;
    margin-bottom: 18px;
  }

  .hero__title br {
    display: none;
  }

  .hero__desc {
    font-size: 15px;
    line-height: 24px;
    margin-bottom: 24px;
  }

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

  .hero__ctas .btn {
    width: 100%;
  }

  .hero__divider {
    gap: 12px;
    margin: 28px auto 20px;
  }

  .hero__divider span {
    font-size: 10px;
    letter-spacing: 1.5px;
    white-space: normal;
    text-align: center;
  }

  .hero__features {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .feat-card {
    padding: 18px 16px;
    border-right: none;
    border-bottom: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    align-items: flex-start;
    gap: 16px;
  }

  .feat-card__num {
    margin-bottom: 0;
    font-size: 16px;
  }

  .feat-card p {
    font-size: 15px;
    line-height: 20px;
  }

  /* Need */
  .need-tab {
    padding: 14px 16px;
  }

  .need-detail {
    padding: 28px 20px;
  }

  .need-detail__title {
    font-size: 24px;
  }

  .need-detail__product {
    font-size: 20px;
  }

  /* Suite */
  .suite-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .suite-card {
    padding: 28px 20px;
  }

  .suite-card h3 {
    font-size: 22px;
  }

  .suite-stepper {
    flex-wrap: wrap;
    gap: 8px;
  }
  .suite-head{
    align-items: flex-start;
  }
  /* Ecosystem */
  .eco-feed {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .eco-core {
    padding: 28px 20px;
  }

  .eco-core h3 {
    font-size: 24px;
  }

  /* Proof */
  .proof-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .proof-actions .btn,
  .proof-link {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .proof-hub,
  .proof-box {
    max-width: 100%;
  }

  /* Why */
  .why-left .heading {
    font-size: 30px;
    line-height: 34px;
  }

  .why-timeline {
    padding-left: 22px;
  }

  .why-timeline article {
    gap: 12px;
  }

  .why-timeline h4 {
    font-size: 16px;
  }

  .why-timeline p {
    font-size: 14px;
  }

  /* Methodologies */
  .method-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .method-card {
    aspect-ratio: 16 / 10;
  }

  /* Certification */
  .cert-grid {
    gap: 28px;
  }

  .cert-card {
    padding: 28px 20px;
  }

  .cert-list li {
    font-size: 14px;
  }

  /* Reports */
  .reports-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .report-card--tall,
  .report-card--wide,
  .report-card--white,
  .report-card--lime {
    grid-column: auto;
    grid-row: auto;
    min-height: 220px;
  }

  .report-card--lime {
    min-height: 180px;
  }

  /* FAQ */
  .faq-grid {
    gap: 28px;
  }

  .faq-item button {
    font-size: 15px;
    padding: 16px 0;
    text-align: left;
    gap: 12px;
  }

  .faq-answer {
    font-size: 14px;
    line-height: 22px;
  }

  /* CTA */
  .cta {
    padding: 64px 0;
  }

  .cta h2 {
    font-size: 28px;
    line-height: 1.2;
  }

  .cta h2 br {
    display: none;
  }

  .cta p {
    font-size: 15px;
    margin: 16px 0 24px;
  }

  .cta a {
    width: 100%;
  }

  .cta__ring {
    width: 180px;
    height: 180px;
  }

  /* Footer */
  .nova-footer {
    padding: 48px 0 0;
  }

  .nova-footer__grid {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-bottom: 40px;
  }

  .nova-footer__social .footer-logo {
    margin-bottom: 20px;
  }

  .nova-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 16px 0 28px;
    text-align: left;
  }

  .nova-footer__watermark {
    font-size: 96px;
    line-height: 96px;
    bottom: -20px;
    letter-spacing: -4px;
  }

  .contact-us.nova-footer__col {
    padding-top: 8px;
  }
}

/* ═══ SMALL PHONES ═══ */
@media (max-width: 380px) {
  .hero__title {
    font-size: 28px;
  }

  .heading {
    font-size: 26px;
    line-height: 30px;
  }

  .why-left .heading {
    font-size: 26px;
    line-height: 30px;
  }

  .cta h2 {
    font-size: 24px;
  }

  .nav-right .btn--outline {
    padding: 8px 10px;
  }

  .nav-right .btn--outline span {
    font-size: 12px;
  }
}
