/* general */
h1, h2, h3 {
    text-transform: capitalize;
}
svg {
    max-width: 400px;
}

/* mega menu navigation — hero-page-only pieces.
   Shared chrome (.nav-item, .mega-menu, .mega-menu-content, .ai-assistant-mega/menu,
   .assistant-item/title/description) lives in common_styling.css so the wavy navbar's
   dropdowns look identical to these. */
.mega-menu-sidebar {
    padding: 20px;
    padding-right: 40px;
    font-family: var(--font-text-secondary);
    font-size: 25px;
    background: linear-gradient(to right, var(--primary), var(--primary), var(--bg));
    color: var(--text-light);
}
.sidebar-item {
    padding: 10px 15px;
    cursor: pointer;
    margin-bottom: 5px;
    border-radius: 5px;
    transition: background-color 0.2s ease;
}
.sidebar-item:hover {
    filter: brightness(0.85);
}
.sidebar-link {
    display: block;
    padding: 10px 15px;
    margin-top: 10px;
    border-radius: 5px;
    text-decoration: none;
    color: var(--text-light);
    font-weight: bold;
    border-top: 1px solid rgba(255, 255, 255, 0.35);
}
.sidebar-link:hover {
    filter: brightness(0.85);
}
.content-section {
    display: none;
    width: fit-content;
}
.content-section.active {
    display: flex;
    flex-flow: column nowrap;
    justify-content: space-between;
    align-items: flex-start;
}
.content-item {
    width: fit-content;
    padding: 10px 15px;
}
.content-item a {
    width: fit-content;
    color: var(--grey-blue);
    font-family: var(--font-text-secondary);
    font-weight: 900;
    font-size: 20px;
    text-decoration: none;
    text-wrap: nowrap;
    transition: color 0.2s ease;
}
.content-item a.active {
    color: var(--primary);
}
.content-item a:hover {
    color: var(--grey-blue);
}
.content-item a.active:hover {
    color: var(--accent-light);
}


/* waves */
.wave {
    width: 100%;
    margin: -30px 0;
}

/* hero */
#hero-container {
    position: relative;
    background-color: var(--primary);
    padding: 50px;
    padding-bottom: 0;
}
#hero {
    box-sizing: border-box;
    /* From https://css.glass */
    background: rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0;
    padding: 10px 50px;
    transition: all 0.3s ease;
}
nav {
    box-sizing: border-box;
    position: sticky;
    top: 0;
    background: none;
    background-color: rgba(173, 221, 239, 0.3);
    backdrop-filter: blur(6.6px);
    -webkit-backdrop-filter: blur(6.6px);
    border-radius: 16px;
    height: 9.5rem;
    padding: 20px;
    margin: auto;
    z-index: 1000;
}
/* navbar pinned to the top once the hero has scrolled away — keeps the exact
   glassy, rounded, inset look of the sticky hero nav so the sticky→fixed
   hand-off is seamless (only background/shadow nudged for legibility over
   the lighter sections below the hero). */
#hero nav.nav-pinned {
    position: fixed;
    top: 20px;
    left: 100px;                  /* container padding (50) + hero card padding (50) */
    width: calc(100% - 200px);
    margin: 0;
    background-color: rgba(173, 221, 239, 0.5);
    backdrop-filter: blur(6.6px);
    -webkit-backdrop-filter: blur(6.6px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
}
#hero nav.nav-pinned #logo {
    margin-top: 10px;
}
#hero > div {
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 60% 50%;
    justify-content: space-around;
    align-items: center;
    height: fit-content;
    width: 100%;
    margin: 20px;
}
#hero .textual {
    max-width: fit-content;
    display: flex;
    flex-flow: column nowrap;
    justify-content: space-between;
    align-items: left;
    text-align: left;
    z-index: 1;
}
#hero .textual *{
    width: 100%;
    text-align: left;
}
#hero .textual h1 {
    font-size: 5.6em;
    font-family: var(--font-titles);
    font-weight: bold;
    line-height: 1.5em;
    letter-spacing: 2px;
    margin-bottom: 30px;
}
#hero .textual h1 span {
    color: var(--accent);
}
#hero .textual p {
    font-family: var(--font-text);
    font-size: 2.4em;
    font-weight: 300;
    line-height: 1.5em;
    width: 80%;
    margin: 0;
    margin-bottom: 30px;
}
#hero .textual a {
    font-size: 2.5em;
    font-family: var(--font-text-secondary);
    font-weight: bold;
    letter-spacing: 0.1em;
    width: fit-content;
    padding: 0.9em 2em;
    border-radius: 10px;
    border: none;
    background-color: var(--accent);
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}
#hero .textual a:hover {
    scale: 1.05;
    box-shadow: 0 0 10px 0 var(--accent);
}
#hero img {
    width: 100%;
}
#hero-illus-wrap {
    margin-left: -25%;
}

