/* ================================================
   ZIABRIDGE - RESPONSIVE STYLESHEET
   ================================================ */

/* ---------- LARGE TABLET (max-width: 1100px) ---------- */
@media (max-width: 1100px) {
  .header-container {
    padding: 10px 18px;
  }

  .header-right {
    gap: 8px;
  }

  .btn-header-contact,
  .btn-signin {
    padding: 7px 14px;
    font-size: 12px;
  }
}

/* ---------- TABLET (max-width: 992px) ---------- */
@media (max-width: 992px) {
  .brand-tagline {
    display: none;
  }

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

  .process-steps {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .footer-container {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero-content h1 {
    font-size: 34px;
  }

  .hero-slider {
    height: 520px;
  }

  .logo-img {
    height: 80px;
    width: auto;
  }

  /* Service hero tablet */
  .service-hero-section {
    padding: 20px 16px 8px;
  }

  .service-hero-banner {
    min-height: 400px;
    height: 400px;
  }

  .service-hero-banner .hero-content h1 {
    font-size: 32px;
  }

  .service-hero-banner .hero-content p {
    font-size: 15.5px;
  }
}

/* ---------- TABLET HEADER STACK & MOBILE HEADER (max-width: 768px) ---------- */
@media (max-width: 768px) {
  /* Hide desktop buttons from mobile header bar */
  .desktop-only {
    display: none !important;
  }

  /* Single-row compact mobile header (~56px high) */
  .site-header .header-container {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    padding: 6px 12px;
    gap: 6px;
    height: 56px;
  }

  .site-header.scrolled .header-container {
    padding: 4px 12px;
  }

  /* Left Side: Logo */
  .header-left {
    display: flex;
    align-items: center;
    order: 1;
    flex-shrink: 0;
  }

  .logo-img {
    height: 38px;
    width: auto;
    max-width: 110px;
  }

  .site-header.scrolled .logo-img {
    height: 34px;
  }

  /* Center: Brand Name + Tagline (Both Visible!) */
  .header-center {
    order: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex: 1;
    min-width: 0;
    padding: 0 4px;
  }

  .brand-name {
    font-size: 15px;
    font-weight: 900;
    letter-spacing: 1.2px;
    line-height: 1.1;
  }

  .brand-name::after {
    width: 24px;
    height: 1.5px;
    margin: 2px auto 0;
  }

  .brand-tagline {
    display: block !important;
    font-size: 8.5px;
    font-weight: 500;
    color: #D6E4F9;
    margin-top: 1px;
    letter-spacing: 0.1px;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 210px;
    text-align: center;
  }

  /* Right Side: Language Switcher + Hamburger Menu */
  .header-right {
    order: 3;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
  }

  .lang-icon-btn {
    width: 32px;
    height: 32px;
    font-size: 15px;
  }

  .mobile-hamburger-btn {
    display: flex;
  }

  .founder-container {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }

  .founder-photo img {
    max-width: 160px;
  }
}

/* ---------- MOBILE (max-width: 576px) ---------- */
@media (max-width: 576px) {
  .site-header .header-container {
    padding: 5px 10px;
    height: 52px;
  }

  .logo-img {
    height: 34px;
    width: auto;
  }

  .brand-name {
    font-size: 13.5px;
    letter-spacing: 1px;
  }

  .brand-tagline {
    font-size: 8px;
    max-width: 165px;
  }

  .header-right {
    gap: 5px;
  }

  /* Hide secondary header buttons on very small screens */
  .header-right .btn-signin {
    display: none;
  }

  .btn-header-contact {
    padding: 6px 12px;
    font-size: 11.5px;
    border-radius: 18px;
  }

  /* Services */
  .services-grid,
  .card-grid,
  .process-steps,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 28px 16px 18px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
    padding: 14px 16px;
  }

  .footer-bottom-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }

  .footer-bottom-links a {
    margin-left: 0;
  }

  /* Hero */
  .hero-slider {
    height: 480px;
  }

  .hero-content h1 {
    font-size: 24px;
  }

  .hero-content p {
    font-size: 14px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  /* Contact form */
  .contact-form .form-row {
    grid-template-columns: 1fr;
  }

  /* Sections */
  .section-container {
    padding: 50px 16px;
  }

  .page-hero {
    padding: 60px 16px;
  }

  .page-hero h1 {
    font-size: 26px;
  }

  /* Page nav */
  .page-nav-buttons {
    padding: 12px 15px 0;
  }

  .page-nav-buttons button {
    font-size: 12px;
    padding: 6px 12px;
  }

  /* Back to top */
  .back-to-top {
    bottom: 18px;
    right: 18px;
    width: 42px;
    height: 42px;
  }

  /* Rating */
  .rating-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  /* Phone input */
  .phone-input-group {
    flex-direction: column;
  }

  .phone-input-group .country-code {
    flex: 1;
  }

  /* Service hero */
  .service-hero-section {
    padding: 16px 12px 6px;
  }

  .service-hero-banner {
    min-height: 340px;
    height: 340px;
    border-radius: 14px;
  }

  .service-hero-banner .hero-content {
    padding: 20px 16px;
  }

  .service-hero-banner .hero-content h1 {
    font-size: 23px;
    margin-bottom: 10px;
  }

  .service-hero-banner .hero-content p {
    font-size: 13.5px;
    line-height: 1.45;
  }

  .hero-breadcrumb {
    font-size: 12px;
    margin-bottom: 10px;
    gap: 5px;
  }
}

/* ---------- EXTRA SMALL MOBILE (max-width: 400px) ---------- */
@media (max-width: 400px) {
  .footer-container {
    grid-template-columns: 1fr;
  }

  .home-btn {
    display: none;
  }
}
