/* ==========================================================
   ST. THERESA TIMAU CATHOLIC DISPENSARY
   MAIN WEBSITE STYLESHEET
========================================================== */


/* ==========================================================
   VARIABLES
========================================================== */

:root {

    --sky-blue: #36a9df;

    --sky-dark: #1285b8;

    --sky-light: #eaf8fe;

    --deep-blue: #0b4563;

    --text: #50636d;

    --light-text: #758790;

    --white: #ffffff;

    --cream: #f8fcfe;

    --border: #d9edf5;

    --shadow:
        0 18px 50px rgba(13, 70, 101, 0.10);

    --radius: 22px;
}


/* ==========================================================
   RESET
========================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {

    font-family:
        "DM Sans",
        Arial,
        sans-serif;

    color: var(--text);

    background: var(--white);

    line-height: 1.7;

    overflow-x: hidden;
}


img {
    width: 100%;
    display: block;
}


a {
    text-decoration: none;
    color: inherit;
}


button,
input,
textarea {
    font-family: inherit;
}


.container {

    width: min(1160px, 92%);

    margin: auto;
}


/* ==========================================================
   TOP BAR
========================================================== */

.top-bar {

    background: var(--deep-blue);

    color: white;

    font-size: 13px;
}


.top-bar-content {

    min-height: 38px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;
}


.top-bar a {

    color: white;

    font-weight: 700;
}


.top-bar a:hover {

    color: #9fe2ff;
}


/* ==========================================================
   NAVIGATION
========================================================== */

.navbar {

    position: sticky;

    top: 0;

    z-index: 1000;

    background:
        rgba(255, 255, 255, 0.97);

    backdrop-filter: blur(15px);

    border-bottom:
        1px solid rgba(53, 169, 223, .15);
}


.nav-container {

    min-height: 82px;

    display: flex;

    align-items: center;

    justify-content: space-between;
}


/* LOGO */

.logo {

    display: flex;

    align-items: center;

    gap: 12px;
}


.logo-symbol {

    width: 47px;

    height: 47px;

    border-radius: 50%;

    display: grid;

    place-items: center;

    color: white;

    font-size: 24px;

    background:
        linear-gradient(
            135deg,
            var(--sky-blue),
            var(--sky-dark)
        );

    box-shadow:
        0 8px 22px
        rgba(53, 169, 223, .25);
}


.logo-text strong {

    display: block;

    color: var(--deep-blue);

    font-size: 16px;

    line-height: 1.2;

    letter-spacing: .5px;
}


.logo-text span {

    display: block;

    color: var(--sky-dark);

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 1.8px;

    margin-top: 4px;
}


/* NAV MENU */

.nav-menu {

    display: flex;

    align-items: center;

    gap: 28px;

    color: var(--deep-blue);

    font-size: 14px;

    font-weight: 600;
}


.nav-menu a {

    position: relative;

    padding: 10px 0;
}


.nav-menu a:not(.nav-button)::after {

    content: "";

    position: absolute;

    left: 0;

    bottom: 2px;

    width: 0;

    height: 2px;

    background: var(--sky-blue);

    transition: .3s;
}


.nav-menu a:not(.nav-button):hover::after {

    width: 100%;
}


/* CONTACT BUTTON */

.nav-button {

    color: white !important;

    padding:
        11px 21px !important;

    border-radius: 30px;

    background: var(--sky-blue);

    box-shadow:
        0 8px 20px
        rgba(53,169,223,.25);

    transition: .3s;
}


.nav-button:hover {

    background: var(--sky-dark);

    transform: translateY(-2px);
}


/* MOBILE MENU */

#menu-toggle {

    display: none;
}


.menu-icon {

    display: none;

    font-size: 28px;

    color: var(--deep-blue);

    cursor: pointer;
}


/* ==========================================================
   HERO
========================================================== */

.hero {

    position: relative;

    min-height: 720px;

    display: flex;

    align-items: center;

    overflow: hidden;

    color: white;
}


/* HERO SLIDER */

.hero-slides {

    position: absolute;

    inset: 0;

    z-index: -3;

    background: #55b4dc;
}


.hero-slide {

    position: absolute;

    inset: 0;

    background-size: cover;

    background-position: center;

    opacity: 0;

    transform: scale(1.08);

    animation:
        heroAnimation 24s infinite;
}


