/* =========================================
   CELES LIMITED
   RESPONSIVE SYSTEM
========================================= */


/* =========================
   TABLET / SMALL LAPTOP
========================= */

@media (max-width: 1100px) {

    .navbar {
        width: 94%;
        padding: 16px 24px;
    }

    .nav-menu {
        gap: 22px;
    }

    .nav-menu a {
        font-size: 14px;
    }

    .nav-right {
        gap: 12px;
    }

    .track-btn {
        padding: 12px 20px;
        font-size: 14px;
    }

    .theme-btn {
        width: 40px;
        height: 40px;
    }


    /* HERO */

    .hero {
        padding: 0 6%;
    }

    .hero-content {
        max-width: 600px;
    }

    .hero h1 {
        font-size: 4rem;
    }


    /* TRACKING */

    .tracking-bar {
        padding-left: 6%;
        padding-right: 6%;
    }

    .tracking-container {
        flex-direction: column;
        align-items: stretch;
    }

    .tracking-right {
        justify-content: stretch;
    }

    .tracking-right input {
        width: 100%;
    }


    /* FOOTER */

    .footer-content {
        grid-template-columns: 1.3fr 1fr 1fr;
        gap: 40px;
    }

    .footer-brand {
        grid-column: 1 / -1;
        max-width: 600px;
    }

}


