/* ============================================================
   OM SAI — responsive.css
   ============================================================ */

@media (max-width: 1180px) {
  .nav-link {
    padding: 8px 12px;
    font-size: 12px;
  }
  .hero h1 {
    font-size: clamp(46px, 5.9vw, 76px);
  }
  .float-chip.chip-b {
    left: -7%;
  }
  .footer-grid {
    gap: 28px;
  }
}

/* ---------------- TABLET / STACKED HERO ---------------- */

@media (max-width: 1020px) {
  .hero {
    min-height: auto;
    display: block;
    padding: calc(clamp(340px, 54svh, 520px) + 30px) 0 64px;
  }

  #three-bg {
    height: clamp(340px, 54svh, 520px);
  }

  .hero-inner {
    display: block;
  }

  .hero-copy {
    max-width: 660px;
  }

  .hero-visual,
  .scroll-cue {
    display: none;
  }

  .hero-glow.g1 {
    right: -20vw;
    top: -6vw;
  }

  .hero-glow.g2 {
    right: 20vw;
    bottom: 4vw;
  }

  .hero-grid {
    -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 26%, #000, transparent 76%);
    mask-image: radial-gradient(ellipse 75% 70% at 50% 26%, #000, transparent 76%);
  }

  .hero-fallback {
    top: clamp(170px, 27svh, 260px);
    right: 50%;
    width: 320px;
    height: 320px;
    transform: translate(50%, -50%);
  }

  .nav-links {
    display: none;
  }

  .menu-btn {
    display: flex;
  }

  .bento,
  .course-grid,
  .laptop-grid,
  .process-grid,
  .library-grid,
  .connect-grid,
  .faq-layout {
    grid-template-columns: 1fr;
  }

  .course-grid,
  .laptop-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }

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

  .skill-head {
    align-items: flex-start;
  }

  .bento-card {
    min-height: 300px;
  }

  .faq-side {
    position: static;
  }

  .faq-side > p {
    max-width: 560px;
  }

  .faq-layout {
    gap: 28px;
  }

  .library-main,
  .shift-panel {
    min-height: auto;
  }

  .process-grid::before {
    display: none;
  }

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

  .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .footer-brand p {
    max-width: 460px;
  }
}

/* ---------------- MOBILE ---------------- */

