/*
 * Responsive — all @media queries consolidated (single source of truth).
 *
 * Breakpoints (desktop-down):
 *   1100px — nav collapses; hero stats 6-col → 2-col
 *   1080px — hero stats 3-col; expertise-top 1-col; cards-grid 2-col; footer 2-col
 *   1000px — providers 4-col → 2-col
 *    900px — octopus mobile stack; savings 1-col; testimonials stack
 *    768px — base small adjustments
 *    760px — cards-grid 1-col; tools-layout stacks
 *    640px — footer 1-col
 *    480px — svc-card stacks; providers 1-col
 *
 * @package Vinelec
 */

/* =================================================================
   1100px — nav collapses; hero stats 2-col
   ================================================================= */

@media (max-width: 1100px) {

  .menu,
  .enquiry {
    display: none;
  }

  .burger {
    display: inline-flex;
  }

  .hero-left {
    max-width: 680px;
  }

  .trust {
    gap: var(--space-md);
  }
}

/* =================================================================
   1080px — hero stats 3-col; expertise top 1-col; cards 2-col; footer 2-col
   ================================================================= */

@media (max-width: 1080px) {

  /* Stats: cap at 3 columns regardless of --stat-count */
  .stats {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Expertise: stack diagram below text */
  .expertise-top {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .expertise-text {
    max-width: 560px;
    margin-inline: auto;
  }

  .expertise-text .section-lead {
    margin-inline: auto;
  }

  .expertise-text .btn {
    margin-inline: auto;
  }

  .octopus-wrap {
    height: 600px;
	  margin:auto;
  }

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

  /* Footer: 3-col → 1-col stacked */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
	.footer-col-item {
    width: 80% !important;
    margin: 0 auto;
}
}

/* =================================================================
   1000px — providers 2-col
   ================================================================= */

@media (max-width: 1000px) {

  .provider-logo {
    min-width: 180px;
  }
}

/* =================================================================
   900px — octopus mobile stack; savings 1-col; testimonials stack
   ================================================================= */

@media (max-width: 900px) {

  .hero-left {
    max-width: 100%;
  }

  /* Octopus: switch from absolute positioned to vertical column */
  .octopus-wrap {
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding-bottom: 20px;
  }

  .octopus-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
  }

  .center-shell,
  .node-shell {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    transform: none;
    z-index: 6;
  }

  .center-shell {
    width: 150px;
    height: 150px;
    margin-top: 10px;
    margin-bottom: 60px;
    animation: mobileCF 5s ease-in-out infinite;
  }

  .mobile-nodes-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    width: 100%;
  }

  .node-shell {
    width: 130px;
    height: 130px;
    margin-bottom: 60px;
    animation: mobileNF 5.5s ease-in-out infinite;
  }

  .node-shell:last-child {
    margin-bottom: 0;
  }

  .service-inner {
    padding: 10px;
  }

  .service-icon {
    width: 30px;
    height: 30px;
  }

  .service-title {
    font-size: 10px;
  }

  /* Savings */
  .savings-grid {
    grid-template-columns: 1fr;
  }

  .savings-card {
    padding: 36px 28px 40px;
  }

  /* Testimonials */
  .testimonials-card {
    padding: 32px 24px 36px;
  }

  .testimonials-row {
    flex-direction: column;
  }

  .testimonials-arrow {
    align-self: flex-end;
    margin-top: 8px;
  }

  .trust-bar {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 24px 28px;
  }
	.providers-section {
    padding: 0 !important;
}
}

/* =================================================================
   768px — general small-viewport tweaks
   ================================================================= */

@media (max-width: 768px) {

  .skip-link {
    font-size: var(--fs-xs);
    padding: 10px 16px;
  }

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

.stat:last-child, .stat:nth-child(2) {
  border-right: none;
}
	.testimonials-section, .expertise, .savings-section, .tools-section {
    padding: 60px 0 !important;
}
	.hero {
    padding-bottom: 0 !important;
}
}

/* =================================================================
   760px — cards-grid 1-col; tools-layout stacks
   ================================================================= */

@media (max-width: 760px) {

  /* Expertise service cards */
  .cards-grid {
    grid-template-columns: 1fr;
  }

  .svc-card {
    grid-template-columns: 140px 1fr;
  }

  .svc-card-img {
    min-height: 160px;
  }

  /* Tools */
  .tools-layout {
    flex-direction: column;
    align-items: flex-start;
  }

	.svc-card-body{
		width: 100%;
	}	
}

/* =================================================================
   640px — footer 1-col; footer-bottom stacks
   ================================================================= */

@media (max-width: 640px) {

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

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

  .footer-legal {
    gap: 20px;
  }
	.footer-col-services {
    border-left: none !important;
    border-right: none !important;
    border-top: 1px solid #093583 !important;
    border-bottom: 1px solid #093583 !important;
    padding: 30px 0 10px;
}
	.footer-col-item {
    margin: 0 auto 0 0 !important;
}
}

/* =================================================================
   600px — stats 1-col
   ================================================================= */

@media (max-width: 600px) {

  .stats {
    grid-template-columns: 1fr;
  }
	
	.stat {
  		border-right: none;
	}
	
	.stat {
  		border-bottom: 1px solid rgb(74 73 81 / 50%);
	}
	
	.stat:last-child {
  		border-bottom: none;
	}
	.title{
		font-size:clamp(40px, 6.4vw, 75px) !important;
	}
	
}

/* =================================================================
   480px — svc-card stacks vertically; providers 1-col
   ================================================================= */

@media (max-width: 480px) {

  .svc-card {
    grid-template-columns: 1fr;
    grid-template-rows: 140px auto;
  }

  .provider-logo {
    min-width: 150px;
  }
}