/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {

    /* =========================
       NAVIGATION
    ========================= */

    .navbar {

        width: 92%;

        padding: 14px 18px;

        margin-top: 12px;

        border-radius: 16px;

    }

    .logo-main {
        font-size: 1.55rem;
    }

    .logo-sub {
        font-size: .55rem;
        letter-spacing: 2px;
    }

    .nav-menu {

        position: absolute;

        top: calc(100% + 12px);

        left: 0;

        width: 100%;

        display: flex;

        flex-direction: column;

        gap: 0;

        padding: 10px;

        background: rgba(7, 26, 53, .97);

        backdrop-filter: blur(20px);

        border: 1px solid rgba(255, 255, 255, .12);

        border-radius: 16px;

        box-shadow: 0 20px 50px rgba(0, 0, 0, .25);

        opacity: 0;

        visibility: hidden;

        transform: translateY(-10px);

        transition:
            opacity .3s ease,
            visibility .3s ease,
            transform .3s ease;

    }

    .navbar.menu-open .nav-menu {

        opacity: 1;

        visibility: visible;

        transform: translateY(0);

    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu a {

        display: block;

        width: 100%;

        padding: 14px 16px;

        border-radius: 10px;

        font-size: 15px;

    }

    .nav-right {

        margin-left: auto;

        gap: 8px;

    }

    .theme-btn {

        width: 40px;
        height: 40px;
        font-size: 16px;

    }

    .track-btn {
        display: none;
    }

    .menu-toggle {

        width: 42px;

        height: 42px;

        border: none;

        border-radius: 10px;

        background: rgba(255, 255, 255, .12);

        color: white;

        cursor: pointer;

        display: flex;

        align-items: center;

        justify-content: center;

        font-size: 19px;

    }


    /* =========================
       HERO
    ========================= */

    .hero {

        min-height: 100svh;

        padding:
            120px 6% 80px;

        align-items: center;

    }

    .hero-overlay {

        background:
            linear-gradient(
                180deg,
                rgba(7, 26, 53, .92) 0%,
                rgba(7, 26, 53, .72) 55%,
                rgba(7, 26, 53, .65) 100%
            );

    }

    .hero-content {

        width: 100%;

        max-width: 100%;

    }

    .hero-tag {

        font-size: .82rem;

        letter-spacing: 1.5px;

        margin-bottom: 15px;

    }

    .hero h1 {

        font-size:
            clamp(
                2.4rem,
                9vw,
                3.5rem
            );

        line-height: 1.08;

        margin-bottom: 20px;

    }

    .hero-text {

        font-size: 1rem;

        line-height: 1.7;

        margin-bottom: 30px;

    }

    .hero-buttons {

        width: 100%;

        flex-direction: column;

        gap: 12px;

    }

    .primary-btn,
    .secondary-btn {

        width: 100%;

        text-align: center;

        padding: 15px 24px;

    }

    .scroll-indicator {
        display: none;
    }


    /* =========================
       TRACKING BAR
    ========================= */

    .tracking-bar {

        margin-top: -35px;

        padding:
            0 5% 60px;

    }

    .tracking-container {

        padding: 22px;

        border-radius: 20px;

        gap: 22px;

    }

    .tracking-left {

        align-items: flex-start;

        gap: 14px;

    }

    .tracking-icon {

        width: 55px;

        height: 55px;

        flex-shrink: 0;

        border-radius: 15px;

        font-size: 23px;

    }

    .tracking-left h3 {

        font-size: 1.05rem;

    }

    .tracking-left p {

        font-size: .88rem;

        line-height: 1.5;

    }

    .tracking-right {

        width: 100%;

        flex-direction: column;

        gap: 10px;

    }

    .tracking-right input {

        width: 100%;

        padding: 15px;

        font-size: 15px;

    }

    .tracking-right button {

        width: 100%;

        padding: 15px;

    }


    /* =========================
       GENERAL SECTIONS
    ========================= */

    .services,
    .why-us,
    .testimonials {

        padding:
            70px 6%;

    }

    .section-title {

        margin-bottom: 40px;

    }

    .section-title h2 {

        font-size:
            clamp(
                2rem,
                8vw,
                2.6rem
            );

        line-height: 1.15;

    }

    .section-title p {

        font-size: 15px;

        line-height: 1.7;

    }


    /* =========================
       SERVICES
    ========================= */

    .services-grid {

        grid-template-columns: 1fr;

        gap: 18px;

    }

    .service-card {

        padding: 30px 24px;

        border-radius: 18px;

    }

    .service-icon {

        font-size: 45px;

    }


    /* =========================
       WHY US
    ========================= */

    .why-grid {

        grid-template-columns: 1fr;

        gap: 18px;

    }

    .why-card {

        padding: 30px 24px;

        border-radius: 18px;

    }

    .why-icon {

        font-size: 44px;

    }


    /* =========================
       STATISTICS
    ========================= */

    .stats {

        padding: 65px 6%;

    }

    .stats-container {

        grid-template-columns:
            repeat(2, 1fr);

        gap: 15px;

    }

    .stat-card {

        padding: 28px 15px;

        border-radius: 16px;

    }

    .stat-card h2 {

        font-size: 2rem;

    }

    .stat-card p {

        font-size: .85rem;

    }


    /* =========================
       TESTIMONIALS
    ========================= */

    .testimonial-grid {

        grid-template-columns: 1fr;

        gap: 18px;

        margin-top: 35px;

    }

    .testimonial-card {

        padding: 28px 24px;

        border-radius: 18px;

    }


    /* =========================
       CHATBOT
    ========================= */

    .chatbot {

        right: 16px;

        bottom: 16px;

    }

    .chatbot-toggle {

        width: 58px;

        height: 58px;

        font-size: 25px;

    }

    .chatbot-box {

        width:
            min(
                340px,
                calc(100vw - 32px)
            );

        max-height:
            calc(100svh - 100px);

        margin-bottom: 14px;

    }

    .chatbot-body {

        padding: 16px;

    }

    .bot-message,
    .user-message {

        font-size: .9rem;

        line-height: 1.55;

    }

    .quick-actions {

        gap: 8px;

    }

    .quick-actions button {

        padding: 11px 10px;

        font-size: .85rem;

    }

    .chat-input-form {

        display: flex;

        gap: 8px;

    }

    .chat-input-form input {

        min-width: 0;

        flex: 1;

    }


    /* =========================
       REQUEST A CALL
    ========================= */

    .request-call {

        padding: 80px 6%;

    }

    .request-call-container {

        grid-template-columns: 1fr;

        gap: 45px;

    }

    .request-call-content {

        max-width: none;

        text-align: center;

    }

    .request-call-points {

        align-items: center;

    }

    .request-call-card {

        padding: 28px 22px;

    }


    /* =========================
       FOOTER
    ========================= */

    .footer {

        padding:
            60px 6% 20px;

    }

    .footer-content {

        grid-template-columns:
            1fr 1fr;

        gap:
            35px 30px;

    }

    .footer-brand {

        grid-column:
            1 / -1;

        max-width: 100%;

    }

}


/* =========================
   SMALL MOBILE
========================= */

@media (max-width: 480px) {

    .navbar {

        width: 94%;

        padding: 12px 14px;

    }

    .logo-main {

        font-size: 1.35rem;

    }

    .logo-sub {

        font-size: .48rem;

        letter-spacing: 1.5px;

    }

    .theme-btn {

        width: 38px;
        height: 38px;

    }

    .menu-toggle {

        width: 38px;
        height: 38px;

    }


    /* HERO */

    .hero {

        padding:
            115px 5% 70px;

    }

    .hero h1 {

        font-size:
            clamp(
                2.2rem,
                11vw,
                2.8rem
            );

    }

    .hero-text {

        font-size: .95rem;

    }


    /* TRACKING */

    .tracking-bar {

        padding:
            0 5% 50px;

    }

    .tracking-container {

        padding: 18px;

    }


    /* STATS */

    .stats-container {

        grid-template-columns: 1fr;

    }

    .stat-card {

        padding: 25px;

    }


    /* CHATBOT */

    .chatbot {

        right: 12px;

        bottom: 12px;

    }

    .chatbot-box {

        width:
            calc(100vw - 24px);

    }

    .chatbot-header {

        padding: 16px;

    }

    .chatbot-header h3 {

        font-size: 1rem;

    }


    /* REQUEST CALL */

    .request-call {

        padding: 70px 5%;

    }

    .request-call-card {

        padding: 24px 18px;

        border-radius: 18px;

    }


    /* FOOTER */

    .footer {

        padding:
            50px 5% 20px;

    }

    .footer-content {

        grid-template-columns: 1fr;

        gap: 30px;

    }

    .footer-brand {

        grid-column: auto;

    }

}


/* =========================
   VERY SMALL DEVICES
========================= */

@media (max-width: 360px) {

    .logo-main {

        font-size: 1.2rem;

    }

    .logo-sub {

        font-size: .42rem;

        letter-spacing: 1px;

    }

    .hero h1 {

        font-size: 2rem;

    }

    .hero-text {

        font-size: .9rem;

    }

    .tracking-left {

        flex-direction: column;

    }

    .stats-container {

        gap: 12px;

    }

}