/* ==========================================================================
   STUDIO ARCHÉ — RESPONSIVE STYLESHEET
   Tested & Optimized for 1440px, 1280px, 1024px, 768px, 430px, 390px, 375px, 320px
   ========================================================================== */

/* --------------------------------------------------------------------------
   Desktop & High-Resolution Displays (1200px - 1440px+)
   -------------------------------------------------------------------------- */
@media (min-width: 1200px) {
  .container-fluid {
    max-width: 1560px;
  }

  .container {
    max-width: 1280px;
  }

  .about-img-primary {
    height: 560px;
  }

  .about-img-secondary {
    height: 310px;
  }
}

/* --------------------------------------------------------------------------
   Laptops & Standard Desktop (992px - 1199px)
   -------------------------------------------------------------------------- */
@media (max-width: 1199.98px) {
  .hero-heading {
    font-size: 3.8rem;
  }

  .about-image-composition {
    padding-bottom: 2.5rem;
    padding-right: 1.5rem;
  }

  .about-img-primary {
    height: 460px;
  }

  .about-img-secondary {
    height: 240px;
  }

  .project-img-container,
  .col-lg-8 .project-img-container,
  .col-lg-6 .project-img-container,
  .col-lg-4 .project-img-container {
    height: 440px;
  }

  .approach-process-grid {
    gap: 1.5rem;
  }

  .step-node-line {
    margin-right: -1.5rem;
  }
}

/* --------------------------------------------------------------------------
   Tablets (768px - 991.98px)
   -------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
  /* Header & Mobile Navbar */
  .header-nav {
    padding: 1.1rem 0;
    background-color: rgba(245, 242, 236, 0.98);
    border-bottom: 1px solid var(--color-border);
  }

  .header-nav .navbar-brand,
  .header-nav .custom-toggler {
    color: var(--color-text-primary) !important;
  }

  .navbar-collapse {
    background-color: var(--color-bg-primary);
    padding: 1.75rem 1.5rem;
    border-top: 1px solid var(--color-border);
    margin-top: 1rem;
    box-shadow: 0 16px 30px rgba(37, 38, 34, 0.08);
  }

  .navbar-nav .nav-link {
    color: var(--color-text-primary) !important;
    padding: 0.75rem 0 !important;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--color-border-subtle);
  }

  .navbar-nav .nav-link::after {
    display: none;
  }

  .nav-cta {
    width: 100%;
    margin-top: 1rem;
    text-align: center;
    color: var(--color-text-primary) !important;
    border-color: var(--color-text-primary) !important;
  }

  /* Hero Section */
  .hero-heading {
    font-size: 3.2rem;
  }

  .hero-content-container {
    padding-top: 4rem;
  }

  /* About Layout */
  .about-image-composition {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    padding-right: 1rem;
  }

  .about-img-primary-wrap {
    width: 85%;
  }

  .about-img-primary {
    height: 420px;
  }

  .about-img-secondary-wrap {
    width: 52%;
  }

  .about-img-secondary {
    height: 230px;
  }

  /* Design Approach: Switch from horizontal to 2-column on tablets */
  .approach-process-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem 2rem;
  }

  .step-node-line {
    margin-right: -2rem;
  }

  .approach-step:nth-child(2) .step-node-line,
  .approach-step:nth-child(4) .step-node-line {
    display: none;
  }

  .step-desc {
    min-height: auto;
  }

  /* Project Image sizing */
  .col-lg-8 .project-img-container,
  .col-lg-6 .project-img-container,
  .col-lg-4 .project-img-container,
  .project-img-container {
    height: 380px;
  }

  /* Forms & Cards */
  .enquiry-form-card {
    padding: 2.2rem 1.8rem;
  }

  .modal-project-img {
    height: 360px;
  }
}

/* --------------------------------------------------------------------------
   Mobile Landscape & Large Phones (576px - 767.98px)
   -------------------------------------------------------------------------- */