/* ATTACHED PHOTOS */

.slide-one {

    background-image:
        url("assets/images/building-wide.jpg");

    animation-delay: 0s;
}


.slide-two {

    background-image:
        url("assets/images/building-front.jpg");

    animation-delay: 6s;
}


.slide-three {

    background-image:
        url("assets/images/building-side.jpg");

    animation-delay: 12s;
}


.slide-four {

    background-image:
        url("assets/images/entrance.jpg");

    animation-delay: 18s;
}


/* HERO OVERLAY */

.hero-overlay {

    position: absolute;

    inset: 0;

    z-index: -2;

    background:

        linear-gradient(
            90deg,
            rgba(4,42,63,.90),
            rgba(8,70,101,.65),
            rgba(12,100,138,.20)
        ),

        linear-gradient(
            180deg,
            rgba(0,0,0,.05),
            rgba(0,0,0,.35)
        );
}


/* HERO CONTENT */

.hero-container {

    padding:
        110px 0
        150px;
}


.hero-content {

    max-width: 760px;

    animation:
        fadeUp 1s ease both;
}


.small-heading {

    font-size: 12px;

    font-weight: 700;

    letter-spacing: 2.7px;

    margin-bottom: 14px;
}


.hero h1 {

    font-family:
        "Playfair Display",
        Georgia,
        serif;

    font-size:
        clamp(44px, 6vw, 76px);

    line-height: 1.08;

    margin-bottom: 25px;
}


.hero h1 span {

    color: #b9ecff;
}


.hero-content p {

    color: #f1fbff;

    font-size: 17px;

    max-width: 720px;

    margin-bottom: 8px;
}


/* BUTTONS */

.hero-buttons {

    display: flex;

    flex-wrap: wrap;

    gap: 14px;

    margin-top: 30px;
}


.btn {

    display: inline-flex;

    justify-content: center;

    align-items: center;

    min-height: 49px;

    padding:
        12px 24px;

    border-radius: 999px;

    font-weight: 700;

    border: none;

    cursor: pointer;

    transition:
        .3s ease;
}


.btn:hover {

    transform: translateY(-3px);
}


.btn-primary {

    color: white;

    background:
        var(--sky-blue);

    box-shadow:
        0 10px 28px
        rgba(53,169,223,.28);
}


.btn-primary:hover {

    background:
        var(--sky-dark);
}


.btn-outline {

    color: white;

    border:
        1px solid rgba(255,255,255,.7);

    background:
        rgba(255,255,255,.08);

    backdrop-filter: blur(5px);
}


.btn-outline:hover {

    background: white;

    color: var(--deep-blue);
}


/* HERO BOTTOM */

.hero-bottom {

    position: absolute;

    left: 0;

    right: 0;

    bottom: 0;

    background:
        rgba(4,42,63,.50);

    backdrop-filter: blur(8px);
}


.hero-bottom-content {

    min-height: 60px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    font-size: 13px;
}


.scroll-text {

    color: #d6f5ff;
}


/* ==========================================================
   GENERAL SECTIONS
========================================================== */

.section {

    padding:
        95px 0;
}


.two-column {

    display: grid;

    grid-template-columns:
        1.05fr .95fr;

    gap: 75px;

    align-items: center;
}


/* IMAGES */

.image-box {

    overflow: hidden;

    border-radius: 28px;

    box-shadow: var(--shadow);
}


.image-box img {

    aspect-ratio: 4 / 3;

    object-fit: cover;

    transition:
        transform .8s ease;
}


.image-box:hover img {

    transform: scale(1.05);
}


/* TEXT */

.section-label {

    color: var(--sky-dark);

    font-size: 12px;

    font-weight: 700;

    letter-spacing: 2.3px;

    margin-bottom: 12px;
}


h2 {

    font-family:
        "Playfair Display",
        Georgia,
        serif;

    color: var(--deep-blue);

    font-size:
        clamp(34px, 4vw, 50px);

    line-height: 1.15;

    margin-bottom: 20px;
}


.section-text p {

    margin-bottom: 16px;
}


.read-more {

    display: inline-block;

    margin-top: 10px;

    color: var(--sky-dark);

    font-weight: 700;

    transition: .3s;
}


