/**
 * VIVAN INFRATECH PROJECTS - Responsive Stylesheet
 * Responsive Breakpoints: Desktop (1440px), Laptop (1024px), Tablet (768px), Mobile (375px/320px)
 */

/* ==========================================================================
   LAPTOP & LARGE TABLETS (max-width: 1200px)
   ========================================================================== */
@media (max-width: 1200px) {
  :root {
    --section-padding-y: 90px;
  }
  
  .services-grid,
  .why-grid,
  .industries-grid,
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  
  .services-grid > :nth-child(7) {
    grid-column: 1 / 3;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
  }
  
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1.2fr 1.3fr;
    gap: 35px;
  }
  
  .hero-metrics-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  
  .hero-metric-item:nth-child(2) {
    border-right: none;
    padding-right: 0;
  }

  /* About Us Page Laptop Breakpoints */
  .values-six-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .vm-diagonal-grid {
    gap: 50px;
  }

  .slanted-gallery-wrap {
    height: 320px;
  }

  /* Services Page Laptop Breakpoints */
  .why-services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-detail-body {
    padding: 34px 32px;
  }
}

/* ==========================================================================
   TABLET & MOBILE MENU BREAKPOINT (max-width: 1024px)
   ========================================================================== */
@media (max-width: 1024px) {
  .main-nav,
  .header-cta {
    display: none;
  }
  
  .mobile-toggle {
    display: flex;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }
  
  .about-image-wrapper img {
    height: 440px;
  }
  
  .about-badge {
    bottom: -15px;
    right: 15px;
    padding: 16px 20px;
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
  
  /* About Us Page Tablet Layout */
  .about-banner-bg {
    width: 100%;
    opacity: 0.45;
  }

  .about-banner-overlay {
    background: linear-gradient(90deg, #161D35 0%, rgba(22, 29, 53, 0.85) 60%, rgba(22, 29, 53, 0.6) 100%);
  }

  .journey-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .journey-since-badge {
    left: 14px;
    bottom: 0;
  }

  .vm-diagonal-band {
    background: transparent;
  }

  .vm-diagonal-band::before,
  .vm-diagonal-band::after,
  .vm-skyline-decor {
    display: none;
  }

  .vm-diagonal-grid {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0;
  }

  .vm-diagonal-band > .container {
    max-width: 100%;
    padding: 0;
  }

  .vm-vision-col {
    background: linear-gradient(155deg, #1A223D 0%, #141B32 100%);
    padding: 54px 28px;
  }

  .vm-mission-col {
    background: #F3F5F9;
    padding: 54px 28px;
  }

  .expertise-split-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .slanted-gallery-wrap {
    padding: 6px 18px;
  }

  /* Services Page Tablet Breakpoint */
  .services-intro-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .service-detail-card,
  .service-detail-card.card-reverse {
    grid-template-columns: 1fr;
  }

  .service-detail-card.card-reverse .service-detail-media {
    order: 1;
  }

  .service-detail-card.card-reverse .service-detail-body {
    order: 2;
  }

  .service-detail-media {
    min-height: 290px;
  }

  /* Execution Page Tablet Breakpoints */
  .exec-timeline::before,
  .exec-progress-bar {
    left: 26px;
    transform: none;
  }

  .exec-step,
  .exec-step.step-reverse {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-left: 72px;
    margin-bottom: 52px;
  }

  .exec-step.step-reverse .exec-card {
    order: 1;
  }

  .exec-step.step-reverse .exec-media-frame {
    order: 2;
  }

  .exec-node {
    top: 32px;
    left: 26px;
    transform: translate(-50%, 0);
    width: 48px;
    height: 48px;
    font-size: 0.95rem;
  }

  .exec-step.step-active .exec-node {
    transform: translate(-50%, 0) scale(1.1);
  }

  /* Home Process Timeline Responsive (<= 1024px) */
  .process-timeline::before,
  .timeline-progress-bar {
    left: 26px;
    transform: none;
  }

  .timeline-step,
  .timeline-step.step-reverse {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-left: 72px;
    margin-bottom: 52px;
  }

  .timeline-step.step-reverse .timeline-step-content {
    order: 1;
  }

  .timeline-step.step-reverse .exec-media-frame {
    order: 2;
  }

  .timeline-marker {
    top: 28px;
    left: 26px;
    transform: translate(-50%, 0);
    width: 48px;
    height: 48px;
  }

  .timeline-step.step-active .timeline-marker {
    transform: translate(-50%, 0) scale(1.1);
  }

  /* Enquiry Page Tablet Breakpoint */
  .enquiry-split-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .enquiry-sidebar {
    position: static;
  }

  .enquiry-form-card {
    padding: 34px 28px;
  }

  /* Contact Us Page Tablet Breakpoint */
  .contact-cards-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* ==========================================================================
   TABLET PORTRAIT (max-width: 768px)
   ========================================================================== */
@media (max-width: 768px) {
  :root {
    --section-padding-y: 75px;
    --section-padding-x: 20px;
    --header-height: 76px;
  }
  
  .about-hero-banner {
    min-height: 360px;
    padding: 130px 0 65px;
  }

  .journey-photo-box img {
    height: 300px;
  }

  .values-six-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .values-divider-line {
    display: none;
  }

  .slanted-gallery-wrap {
    height: 240px;
    gap: 6px;
    padding: 4px 10px;
  }

  .slant-panel {
    transform: skewX(-7deg);
  }

  .slant-panel-inner {
    transform: skewX(7deg) scale(1.22);
  }

  /* Services Page Mobile Portrait */
  .service-features-grid {
    grid-template-columns: 1fr;
  }

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

  .service-detail-body {
    padding: 28px 22px;
  }

  .service-bg-watermark {
    font-size: 3.2rem;
    right: 18px;
  }

  /* Execution Page Mobile Portrait */
  .exec-timeline::before,
  .exec-progress-bar {
    left: 18px;
  }

  .exec-step,
  .exec-step.step-reverse {
    padding-left: 52px;
    gap: 18px;
    margin-bottom: 40px;
  }

  .exec-node {
    left: 18px;
    width: 38px;
    height: 38px;
    font-size: 0.82rem;
  }

  .exec-card {
    padding: 26px 22px;
  }

  .exec-media-caption {
    font-size: 0.68rem;
    padding: 5px 10px;
    left: 10px;
    bottom: 10px;
    max-width: calc(100% - 20px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Enquiry Page Mobile Portrait */
  .enquiry-form-card {
    padding: 26px 20px;
  }

  .enquiry-form-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .btn-submit-enquiry {
    width: 100%;
  }

  .thank-you-card {
    flex-direction: column;
    text-align: center;
    padding: 30px 22px;
    gap: 18px;
  }
  
  .hero-section {
    padding-top: 100px;
    padding-bottom: 50px;
    min-height: auto;
  }
  
  .hero-metrics-bar {
    grid-template-columns: 1fr;
    padding: 20px;
  }
  
  .hero-metric-item {
    border-right: none;
    padding-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 14px;
  }
  
  .hero-metric-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
  
  .hero-controls {
    display: none;
  }
  
  /* Timeline mobile compact padding handled above; clean 480px refinement below */
  .timeline-step-content {
    width: 100%;
    padding: 24px;
  }
  
  .services-grid,
  .why-grid,
  .industries-grid,
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .services-grid > :nth-child(7) {
    grid-column: 1 / 2;
    max-width: none;
  }
  
  .about-pillars {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .career-why-card {
    max-width: none;
  }
  
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  
  .final-cta-section {
    padding: 80px 0;
  }
}

/* ==========================================================================
   MOBILE PHONES (max-width: 480px)
   ========================================================================== */
@media (max-width: 480px) {
  :root {
    --section-padding-y: 60px;
    --section-padding-x: 16px;
  }
  
  .hero-title {
    font-size: 2.15rem;
  }
  
  .hero-cta-group {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  
  .hero-cta-group .btn {
    width: 100%;
  }
  
  .final-cta-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .final-cta-buttons .btn {
    width: 100%;
  }
  
  .about-badge {
    position: static;
    margin-top: 15px;
    width: 100%;
    justify-content: center;
  }
  
  .about-decor-line {
    display: none;
  }
  
  .about-image-wrapper img {
    height: 320px;
  }
  
  .timeline-step,
  .timeline-step.step-reverse {
    padding-left: 52px;
    gap: 18px;
    margin-bottom: 40px;
  }
  
  .process-timeline::before,
  .timeline-progress-bar {
    left: 18px;
  }
  
  .timeline-marker {
    left: 18px;
    width: 38px;
    height: 38px;
  }
  
  .timeline-marker svg {
    width: 18px;
    height: 18px;
  }
  
  .portfolio-filters {
    gap: 8px;
  }
  
  .filter-btn {
    font-size: 0.78rem;
    padding: 8px 16px;
  }
  
  .mobile-drawer {
    padding: 95px 24px 30px;
  }
  
  .floating-actions-dock {
    bottom: 12px;
    right: 10px;
    gap: 8px;
  }

  .floating-action-btn {
    width: 40px;
    height: 40px;
  }

  .back-to-top {
    width: 40px;
    height: 40px;
  }

  /* About Us Mobile Refinements */
  .values-six-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .journey-since-badge {
    position: static;
    margin-top: 14px;
    width: 100%;
    justify-content: center;
  }

  .slanted-gallery-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: auto;
    gap: 10px;
    padding: 0;
  }

  .slant-panel {
    height: 170px;
    transform: none;
  }

  .slant-panel-inner {
    position: static;
    width: 100%;
    height: 100%;
    transform: none;
  }

  .footer-bottom {
    padding-right: 0;
    padding-bottom: 58px;
  }

  .btn-gold-pill {
    width: 100%;
  }
}

/* ==========================================================================
   SCROLLYTELLING HERO RESPONSIVE (MOBILE)
   ========================================================================== */
@media (max-width: 768px) {
  .scrolly-hero-section {
    height: 360vh;
  }
}
