/* ==========================================================================
   YUVAASOFT - RESPONSIVE LAYOUT STYLESHEET
   Layout & Breakpoints only (No colors)
   ========================================================================== */

/* === 1100px: Navigation collapses to offcanvas drawer === */
@media (max-width: 1100px) {
  .site-nav__nav,
  .site-nav__actions { display: none !important; }
  .site-nav__hamburger { display: flex !important; }
  .home-hero-stage {
    height: 440px;
  }
  .footer-cols-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 36px 32px;
  }
}

/* === 1024px: Tablet Landscape === */
@media (max-width: 1024px) {
  .hero-chip--tl { left: 12px; }
  .hero-chip--br { right: 12px; }
  .serv-card:nth-child(n) { grid-column: span 3; }
  .serv-card:nth-child(5) { grid-column: span 6; }
  .home-eco-card { --card-w: 340px; --step: 330px; }
  .eco-row { gap: 40px; }
  .feature-row { grid-template-columns: 1fr; gap: 2rem; }
  .grid-4-cards { grid-template-columns: repeat(2, 1fr); }
}

/* === 900px: Tablet Portrait / Large Mobile === */
@media (min-width: 901px) {
  .part-flow { display: block; }
  .part-steps-cards { display: none; }
}

@media (max-width: 900px) {
  .hero-split { grid-template-columns: 1fr; gap: 32px; }
  .hero-visual { width: 100%; max-width: 520px; height: 340px; margin: 40px auto 0; }
  .eco-hub__center { width: 72px; height: 70px; }
  .eco-hub__center-cap { height: 54px; border-radius: 14px; }
  .eco-hub__center-cap img { width: 38px; }
  .eco-hub__node--icon { width: 40px; height: 40px; border-radius: 10px; }
  .eco-hub__node--icon svg { width: 15px; height: 15px; }
  .eco-hub__node--brand { width: 70px; height: 40px; border-radius: 10px; }
  .hero-chip--tl { left: 12px; }
  .hero-chip--br { right: 12px; }
  .part-flow { display: none; }
  .part-steps-cards { display: block; }
  .contact-main-section,
  .demo-main-section { padding: 56px 0 !important; }
  .contact-main-grid,
  .demo-main-grid { grid-template-columns: 1fr; gap: 32px; }
  .demo-product-picker { grid-template-columns: 1fr 1fr; gap: 12px; }
  .demo-hero-card { width: 92%; }
  .home-products-split { grid-template-columns: 1fr !important; gap: 40px; }
  .home-products-sticky { position: static !important; }
  .home-products-nav { display: none; }
  .home-deck-card { position: static !important; margin-bottom: 24px; top: auto !important; }
  .home-deck-card-inner { grid-template-columns: 1fr !important; gap: 20px; }
  .home-deck-preview-panel { height: 160px; order: 2; }
  .home-hero-stage {
    height: auto;
    display: flex;
    flex-direction: column;
    background: transparent;
    border-radius: 0;
    overflow: visible;
  }
  .home-hero-art {
    position: relative;
    inset: auto;
    height: 260px;
    width: 100%;
    background-color: var(--ys-blue-50);
    border-radius: 6px;
    overflow: hidden;
    order: 1;
  }
  .home-hero-svg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 78%;
    height: auto;
    transform: translate(-55%, -50%);
  }
  .home-hero-notch {
    position: static;
    width: 100%;
    min-width: 0;
    padding: 20px 0;
    border-radius: 0;
    order: 2;
  }
  .home-hero-notch--r {
    display: none;
  }
  .hero-chip-target {
    display: none;
  }
  .home-what-is-grid,
  .contact-grid-split,
  .split { grid-template-columns: 1fr !important; gap: 2.5rem; }
  .home-what-is-pillars { grid-template-columns: 1fr; }
  .grid-4-cards { grid-template-columns: 1fr !important; }
  .page-hero-title,
  .home-hero-headline { font-size: 2.25rem; }
}

/* === 800px: Home Values 1-Column === */
@media (max-width: 800px) {
  .home-values { padding: 64px 0; }
  .home-value-h2 { font-size: 1.625rem; line-height: 2.125rem; }
  .home-value-grid { grid-template-columns: 1fr; }
  .home-value-item { flex-direction: column; gap: 16px; padding: 24px; }
  .home-value-title { font-size: 1.25rem; line-height: 1.75rem; }
}