@media (max-width: 767.98px) {
  .hero-heading {
    font-size: 2.6rem;
    line-height: 1.15;
  }

  .hero-description {
    font-size: 1.05rem;
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }

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

  .hero-scroll-indicator {
    display: none; /* Clear space on mobile viewport */
  }

  /* About Image composition on mobile */
  .about-image-composition {
    padding-bottom: 1.5rem;
    padding-right: 0;
  }

  .about-img-primary-wrap {
    width: 100%;
  }

  .about-img-primary {
    height: 360px;
  }

  .about-img-secondary-wrap {
    position: relative;
    width: 70%;
    margin-top: -60px;
    margin-left: auto;
    border-width: 4px;
  }

  .about-img-secondary {
    height: 190px;
  }

  /* Approach: Switch to vertical timeline on mobile */
  .approach-process-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    position: relative;
    padding-left: 2rem;
  }

  .approach-process-grid::before {
    display: block;
    content: '';
    position: absolute;
    top: 6px;
    bottom: 12px;
    left: 7px;
    width: 1px;
    height: auto;
    background: rgba(255, 255, 255, 0.16);
    z-index: 1;
  }

  .approach-step {
    padding-right: 0;
    position: relative;
  }

  .step-timeline-header {
    margin-bottom: 0.5rem;
  }

  .step-node-line {
    display: none !important;
  }

  .step-node-wrapper {
    position: absolute;
    left: -2rem;
    top: 6px;
    transform: none;
  }

  .step-desc {
    min-height: auto;
  }

  /* Portfolio Grid */
  .col-lg-8 .project-img-container,
  .col-lg-6 .project-img-container,
  .col-lg-4 .project-img-container,
  .project-img-container {
    height: 340px;
  }

  .project-overlay {
    padding: 1.5rem;
  }

  .project-title {
    font-size: 1.5rem;
  }

  /* Stats Section */
  .stat-card {
    padding: 1rem 0.5rem;
  }

  .stat-number-wrapper {
    font-size: 2.8rem;
  }

  .stat-label {
    font-size: 0.72rem;
  }

  /* Testimonials */
  .testimonial-card {
    padding: 2rem 1.5rem;
  }

  /* Floating Buttons */
  .floating-whatsapp-btn {
    bottom: 1.25rem;
    right: 1.25rem;
    width: 50px;
    height: 50px;
    font-size: 1.6rem;
  }

  .whatsapp-tooltip {
    display: none;
  }

  .back-to-top-btn {
    bottom: 1.25rem;
    left: 1.25rem;
    width: 42px;
    height: 42px;
    font-size: 1.1rem;
  }

  /* Modal */
  .modal-project-img {
    height: 260px;
  }
}

/* --------------------------------------------------------------------------
   Small Mobile Devices (320px - 430px: iPhone 14/15 Pro, Galaxy, SE)
   -------------------------------------------------------------------------- */
@media (max-width: 430px) {
  :root {
    --section-padding: 3.75rem;
  }

  .brand-title {
    font-size: 1.1rem;
    letter-spacing: 0.08em;
  }

  .brand-monogram {
    width: 32px;
    height: 32px;
    font-size: 1.1rem;
  }

  .hero-eyebrow {
    font-size: 0.68rem;
    letter-spacing: 0.16em;
    padding: 0.3rem 0.65rem;
  }

  .hero-heading {
    font-size: 2.2rem;
    line-height: 1.15;
  }

  .editorial-heading,
  .display-5 {
    font-size: 1.95rem;
  }

  .service-card {
    padding: 1.8rem 1.4rem;
  }

  .enquiry-form-card {
    padding: 1.8rem 1.25rem;
  }

  .portfolio-filter-buttons {
    gap: 0.35rem;
  }

  .filter-btn {
    font-size: 0.75rem;
    padding: 0.4rem 0.85rem;
  }

  .project-img-container,
  .col-lg-8 .project-img-container,
  .col-lg-6 .project-img-container,
  .col-lg-4 .project-img-container {
    height: 300px;
  }

  .custom-accordion .accordion-button {
    font-size: 1.1rem;
    padding: 1.1rem 1.25rem;
  }

  .custom-accordion .accordion-body {
    padding: 1.25rem;
  }
}

/* --------------------------------------------------------------------------
   Extra Narrow Mobile (Down to 320px)
   -------------------------------------------------------------------------- */
@media (max-width: 350px) {
  .hero-heading {
    font-size: 1.95rem;
  }

  .brand-tagline {
    display: none;
  }

  .btn-arche-primary,
  .btn-arche-secondary {
    padding: 0.75rem 1.2rem;
    font-size: 0.78rem;
  }

  .stat-number-wrapper {
    font-size: 2.4rem;
  }
}

