
/* =========================================
   GLOBAL STYLES
========================================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: #222;
    line-height: 1.6;
    overflow-x: hidden;
}

body.modal-open {
    overflow: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    display: block;
    max-width: 100%;
}

button {
    font: inherit;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

.container-serv {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* =========================================
   HEADER AND CONTACT BAR
========================================= */

header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: #fff;
}

.top-contact-details {
    background-color: #1d76b9;
    color: #fff;
    font-size: 14px;
}

.top-contact-details .container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 18px;
    padding-top: 6px;
    padding-bottom: 6px;
}

.top-contact-details a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    color: #fff;
}

.top-contact-details img {
    width: 12px;
    height: 12px;
    object-fit: contain;
}

.top-contact-details span {
    color: #fff;
    overflow-wrap: anywhere;
}

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

nav {
    padding: 16px 0;
    background: #fff;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    position: relative;
}

.heading {
    font-size: 28px;
    line-height: 1.3;
    font-weight: 800;
    color: #1d76b9;
    white-space: nowrap;
}

.home-pages {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 22px;
    font-size: 14px;
    font-weight: 500;
}

.home-pages > a:not(.btn-call-now):not(.btn-donate) {
    transition: color 0.2s ease;
}

.home-pages > a:not(.btn-call-now):not(.btn-donate):hover,
.home-pages > a[aria-current="page"] {
    color: #1d76b9;
}

.btn-call-now,
.btn-donate {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 85px;
    padding: 9px 15px;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.25s ease;
}

.btn-call-now {
    background: #1d76b9;
    color: #fff;
    border: 1px solid #1d76b9;
}

.btn-call-now:hover {
    background: #155d94;
    color: #fff;
}

.btn-donate {
    background: #fff;
    color: #b91d49;
    border: 1px solid #b91d49;
}

.btn-donate:hover {
    background: #b91d49;
    color: #fff;
}

/* Hamburger */

.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 8px;
    background: transparent;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
}

.hamburger-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: #222;
    border-radius: 2px;
}

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

.home-sec-5 {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #1d76b9;
    padding: 75px 0;
}

.sec5-join-sub {
    text-align: center;
    color: #fff;
    width: 100%;
}

.sec5-join-sub h1 {
    font-size: 42px;
    line-height: 1.3;
    font-weight: 700;
}

.sec5-join-sub p {
    max-width: 780px;
    margin: 18px auto 0;
    font-size: 18px;
    line-height: 1.7;
}

/* =========================================
   GALLERY SECTION
========================================= */

.gallery-section {
    padding: 40px 0 55px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.gallery-item {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: none;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4 / 3;
    background: #eee;
    box-shadow: 0 3px 12px rgba(29, 118, 185, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(29, 118, 185, 0.25);
}

.gallery-item:hover img {
    transform: scale(1.06);
}

/* Image overlay */

.overlay {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.35);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .overlay,
.gallery-item:focus-visible .overlay {
    opacity: 1;
}

.overlay span {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    padding: 9px 18px;
    border: 1px solid #fff;
    border-radius: 5px;
}

/* =========================================
   LIGHTBOX MODAL
========================================= */

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 60px 30px;
}

.modal.active {
    display: flex;
}

.modal-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 85%;
    max-height: 100%;
}

.modal img {
    max-width: 100%;
    max-height: 75vh;
    border-radius: 10px;
    object-fit: contain;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

.modal p {
    color: #fff;
    margin-top: 14px;
    font-size: 15px;
    font-weight: 500;
    text-align: center;
}

#image-counter {
    color: #ccc;
    font-size: 13px;
    margin-top: 8px;
}

/* Close button */