/* === 768px: Mobile Landscape === */
@media (max-width: 768px) {
  .container { padding-left: 20px; padding-right: 20px; }
  .page-section { padding: 56px 0; }
  .page-hero { padding: 56px 0 44px; }
  .page-hero--center { padding: 64px 0 48px; }
  .grid-3,
  .grid-2,
  .grid-3-cards,
  .part-steps-grid,
  .feature-row { grid-template-columns: 1fr !important; gap: 16px; }
  .home-eco-heading-row { grid-template-columns: 1fr; gap: 16px; margin-bottom: 32px; }
  .home-eco-arrow--desktop { display: none !important; }
  .home-eco-arrow--mobile { display: flex !important; }
  .home-eco-card { --card-w: min(86vw, 380px); }
  .home-eco-card[data-pos="prev"],
  .home-eco-card[data-pos="next"] { opacity: 0 !important; pointer-events: none !important; }
  .eco-row { grid-template-columns: 1fr; gap: 40px; }
  .eco-panel-col { order: -1; }
  .feature-row .prod-preview-card { order: -1; }
  .home-cta-section { padding: 32px 0; }
  .home-cta-banner {
    grid-template-columns: 1fr;
    padding: 24px 18px;
    gap: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--ys-neutral-900) 0%, var(--ys-neutral-700) 65%, var(--ys-red-100) 100%);
  }
  .home-cta-visual {
    position: absolute;
    top: 20px;
    right: 18px;
    min-height: 0;
    justify-content: flex-end;
  }
  .home-cta-visual::before { display: none; }
  .home-cta-logo { width: 44px; }
  .home-cta-title { font-size: 1.25rem; padding-right: 54px; margin-bottom: 8px; }
  .home-cta-subtitle { font-size: 0.875rem; line-height: 1.45; margin-bottom: 16px; }
  .home-cta-actions { flex-wrap: nowrap; gap: 8px; }
  .home-cta-btn-primary { height: 38px; padding: 0 6px 0 14px; gap: 6px; font-size: 12px; }
  .home-cta-btn-circle { width: 22px; height: 22px; }
  .home-cta-btn-secondary { height: 38px; padding: 0 12px; font-size: 12px; }
  .footer-main { padding: 36px 0 28px; }
  .footer-bottom-band { padding: 28px 0 96px; }
  .site-footer .container { padding-left: 16px; padding-right: 16px; }
  .footer-cols-grid { grid-template-columns: 1fr; gap: 0; }
  .footer-col { border-bottom: 1px solid var(--ys-neutral-200); }
  .footer-col-title { display: none; }
  .footer-acc__btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 60px;
    padding: 16px 4px;
    background: transparent;
    border: 0;
    color: var(--ys-neutral-900);
    font-family: var(--ys-font);
    font-size: 17px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .footer-acc__label::after {
    content: "";
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--ys-red-500);
    margin-top: 6px;
    border-radius: 2px;
  }
  .footer-acc__btn:hover,
  .footer-acc__btn:active,
  .footer-acc__btn:focus { background: transparent; color: var(--ys-neutral-900); box-shadow: none; }
  .footer-acc__btn:focus-visible { outline: 2px solid var(--ys-blue-500); outline-offset: 2px; }
  .footer-acc__ic { width: 20px; height: 20px; stroke: var(--ys-neutral-900); stroke-width: 2; fill: none; flex: none; }
  .footer-acc__vert { transform-origin: center; transition: transform 200ms ease, opacity 200ms ease; }
  .footer-acc__btn[aria-expanded="true"] .footer-acc__vert { opacity: 0; transform: scaleY(0); }
  .footer-acc__panel { display: grid; grid-template-rows: 1fr; opacity: 1; transition: grid-template-rows 200ms ease, opacity 200ms ease; }
  .footer-acc__panel[hidden] { display: grid; grid-template-rows: 0fr; opacity: 0; visibility: hidden; pointer-events: none; }
  html:not(.js) .footer-acc__panel[hidden] { grid-template-rows: 1fr; opacity: 1; visibility: visible; pointer-events: auto; }
  .footer-acc__inner { overflow: hidden; }
  .footer-acc__inner > ul,
  .footer-acc__inner > .footer-address-row { padding-bottom: 16px; }
  .footer-links-list { gap: 12px; }
  .footer-social-divider { margin-top: 32px; justify-content: center; gap: 12px; }
  .footer-social-divider::before,
  .footer-social-divider::after { flex: none; width: 20px; }
  .footer-social-group { gap: 17px; }
  .site-footer .footer-social a,
  .site-footer .footer-social a:hover,
  .site-footer .footer-social a:active,
  .site-footer .footer-social a:focus { width: 49px; height: 49px; }
  .footer-logo-row { margin: 0 0 20px; }
  .footer-eco-strip {
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    width: 100%;
  }
  .footer-eco-chip,
  .footer-logo-link,
  .footer-eco-hub {
    height: 32px;
  }
  .footer-eco-img {
    height: 20px;
    width: auto;
    max-width: none;
  }
  .footer-logo-img {
    height: 29px;
    width: auto;
    max-width: none;
  }
  .footer-eco-infinity {
    height: 31px;
    width: auto;
    max-width: none;
  }
  .footer-bottom-bar { flex-direction: column; text-align: center; gap: 12px; font-size: 13px; }
  .legal-hero { padding: 48px 0 36px; }
  .legal-section { padding: 36px 0 64px; }
  .legal-card { padding: 28px 20px; border-radius: 12px; }
  .legal-content h2 { font-size: 18px; margin-top: 24px; padding-top: 20px; }
  .vm-section { padding: 64px 0; }
  .vm-infinity-grid { grid-template-columns: 1fr; gap: 0; }
  .vm-card { padding: 28px 22px; }
  .vm-hub { padding: 22px 0; }
  .vm-hub::before,
  .vm-hub::after {
    width: 2px;
    height: 22px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }
  .vm-hub::before { top: 0; }
  .vm-hub::after { top: auto; bottom: 0; }
}

