/* ========================================================================= */
/* TAUKE VPE 80-1P — FINAL CALIBRATED RESPONSIVE ARCHITECTURE                */
/* Path: assets/css/vpe80/responsive.css                                     */
/* Standards Applied:                                                        */
/*   - Mobile Centered Hero Heading/Lead & Centered Architecture Header      */
/*   - Unified 1280px Vertical Axis Across Hero, Trust Floor & Page Sections */
/*   - ~5mm Lower 3-Logo Trust Floor & 100% Zero-Seam Bottom Glass Dissolve  */
/*   - Golden 1.08fr / 0.92fr Desktop Hero Proportions & 44px Column Gap     */
/*   - All Healthy Below-the-Fold Sections 100% Preserved                    */
/* ========================================================================= */

/* ------------------------------------------------------------------------- */
/* 1. MOBILE & TABLET HEADER TRANSPARENCY + CALIBRATED HERO (<= 1023px)      */
/* ------------------------------------------------------------------------- */
@media (max-width: 1023px) {
  /* Keep #nav 100% transparent at page top so logo & menu sit on metal bg */
  #nav {
    background: transparent !important;
    background-color: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom: 1px solid transparent !important;
    box-shadow: none !important;
  }

  /* Apply clean frosted glass ONLY after the user scrolls down */
  #nav.is-scrolled,
  #nav.scrolled,
  #nav.nav-scrolled {
    background: rgba(246, 247, 248, 0.88) !important;
    backdrop-filter: blur(18px) saturate(118%) !important;
    -webkit-backdrop-filter: blur(18px) saturate(118%) !important;
    border-bottom: 1px solid var(--rim-highlight) !important;
    box-shadow: 0 10px 24px -16px rgba(23, 25, 28, 0.14) !important;
  }

  /* Smooth hide on scroll down on mobile */
  #nav.nav-hidden-mobile {
    transform: translateY(-115%);
  }

  /* Brighter, Airier Mobile Hero Studio Lighting (Preserves Warm Pearl Identity) */
  #hero.metallic-stage {
    background-color: #EFF0F2 !important;
  }

  #hero.metallic-stage::before {
    background:
      /* Seamless Atmospheric Floor Fade into Section 2 (#F6F5F3) */
      linear-gradient(
        to top,
        #F6F5F3 0%,
        rgba(246, 245, 243, 0.88) 10%,
        rgba(246, 245, 243, 0.38) 22%,
        rgba(246, 245, 243, 0) 36%
      ),
      /* Luminous Top-Right Softbox Lift Behind Mobile Product Stage */
      radial-gradient(
        ellipse 68% 48% at 78% 16%,
        rgba(255, 255, 255, 0.98) 0%,
        rgba(255, 255, 255, 0.68) 42%,
        rgba(255, 255, 255, 0) 76%
      ),
      /* Soft Champagne-Pearl Warmth Without Darkening Mobile Screen */
      radial-gradient(
        ellipse 62% 44% at 28% 44%,
        rgba(238, 232, 223, calc(0.62 * var(--warmth-level))) 0%,
        rgba(238, 232, 223, 0) 74%
      ),
      /* Very Light Cool Silver Corner Whisper */
      radial-gradient(
        circle at 8% 6%,
        rgba(214, 218, 225, 0.48) 0%,
        rgba(214, 218, 225, 0) 56%
      ),
      /* Bright Satin-Pearl Mobile Base Sweep */
      linear-gradient(
        155deg,
        #E6E9EE 0%,
        #F0F1F3 34%,
        #F7F7F6 68%,
        #F6F5F3 100%
      ) !important;
  }

  /* Safe 88px Top Clearance Below Transparent Mobile Header */
  #hero.prod-hero {
    padding-top: 5.5rem;
    padding-bottom: 2.25rem;
  }

  .vpe-hero-grid {
    gap: 1.5rem;
  }

  /* Airy Crystal Glass Stage with Unclipped Shadow & 100% Bottom Dissolve */
  .hero-stage-viewport {
    max-width: 100%;
  }

  .hero-stage-topbar {
    justify-content: center;
    padding: 0.95rem 1rem 0.65rem;
  }

  .hero-stage-shell .prod-pedestal {
    height: 365px !important;
    min-height: 365px !important;
    padding: 0.45rem 0.85rem 1.25rem !important;
    overflow: visible !important;
  }

  .hero-stage-shell .prod-main-img {
    max-height: 335px !important;
    max-width: 90% !important;
  }

  .hero-stage-shell #stage-3d-wrap.prod-3d-stage {
    height: 365px !important;
    min-height: 365px !important;
  }

  /* Centered Hero Heading, Eyebrow & Lead on Mobile/Tablet */
  .vpe-hero-info {
    align-items: stretch;
  }

  .prod-breadcrumb {
    justify-content: center;
    text-align: center;
    font-size: 11px;
    margin-bottom: 14px;
    opacity: 0.82;
  }

  .hero-heading-group {
    align-items: center;
    text-align: center;
  }

  .hero-h1 {
    align-items: center;
    text-align: center;
    margin-inline: auto;
  }

  .hero-eyebrow {
    justify-content: center;
  }

  .hero-lead {
    text-align: center;
    margin-inline: auto;
    max-width: 44ch;
  }

  .hero-spec-bar {
    margin-top: 20px;
    padding: 14px 0;
  }

  .hero-feature-list {
    margin-top: 18px;
    text-align: right;
  }

  .hero-actions-wrap {
    margin-top: 20px;
    gap: 14px;
  }

  /* 3-Logo Trust Floor Nudged Slightly Lower (~5mm) */
  .hero-trust-floor {
    margin-top: 2.85rem;
    padding-top: 1.35rem;
  }

  /* Centered Architecture Section Intro Block on Mobile/Tablet */
  #architecture .ed-arch-aside {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  #architecture .ed-arch-aside h2,
  #architecture .ed-arch-aside p {
    text-align: center;
    margin-inline: auto;
    max-width: 46ch;
  }
}