.read-more:hover {

    transform: translateX(5px);
}


/* ==========================================================
   ABOUT
========================================================== */

.about {

    background:
        var(--sky-light);
}


.section-heading {

    max-width: 760px;

    margin:
        0 auto 52px;

    text-align: center;
}


.section-heading p {

    margin-top: 10px;
}


/* CARDS */

.cards {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 24px;
}


.info-card {

    padding: 34px;

    background: white;

    border:
        1px solid var(--border);

    border-radius:
        var(--radius);

    box-shadow:
        0 10px 35px
        rgba(13,70,101,.06);

    transition:
        .35s ease;
}


.info-card:hover {

    transform:
        translateY(-8px);

    box-shadow:
        var(--shadow);
}


.card-icon {

    width: 53px;

    height: 53px;

    display: grid;

    place-items: center;

    border-radius: 16px;

    color: white;

    background:
        linear-gradient(
            135deg,
            var(--sky-blue),
            var(--sky-dark)
        );

    font-size: 23px;

    margin-bottom: 20px;
}


.info-card h3 {

    color: var(--deep-blue);

    font-size: 22px;

    margin-bottom: 12px;
}


.motto {

    color: var(--sky-dark);

    font-family:
        "Playfair Display",
        Georgia,
        serif;

    font-size: 25px;

    font-weight: 700;

    margin-bottom: 12px;
}


/* ==========================================================
   VALUES
========================================================== */

.values {

    padding:
        75px 0;

    color: white;

    background:

        linear-gradient(
            135deg,
            rgba(13,70,101,.98),
            rgba(27,143,191,.94)
        );
}


.values-container {

    display: grid;

    grid-template-columns:
        .9fr 1.1fr;

    gap: 70px;

    align-items: center;
}


.values .section-label {

    color: #c6f1ff;
}


.values h2 {

    color: white;
}


.values p {

    color: #e9f9ff;
}


.values-list {

    display: flex;

    flex-wrap: wrap;

    gap: 12px;
}


.values-list span {

    padding:
        11px 16px;

    border:
        1px solid rgba(255,255,255,.35);

    border-radius: 999px;

    background:
        rgba(255,255,255,.08);

    transition: .3s;
}


.values-list span:hover {

    transform:
        translateY(-4px);

    background:
        rgba(255,255,255,.18);
}


/* ==========================================================
   SERVICES
========================================================== */

.services {

    background: white;
}


.service-grid {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 20px;
}


.service-card {

    position: relative;

    overflow: hidden;

    min-height: 205px;

    padding: 30px;

    background: white;

    border:
        1px solid var(--border);

    border-radius:
        var(--radius);

    box-shadow:
        0 7px 25px
        rgba(13,70,101,.045);

    transition:
        .35s ease;
}


.service-card::before {

    content: "";

    position: absolute;

    left: 0;

    top: 0;

    width: 5px;

    height: 100%;

    background:
        var(--sky-blue);

    transform:
        scaleY(0);

    transform-origin:
        bottom;

    transition:
        .35s ease;
}


.service-card:hover {

    transform:
        translateY(-7px);

    box-shadow:
        var(--shadow);
}


.service-card:hover::before {

    transform:
        scaleY(1);
}


.service-card span {

    color:
        var(--sky-dark);

    font-size: 12px;

    font-weight: 800;

    letter-spacing: 1px;
}


.service-card h3 {

    color:
        var(--deep-blue);

    font-size: 20px;

    line-height: 1.3;

    margin:
        12px 0 10px;
}


.service-card p {

    color:
        var(--light-text);

    font-size: 14px;
}


/* ==========================================================
   FACILITY
========================================================== */

.facility {

    background:
        var(--cream);
}


.facility-grid {

    display: grid;

    grid-template-columns:
        .85fr 1.15fr;

    gap: 65px;

    align-items: center;
}


.facility-content p {

    margin-bottom: 15px;
}


.facility-content .btn {

    margin-top: 15px;
}


.facility-photo {

    overflow: hidden;

    border-radius: 28px;

    box-shadow:
        var(--shadow);
}


.facility-photo img {

    aspect-ratio:
        16 / 10;

    object-fit: cover;

    transition:
        transform .8s ease;
}


.facility-photo:hover img {

    transform:
        scale(1.05);
}