/* ai button */
#ai-button {
    position: fixed;
    right: 30px;
    bottom: 30px;
    background-color: var(--accent-light);
    width: 40px;
    height: 40px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow-x: hidden;
    transition: all 0.4s ease-in-out;
}
#ai-button:hover {
    width: 160px;
}
#ai-button:hover::before {
    content: "Ask AI Assistant";
    position: absolute;
    left: 0;
    border-radius: 10px;
    padding-left: 20px;
    background-color: var(--accent-light);
    color: var(--text-light);
    text-wrap: nowrap;
    font-family: var(--font-text-secondary);
}
#ai-button::after {
    content: "?";
    position: absolute;
    right: 12px;
    color: var(--text-light);
    font-size: 25px;
}


/* sections */
h2 {
    font-size: 45px;
    font-family: var(--font-titles);
    font-weight: bold;
    width: fit-content;
    margin: 0 auto;
    margin-bottom: 60px;
}
section {
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
    align-items: center;
    padding: 0 120px;
    margin-bottom: 100px;
    gap: 80px;
}
section:nth-child(odd) {
    flex-direction: row-reverse;
}
section > div {
    display: flex;
    flex-flow: column nowrap;
    justify-content: space-between;
    align-items: flex-start;
    text-align: left;
    width: 50%;
}
section > img {
    width: 50%;
}
section h3 {
    font-size: 34px;
    font-family: var(--font-titles);
    font-weight: bold;
    margin-bottom: 30px;
}
section p {
    font-size: 22px;
    font-family: var(--font-text-secondary);
    text-wrap: balance;
    margin-bottom: 30px;
}
ul li {
    font-size: 22px;
    font-family: var(--font-text-secondary);
    margin: 20px 0;
    padding-left: 5px;
    list-style: none;
}
ul li::before {
    content: '';
    display: inline-block;
    height: 30px;
    aspect-ratio: 1/1;
    background-image: url('../images/check_mark_orange.png');
    background-size: contain; /* or cover, or specific dimensions */
    background-repeat: no-repeat;
    background-position: center;
    margin-right: 10px;
    vertical-align: middle;
}


/* buttons */
button {
    font-size: 20px;
    font-family: var(--font-text-secondary);
    font-weight: bold;
    letter-spacing: 0.1em;
    width: fit-content;
    padding: 20px 40px;
    margin: 30px 0;
    border-radius: 10px;
    border: none;
    background-color: var(--accent-light);
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}
button:hover {
    scale: 1.05;
    box-shadow: 0 0 10px 0 var(--accent);
}


/* apply per-service color variations (class-based — robust to DOM order) */
.service--resources button {
    background-color: var(--accent-light);
}
.service--resources button:hover {
    box-shadow: 0 0 10px 0 var(--accent-light);
}
.service--assistants ul li::before {
    background-image: url('../images/check_mark_light_blue.png');
}
.service--assistants button {
    background-color: var(--primary-light);
}
.service--assistants button:hover {
    box-shadow: 0 0 10px 0 var(--primary-light);
}
.service--guides ul li::before {
    background-image: url('../images/check_mark_blue.png');
}
.service--guides button {
    background-color: var(--primary);
}
.service--guides button:hover {
    box-shadow: 0 0 10px 0 var(--primary);
}

/* team section */
section.center {
    flex-direction: column;
    gap: 10px;
}
.center p {
    display: block;
    width: 60%;
    margin: 20px auto;
    font-family: var(--font-text);
    font-size: 22px;
    line-height: 2;
    text-align: center;
    text-wrap: balance;
}