@media (max-width: 760px) {
  .container {
    width: calc(100% - 36px);
  }

  .section {
    padding: 78px 0;
  }

  .section-head {
    margin-bottom: 36px;
    gap: 13px;
  }

  .section-title {
    font-size: clamp(30px, 8vw, 42px);
  }

  .section-sub {
    font-size: 13px;
  }

  .eyebrow {
    font-size: 9.5px;
    letter-spacing: 0.2em;
  }

  .site-header {
    padding: 13px 0;
  }

  .site-header.scrolled {
    padding: 9px 0;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
    font-size: 14px;
    border-radius: 12px;
  }

  .brand-text strong {
    font-size: 14px;
  }

  .brand-text span {
    font-size: 7.5px;
    letter-spacing: 0.22em;
  }

  .hero {
    padding-top: calc(clamp(300px, 47svh, 430px) + 24px);
    padding-bottom: 48px;
  }

  #three-bg {
    height: clamp(300px, 47svh, 430px);
  }

  .eyebrow-pill {
    margin-bottom: 22px;
    font-size: 9px;
    letter-spacing: 0.13em;
    padding: 5px 12px 5px 6px;
  }

  .pill-dot {
    width: 21px;
    height: 21px;
  }

  .hero h1 {
    font-size: clamp(44px, 12.5vw, 62px);
    margin-bottom: 22px;
  }

  .hero-sub {
    font-size: 13.5px;
    line-height: 1.72;
    margin-bottom: 28px;
    max-width: 96%;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 9px;
    margin-bottom: 26px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-meta {
    gap: 7px 16px;
    font-size: 10.5px;
  }

  .marquee {
    padding: 13px 0;
  }

  .marquee span {
    gap: 26px;
    padding-right: 26px;
    font-size: 10px;
    letter-spacing: 0.18em;
  }

  .location-strip {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    padding: 17px 18px;
  }

  .bento-card {
    min-height: auto;
    padding: 24px 22px 22px;
  }

  .bento-top {
    margin-bottom: 26px;
  }

  .bento-body h3 {
    font-size: 20px;
  }

  .course-card {
    min-height: auto;
    padding: 24px 22px 22px;
  }

  .cta-band {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 24px 22px;
  }

  .cta-band::before {
    display: none;
  }

  .library-main {
    padding: 26px 22px 24px;
  }

  .amenities {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .amenity {
    padding: 11px 10px;
  }

  .amenity strong {
    font-size: 10.5px;
  }

  .amenity span {
    font-size: 9px;
  }

  .library-side {
    gap: 14px;
  }

  .shift-panel {
    padding: 24px 22px 22px;
  }

  .library-quote p {
    font-size: 21px;
  }

  .laptop-visual {
    height: 208px;
  }

  .laptop-body {
    padding: 20px 22px 21px;
  }

  .process-grid {
    gap: 12px;
  }

  .step {
    padding: 22px;
  }

  .step-num {
    margin-bottom: 16px;
  }

  .assurance {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .assurance-item {
    padding: 11px 13px;
    font-size: 10px;
  }

  .faq-layout {
    gap: 22px;
  }

  .faq-q {
    padding: 16px 17px;
    font-size: 13px;
  }

  .faq-a p {
    padding: 0 17px 17px;
    font-size: 12px;
  }

  .connect-grid {
    gap: 14px;
  }

  .panel {
    padding: 24px 22px;
  }

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

  .form-panel .btn-wa {
    padding: 14px 18px;
    font-size: 12.5px;
  }

  .mapviz {
    height: 168px;
  }

  .footer-cta {
    padding: 44px 22px 42px;
    border-radius: 26px;
  }

  .footer-cta h2 {
    font-size: clamp(32px, 9.5vw, 46px);
  }

  .footer-cta-actions .btn {
    width: 100%;
  }

  .footer-cta-meta {
    flex-direction: column;
    gap: 7px;
  }

  .footer {
    padding: 50px 0 22px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 20px;
    padding-bottom: 32px;
  }

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

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

  .footer-watermark {
    margin-top: 22px;
    font-size: 24vw;
  }

  .wa-float {
    right: 16px;
    bottom: 16px;
  }

  .wa-bubble {
    width: 50px;
    height: 50px;
  }

  .wa-float-label {
    display: none;
  }

  .toast {
    bottom: 84px;
    width: calc(100% - 34px);
    justify-content: center;
    font-size: 12px;
  }
}

/* ---------------- SMALL PHONES ---------------- */

@media (max-width: 480px) {
  .container {
    width: calc(100% - 28px);
  }

  .nav-cta {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
  }

  .nav-cta span {
    display: none;
  }

  .nav-cta .icon {
    width: 19px;
    height: 19px;
  }

  .hero h1 {
    font-size: clamp(40px, 12.4vw, 52px);
  }

  .amenities {
    grid-template-columns: 1fr;
  }

  .skill-grid {
    grid-template-columns: 1fr;
  }

  .skill-head {
    flex-direction: column;
    gap: 8px;
  }

  .skill-head p {
    text-align: left;
    max-width: 100%;
  }

  .skill-card {
    padding: 15px;
  }

  .amenity {
    padding: 12px 12px;
  }

  .library-hours {
    font-size: 9.5px;
  }

  .laptop-visual {
    height: 192px;
  }

  .laptop-mock {
    width: 84%;
  }

  .spec-grid {
    gap: 6px;
  }

  .visit-top {
    flex-direction: column;
    gap: 10px;
  }

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

  .footer-brand {
    grid-column: auto;
  }

  .footer-cta-meta {
    font-size: 9.5px;
  }

  .mapviz {
    height: 152px;
  }

  .form-note {
    font-size: 9.5px;
  }

  .course-foot {
    flex-wrap: wrap;
    gap: 10px;
  }

  .toast {
    font-size: 11px;
    padding: 11px 16px;
  }
}

/* Landscape phones — keep the 3D art shallow */
@media (max-width: 1020px) and (max-height: 520px) {
  #three-bg {
    height: 300px;
  }
  .hero {
    padding-top: 320px;
  }
  .hero-fallback {
    top: 150px;
    width: 260px;
    height: 260px;
  }
}

/* Disable hover-only effects on touch devices */
@media (hover: none) {
  .float-chip {
    animation: none;
  }
  .tilt {
    transform: none !important;
  }
  .tilt .glare {
    display: none;
  }
}