/* ==========================================================
   MINISTRY
========================================================== */

.ministry {

    background:
        var(--sky-light);
}


.ministry-grid {

    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 70px;

    align-items: center;
}


.ministry-photo {

    overflow: hidden;

    border-radius: 28px;

    box-shadow:
        var(--shadow);
}


.ministry-photo img {

    aspect-ratio:
        4 / 3;

    object-fit: cover;

    transition:
        transform .8s ease;
}


.ministry-photo:hover img {

    transform:
        scale(1.05);
}


.check-list {

    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 14px;

    margin-top: 25px;
}


.check-list div {

    color:
        var(--deep-blue);

    font-weight: 600;
}


.check-list span {

    display: inline-grid;

    width: 27px;

    height: 27px;

    place-items: center;

    margin-right: 7px;

    border-radius: 50%;

    color: white;

    background:
        var(--sky-blue);

    font-size: 12px;
}


/* ==========================================================
   GALLERY
========================================================== */

.gallery {

    background:
        white;
}


.gallery-grid {

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    grid-auto-rows:
        230px;

    gap: 16px;
}


.gallery-item {

    position: relative;

    overflow: hidden;

    border-radius:
        18px;

    background:
        var(--sky-light);
}


.gallery-large {

    grid-column:
        span 2;
}


.gallery-item img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    transition:
        transform .7s ease;
}


.gallery-item::after {

    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            transparent 40%,
            rgba(4,42,63,.80)
        );
}


.gallery-caption {

    position: absolute;

    left: 20px;

    bottom: 16px;

    z-index: 2;

    color: white;

    font-weight: 700;
}


.gallery-item:hover img {

    transform:
        scale(1.08);
}


/* ==========================================================
   CONTACT
========================================================== */

.contact {

    background:
        var(--sky-light);
}


.contact-grid {

    display: grid;

    grid-template-columns:
        1fr .9fr;

    gap: 70px;

    align-items: start;
}


.contact-information > p {

    max-width: 600px;
}


.contact-details {

    margin-top: 30px;

    display: grid;

    gap: 14px;
}


.contact-details > a,
.contact-details > div {

    display: flex;

    align-items: center;

    gap: 15px;

    padding: 15px;

    background: white;

    border:
        1px solid var(--border);

    border-radius: 15px;

    transition: .3s;
}


.contact-details > a:hover {

    transform:
        translateX(6px);
}


.contact-icon {

    flex:
        0 0 42px;

    width: 42px;

    height: 42px;

    display: grid;

    place-items: center;

    border-radius: 12px;

    color: white;

    background:
        var(--sky-blue);
}


/* CONTACT FORM */

.contact-form {

    padding: 35px;

    background: white;

    border-radius: 25px;

    box-shadow:
        var(--shadow);
}


.contact-form h3 {

    color:
        var(--deep-blue);

    font-size: 26px;

    margin-bottom: 5px;
}


.contact-form > p {

    color:
        var(--light-text);

    margin-bottom: 25px;
}


.contact-form form {

    display: grid;
}


.contact-form label {

    color:
        var(--deep-blue);

    font-size: 13px;

    font-weight: 700;

    margin:
        6px 0;
}


.contact-form input,
.contact-form textarea {

    width: 100%;

    padding:
        13px 15px;

    border:
        1px solid var(--border);

    border-radius:
        11px;

    outline: none;

    background:
        #fbfeff;

    color:
        var(--text);

    transition: .3s;
}


.contact-form input:focus,
.contact-form textarea:focus {

    border-color:
        var(--sky-blue);

    box-shadow:
        0 0 0 4px
        rgba(53,169,223,.10);
}


.contact-form textarea {

    resize: vertical;

    margin-bottom: 15px;
}


/* ==========================================================
   FOOTER
========================================================== */

.footer {

    color:
        #dff5ff;

    background:
        var(--deep-blue);

    padding-top:
        60px;
}


.footer-grid {

    display: grid;

    grid-template-columns:
        1.5fr 1fr 1fr;

    gap: 60px;

    padding-bottom:
        45px;
}


.footer-logo {

    color: white;

    font-weight: 800;

    letter-spacing: .5px;

    margin-bottom: 12px;
}


.footer h4 {

    color: white;

    margin-bottom: 12px;
}