/* contact us section */
section#contact {
    background-color: var(--primary);
    margin-bottom: 0;
}
section#contact .textual {
    width: 70%;
    margin: 0 auto;
    text-align: center;
    color: var(--text-light);
}
section#contact .textual h1 {
    color: var(--text-light);
}
section#contact img {
    width: 40%;
}
section form {
    width: 100%;
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}
section form input, section form button {
    font-family: var(--font-text);
    font-size: 20px;
}
section input {
    flex-grow: 1;
    padding: 20px 40px;
    border-radius: 10px;
    border: none;
    height: fit-content;
    background-color: var(--text-light);
    color: var(--primary);
}
section form button {
    text-transform: uppercase;
}
section#contract h1 {
    margin: 40px;
}

/* hide mobile-only service fallback images on desktop */
.service-img-mobile { display: none; }

/* hide mobile-only "Our Services" heading on desktop */
.services-heading-mobile { display: none; }

/* Mobile Styling */
@media (max-width: 1000px) {
    /* Prevent horizontal scroll */
    html, body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* hero */
    #hero-container {
        position: relative;
        padding: 0;
        margin: 0;
        width: 100%;
        max-width: 100%;
        background-color: #89cfe8;
        overflow-x: hidden;
        margin-bottom: 20px;
    }
    
    #hero-container::before {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        width: 100%;
        height: 100%;
        background-image: url('../images/shape.png');
        background-size:cover;
        background-repeat: no-repeat;
        background-position: right center;
        opacity: 0.5;
        z-index: 0;
        pointer-events: none;
    }
    
    #hero {
        position: relative;
        background: none;
        box-shadow: none;
        border: none;
        z-index: 1;
        width: 100%;
        max-width: 100%;
        padding: 0 10%;
        box-sizing: border-box;
    }
    
    #hero > div {
        display: flex;
        flex-direction: column;
        gap: 30px;
        margin: 20px 0;
        align-items: flex-start;
        width: 100%;
        max-width: 100%;
    }
    
    #hero .textual {
        width: 100%;
        align-items:flex-start;
    }
    
    #hero .textual * {
        text-align: left;
    }
    
    #hero .textual h1 {
        font-size: 30px;
        font-family: var(--font-titles);
        font-weight: bold;
        line-height: 1.5em;
        letter-spacing: 2px;
        margin-bottom: 30px;
    }

    #hero .textual a {
        font-size: 3em;
        
    }
    
    #hero .textual p {
        width: 100%;
        font-size: 2.5em;
        line-height: 1.4em;
        color: #333;
        margin-bottom: 30px;
    }
    
    #hero .textual a {
        margin: 0;
        background-color: var(--accent);
        color: white;
        padding: 12px 30px;
        border-radius: 30px;
        font-size: 1.6em;
        box-shadow: 0 4px 10px rgba(255, 73, 10, 0.3);
    }
    
    #hero img {
        display: none;
    }

    #hero-illus-wrap {
        display: none;
    }

    .services-heading-mobile {
        display: block;
        margin-top: 60px;
    }

    /* services: hide animated panel arts, show static fallback images */
    .panel-art {
        display: none;
    }

    .service-img-mobile {
        display: block;
        width: 70%;
        max-width: 280px;
        margin: 0 auto;
    }
    
    /* sections */
    h2 {
        font-size: 30px;
        font-family: var(--font-titles);
        font-weight: bold;
        width: fit-content;
        max-width: 90%;
        margin: 0 auto;
        margin-top: 60px;
    }

    section {
        padding: 30px 5%;
        flex-direction: column-reverse;
        gap: 20px;
        margin-bottom: 10px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    section:nth-child(odd) {
        flex-direction: column-reverse;
    }
    
    section > div {
        width: 100%;
        align-items: center;
    }
    
    section > img {
        width: 70%;
        max-width: 300px;
    }
    
    section h3 {
        font-size: 25px;
    }
    
    
    section p {
        text-align: center;
        font-size: 2rem;
    }
    
    section button {
        padding: 12px 25px;
        font-size: 2.5rem;
        margin: 15px auto;
    }

    ul li {
        font-size: 2rem;
    }
    
    ul li::before {
        height: 25px;
        aspect-ratio: 1/1;
    }

   
    button {
        margin: 20px auto;
    }

    /* team section */
    section.center {
        flex-direction: column;
        padding: 40px 5%;
        box-sizing: border-box;
    }
    
    .center p {
        width: 90%;
        font-size: 2rem;
    }

    /* contact us section */
    .wave {
        width: 100%;
        max-width: 100%;
        margin: -20px 0;
        display: block;
    }

    section#contact {
        flex-direction: column;
        padding: 40px 5%;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    section#contact .textual {
        width: 100%;
    }

    section#contact .textual h1 {
        font-size: 3rem;
        margin-bottom: 20px;
    }

    section#contact .textual p {
        font-size: 2rem;
        margin: 15px auto;
    }

    section#contact img {
        display: none;
    }

    section#contact form {
        flex-direction: column;
        gap: 15px;
        margin-top: 25px;
    }

    section#contact input {
        width: 100%;
        box-sizing: border-box;
        padding: 15px 25px;
        font-size: 2rem;
    }

    section#contact form button {
        width: 100%;
        padding: 15px 30px;
        font-size: 2rem;
    }

    #mobile-nav {
        background-color: #89cfe8;
    }
}