.close-btn {
    position: absolute;
    top: 18px;
    right: 25px;
    width: 42px;
    height: 42px;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 38px;
    line-height: 1;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.close-btn:hover {
    opacity: 1;
}

/* Previous and next buttons */

.modal-nav {
    flex-shrink: 0;
    width: 45px;
    height: 45px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.modal-nav:hover {
    background: #1d76b9;
}

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

footer {
    background: #f7f7f7;
    padding: 50px 0;
}

.footer {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1.2fr 1.3fr;
    gap: 35px;
    align-items: start;
}

.footer h3 {
    margin-bottom: 16px;
    font-size: 19px;
    font-weight: 600;
    color: #222;
}

.footer-quote p {
    max-width: 280px;
    font-size: 14px;
    line-height: 1.8;
    color: #555;
}

.footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer li {
    margin-bottom: 12px;
    font-size: 14px;
    color: #444;
}

.footer-quickline a {
    color: #222;
    transition: color 0.2s ease;
}

.footer-quickline a:hover {
    color: #1d76b9;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow-wrap: anywhere;
}

.footer-contact li img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    flex-shrink: 0;
}

.footer-contact li a {
    overflow-wrap: anywhere;
}

.footer-location iframe {
    display: block;
    width: 100%;
    height: 230px;
    border: 0;
    border-radius: 8px;
}

/* =========================================
   ACCESSIBILITY
========================================= */

a:focus-visible,
button:focus-visible {
    outline: 3px solid #f0a52b;
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

/* =========================================
   TABLET — 1024px
========================================= */

@media (max-width: 1024px) {
    .home-pages {
        gap: 12px;
        font-size: 13px;
    }

    .heading {
        font-size: 24px;
    }

    .gallery-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 14px;
    }

    .footer {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* =========================================
   MOBILE NAVIGATION — 900px
========================================= */

@media (max-width: 900px) {
    .top-contact-details .container {
        gap: 5px 18px;
    }

    .navbar {
        min-height: 42px;
    }

    .hamburger-btn {
        display: flex;
    }

    .home-pages {
        display: none;
        position: absolute;
        top: calc(100% + 16px);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        max-height: calc(100vh - 150px);
        overflow-y: auto;
        padding: 12px 20px 20px;
        background: #fff;
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
        border-radius: 0 0 10px 10px;
        z-index: 1000;
    }

    .home-pages.open {
        display: flex;
    }

    .home-pages > a:not(.btn-call-now):not(.btn-donate) {
        display: block;
        width: 100%;
        padding: 12px 0;
        border-bottom: 1px solid #eee;
    }

    .home-pages .btn-call-now,
    .home-pages .btn-donate {
        width: 100%;
        margin-top: 12px;
        padding: 12px;
    }

    .home-sec-5 {
        padding: 55px 0;
    }

    .sec5-join-sub h1 {
        font-size: 34px;
    }

    .sec5-join-sub p {
        font-size: 16px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .modal-content {
        max-width: 80%;
    }
}

/* =========================================
   MOBILE — 600px
========================================= */

@media (max-width: 600px) {
    .container,
    .container-serv {
        padding-left: 18px;
        padding-right: 18px;
    }

    .top-contact-details {
        font-size: 12px;
    }

    .top-contact-details .container {
        gap: 3px 14px;
    }

    .top-contact-details a {
        gap: 6px;
    }

    nav {
        padding: 12px 0;
    }

    .heading {
        font-size: 22px;
    }

    .home-sec-5 {
        padding: 45px 0;
    }

    .sec5-join-sub h1 {
        font-size: 27px;
        line-height: 1.4;
    }

    .sec5-join-sub p {
        font-size: 14px;
        margin-top: 12px;
    }

    .gallery-section {
        padding: 25px 0 35px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }

    .gallery-item {
        border-radius: 7px;
    }

    .overlay span {
        font-size: 12px;
        padding: 6px 10px;
    }

    /* Modal */

    .modal {
        gap: 8px;
        padding: 55px 10px 30px;
    }

    .modal-content {
        max-width: calc(100% - 70px);
    }

    .modal img {
        max-width: 100%;
        max-height: 65vh;
    }

    .modal-nav {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }

    .close-btn {
        top: 12px;
        right: 14px;
        font-size: 30px;
    }

    .modal p {
        font-size: 13px;
    }

    /* Footer */

    footer {
        padding: 35px 0;
    }

    .footer {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer h3 {
        font-size: 18px;
    }

    .footer-quote p {
        max-width: 100%;
    }

    .footer-location iframe {
        height: 200px;
    }
}

/* =========================================
   SMALL MOBILE — 360px
========================================= */

@media (max-width: 360px) {
    .container,
    .container-serv {
        padding-left: 14px;
        padding-right: 14px;
    }

    .heading {
        font-size: 20px;
    }

    .top-contact-details .container {
        gap: 2px 10px;
    }

    .top-contact-details a {
        font-size: 11px;
    }

    .sec5-join-sub h1 {
        font-size: 24px;
    }

    .gallery-grid {
        gap: 7px;
    }

    .modal {
        gap: 5px;
        padding-left: 5px;
        padding-right: 5px;
    }

    .modal-content {
        max-width: calc(100% - 65px);
    }
}