/* ------------------------------------------------------------------------- */
/* 2. MOBILE-ONLY REFINEMENTS (<= 767px)                                     */
/* ------------------------------------------------------------------------- */
@media (max-width: 767px) {
  .prod-sec {
    padding-top: 2.75rem;
    padding-bottom: 2.75rem;
  }

  /* 2-A. Architecture Section (#architecture):
     Centered Header + Right-Aligned Cards where ONLY background + border
     fade out to the left, keeping all Persian & Latin typography 100% sharp */
  #architecture .ed-arch-aside {
    text-align: center;
  }

  #architecture .ed-arch-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    border-top: none;
  }

  #architecture .ed-arch-row {
    position: relative;
    isolation: isolate;
    display: block;
    padding: 0.95rem 1rem 0.95rem 0.85rem;
    border-bottom: none;
    border-radius: 16px;
    background: transparent !important;
  }

  #architecture .ed-arch-row:hover {
    background: transparent !important;
    padding-right: 1rem;
  }

  #architecture .ed-arch-row::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: 16px;
    pointer-events: none;
    background: linear-gradient(
      270deg,
      rgba(255, 255, 255, 0.88) 0%,
      rgba(255, 255, 255, 0.62) 54%,
      rgba(255, 255, 255, 0) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.94);
    border-left-color: transparent;
    box-shadow:
      inset 0 1px 0 #ffffff,
      0 10px 24px -14px rgba(23, 25, 28, 0.08);
    -webkit-mask-image: linear-gradient(
      to left,
      rgba(0, 0, 0, 1) 0%,
      rgba(0, 0, 0, 0.96) 54%,
      rgba(0, 0, 0, 0.38) 80%,
      rgba(0, 0, 0, 0) 100%
    );
    mask-image: linear-gradient(
      to left,
      rgba(0, 0, 0, 1) 0%,
      rgba(0, 0, 0, 0.96) 54%,
      rgba(0, 0, 0, 0.38) 80%,
      rgba(0, 0, 0, 0) 100%
    );
  }

  #architecture .ed-arch-num {
    display: none;
  }

  #architecture .ed-arch-head {
    align-items: center;
    gap: 0.45rem;
  }

  #architecture .ed-arch-title {
    display: inline-flex;
    align-items: center;
    gap: 0.48rem;
    font-size: 13.5px;
    line-height: 1.5;
  }

  #architecture .ed-arch-title::before {
    content: attr(data-step);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 22px;
    padding: 0 0.3rem;
    border-radius: 7px;
    background: #eff1f4;
    border: 1px solid var(--line-strong);
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 10.5px;
    font-weight: 800;
    color: var(--ink-primary);
    direction: ltr;
    flex-shrink: 0;
  }

  #architecture .ed-arch-tag {
    font-size: 10px;
  }

  #architecture .ed-arch-desc {
    margin-top: 0.45rem;
    font-size: 12px;
    line-height: 1.8;
  }

  /* 2-B. Technical Datasheet (#specs) on Mobile:
     Compact, clean 2-column hairline rows */
  .ds-unified-sec {
    padding: 1.1rem 0.95rem;
  }

  .ds-row {
    display: grid;
    grid-template-columns: minmax(0, 0.45fr) minmax(0, 0.55fr);
    align-items: baseline;
    gap: 0.6rem;
    padding: 0.58rem 0;
    font-size: 11.5px;
    line-height: 1.6;
    background: transparent;
    border-radius: 0;
  }

  .ds-row > :first-child {
    text-align: right;
    color: var(--ink-secondary);
  }

  .ds-row > :last-child {
    text-align: left;
    overflow-wrap: break-word;
    word-break: normal;
  }

  .ds-diagram-box {
    padding: 0.85rem;
  }

  /* 2-C. Pure-CSS Default Collapsed Applications Accordion on Mobile */
  #apps-collapse-panel:not(.is-open) {
    display: none;
  }

  #apps-collapse-panel.is-open {
    display: block;
  }

  /* 2-D. How It Works & FAQ Compact Mobile Padding */
  .hiw-sheet {
    padding: 0.9rem;
  }

  .hiw-panel {
    padding: 0.85rem;
  }

  .faq-btn {
    padding: 0.95rem 1rem;
    font-size: 12.5px;
    line-height: 1.65;
  }

  .faq-ans {
    padding: 0 1rem 1rem;
    font-size: 12px;
  }
}

