/* ==========================================================================
   SIRIUS UNIVERSAL – HOMEPAGE MOBILE LAYER
   File:    css/home-mobile.css   (loaded on the front page only, AFTER style.css)
   Applies: phones, width <= 767px.  Desktop/tablet rules stay in style.css.

   RULES FOR EDITING
   - Every mobile-only element/class is prefixed  .su-m-  (hidden on desktop).
   - Everything that changes the desktop design lives INSIDE the media query
     in section 2. Never put layout rules outside it.

   CONTENTS
   1. Mobile-only elements: hidden on desktop/tablet (>= 768px)
   2. @media (max-width: 767px)
      2.1  Base
      2.2  Header / hero
      2.3  Menu overlay
      2.4  About
      2.5  Experiences (carousel + values)
      2.6  Contact / footer
      2.7  Back-to-top
   ========================================================================== */


/* ==========================================================================
   1. MOBILE-ONLY ELEMENTS – HIDDEN ON DESKTOP / TABLET (>= 768px)
   Hidden only on wider screens, so on phones they are visible by default.
   ========================================================================== */
@media (min-width: 768px) {
    .su-m-nav-actions,
    .su-m-menu,
    .su-m-experiences,
    .about-pillar-icon {
        display: none !important;
    }
}


/* ==========================================================================
   2. PHONES  (<= 767px)
   ========================================================================== */
