/* ==========================================================================
   Ruthvik Interior Studios - Responsive Viewport Adaptations
   Tested viewports: 1920, 1440, 1366, 1280, 1024, 768, 430, 414, 390, 375
   ========================================================================== */

/* --------------------------------------------------------------------------
   Desktop Layout (>= 1025px)
   -------------------------------------------------------------------------- */
@media screen and (min-width: 1025px) {
  .mobile-nav-toggle {
    display: none !important;
  }
  
  .mobile-nav-drawer {
    display: none !important;
  }
}

/* --------------------------------------------------------------------------
   Tablets & Medium Screens (<= 1024px)
   -------------------------------------------------------------------------- */
@media screen and (max-width: 1024px) {
  .desktop-nav {
    display: none;
  }

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

  .header-actions .header-cta {
    display: inline-flex;
    padding: 0.45rem 1.15rem !important;
    font-size: 0.725rem !important;
    min-height: 36px !important;
    height: 36px;
  }

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

  .editorial-services-lead {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

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

  .residential-alt-row {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    direction: ltr !important;
  }

  .residential-alt-row.reverse {
    direction: ltr !important;
  }

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

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

  .execution-row-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }

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

  .property-spectrum-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .portfolio-item-single {
    grid-column: span 12;
    max-width: 100%;
  }

  .portfolio-item-third {
    grid-column: span 6;
  }

  .portfolio-item-7,
  .portfolio-item-5,
  .portfolio-item-8,
  .portfolio-item-4 {
    grid-column: span 12;
  }

  .packages-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
  }

  .whats-included-grid,
  .about-approach-grid,
  .why-editorial-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }

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

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

  .footer-brand-col {
    grid-column: 1 / -1;
  }
}

/* --------------------------------------------------------------------------
   Mobile Devices (<= 768px)
   -------------------------------------------------------------------------- */
@media screen and (max-width: 768px) {
  .header-container {
    height: 72px;
  }

  .brand-logo {
    gap: 0.625rem;
  }

  .brand-logo-img {
    height: 42px;
    width: 42px;
  }

  .brand-name {
    font-size: 1.25rem;
    letter-spacing: 0.1em;
  }

  .brand-tagline {
    font-size: 0.5rem;
    letter-spacing: 0.18em;
  }

  .category-split-grid,
  .category-panel-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  /* Portfolio mobile full stacking */
  .editorial-portfolio-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .portfolio-item-single,
  .portfolio-item-hero,
  .portfolio-item-half,
  .portfolio-item-third,
  .portfolio-item-7,
  .portfolio-item-5,
  .portfolio-item-8,
  .portfolio-item-4 {
    grid-column: span 1;
    max-width: 100%;
  }

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

  .commercial-domains-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .commercial-domain-col {
    padding-left: 0;
    border-left: none;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-primary-light);
  }

  .execution-row-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .process-timeline {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .property-spectrum-bar {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 2rem 0;
  }

  .whats-included-grid,
  .about-approach-grid,
  .why-editorial-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .whats-included-col {
    padding-left: 0;
    border-left: none;
    padding-top: 1.25rem;
    border-top: 1px solid var(--color-border);
  }

  .hero-actions,
  .final-cta-actions,
  .about-cta-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn,
  .final-cta-actions .btn,
  .about-cta-actions .btn {
    width: 100%;
  }

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

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .floating-whatsapp {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 50px;
    height: 50px;
  }

  .floating-whatsapp svg {
    width: 24px;
    height: 24px;
  }

  /* Methodology Horizontal Stepper Mobile Adaptation */
  .methodology-stepper-track {
    display: none;
  }

  .methodology-stepper-nav {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    gap: 0.75rem;
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
    justify-content: flex-start;
  }

  .methodology-step-btn {
    flex: 0 0 auto;
    scroll-snap-align: start;
    width: 130px;
  }

  .methodology-panel-highlights {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .methodology-controls-bar {
    flex-wrap: wrap;
    gap: 0.75rem;
  }
}

/* --------------------------------------------------------------------------
   Narrow Mobile Viewports (<= 430px)
   -------------------------------------------------------------------------- */
@media screen and (max-width: 430px) {
  .header-container {
    height: 66px;
  }

  .header-actions .header-cta {
    display: none;
  }

  .brand-logo {
    gap: 0.5rem;
  }

  .brand-logo-img {
    height: 38px;
    width: 38px;
  }

  .footer-logo-img {
    width: 38px;
    height: 38px;
  }

  .brand-name {
    font-size: 1.05rem;
    letter-spacing: 0.08em;
  }

  .brand-tagline {
    font-size: 0.44rem;
    letter-spacing: 0.14em;
  }

  .about-cta-box {
    padding: 2.25rem 1.25rem;
  }

  .architectural-frame-inner {
    padding: 1.25rem;
  }

  .architectural-blueprint-svg {
    width: 48px;
    height: 48px;
  }
}

/* ==========================================================================
   Hero Scroll Sequence & New Components Responsive Adaptations
   ========================================================================== */

@media screen and (max-width: 992px) {
  .hero-scroll-sequence {
    /* Shorter scroll sequence on tablets and mobile as required */
    height: 220vh;
    position: relative;
    overflow: visible;
  }

  .hero-sticky-viewport {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
  }

  .hero-bg-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }

  /* Tailored background focal points for mobile composition */
  .hero-bg-layer--1 img {
    object-position: 45% center;
  }

  .hero-bg-layer--2 img {
    object-position: center center;
  }

  .hero-bg-layer--3 img {
    object-position: center 35%;
  }

  .hero-bg-layer--4 img {
    object-position: 65% center;
  }

  .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
      180deg,
      rgba(20, 20, 19, 0.85) 0%,
      rgba(25, 24, 23, 0.65) 55%,
      rgba(31, 31, 30, 0.75) 100%
    );
  }

  .hero-sticky-wrap {
    position: relative;
    height: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-top: clamp(4.5rem, 8vw, 6rem);
    padding-bottom: 2rem;
    pointer-events: auto;
    display: flex;
    align-items: center;
  }

  .hero-fg-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    padding-top: 0;
    padding-bottom: 0;
  }

  .hero-fg-content {
    min-height: auto;
  }

  .hero-fg-title {
    font-size: clamp(2rem, 5.5vw, 2.75rem);
    margin-bottom: 0.75rem;
  }

  .hero-fg-desc {
    font-size: var(--font-size-base);
    margin-bottom: 1.25rem;
  }

  .hero-form-panel {
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
  }

  .hero-form-card {
    padding: 1.35rem 1.15rem;
  }

  .hero-scroll-indicator {
    display: none;
  }

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

@media screen and (max-width: 640px) {
  .hero-scroll-sequence {
    height: 200vh;
  }

  .hero-sticky-wrap {
    padding-top: 4.5rem;
    padding-bottom: 2rem;
    display: block;
  }

  .hero-fg-grid {
    gap: 1.25rem;
  }

  .hero-fg-title {
    font-size: clamp(1.75rem, 6.5vw, 2.25rem);
    line-height: 1.15;
  }

  .hero-fg-desc {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
  }

  .hero-form-header h2 {
    font-size: 1.3rem;
  }

  .hero-form-card {
    padding: 1.15rem 1rem;
    border-radius: 8px;
  }

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

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