/* ------------------------------------------------------------------------- */
/* 3. EXTRA SMALL MOBILE TUNING (<= 479px)                                   */
/* ------------------------------------------------------------------------- */
@media (max-width: 479px) {
  .hiw-knob-foot {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.45rem;
  }

  .hiw-knob-foot-item:first-child {
    padding-left: 0;
    border-left: none;
    padding-bottom: 0.45rem;
    border-bottom: 1px solid var(--line);
  }

  .vpe-footer-contact-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ------------------------------------------------------------------------- */
/* 4. SMALL MOBILE (480px+)                                                  */
/* ------------------------------------------------------------------------- */
@media (min-width: 480px) {
  .hero-cta-row {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  }

  .vpe-grid-4-sm {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ------------------------------------------------------------------------- */
/* 5. LARGE MOBILE / PHABLET (640px+)                                        */
/* ------------------------------------------------------------------------- */
@media (min-width: 640px) {
  .vpe-safe-pad {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }

  /* Restored Utility Missing from Purged tailwind.min.css */
  .sm\:text-\[13\.5px\] {
    font-size: 13.5px;
    line-height: 1.85;
  }

  .hero-stage-viewport {
    max-width: 560px;
  }

  .hero-stage-topbar {
    justify-content: space-between;
    padding: 1.1rem 1.4rem 0.55rem;
  }

  .stage-series-stamp {
    display: inline-flex;
  }

  .hero-stage-shell .prod-pedestal {
    height: 405px !important;
    min-height: 405px !important;
  }

  .hero-stage-shell .prod-main-img {
    max-height: 375px !important;
  }

  .hero-stage-shell #stage-3d-wrap.prod-3d-stage {
    height: 405px !important;
    min-height: 405px !important;
  }

  .ds-cad-pair {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hiw-zones {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .vpe-footer-bottom {
    flex-direction: row;
    text-align: right;
  }
}

/* ------------------------------------------------------------------------- */
/* 6. TABLET & MEDIUM SCREENS (768px+)                                       */
/* ------------------------------------------------------------------------- */
@media (min-width: 768px) {
  .vpe-specs-head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    text-align: right;
  }

  .arch-brand-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
  }

  /* Protection Matrix 2-Column Editorial Grid */
  .ed-prot-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ed-prot-row {
    border-bottom: 1px solid var(--line);
  }

  /* In RTL 2-col grid, odd items are on the right; add left divider */
  .ed-prot-row:nth-child(odd) {
    border-left: 1px solid var(--line);
  }

  /* Remove bottom border from last row items */
  .ed-prot-row:nth-last-child(-n + 2) {
    border-bottom: none;
  }

  /* Technical Datasheet 2-Column Tables */
  .ds-2col-table {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ds-2col-table .ds-row:nth-last-child(-n + 2) {
    border-bottom: none;
  }

  .ds-2col-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.25rem;
  }

  /* Applications Always Open on Tablet/Desktop */
  #apps-collapse-panel {
    display: block !important;
  }

  .ds-apps-toggle {
    cursor: default;
  }

  .ds-apps-chevron {
    display: none;
  }

  /* How It Works 5-Step Horizontal Signal Flow */
  .hiw-track {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 0.7rem;
    align-items: stretch;
  }

  .hiw-node {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.45rem;
    padding: 0.8rem 0.6rem;
  }

  .hiw-node--core {
    grid-column: auto;
    flex-direction: row;
    text-align: right;
    padding: 0.7rem 0.85rem;
  }

  /* Real-Scale Modal Diagrams Fit Comfortably on Tablet/Desktop */
  .vpe-diagram-stage svg {
    min-width: 0;
  }

  .vpe-diagram-stage .ds-cad-pair {
    min-width: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vpe-diagram-stage .ds-cad-pair svg {
    min-width: 0;
  }

  .vpe-diagram-pan-hint {
    display: none;
  }
}

/* ------------------------------------------------------------------------- */
/* 7. DESKTOP LAYOUT (1024px+)                                               */
/* Unified 1280px Axis · Golden 1.08fr / 0.92fr Hero · Strict 8pt Rhythm     */
/* ------------------------------------------------------------------------- */
@media (min-width: 1024px) {
  .vpe-safe-pad {
    padding-left: 2rem !important;
    padding-right: 2rem !important;
  }

  .prod-sec {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  /* 7-A. HERO: Harmonious Vertical Framing for Both 768p Laptops & 1080p Screens */
  #hero.prod-hero {
    min-height: min(100svh, 920px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 6.25rem;
    padding-bottom: 1.5rem;
  }

  #hero .prod-container-wide {
    width: 100%;
    display: flex;
    flex-direction: column;
  }

  /* Balanced 2-Column Hero Grid (Product Stage Right / Info Left in RTL) */
  .vpe-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    column-gap: 2.75rem;
    row-gap: 0;
    align-items: center;
  }

  .vpe-hero-gallery {
    order: unset;
    grid-column: 1;
  }

  .vpe-hero-info {
    order: unset;
    grid-column: 2;
    align-items: stretch;
    text-align: right;
    gap: 0;
  }

  /* Breadcrumb Anchored Flush at Top of Info Column (Aligned with Glass Frame Top) */
  .prod-breadcrumb {
    justify-content: flex-start;
    text-align: right;
    margin-bottom: 16px;
    font-size: 11.5px;
    opacity: 0.84;
  }

  /* Right-Aligned Editorial Typography on Desktop */
  .hero-heading-group {
    align-items: flex-start;
    text-align: right;
  }

  .hero-h1 {
    align-items: flex-start;
    text-align: right;
    max-width: 19ch;
    margin-inline: 0;
  }

  .hero-eyebrow {
    justify-content: flex-start;
  }

  .hero-lead {
    text-align: right;
    margin-inline: 0;
    max-width: 44ch;
  }

  /* Proportional 3-Column Spec Strip with Symmetric Hairlines */
  .hero-spec-bar {
    grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.34fr) minmax(0, 0.88fr);
    margin-top: 24px;
    padding: 16px 0;
  }

  .hero-spec-item {
    align-items: flex-start;
    text-align: right;
    padding: 0 1rem;
  }

  .hero-spec-item:first-child {
    padding-right: 0;
  }

  .hero-spec-item:last-child {
    padding-left: 0;
  }

  /* Natural-Proportioned Tactile Pill CTAs (Zero Over-Stretched Width) */
  .hero-cta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
  }

  .hero-cta-row .hero-primary-btn {
    min-width: 215px;
  }

  .hero-cta-row .hero-secondary-btn {
    min-width: 148px;
  }

  /* Calibrated Crystal Glass Product Stage (100% Column Fit · Zero Bottom Seam) */
  .hero-stage-viewport {
    width: 100%;
    max-width: 640px;
    margin-inline: 0;
  }

  .hero-glass-frame {
    inset: 0;
    bottom: -1.5rem;
    border-radius: 40px 40px 0 0;
  }

  .hero-stage-topbar {
    justify-content: space-between;
    padding: 1.25rem 1.5rem 0.5rem;
  }

  .hero-stage-shell .prod-pedestal {
    height: clamp(430px, 52vh, 485px) !important;
    min-height: 430px !important;
    padding: 0.45rem 1.25rem 1.45rem !important;
    overflow: visible !important;
  }

  .hero-stage-shell .prod-main-img {
    max-height: clamp(405px, 48vh, 460px) !important;
    max-width: 90% !important;
  }

  .hero-stage-shell #stage-3d-wrap.prod-3d-stage {
    height: clamp(430px, 52vh, 485px) !important;
    min-height: 430px !important;
    width: 100%;
    max-width: none;
  }

  /* Integrated 3-Logo Trust Floor Aligned Strictly to 1280px Axis (~5mm Lower) */
  .hero-trust-floor {
    margin-top: clamp(3.15rem, 5.5vh, 4.2rem);
    padding-top: 1.45rem;
  }

  .hero-trust-floor .arch-brand-strip {
    gap: 0;
  }

  .hero-trust-floor .arch-brand-card {
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0.25rem 1.15rem;
  }

  .hero-trust-floor .arch-brand-card:first-child {
    padding-right: 0;
  }

  .hero-trust-floor .arch-brand-card:last-child {
    padding-left: 0;
  }

  .hero-trust-floor .arch-brand-card:not(:last-child) {
    border-left: 1px solid var(--line);
  }

  /* 7-B. Architecture Sticky 2-Column Split (#architecture) */
  #architecture {
    padding-top: 3.5rem;
    padding-bottom: 4rem;
  }

  .ed-arch-split {
    grid-template-columns: minmax(0, 0.38fr) minmax(0, 0.62fr);
    gap: 3rem;
  }

  #architecture .ed-arch-aside {
    position: sticky;
    top: 6.25rem;
    display: block;
    text-align: right;
  }

  #architecture .ed-arch-aside h2,
  #architecture .ed-arch-aside p {
    text-align: right;
    margin-inline: 0;
  }

  /* 7-C. Technical Datasheet CAD + Wiring Side-by-Side (#specs) */
  .ds-diagrams-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.15rem;
  }

  .ds-tap-hint {
    display: none;
  }

  /* 7-D. How It Works Dual Dashboard (#how-it-works) */
  .hiw-dash-grid {
    grid-template-columns: minmax(0, 1.38fr) minmax(0, 0.92fr);
    gap: 1.15rem;
    align-items: stretch;
  }

  /* 7-E. Minimal 4-Column Editorial Footer */
  .vpe-footer-inner {
    padding: 3.25rem 2rem 2.25rem;
  }

  .vpe-footer-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr) minmax(0, 0.85fr) minmax(0, 1.25fr);
    gap: 2.25rem;
    padding-bottom: 2rem;
  }

  .vpe-footer-brand-col {
    grid-column: auto;
    padding-bottom: 0;
    border-bottom: none;
  }

  .vpe-footer-contact-col {
    grid-column: auto;
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: none;
    box-shadow: none;
  }

  .vpe-footer-contact-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.75rem;
  }

  .vpe-footer-contact-item--addr {
    grid-column: auto;
    padding-top: 0.35rem;
    border-top: none;
  }
}

/* ------------------------------------------------------------------------- */
/* 8. WIDE DESKTOP TUNING (1280px+)                                          */
/* Keeps Exact 1280px Axis Alignment & Slightly Taller Product Presentation  */
/* ------------------------------------------------------------------------- */
@media (min-width: 1280px) {
  .vpe-hero-grid {
    column-gap: 3rem;
  }

  .hero-stage-shell .prod-pedestal {
    height: clamp(445px, 53vh, 495px) !important;
  }

  .hero-stage-shell .prod-main-img {
    max-height: clamp(420px, 49vh, 470px) !important;
  }

  .hero-stage-shell #stage-3d-wrap.prod-3d-stage {
    height: clamp(445px, 53vh, 495px) !important;
  }
}

/* ------------------------------------------------------------------------- */
/* 9. REDUCED MOTION ACCESSIBILITY                                           */
/* ------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js-motion .reveal-item {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .hero-stage-shell .prod-main-img,
  .gloss-card-hover,
  .hero-primary-btn,
  .hero-secondary-btn,
  #nav {
    transition: none !important;
  }
}