
/* =========================================
   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;
}

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

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

.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 TOP 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-color: #1d76b9;
    color: #fff;
    border: 1px solid #1d76b9;
}

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

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

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

/* Hamburger button */

.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;
}

.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;
}

/* =========================================
   MAIN FACILITY IMAGE
========================================= */

.facilities-img-main-flex {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 50px 0;
}

.facilities-img-main {
    width: 80%;
    max-height: 520px;
    object-fit: cover;
    border-radius: 14px;
}

/* =========================================
   FACILITY CARDS SECTION
========================================= */

.serv-sec2-sec {
    background-color: #f5f4f4;
    margin-top: 50px;
    padding: 65px 0;
}

.serv-sec2-card-groups {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 25px;
    width: 100%;
}

.serv-sec2-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 26px;
    min-height: 235px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.serv-sec2-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
    border-color: #dfe9f3;
}

.serv-sec2-card img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    transition: transform 0.25s ease;
}

.serv-sec2-card:hover img {
    transform: scale(1.08);
}

.serv-sec2-card h3 {
    font-size: 17px;
    line-height: 1.5;
    font-weight: 600;
    margin-bottom: 8px;
    color: #222;
}

.serv-sec2-card p {
    font-size: 14px;
    line-height: 1.8;
    color: #555;
}

/* =========================================
   SAFETY SECTION
========================================= */

.serv-sec5 {
    padding: 75px 0 80px;
}

.serv-sec5-safety {
    text-align: center;
}

.section-label {
    display: inline-block;
    color: #1d76b9;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.serv-sec5-safety h2 {
    margin: 15px 0;
    font-size: 34px;
    line-height: 1.35;
    font-weight: 700;
    color: #222;
}

.serv-sec5-safety .safety-intro {
    max-width: 680px;
    margin: 0 auto;
    color: #555;
    font-size: 15px;
    line-height: 1.8;
}

/* Safety cards */

.facility-sec4-card-groups {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    margin-top: 45px;
}

.facility-sec4-cards {
    padding: 32px 26px;
    text-align: left;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 7px 25px rgba(100, 100, 111, 0.13);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.facility-sec4-cards:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(100, 100, 111, 0.2);
}

.facility-sec4-cards img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    margin-bottom: 15px;
}

.facility-sec4-cards h3 {
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: 600;
    color: #222;
}

.facility-sec4-cards p {
    font-size: 14px;
    line-height: 1.8;
    color: #555;
}

/* =========================================
   SCHEDULE A VISIT SECTION
========================================= */

.home-sec-5-schedule {
    background-color: #1d76b9;
    color: #fff;
    padding: 75px 0;
}

.sec5-join-sub-schedule {
    text-align: center;
}

.sec5-join-sub-schedule h2 {
    font-size: 34px;
    line-height: 1.4;
    font-weight: 700;
}

.sec5-join-sub-schedule p {
    max-width: 680px;
    margin: 14px auto 25px;
    font-size: 16px;
    line-height: 1.8;
}

.sec5-join-sub-schedule-btn-group {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.sec5-join-sub-schedule-btn-group a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 165px;
    padding: 12px 25px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.25s ease;
}

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

.visit-btn:hover {
    background-color: #e9f2f9;
}

.gallery-btn {
    background-color: transparent;
    color: #fff;
    border: 1px solid #fff;
}

.gallery-btn:hover {
    background-color: #fff;
    color: #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 RESPONSIVE — 1024px
========================================= */

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

    .heading {
        font-size: 24px;
    }

    .serv-sec2-card-groups {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .facility-sec4-card-groups {
        gap: 20px;
    }

    .facility-sec4-cards {
        padding: 25px 20px;
    }

    .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: 60px 0;
    }

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

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

    .facilities-img-main {
        width: 95%;
    }

    .facility-sec4-card-groups {
        grid-template-columns: 1fr;
        gap: 22px;
        max-width: 650px;
        margin: 35px auto 0;
    }

    .facility-sec4-cards {
        width: 100%;
    }

    .serv-sec5-safety h2 {
        font-size: 29px;
    }

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

    .sec5-join-sub-schedule h2 {
        font-size: 29px;
    }
}

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

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

    /* Contact bar */

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

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

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

    /* Navigation */

    nav {
        padding: 12px 0;
    }

    .heading {
        font-size: 22px;
    }

    /* Hero */

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

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

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

    /* Main image */

    .facilities-img-main-flex {
        margin: 28px 0;
    }

    .facilities-img-main {
        width: 100%;
        max-height: 300px;
        border-radius: 10px;
    }

    /* Facility cards */

    .serv-sec2-sec {
        margin-top: 25px;
        padding: 38px 0;
    }

    .serv-sec2-card-groups {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .serv-sec2-card {
        min-height: unset;
        padding: 22px;
        gap: 12px;
    }

    .serv-sec2-card h3 {
        font-size: 16px;
    }

    .serv-sec2-card p {
        font-size: 13px;
        line-height: 1.7;
    }

    /* Safety */

    .serv-sec5 {
        padding: 45px 0;
    }

    .serv-sec5-safety h2 {
        font-size: 23px;
        line-height: 1.4;
    }

    .serv-sec5-safety .safety-intro {
        font-size: 13px;
    }

    .facility-sec4-card-groups {
        margin-top: 28px;
        gap: 18px;
    }

    .facility-sec4-cards {
        padding: 22px 18px;
    }

    .facility-sec4-cards h3 {
        font-size: 16px;
    }

    .facility-sec4-cards p {
        font-size: 13px;
    }

    /* Visit section */

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

    .sec5-join-sub-schedule h2 {
        font-size: 23px;
        line-height: 1.4;
    }

    .sec5-join-sub-schedule p {
        font-size: 13px;
        line-height: 1.7;
    }

    .sec5-join-sub-schedule-btn-group {
        flex-direction: column;
        gap: 12px;
    }

    .sec5-join-sub-schedule-btn-group a {
        width: 100%;
        max-width: 280px;
        padding: 12px 20px;
    }

    /* 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;
    }

    .serv-sec5-safety h2,
    .sec5-join-sub-schedule h2 {
        font-size: 21px;
    }
}
