/* =========================================================
   MOBILE CSS
   H.M. PREMATHILAKA WEBSITE
   MOBILE VIEW - 768px AND BELOW
========================================================= */

@media (max-width: 768px) {


    /* =====================================================
       GLOBAL
    ===================================================== */

    * {
        box-sizing: border-box;
    }

    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    body {
        margin: 0;
    }


    /* =====================================================
       HEADER
    ===================================================== */

    .header {
        width: 100%;
        min-height: 95px;

        padding: 12px 15px;

        display: flex;
        align-items: flex-start;
        justify-content: space-between;

        position: relative;
        z-index: 1000;
    }


    /* =====================================================
       CENTER LOGO
    ===================================================== */

    .logo {
        position: absolute;

        left: 50%;
        top: 12px;

        transform: translateX(-50%);

        width: max-content;
        max-width: 70%;

        text-decoration: none;

        text-align: center;

        z-index: 2;
    }


    .logo-text {
        display: flex;

        flex-direction: column;

        align-items: center;

        justify-content: center;

        text-align: center;
    }


    .brand-title {
        display: block;

        font-size: 17px;

        line-height: 1.2;

        font-weight: 700;

        white-space: nowrap;
    }


    .brand-tagline {
        display: block;

        margin-top: 3px;

        font-size: 8px;

        line-height: 1.3;

        text-align: center;

        white-space: nowrap;
    }
   .language-switcher {
    position: absolute !important;

    left: 50% !important;
    right: auto !important;

    top: 56px !important;

    transform: translateX(-50%) !important;

    display: flex !important;

    align-items: center !important;
    justify-content: center !important;

    gap: 8px !important;

    width: max-content !important;

    margin: 0 !important;
}

.language-switcher a {
    min-width: 40px !important;
    width: 40px !important;

    height: 33px !important;

    padding: 0 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    font-size: 11px !important;

    white-space: nowrap !important;
}
    /* =====================================================
       MOBILE MENU BUTTON
    ===================================================== */

    .menu-toggle {
        position: absolute;

        right: 15px;
        top: 12px;

        width: 40px;
        height: 40px;

        display: flex;

        align-items: center;
        justify-content: center;

        font-size: 23px;

        text-decoration: none;

        z-index: 20;
    }


    /* =====================================================
       DESKTOP NAVIGATION HIDDEN
    ===================================================== */

    .desktop-menu {
        display: none !important;
    }


    /* =====================================================
       HERO
    ===================================================== */

    .hero {
        width: 100%;

        min-height: auto;

        padding: 45px 18px 45px;

        display: flex;

        flex-direction: column;

        align-items: center;

        justify-content: center;

        text-align: center;
        gap: 0 !important;
    }


    /* =====================================================
       HERO IMAGE
    ===================================================== */

    .hero-image {
        width: 100%;

        max-width: 340px;

        margin: 0 auto 25px;
        margin-bottom: 0 !important;
        display: flex;

        justify-content: center;
    }


    .hero-image img {
        width: 100%;

        max-width: 340px;

        height: auto;

        display: block;

        object-fit: cover;
    }


    /* =====================================================
       HERO CONTENT
    ===================================================== */

    .hero-content {
        width: 100%;

        max-width: 100%;

        margin: 0 auto;

        text-align: center;
        paddind-top:0
    }


    .hero h1 {
        margin: 0 auto 14px;

        font-size: 34px;

        line-height: 1.12;

        text-align: center;
        margin-top:0;
    }


    .hero h1 span {
        display: block;
    }


    .hero h3 {
        margin: 8px 0;

        font-size: 23px;

        line-height: 1.25;

        text-align: center;
    }


    .hero-sub {
        margin: 5px 0 12px;

        font-size: 14px;

        line-height: 1.5;

        text-align: center;
    }


    /* =====================================================
       MEMBER BADGE
    ===================================================== */

    .member-badge {
        display: inline-flex;

        align-items: center;
        justify-content: center;

        gap: 6px;

        margin: 5px auto 15px;

        font-size: 11px;

        text-align: center;
    }


    /* =====================================================
       HERO LINE
    ===================================================== */

    .hero-line {
        width: 70px;

        height: 3px;

        margin: 15px auto;

        border-radius: 10px;
    }


    /* =====================================================
       HERO TEXT
    ===================================================== */

    .hero-text {
        width: 100%;

        max-width: 330px;

        margin: 0 auto 20px;

        font-size: 13px;

        line-height: 1.7;

        text-align: center;
    }


    /* =====================================================
       HERO BUTTONS
    ===================================================== */

    .hero-buttons {
        width: 100%;

        display: flex;

        flex-direction: column;

        align-items: center;

        gap: 12px;

        margin-top: 20px;
    }


    .hero-buttons a,
    .premium-glass-btn {
        width: 100%;

        max-width: 330px;

        min-height: 48px;

        display: flex;

        align-items: center;

        justify-content: center;

        text-align: center;

        font-size: 12px;

        line-height: 1.3;
    }


    /* =====================================================
       HERO FEATURES
    ===================================================== */

   @media (max-width: 768px) {

    .hero-features {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 15px !important;
        margin-top: 10px;
    }

    .feature-box {
        width: 90% !important;
        max-width: 360px !important;
    }

}

    .feature-box {
        width: 100%;

        min-height: 120px;

        padding: 18px 10px;

        display: flex;

        flex-direction: column;

        align-items: center;

        justify-content: center;

        text-align: center;
    }


    .feature-box i {
        font-size: 24px;

        margin-bottom: 8px;
    }


    .feature-box h4 {
        margin: 5px 0;

        font-size: 14px;

        line-height: 1.3;
    }


    .feature-box p {
        margin: 0;

        font-size: 10px;

        line-height: 1.5;
    }


    /* =====================================================
       ABOUT SECTION
    ===================================================== */

    .about {
        width: 100%;

        padding: 50px 18px;

        display: flex;

        flex-direction: column;

        gap: 30px;
    }


    .about-image {
        width: 100%;

        max-width: 320px;

        margin: 0 auto;
    }


    .about-image img {
        width: 100%;

        height: auto;

        display: block;
    }


    .about-content {
        width: 100%;

        text-align: center;
    }


    .about-content h2 {
        font-size: 28px;

        line-height: 1.2;
    }


    .about-content h3 {
        font-size: 21px;

        line-height: 1.3;
    }


    .about-content h4 {
        font-size: 14px;
    }


    .about-content p {
        font-size: 13px;

        line-height: 1.7;
    }


    .about-highlight-card {
        text-align: left;

        width: 100%;
    }


    .about-stats {
        width: 100%;

        display: grid;

        grid-template-columns: 1fr 1fr;

        gap: 10px;
    }


    .stat {
        padding: 15px 8px;

        text-align: center;
    }


    .stat h3 {
        font-size: 22px;
    }


    .stat p {
        font-size: 10px;
    }
 .about-stats {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 15px !important;
}

.about-stats .stat:last-child {
    grid-column: 1 / -1 !important;
    justify-self: center !important;
    width: 100% !important;
    max-width: 180px !important;
}
    .about-divider {
    margin-left: auto !important;
    margin-right: auto !important;
    align-self: center !important;
}


  /* =====================================================
       SERVICES
    ===================================================== */

    .services {
        width: 100%;

        padding: 50px 15px;
    }


    .services h2,
    .why h2 {
        font-size: 28px;

        text-align: center;
    }


    .cards {
        width: 100%;

        display: grid;

        grid-template-columns: 1fr;

        gap: 15px;
    }


    .card {
        width: 100%;

        padding: 25px 18px;

        text-align: center;
    }


    .card h3 {
        font-size: 19px;
    }


    .card p {
        font-size: 13px;

        line-height: 1.7;
    }


    /* =====================================================
       WHY CHOOSE ME
    ===================================================== */

    .why {
        width: 100%;

        padding: 50px 15px;
    }


    .why-container {
        width: 100%;

        display: grid;

        grid-template-columns: 1fr;

        gap: 15px;
    }


    .why-box {
        width: 100%;

        padding: 25px 18px;

        text-align: center;
    }


    .why-box h3 {
        font-size: 18px;
    }


    .why-box p {
        font-size: 13px;

        line-height: 1.6;
    }


    /* =====================================================
       CONTACT
    ===================================================== */

    .contact-section {
        width: 100%;

        padding: 50px 15px;
    }

    .contact-section {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}
    .contact-form-box,
    .contact-info-box {
        width: 100%;

        margin-bottom: 20px;
    }


    .contact-form-box h2 {
        font-size: 27px;

        line-height: 1.25;
    }


    .contact-form-box input,
    .contact-form-box textarea,
    .contact-form-box select {
        width: 100%;

        font-size: 14px;
    }


    .contact-form-box button {
        width: 100%;

        min-height: 48px;
    }


    .info-top,
    .info-bottom {
        width: 100%;
    }


    /* =====================================================
       FEEDBACK
    ===================================================== */

    .feedback-section {
        width: 100%;

        padding: 45px 15px;
    }


    .feedback-section form {
        width: 100%;
    }


    .feedback-section input,
    .feedback-section select,
    .feedback-section textarea,
    .feedback-section button {
        width: 100%;
    }


    /* =====================================================
       MAP
    ===================================================== */

    .map-section {
        width: 100%;

        padding: 0;
    }


    .map-section iframe {
        width: 100%;

        min-height: 300px;

        display: block;
    }


    /* =====================================================
       FOOTER
    ===================================================== */
    @media (max-width: 768px) {

    .premium-footer .footer-content {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 30px !important;
    }
   .footer-brand {
    width: 100% !important;
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.footer-brand h2,
.footer-brand h3,
.footer-brand p {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
}
.footer-box:nth-child(3) {
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

.footer-box:nth-child(3) ul {
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
    text-align: center !important;
}

.footer-box:nth-child(3) li {
    width: 100% !important;
    text-align: center !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
}

.footer-box:nth-child(3) a {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
}
.footer-box .contact-item {
    width: 90% !important;
    max-width: 500px !important;
    display: grid !important;
    grid-template-columns: 55px 1fr !important;
    align-items: center !important;
    margin: 15px auto !important;
    text-align: left !important;
}

.footer-box .contact-item i {
    width: 55px !important;
    text-align: center !important;
}

.footer-box .contact-item span {
    text-align: left !important;
    padding-left: 10px !important;
}
}
    .premium-footer {
        width: 100%;

        text-align: center;
    }


    .footer-content {
        width: 100%;

        padding: 40px 18px;

        display: grid;

        grid-template-columns: 1fr;

        gap: 30px;
    }


    .footer-brand,
    .footer-box {
        width: 100%;

        text-align: center;
    }


    .footer-box a,
    .footer-box p {
        font-size: 13px;
    }


    .contact-item {
        justify-content: center;

        text-align: center;
    }


    .footer-social {
        justify-content: center;
    }


    .footer-bottom {
        padding: 20px 15px;

        font-size: 11px;

        line-height: 1.6;

        text-align: center;
    }
    
    /* =====================================================
       FLOATING BUTTONS
    ===================================================== */

    .floating-buttons {
        right: 12px;

        bottom: 15px;

        display: flex;

        flex-direction: column;

        gap: 8px;
    }


    .floating-buttons a {
        width: 45px;

        height: 45px;

        display: flex;

        align-items: center;

        justify-content: center;
    }


}


/* =========================================================
   SMALL PHONES
   480px AND BELOW
========================================================= */

@media (max-width: 480px) {


    .header {
        min-height: 92px;

        padding-left: 12px;
        padding-right: 12px;
    }


    .logo {
        top: 11px;

        max-width: 72%;
    }


    .brand-title {
        font-size: 16px;
    }


    .brand-tagline {
        font-size: 7px;
    }


    .menu-toggle {
        right: 12px;

        width: 38px;
        height: 38px;

        font-size: 21px;
    }


    .language-switcher {
        right: 12px;

        top: 56px;

        gap: 3px;
    }


    .language-switcher a {
        min-width: 30px;

        height: 28px;

        padding: 4px 6px;

        font-size: 9px;
    }


    .hero {
        padding: 35px 15px 40px;
    }


    .hero-image {
        max-width: 310px;

        margin-bottom: 22px;
    }


    .hero h1 {
        font-size: 31px;
    }


    .hero h3 {
        font-size: 21px;
    }


    .hero-sub {
        font-size: 13px;
    }


    .hero-text {
        font-size: 12px;

        max-width: 300px;
    }


    .hero-buttons a,
    .premium-glass-btn {
        max-width: 300px;

        font-size: 11px;
    }


    .hero-features {
        grid-template-columns: 1fr 1fr;

        gap: 8px;

        padding: 20px 10px;
    }


    .feature-box {
        min-height: 105px;

        padding: 14px 7px;
    }


    .feature-box i {
        font-size: 21px;
    }


    .feature-box h4 {
        font-size: 12px;
    }


    .feature-box p {
        font-size: 9px;
    }


}