/* ==========================================================================
   SURYA ENERGY - DEDICATED MOBILE STYLESHEET (APPLE & LINEAR DESIGN PASS)
   100% Mobile-First Touch Experience
   ========================================================================== */

.se-mobile-layout {
  display: none;
}

@media (max-width: 992px) {
  .se-mobile-layout {
    display: block !important;
  }

  .se-m-container {
    width: 100%;
    max-width: 100%;
    padding: 0 16px;
    margin: 0 auto;
  }

  /* ------------------------------------------------------------------------
     SECTION 1: APPLE-STYLE DYNAMIC TOP NOTIFICATION BANNERS
     ------------------------------------------------------------------------ */
  .se-m-ios-banner-host {
    position: fixed !important;
    top: 16px !important;
    left: 16px !important;
    right: 16px !important;
    z-index: 999999 !important;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .se-m-ios-banner-card {
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 22px;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.18), 0 2px 8px rgba(0, 0, 0, 0.06);
    opacity: 0;
    transform: translateY(-40px) scale(0.95);
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }

  [data-theme="dark"] .se-m-ios-banner-card {
    background: rgba(17, 24, 39, 0.9);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
  }

  .se-m-ios-banner-card.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  .se-m-ios-banner-left {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .se-m-ios-banner-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--se-bg-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
  }

  .se-m-ios-banner-text {
    display: flex;
    flex-direction: column;
  }

  .se-m-ios-banner-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--se-text-heading);
    line-height: 1.25;
  }

  .se-m-ios-banner-sub {
    font-size: 0.74rem;
    color: var(--se-text-muted);
  }

  .se-m-ios-banner-action {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--se-primary-blue);
    text-decoration: none;
    white-space: nowrap;
    padding: 6px 14px;
    background: rgba(37, 99, 235, 0.08);
    border-radius: 99px;
  }

  .se-m-ios-banner-close {
    background: none;
    border: none;
    font-size: 1.3rem;
    color: var(--se-text-muted);
    cursor: pointer;
    padding: 0 6px;
    line-height: 1;
  }

  /* ------------------------------------------------------------------------
     SECTION 2: MOBILE STICKY HEADER & iOS CONTROL CENTER SWITCH
     ------------------------------------------------------------------------ */
  .se-m-header-sticky {
    position: sticky;
    top: 8px;
    z-index: 999;
    padding: 4px 0;
  }

  .se-m-navbar-capsule {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px;
    background: var(--se-card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--se-glass-border);
    border-radius: 99px;
    box-shadow: var(--se-glass-shadow), var(--se-neu-shadow-flat);
  }

  .se-m-brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
  }

  .se-m-logo-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f97316 0%, #eab308 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.35);
    flex-shrink: 0;
  }

  .se-m-logo-text span {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--se-primary-blue);
    letter-spacing: -0.03em;
  }

  .se-m-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  /* iOS Control Center Segmented Switch (44px min touch target) */
  .se-m-segmented-switch {
    position: relative;
    width: 80px;
    height: 40px;
    padding: 3px;
    background: rgba(148, 163, 184, 0.22);
    border: 1px solid var(--se-glass-border);
    border-radius: 99px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.08);
  }

  .se-m-switch-btn {
    width: 36px;
    height: 34px;
    min-width: 36px;
    min-height: 34px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--se-text-muted);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    cursor: pointer;
    transition: color 0.25s ease;
  }

  .se-m-switch-btn.active {
    color: #f97316;
  }

  [data-theme="dark"] .se-m-switch-btn.seThemeDark.active {
    color: #38bdf8;
  }

  .se-m-switch-thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    z-index: 1;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease;
  }

  .se-m-segmented-switch.is-dark .se-m-switch-thumb {
    transform: translateX(40px);
    background: #1e293b;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.45);
  }

  .se-m-menu-btn {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 50%;
    background: var(--se-card-solid);
    border: 1px solid var(--se-glass-border);
    box-shadow: var(--se-neu-shadow-flat);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--se-text-heading);
    font-size: 1.15rem;
    cursor: pointer;
    touch-action: manipulation;
    transition: transform 0.15s ease;
  }

  .se-m-menu-btn:active {
    transform: scale(0.92);
  }

  /* ------------------------------------------------------------------------
     SECTION 3: MOBILE FULL-SCREEN NAVIGATION DRAWER (STRICTLY HIDDEN BY DEFAULT)
     ------------------------------------------------------------------------ */
  .se-mobile-drawer-overlay {
    display: none !important;
    position: fixed !important;
    inset: 0 !important;
    z-index: 99999 !important;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  .se-mobile-drawer-overlay.active {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  .se-mobile-drawer-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 85%;
    max-width: 340px;
    height: 100%;
    background: var(--se-card-solid);
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.25);
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .se-mobile-drawer-overlay.active .se-mobile-drawer-content {
    transform: translateX(0);
  }

  .se-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--se-glass-border);
  }

  .se-drawer-close-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--se-bg-subtle);
    border: none;
    font-size: 1.5rem;
    color: var(--se-text-heading);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }

  .se-drawer-menu-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .se-drawer-nav-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    background: var(--se-bg-subtle);
    border: 1px solid var(--se-glass-border);
    border-radius: 16px;
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--se-text-heading);
    text-decoration: none;
    transition: background 0.2s ease, transform 0.15s ease;
  }

  .se-drawer-nav-card.active, .se-drawer-nav-card:active {
    transform: scale(0.98);
    background: rgba(37, 99, 235, 0.08);
    border-color: rgba(37, 99, 235, 0.3);
  }

  /* ------------------------------------------------------------------------
     SECTION 4: MOBILE HERO & ANALYTICS CARD
     ------------------------------------------------------------------------ */
  .se-m-hero-section {
    padding: 16px 0 24px;
  }

  .se-m-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: 99px;
    color: var(--se-primary-blue);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 12px;
  }

  .se-m-hero-title {
    font-size: clamp(32px, 8vw, 38px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 10px;
    color: var(--se-text-heading);
  }

  .se-m-hero-subtitle {
    font-size: 0.98rem;
    color: var(--se-text-muted);
    line-height: 1.5;
    margin-bottom: 18px;
  }

  .se-m-hero-cta-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
  }

  /* ------------------------------------------------------------------------
     SECTION 5: FEATURE PILLS STRIP (HORIZONTAL SNAP SCROLL)
     ------------------------------------------------------------------------ */
  .se-m-feature-pills-strip {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 6px;
    margin-bottom: 16px;
  }

  .se-m-feature-pills-strip::-webkit-scrollbar {
    display: none;
  }

  .se-m-feature-pill {
    scroll-snap-align: start;
    flex-shrink: 0;
    white-space: nowrap;
    padding: 8px 16px;
    background: var(--se-card-bg);
    border: 1px solid var(--se-glass-border);
    border-radius: 99px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--se-text-heading);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  }

  /* ------------------------------------------------------------------------
     SECTION 6: FEATURE CARDS
     ------------------------------------------------------------------------ */
  .se-m-features-section {
    padding: 16px 0;
  }

  .se-m-features-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .se-m-feature-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: var(--se-card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--se-glass-border);
    border-radius: 20px;
    box-shadow: var(--se-neu-shadow-flat);
  }

  .se-m-feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
  }

  /* ------------------------------------------------------------------------
     SECTION 7: ROI CALCULATOR (MOBILE)
     ------------------------------------------------------------------------ */
  .se-m-calc-section {
    padding: 20px 0;
  }

  .se-m-calc-frame {
    background: var(--se-card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--se-glass-border);
    border-radius: 24px;
    box-shadow: var(--se-neu-shadow-flat);
    padding: 18px;
  }

  /* ------------------------------------------------------------------------
     SECTION 8: PROJECT CARDS (HORIZONTAL SNAP SLIDER)
     ------------------------------------------------------------------------ */
  .se-m-projects-section {
    padding: 20px 0;
  }

  .se-m-projects-wrap {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 8px;
  }

  .se-m-projects-wrap::-webkit-scrollbar {
    display: none;
  }

  .se-m-project-card {
    scroll-snap-align: start;
    min-width: 270px;
    max-width: 290px;
    flex-shrink: 0;
    background: var(--se-card-bg);
    border: 1px solid var(--se-glass-border);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--se-neu-shadow-flat);
  }

  .se-m-project-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
  }

  /* ------------------------------------------------------------------------
     SECTION 9: MOBILE DARK ACCORDION FOOTER
     ------------------------------------------------------------------------ */
  .se-m-footer {
    background: #0b132b;
    color: #ffffff;
    padding: 36px 0 100px;
    margin-top: 32px;
  }

  [data-theme="dark"] .se-m-footer {
    background: #090d16;
  }

  .se-m-footer-accordion-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: none;
    border: none;
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    cursor: pointer;
    touch-action: manipulation;
  }

  .se-m-footer-links-list {
    display: none;
    list-style: none;
    padding: 10px 0 14px;
  }

  .se-m-footer-links-list.active {
    display: block;
  }

  .se-m-footer-links-list li {
    margin-bottom: 10px;
  }

  .se-m-footer-links-list a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.88rem;
  }

  /* ------------------------------------------------------------------------
     SECTION 10: STICKY BOTTOM QUICK ACTION BAR
     ------------------------------------------------------------------------ */
  .se-m-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 998;
    background: var(--se-card-solid);
    border-top: 1px solid var(--se-glass-border);
    padding: 8px 16px calc(8px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .se-m-bottom-bar .se-m-btn {
    flex: 1;
    min-height: 46px;
    font-size: 0.88rem;
    padding: 8px 10px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    font-weight: 700;
  }
}