.footer a {

    display: block;

    margin: 6px 0;
}


.footer a:hover {

    color:
        #8ddcff;
}


.copyright {

    border-top:
        1px solid rgba(255,255,255,.13);

    padding:
        18px 0;

    text-align:
        center;

    color:
        #a9c8d4;

    font-size:
        12px;
}


/* ==========================================================
   HERO ANIMATION
========================================================== */

@keyframes heroAnimation {

    0% {

        opacity: 0;

        transform:
            scale(1.08);
    }

    4% {

        opacity: 1;
    }

    20% {

        opacity: 1;

        transform:
            scale(1);
    }

    25% {

        opacity: 0;

        transform:
            scale(1.04);
    }

    100% {

        opacity: 0;
    }
}


/* ==========================================================
   FADE ANIMATION
========================================================== */

@keyframes fadeUp {

    from {

        opacity: 0;

        transform:
            translateY(25px);
    }

    to {

        opacity: 1;

        transform:
            translateY(0);
    }
}


/* ==========================================================
   TABLET
========================================================== */

@media (max-width: 980px) {

    .nav-menu {

        gap: 15px;
    }


    .two-column,
    .facility-grid,
    .ministry-grid,
    .contact-grid,
    .values-container {

        gap: 40px;
    }


    .cards,
    .service-grid {

        grid-template-columns:
            repeat(2, 1fr);
    }


    .gallery-grid {

        grid-template-columns:
            repeat(2, 1fr);
    }

}


/* ==========================================================
   MOBILE NAVIGATION
========================================================== */

@media (max-width: 780px) {

    .top-bar-content {

        justify-content:
            center;
    }


    .top-bar-content span:first-child {

        display: none;
    }


    .menu-icon {

        display: block;
    }


    .nav-menu {

        position: absolute;

        top: 82px;

        left: 0;

        right: 0;

        display: none;

        flex-direction: column;

        align-items: stretch;

        gap: 3px;

        padding:
            18px 5%;

        background:
            white;

        border-top:
            1px solid var(--border);

        box-shadow:
            0 18px 30px
            rgba(13,70,101,.10);
    }


    #menu-toggle:checked
    ~ .nav-menu {

        display: flex;
    }


    .nav-menu a {

        padding:
            11px 0;
    }


    .nav-button {

        text-align:
            center;
    }


    .hero {

        min-height:
            650px;
    }


    .hero-container {

        padding:
            95px 0 125px;
    }


    .hero h1 {

        font-size:
            clamp(42px, 12vw, 62px);
    }


    .scroll-text {

        display:
            none;
    }


    .two-column,
    .facility-grid,
    .ministry-grid,
    .contact-grid,
    .values-container {

        grid-template-columns:
            1fr;
    }


    .section {

        padding:
            70px 0;
    }


    .cards,
    .service-grid {

        grid-template-columns:
            1fr 1fr;
    }


    .footer-grid {

        grid-template-columns:
            1fr 1fr;

        gap:
            35px;
    }

}


/* ==========================================================
   SMALL PHONES
========================================================== */

@media (max-width: 560px) {

    .top-bar {

        display: none;
    }


    .logo-text strong {

        font-size:
            13px;
    }


    .logo-text span {

        font-size:
            8px;

        letter-spacing:
            1.2px;
    }


    .logo-symbol {

        width:
            40px;

        height:
            40px;
    }


    .hero-content p {

        font-size:
            16px;
    }


    .hero-buttons {

        flex-direction:
            column;
    }


    .hero-buttons .btn {

        width:
            100%;
    }


    .cards,
    .service-grid,
    .check-list,
    .footer-grid {

        grid-template-columns:
            1fr;
    }


    .gallery-grid {

        grid-template-columns:
            1fr;

        grid-auto-rows:
            250px;
    }


    .gallery-large {

        grid-column:
            span 1;
    }


    .contact-form {

        padding:
            25px;
    }

}


/* ==========================================================
   REDUCED MOTION
========================================================== */

@media (prefers-reduced-motion: reduce) {

    html {

        scroll-behavior:
            auto;
    }


    *,
    *::before,
    *::after {

        animation-duration:
            .01ms !important;

        animation-iteration-count:
            1 !important;

        transition-duration:
            .01ms !important;
    }

}