@media (max-width: 767px) {

    /* ----------------------------------------------------------------------
       2.1 BASE
       ---------------------------------------------------------------------- */
    html,
    body {
        overflow-x: hidden;
    }

    body.su-m-lock {
        overflow: hidden;           /* set by js/home.js while menu is open */
    }


    /* ----------------------------------------------------------------------
       2.2 HEADER / HERO
       ---------------------------------------------------------------------- */
    .hero {
        min-height: 100vh;
        min-height: 100svh;
    }

    .navbar {
        min-height: 84px;
        padding: 14px 20px;
    }

    .navbar .logo {
        width: 52px;
    }

    .nav-links {
        display: none;              /* replaced by hamburger */
    }

    .su-m-nav-actions {
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .su-m-login,
    .su-m-menu-toggle {
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: none;
        border: 0;
        color: #e6bd62;
        cursor: pointer;
    }

    .su-m-login svg {
        width: 24px;
        height: 24px;
    }

    .su-m-menu-toggle {
        flex-direction: column;
        gap: 6px;
    }

    .su-m-menu-toggle span {
        display: block;
        width: 24px;
        height: 2px;
        background: #e6bd62;
        border-radius: 2px;
    }

    .hero-content {
        left: 24px;
        right: 24px;
        max-width: none;
    }

    .hero-content h1 {
        font-size: clamp(42px, 13vw, 56px);
        letter-spacing: -1.5px;
        line-height: 1;
    }

    .hero-description {
        font-size: 16px;
        line-height: 1.7;
        max-width: 420px;
    }

    .hero-button {
        min-width: 170px;
        height: 48px;
    }

    .scroll-indicator {
        bottom: 22px;
        width: 100%;
        text-align: center;
        font-size: 9px;
        letter-spacing: 3px;
    }


    /* ----------------------------------------------------------------------
       2.3 MENU OVERLAY
       ---------------------------------------------------------------------- */
    .su-m-menu {
        display: flex;
        flex-direction: column;
        position: fixed;
        inset: 0;
        z-index: 1000;
        padding: 14px 20px 32px;
        background: rgba(2, 7, 11, 0.97);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .su-m-menu.is-open {
        opacity: 1;
        visibility: visible;
    }

    .su-m-menu__top {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .su-m-menu__logo {
        width: 52px;
        height: auto;
    }

    .su-m-menu__close {
        width: 44px;
        height: 44px;
        background: none;
        border: 0;
        color: #e6bd62;
        font-size: 38px;
        line-height: 1;
        cursor: pointer;
    }

    .su-m-menu__links {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 26px;
    }

    .su-m-menu__links a {
        color: #f3f0e9;
        text-decoration: none;
        font-family: Georgia, "Times New Roman", serif;
        font-size: 24px;
        letter-spacing: 3px;
        text-transform: uppercase;
    }

    .su-m-menu__links a:active {
        color: #e6bd62;
    }

    .su-m-menu__tagline {
        text-align: center;
        color: rgba(230, 189, 98, 0.7);
        font-family: Georgia, "Times New Roman", serif;
        font-size: 11px;
        letter-spacing: 4px;
    }


    /* ----------------------------------------------------------------------
       2.4 ABOUT
       Portrait artwork (arch at the top) with the text below it.
       Cancels the tablet fallback in style.css (::before image).
       ---------------------------------------------------------------------- */
    .about-section {
        padding: 0 0 0;
        background: #010a14;
    }

    /* Top artwork: the arch (crop of the portrait image, faded into the page) */
    .about-section::before {
        display: block;
        width: 100%;
        height: 68vw;
        aspect-ratio: auto;
        margin-bottom: 4px;
        background: url("../mobile/about/2-Mystical Stargate Over Golden Nebula.png") center top / 100% auto no-repeat;
        -webkit-mask-image: linear-gradient(#000 78%, transparent);
        mask-image: linear-gradient(#000 78%, transparent);
    }

    /* Bottom artwork: the golden star line (same image, bottom crop) */
    .about-section::after {
        content: "";
        display: block;
        width: 100%;
        height: 30vw;
        margin-top: 0;
        background: url("../mobile/about/2-Mystical Stargate Over Golden Nebula.png") center bottom / 100% auto no-repeat;
        -webkit-mask-image: linear-gradient(transparent, #000 35%, #000 80%, transparent);
        mask-image: linear-gradient(transparent, #000 35%, #000 80%, transparent);
    }

    .about-inner {
        padding: 0 24px;
    }

    .about-eyebrow {
        font-size: 11px;
        letter-spacing: 3px;
    }

    .about-heading {
        font-size: clamp(32px, 9vw, 42px);
        letter-spacing: -0.5px;
    }

    .about-paragraph {
        font-size: 16px;
        line-height: 1.7;
    }

    .about-statement {
        font-size: 19px;
    }

    .about-pillars {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px 12px;
        margin-top: 36px;
        padding: 0 20px;
        border-top: 0;              /* removes the divider line inherited from style.css */
    }

    .about-pillar {
        gap: 6px;
    }

    .about-pillar-icon {
        display: block;
        width: 64px;
        height: 64px;
        object-fit: contain;
    }

    .about-pillar-name {
        font-size: 12px;
        letter-spacing: 1.5px;
    }

    .about-pillar-detail {
        font-size: 12px;
    }


    /* ----------------------------------------------------------------------
       2.5 EXPERIENCES  (desktop artwork + absolute cards are replaced)
       ---------------------------------------------------------------------- */
    .services-section {
        line-height: normal;
        background: #010d1d url("../mobile/class/Golden Nebula Arc and Starburst-full.png") center / 100% 100% no-repeat;
    }

    .services-bg,
    .class-card,
    .learn-more-btn {
        display: none;
    }

    .su-m-experiences {
        display: block;
        padding: 56px 0 190px;      /* bottom space keeps values clear of the golden arc */
        text-align: center;
    }

    .su-m-experiences__eyebrow {
        color: #e6bd62;
        font-family: Georgia, "Times New Roman", serif;
        font-size: 12px;
        letter-spacing: 4px;
    }

    .su-m-experiences__heading {
        margin: 12px 20px 14px;
        color: #faf5e9;
        font-family: Georgia, "Times New Roman", serif;
        font-size: clamp(28px, 8vw, 36px);
        font-weight: 400;
        line-height: 1.15;
    }

    .su-m-experiences__intro {
        margin: 0 28px 28px;
        color: rgba(244, 240, 230, 0.85);
        font-family: Georgia, "Times New Roman", serif;
        font-size: 15px;
        line-height: 1.7;
    }

    /* Carousel */
    .su-m-carousel {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .su-m-carousel::-webkit-scrollbar {
        display: none;
    }

    .su-m-carousel__track {
        display: flex;
        gap: 16px;
        padding: 0 calc((100vw - min(82vw, 330px)) / 2);   /* centres first/last card */
    }

    .su-m-card {
        position: relative;
        flex: 0 0 min(82vw, 330px);
        scroll-snap-align: center;
    }

    .su-m-card__art {
        display: block;
        width: 100%;
        height: auto;
    }

    .su-m-card__copy {
        position: absolute;
        left: 8%;
        right: 8%;
        top: 51%;
        bottom: 7%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 6px;
    }

    .su-m-card__copy h3 {
        color: #fff0ce;
        font-family: Georgia, "Times New Roman", serif;
        font-size: 19px;
        font-weight: 400;
        line-height: 1.2;
    }

    .su-m-card__divider {
        color: #e6bd62;
        font-size: 13px;
        line-height: 1;
    }

    .su-m-card__copy p {
        color: rgba(244, 240, 230, 0.9);
        font-family: Georgia, "Times New Roman", serif;
        font-size: 13px;
        line-height: 1.45;
    }

    .su-m-card__btn {
        margin-top: 4px;
        padding: 9px 22px;
        border: 1px solid rgba(226, 184, 91, 0.75);
        border-radius: 4px;
        color: #f1cc7a;
        text-decoration: none;
        font-family: Arial, Helvetica, sans-serif;
        font-size: 11px;
        letter-spacing: 2px;
    }

    /* Carousel controls */
    .su-m-carousel__controls {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 14px;
        margin-top: 18px;
    }

    .su-m-carousel__arrow {
        width: 40px;
        height: 40px;
        background: none;
        border: 1px solid rgba(230, 189, 98, 0.5);
        border-radius: 50%;
        color: #e6bd62;
        font-size: 14px;
        cursor: pointer;
    }

    .su-m-carousel__dots {
        display: flex;
        gap: 10px;
    }

    .su-m-carousel__dots button {
        width: 9px;
        height: 9px;
        padding: 0;
        background: rgba(230, 189, 98, 0.3);
        border: 0;
        border-radius: 50%;
        cursor: pointer;
    }

    .su-m-carousel__dots button.is-active {
        background: #e6bd62;
    }

    /* Six values */
    .su-m-values {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 34px 14px;
        margin: 54px 0 0;
        padding: 0 22px;
    }

    .su-m-values__item img {
        display: block;
        width: 64px;
        height: 64px;
        margin: 0 auto 10px;
        object-fit: contain;
    }

    .su-m-values__item h3 {
        margin-bottom: 6px;
        color: #e6bd62;
        font-family: Georgia, "Times New Roman", serif;
        font-size: 13px;
        font-weight: 400;
        letter-spacing: 2px;
    }

    .su-m-values__item p {
        color: rgba(244, 240, 230, 0.85);
        font-family: Georgia, "Times New Roman", serif;
        font-size: 13px;
        line-height: 1.5;
    }


    /* ----------------------------------------------------------------------
       2.6 CONTACT / FOOTER
       Desktop positions everything on contact.png; here it is a simple stack.
       ---------------------------------------------------------------------- */
    .contact-section {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 28px;
        padding: 48px 24px 36px;

    /* MOBILE FOOTER ARTWORK */
        background-image: url('../mobile/footer.png');
        background-position: center top;
        background-repeat: no-repeat;
        background-size: 100% 100%;

        border-top: none;
        text-align: center;
    }

    .contact-bg {
        display: none;
    }

    .contact-logo,
    .contact-quick-links,
    .contact-socials,
    .contact-email,
    .contact-copyright {
        position: static;
        transform: none;
        width: auto;
    }

    .contact-logo {
        width: 84px;
    }

    .contact-quick-links {
        align-items: center;
        gap: 14px;
    }

    .contact-quick-links a {
        font-size: 15px;
    }

    .contact-socials {
        gap: 22px;
    }

    .contact-social-btn {
        width: 52px;
    }

    .contact-email {
        font-size: 15px;
    }

    .contact-email img {
        width: 34px;
    }

    .contact-copyright {
        font-size: 11px;
    }


    /* ----------------------------------------------------------------------
       2.7 BACK-TO-TOP
       ---------------------------------------------------------------------- */
    .back-to-top {
        right: 16px;
        bottom: 16px;
        width: 42px;
        height: 42px;
    }
}
