/* ─── TABLET & GENERAL MOBILE BREAKPOINTS ─────────────────────── */
@media (max-width: 900px) {
  /* Navigation */
  .nav-toggle {
    display: inline-flex;
    align-items: center;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-wrap: wrap;
    margin-top: 1rem;
    background: var(--bg-pure);
    padding: 1.25rem 1.75rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border);
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 150;
    max-height: 80vh;
    overflow-y: auto;
  }

  .nav-links.show {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
    animation: fadeUp 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) both;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    width: 100%;
    padding: 0.5rem 0;
  }

  .nav-links li.nav-cta-item,
  .nav-links li:has(.nav-cta) {
    width: 100%;
    display: flex;
    justify-content: stretch;
    margin-top: 0.35rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
  }

  .nav-links a.nav-cta {
    display: inline-flex;
    width: 100%;
    max-width: 100%;
    justify-content: center;
    padding: 0.75rem 1.25rem;
    margin-top: 0;
    text-align: center;
    white-space: nowrap;
    overflow: visible;
  }

  .nav-item-dropdown .dropdown-menu {
    position: static;
    box-shadow: none;
    border: 1px solid var(--border);
    margin: 0.5rem 0 0;
    width: 100%;
    border-radius: var(--radius-sm);
  }

  .dropdown-toggle {
    width: 100%;
    justify-content: space-between;
    padding: 0.5rem 0;
  }

  .nav-logo img {
    max-height: 58px;
  }

  nav.scrolled .nav-logo img {
    max-height: 48px;
  }

  nav {
    padding: 0.9rem 1.25rem;
    flex-wrap: wrap;
    position: relative;
  }

  nav.scrolled {
    padding: 0.7rem 1.25rem;
  }

  /* Contact Items inside Nav Menu (Mobile only) */
  .nav-contact-item {
    display: block;
    border-top: 1px solid #e0f0fa;
    margin-top: 1rem;
    padding-top: 1rem;
    width: 100%;
  }

  .nav-contact-item a {
    color: var(--primary);
    font-weight: 600;
    display: block;
    padding: 0.5rem 0;
  }

  .nav-contact-item a:hover {
    color: var(--primary-dark);
  }

  .nav-contact-item + .nav-contact-item {
    margin-top: 0.25rem;
    border-top: none;
    padding-top: 0;
  }

  /* Grid layouts */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  .featured-article {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2.2rem;
  }

  .featured-article .card-thumb {
    min-height: 200px;
  }

  .article-card {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .article-card .card-thumb {
    aspect-ratio: 16 / 9;
  }

  .service-item {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .service-img {
    min-height: 180px;
    padding: 1.5rem;
  }

  .service-content {
    padding: 1.75rem;
  }

  .content-highlight {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

@media (max-width: 768px) {
  section {
    padding: var(--section-y-sm) var(--section-x);
  }

  .section-compact {
    padding-bottom: var(--section-y-sm);
  }

  .about-grid,
  .two-col,
  .intro-grid {
    grid-template-columns: 1fr;
    gap: var(--gap-lg);
  }

  .intro-grid .img-placeholder,
  .intro-grid .about-img-placeholder {
    order: -1;
  }

  .page-hero .hero-cta-row {
    justify-content: center;
  }

  /* Service split hero — stack on tablet */
  .page-hero:not(.video-hero):has(.hero-img, .video-placeholder) .container {
    grid-template-columns: 1fr;
    row-gap: 1.75rem;
    text-align: center;
  }

  .page-hero:not(.video-hero):has(.hero-img, .video-placeholder) .hero-tag,
  .page-hero:not(.video-hero):has(.hero-img, .video-placeholder) h1,
  .page-hero:not(.video-hero):has(.hero-img, .video-placeholder) .container > p:not(.hero-tag),
  .page-hero:not(.video-hero):has(.hero-img, .video-placeholder) .hero-cta-row {
    grid-column: 1;
    justify-self: center;
  }

  .page-hero:not(.video-hero):has(.hero-img, .video-placeholder) .hero-tag {
    grid-row: 1;
    justify-self: center;
  }

  .page-hero:not(.video-hero):has(.hero-img, .video-placeholder) h1 {
    grid-row: 2;
    max-width: 100%;
  }

  .page-hero:not(.video-hero):has(.hero-img, .video-placeholder) .container > p:not(.hero-tag) {
    grid-row: 3;
    max-width: 34rem;
    margin-inline: auto;
  }

  .page-hero:not(.video-hero):has(.hero-img, .video-placeholder) .hero-cta-row {
    grid-row: 4;
    justify-content: center;
    margin-top: 0.5rem;
  }

  .page-hero:not(.video-hero):has(.hero-img, .video-placeholder) .hero-img,
  .page-hero:not(.video-hero):has(.hero-img, .video-placeholder) .video-placeholder {
    grid-column: 1;
    grid-row: 5;
    max-width: 100%;
    justify-self: center;
    max-height: none;
    aspect-ratio: 16 / 10;
    width: 100%;
  }

  .content-grid .container {
    grid-template-columns: 1fr;
  }

  .process-steps {
    grid-template-columns: 1fr;
  }

  .portfolio-grid,
  .services-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .showcase-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }

  .hero-stats {
    gap: 1.75rem;
    margin-top: 3.5rem;
  }

  .hero-stat {
    padding: 0;
    min-width: 130px;
  }

  .hero-stat:not(:last-child)::after {
    display: none;
  }

  .about-img-placeholder,
  .img-placeholder,
  .hero-img,
  .video-placeholder {
    min-height: 300px;
  }

  .reel-placeholder {
    min-height: 280px;
  }

  .hero {
    min-height: 88vh;
  }

  .stats-row {
    padding: 2.5rem 1.75rem;
    gap: 1.5rem;
  }

  .faq-question {
    padding: 1.2rem 1.4rem;
  }

  .faq-question h3 {
    font-size: 0.98rem;
  }

  .faq-answer {
    padding: 0 1.4rem;
  }
}

/* ─── PHONE BREAKPOINTS ───────────────────────────────────────── */
@media (max-width: 540px) {
  .floating-whatsapp-btn {
    right: 0.75rem;
    bottom: 0.75rem;
    width: calc(100% - 1.5rem);
    justify-content: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: 999px;
  }

  .floating-whatsapp-btn span {
    align-items: center;
    text-align: center;
  }

  .btn-wa {
    margin-left: 0;
    margin-top: 0.75rem;
    display: block;
    width: 100%;
  }

  .hero-btns .btn-primary,
  .hero-btns .btn-secondary {
    width: 100%;
    text-align: center;
  }

  .hero-badge {
    padding: 0.4rem 1rem;
    font-size: 0.72rem;
  }

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

  .contact-form-wrap {
    padding: 2rem 1.5rem;
  }

  .pricing-note {
    padding: 1.75rem;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

  .cta-section .btn-white,
  .cta-section .btn-whatsapp,
  .cta-section .btn-wa {
    display: block;
    margin: 0.75rem auto 0;
    width: 100%;
    max-width: 290px;
    text-align: center;
  }

  .cta-section .btn-whatsapp,
  .cta-section .btn-wa {
    margin-left: auto;
  }

  .btn-outline {
    margin-left: 0;
    margin-top: 0.75rem;
    display: block;
    width: 100%;
  }

  .page-hero {
    padding: 5rem 1.5rem 3.5rem;
  }

  .hero-img {
    height: 280px;
    margin-top: 2.5rem;
  }
}
