/* Meniu mobil compact – dropdown sub bara de navigare, aceeași ordine ca pe desktop */
@media (max-width: 900px) {
  html body .mobile-close { display: none !important; }

  html body .mobile-menu {
    inset: auto 0 auto 0;
    top: var(--nav-h, 76px);
    max-height: calc(100dvh - var(--nav-h, 76px));
    overflow-y: auto;
    justify-content: flex-start;
    align-items: stretch;
    gap: 0;
    padding: 6px 0 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0 0 var(--r-md, 12px) var(--r-md, 12px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  }

  html body .mobile-menu a {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    padding: 13px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  /* Ordinea de pe desktop: Acasă · Servicii · Proiecte · Despre noi · Contact */
  html body .mobile-menu a[href="/"]          { order: 1; }
  html body .mobile-menu::before {
    order: 2;
    content: "Servicii";
    padding: 16px 24px 6px;
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
  }
  html body .mobile-menu a[href^="/servicii"] {
    order: 3;
    padding-left: 40px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.82);
  }
  html body .mobile-menu a[href="/proiecte"]  { order: 4; }
  html body .mobile-menu a[href="/despre"]    { order: 5; }
  html body .mobile-menu a[href="/contact"]   { order: 6; border-bottom: 0; }
  html body .mobile-menu a.active,
  html body .mobile-menu a:hover              { color: var(--gold); }
}

/* Footer compact pe telefon */
@media (max-width: 600px) {
  html body footer { padding: 36px 0 22px; }

  html body .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 26px 20px;
    padding-bottom: 22px;
  }

  /* Rândul de brand: logo stânga, social dreapta, tagline dedesubt */
  html body .footer-grid > div:first-child {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    column-gap: 16px;
  }
  html body .footer-grid > div:first-child img { height: 40px !important; width: auto; }
  html body .footer-socials { grid-row: 1; grid-column: 2; justify-self: end; margin-top: 0; }
  html body .footer-tagline {
    grid-column: 1 / -1;
    max-width: none;
    margin-top: 12px;
    font-size: 0.8rem;
  }

  /* Navigare + Servicii una lângă alta */
  html body .footer-col-title { font-size: 0.68rem; margin-bottom: 10px; }
  html body .footer-links { gap: 7px; }
  html body .footer-links a { font-size: 0.85rem; }

  /* Contact pe toată lățimea, compact */
  html body .footer-grid > div:nth-child(4) { grid-column: 1 / -1; }
  html body .footer-contact-item { font-size: 0.84rem; margin-bottom: 8px; }

  /* Bara de jos: copyright + linkuri legale, cu loc pentru butonul WhatsApp */
  html body .footer-bottom {
    padding-top: 16px;
    padding-right: 72px;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  html body .footer-legal { gap: 14px; flex-wrap: wrap; }
}