/* === 640px: Mobile Standard === */
@media (max-width: 640px) {
  .serv-section { padding: 64px 0; }
  .serv-h2 { font-size: 1.625rem; line-height: 2.125rem; }
  .serv-grid { grid-template-columns: 1fr; }
  .serv-card:nth-child(n) { grid-column: auto; }
  .serv-card-title { font-size: 1.25rem; line-height: 1.75rem; }
  .serv-help-strip { flex-direction: column; align-items: flex-start; padding: 20px 16px; gap: 16px; }
  .serv-help-actions { width: 100%; flex-wrap: nowrap; gap: 8px; }
  .serv-help-strip .serv-help-btn-outline,
  .serv-help-strip .serv-help-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 0;
    min-width: 0;
    height: 38px;
    padding: 0 10px;
    font-size: 11.5px;
    white-space: nowrap;
    text-align: center;
  }
  .filter-tabs { flex-direction: column; align-items: stretch; }
  .form-grid-2 { grid-template-columns: 1fr !important; }
  .form-card { padding: 24px 18px !important; border-radius: 16px !important; }
  .contact-address-box { padding: 20px !important; border-radius: 16px !important; }
  .demo-hero-body { padding: 14px; }
  .demo-hero-head { margin-bottom: 12px; }
  .demo-hero-card-title { font-size: 0.88rem; }
  .demo-hero-card-sub { font-size: 0.74rem; }
  .demo-hero-steps { gap: 8px; }
}

/* === 560px: Small Mobile Hero Stack === */
@media (max-width: 560px) {
  .home-hero-art {
    height: 220px;
  }
  .home-hero-svg {
    top: 50%;
    left: 0;
    width: 150%;
    transform: translate(-31%, -50%);
  }
  .home-hero-headline {
    font-size: 2.25rem;
  }
  .home-hero-notch {
    padding: 20px 0;
  }
  .home-hero-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  .home-hero-btn-demo,
  .home-hero-btn-explore {
    width: 100%;
    height: 48px;
    justify-content: center;
  }
}

/* === 480px: Small Mobile === */
@media (max-width: 480px) {
  .btn-group { flex-direction: column; width: 100%; }
  .btn { width: 100%; justify-content: center; }
  .home-hero-headline,
  .page-hero-title { font-size: 1.85rem; }
  .demo-product-picker { grid-template-columns: 1fr; }
  .demo-hero-steps { grid-template-columns: 1fr 1fr; }
  .section-heading { font-size: 1.65rem; }
  .whatsapp-float-btn {
    right: 16px;
    bottom: 16px;
    width: 52px;
    height: 52px;
  }
  .whatsapp-float-ic {
    width: 26px;
    height: 26px;
  }
  .back-to-top {
    right: 16px;
    bottom: 78px;
    width: 40px;
    height: 40px;
  }
}

/* === <= 460px & <= 375px: Single-row social buttons === */
@media (max-width: 460px) {
  .footer-social-divider { gap: 8px; }
  .footer-social-divider::before,
  .footer-social-divider::after { width: 10px; }
  .footer-social-group { gap: 10px; }
  .site-footer .footer-social a,
  .site-footer .footer-social a:hover,
  .site-footer .footer-social a:active,
  .site-footer .footer-social a:focus { width: 42px; height: 42px; }
  .footer-eco-strip { gap: 6px; }
  .footer-eco-chip,
  .footer-logo-link,
  .footer-eco-hub { height: 26px; }
  .footer-eco-img { height: 17px; }
  .footer-logo-img { height: 24px; }
  .footer-eco-infinity { height: 26px; }
}
@media (max-width: 375px) {
  .footer-social-group { gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .footer-acc__panel,
  .footer-acc__vert { transition: none; }
}