/* ── Highlight band: headline + stats ──────────────────────────── */
#highlight {
    display: flex;
    justify-content: center;
    padding: 11vh 8vw;
    margin-bottom: 60px;
}
#highlight .quote-card {
    width: 100%;
    max-width: 1100px;
    text-align: center;
    /* glassmorphism, consistent with the hero card — no colored glow */
    background-color: rgba(173, 221, 239, 0.3);
    backdrop-filter: blur(6.6px);
    -webkit-backdrop-filter: blur(6.6px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    padding: 5rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}
#highlight h2 {
    font-family: var(--font-titles);
    font-size: 3.4rem;
    line-height: 1.3;
    width: auto;            /* override global h2 { width: fit-content } so it centers */
    margin: 0 auto 4rem;
}
#highlight .stat {
    text-align: center;
}
#highlight .stats {
    margin: auto;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 7rem;
}
#highlight .stat .num {
    font-family: var(--font-titles);
    font-size: 5rem;
    line-height: 1;
    color: var(--accent);
}
#highlight .stat .lbl {
    font-family: var(--font-accent);
    font-weight: 600;
    font-size: 1.6rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--grey-blue);
    margin-top: 10px;
}

/* ── Services showcase ─────────────────────────────────────────── */
#services {
    position: relative;
}
.services-track {
    display: flex;
    flex-direction: column;   /* mobile default: stacked, like the other sections */
    padding-top: 40px;
    box-sizing: border-box;
}
.service-label {
    display: inline-block;
    font-family: var(--font-accent);
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    font-size: 15px;
    color: var(--grey-blue);
    margin-bottom: 12px;
}
/* on-screen 01 / 03 counter — revealed only while the section is pinned */
.svc-counter {
    position: fixed;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-titles);
    font-size: 18px;
    letter-spacing: 0.3em;
    color: var(--text-dark);
    z-index: 500;
    opacity: 0;
    pointer-events: none;
}
.svc-counter b { color: var(--accent); }

/* desktop: pin the section and scroll the panels horizontally */
@media (min-width: 1001px) {
    #services { overflow: hidden; }
    .services-track {
        flex-direction: row;
        width: max-content;
        height: 100vh;
    }
    #services .service-panel {
        flex: 0 0 100vw;
        width: 100vw;
        height: 100vh;
        margin: 0;
        padding: 0 9vw;
        gap: 6vw;
        flex-direction: row;          /* consistent copy-left / art-right */
        justify-content: center;
        align-items: center;
    }
    #services .service-panel > div {
        width: auto;
        max-width: 52rem;
    }
    #services .service-panel > img,
    #services .service-panel > .panel-art {
        width: auto;
        max-width: 44vw;
        max-height: 72vh;
        flex: 0 0 auto;
    }
}