/* ==========================================================================
   RESPONSIVE DESIGN BREAKPOINTS
   ========================================================================== */

/* Large Desktops and Above */
@media (min-width: 1440px) {
  .hero-title {
    font-size: 4.5rem;
  }
}

/* Tablets and Laptops (max 1024px) */
@media (max-width: 1024px) {
  .nav-menu, .nav-actions .btn {
    display: none;
  }

  .mobile-nav-toggle {
    display: block;
  }

  .top-bar-left span:not(:first-child) {
    display: none;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-img-main {
    height: 380px;
  }

  .estimator-card {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 2rem;
  }

  .methodology-pipeline {
    grid-template-columns: repeat(3, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
}

/* Mobile Devices (max 768px) */
@media (max-width: 768px) {
  :root {
    --header-height: 74px;
    --header-height-shrink: 62px;
  }

  .top-announcement-bar {
    display: none;
  }

  .hero-section {
    min-height: auto;
    padding: 4.5rem 0 3rem 0;
  }

  .hero-metrics-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    padding: 1.25rem;
  }

  .metric-item {
    border-right: none;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 0.75rem;
  }

  .metric-item:nth-child(3), .metric-item:nth-child(4) {
    border-bottom: none;
    padding-bottom: 0;
  }

  .about-pillars-list {
    grid-template-columns: 1fr;
  }

  .about-floating-card {
    position: static;
    margin-top: 1.5rem;
    max-width: 100%;
  }

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

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

  .project-card-featured {
    grid-column: span 2;
  }

  .project-card-featured .project-media-wrap {
    height: 300px;
  }

  .calc-type-grid {
    grid-template-columns: 1fr 1fr;
  }

  .addons-checklist {
    grid-template-columns: 1fr;
  }

  .methodology-pipeline {
    grid-template-columns: 1fr;
  }

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

  .form-group.full-width {
    grid-column: span 1;
  }

  .consultation-form-wrap {
    padding: 1.5rem;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* Small Smart Phones (max 480px) */
@media (max-width: 480px) {
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }

  .hero-cta-group .btn {
    width: 100%;
  }

  .calc-type-grid {
    grid-template-columns: 1fr;
  }

  /* Estimator card — reduce bloated padding */
  .estimator-card {
    padding: 1.25rem;
    gap: 1.75rem;
  }

  /* Range labels wrap nicely */
  .range-labels {
    flex-wrap: wrap;
    gap: 0.25rem;
    font-size: 0.75rem;
  }

  /* Estimator results box — tighter on small screens */
  .estimator-results-box {
    padding: 1.5rem;
  }

  /* Stack currency switcher below badge */
  .estimator-results-box > div:first-child > div:first-child {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  /* Price text sizing */
  .estimate-price-ugx {
    font-size: 1.85rem;
  }

  .estimate-price-usd {
    font-size: 1rem;
  }

  /* Breakdown rows — allow wrapping for long values */
  .breakdown-row {
    font-size: 0.8rem;
    gap: 0.5rem;
  }

  .breakdown-row span:last-child {
    text-align: right;
    word-break: break-word;
  }

  /* Estimator group titles */
  .estimator-group-title {
    font-size: 0.95rem;
  }

  /* Addon checklist labels */
  .addon-checkbox-label {
    padding: 0.7rem 0.85rem;
    font-size: 0.825rem;
  }

  /* Section header subtitle */
  .section-subtitle {
    font-size: 0.975rem;
  }
}

/* Estimator mobile fixes (max 768px) */
@media (max-width: 768px) {
  /* Reduce section vertical padding */
  .estimator-section {
    padding: 4rem 0;
    overflow-x: hidden;
  }

  /* Reduce estimator card padding */
  .estimator-card {
    padding: 1.5rem;
    gap: 2rem;
  }

  /* Force the floors/finishes grid to stack on mobile */
  .estimator-floors-grid {
    grid-template-columns: 1fr !important;
  }

  /* Range labels — smaller text so they don't overflow */
  .range-labels {
    font-size: 0.78rem;
    gap: 0.15rem;
  }

  /* Stack currency switcher and badge label vertically */
  .estimator-results-box > div:first-child > div:first-child {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  /* Estimator results box */
  .estimator-results-box {
    padding: 1.75rem;
  }

  /* Calc type buttons — more compact */
  .calc-type-btn {
    padding: 0.85rem 0.65rem;
  }

  .calc-type-btn i {
    font-size: 1.35rem;
  }
}

/* Section Dividers - Mobile Adjustment */
@media (max-width: 768px) {
  .section-divider {
    margin: 0 1.5rem;
  }

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

  .project-card-featured {
    grid-column: span 1;
  }

  .project-card-featured .project-media-wrap {
    height: 220px;
  }

  .project-card-featured .project-title {
    font-size: 1.2rem;
  }

  .project-meta-bar {
    padding: 0.65rem 1rem;
    gap: 0.35rem;
  }

  .project-meta-label {
    font-size: 0.6rem;
  }

  .project-meta-value {
    font-size: 0.7rem;
  }

  .project-meta-divider {
    height: 22px;
  }
}

/* Footer Social Row - Mobile */
@media (max-width: 768px) {
  .footer-social-row {
    justify-content: flex-start;
  }
}

/* ==========================================================================
   MOBILE BUTTON SIZE & TEXT FIXES
   ========================================================================== */
@media (max-width: 768px) {
  /* Shrink all buttons on mobile */
  .btn {
    font-size: 0.82rem;
    padding: 0.7rem 1.35rem;
    gap: 0.45rem;
  }

  .btn i {
    font-size: 0.85rem;
  }

  /* btn-lg should become normal size on mobile */
  .btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 0.85rem;
    letter-spacing: 0.01em;
  }

  .btn-sm {
    padding: 0.45rem 0.9rem;
    font-size: 0.75rem;
  }

  /* CTA banner actions — stack and full width */
  .cta-banner-actions {
    flex-direction: column;
    width: 100%;
  }

  .cta-banner-actions .btn {
    width: 100%;
  }

  /* Shorten specific long button labels on mobile */
  .btn .btn-long-text {
    display: none;
  }

  .btn .btn-short-text {
    display: inline;
  }
}

/* On desktop, show full text, hide short text */
@media (min-width: 769px) {
  .btn .btn-short-text {
    display: none;
  }
}

@media (max-width: 480px) {
  /* Even tighter on very small screens */
  .btn {
    font-size: 0.78rem;
    padding: 0.6rem 1.15rem;
    gap: 0.35rem;
  }

  .btn-lg {
    padding: 0.65rem 1.2rem;
    font-size: 0.8rem;
  }

  /* Hero CTA group — stack full width */
  .hero-cta-group {
    gap: 0.65rem;
  }

  .hero-cta-group .btn {
    justify-content: center;
  }

  .team-leaders-grid {
    grid-template-columns: 1fr;
    max-width: 340px;
  }

  .team-leader-photo-wrap {
    height: 280px;
  }
}
