﻿/* =========================================================
   PET CARE - FINAL UI / RESPONSIVE OVERRIDES
========================================================= */


/* =========================================================
   GENERAL
========================================================= */

html {
    scroll-behavior: smooth;
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    line-height: 1.6;
}

img {
    max-width: 100%;
}

a {
    text-decoration: none;
}

.section-padding {
    padding: 90px 0;
}

.section-heading {
    max-width: 760px;
}

    .section-heading.text-center {
        margin-left: auto;
        margin-right: auto;
    }

.section-title {
    color: var(--petcare-dark);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.section-description {
    color: var(--petcare-muted);
    line-height: 1.8;
}


/* =========================================================
   NAVBAR FINAL
========================================================= */

.navbar {
    transition: background-color .2s ease, box-shadow .2s ease;
}

.navbar-brand {
    flex-shrink: 0;
}

    .navbar-brand img {
        display: block;
        width: auto;
        max-height: 66px;
    }

.navbar-nav {
    align-items: center;
}

    .navbar-nav .nav-link {
        position: relative;
        color: var(--petcare-dark);
        font-size: 14px;
        font-weight: 650;
        padding-left: 12px !important;
        padding-right: 12px !important;
        transition: color .2s ease;
    }

        .navbar-nav .nav-link:hover,
        .navbar-nav .nav-link:focus {
            color: var(--petcare-green);
        }

        .navbar-nav .nav-link::after {
            content: "";
            position: absolute;
            left: 12px;
            right: 12px;
            bottom: 4px;
            height: 2px;
            border-radius: 10px;
            background-color: var(--petcare-green);
            transform: scaleX(0);
            transform-origin: center;
            transition: transform .2s ease;
        }

        .navbar-nav .nav-link:hover::after {
            transform: scaleX(1);
        }


/* =========================================================
   CARDS - COMMON FINAL POLISH
========================================================= */

.service-card,
.article-card,
.product-card,
.staff-card,
.gallery-card,
.patient-card {
    height: 100%;
}

.service-card,
.article-card,
.product-card,
.staff-card,
.gallery-card,
.patient-card,
.about-box-item {
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

    .service-card:hover,
    .article-card:hover,
    .product-card:hover,
    .staff-card:hover,
    .gallery-card:hover,
    .patient-card:hover {
        transform: translateY(-5px);
    }


/* =========================================================
   ABOUT
========================================================= */

.about-text {
    max-width: 720px;
}

.about-box {
    align-items: stretch;
}

.about-box-item {
    height: 100%;
}

.about-highlights li:last-child {
    margin-bottom: 0;
}


/* =========================================================
   SERVICES
========================================================= */

.service-card {
    overflow: hidden;
}

    .service-card p {
        line-height: 1.7;
    }


/* =========================================================
   GALLERY
========================================================= */

.gallery-image-wrapper {
    background-color: #f2f4f2;
}

.gallery-image {
    transition: transform .45s ease;
}

.gallery-card:hover .gallery-image {
    transform: scale(1.025);
}


/* =========================================================
   PATIENTS
========================================================= */

.patient-card {
    overflow: hidden;
}

.patient-image {
    transition: transform .45s ease;
}

.patient-card:hover .patient-image {
    transform: scale(1.025);
}

.patient-card-body h3,
.patient-list-title {
    overflow-wrap: anywhere;
}

.patient-detail-cover,
.patient-gallery-image {
    max-width: 100%;
}


/* =========================================================
   ARTICLES
========================================================= */

.article-card img {
    display: block;
    width: 100%;
}

.article-card h2,
.article-card h3 {
    overflow-wrap: anywhere;
}


/* =========================================================
   PRODUCTS
========================================================= */

.product-card img {
    display: block;
    width: 100%;
}

.product-card h2,
.product-card h3,
.product-detail-title {
    overflow-wrap: anywhere;
}


/* =========================================================
   STAFF
========================================================= */

.staff-card {
    overflow: hidden;
}

    .staff-card img {
        transition: transform .45s ease;
    }

    .staff-card:hover img {
        transform: scale(1.025);
    }


/* =========================================================
   CONTACT
========================================================= */

.contact-value {
    word-break: break-word;
}

.hours-main {
    min-width: 0;
}

.emergency-notice {
    overflow: hidden;
}


/* =========================================================
   SOCIAL ICON LINKS
========================================================= */

.social-icon-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: inherit;
    font-weight: 650;
    transition: color .2s ease, opacity .2s ease, transform .2s ease;
}

    .social-icon-link:hover {
        color: var(--petcare-green);
        transform: translateY(-1px);
    }

.social-icon {
    width: 19px;
    height: 19px;
    flex: 0 0 19px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.social-icon-link.whatsapp-link:hover {
    color: var(--petcare-green);
}

.social-icon-link.instagram-link:hover {
    color: var(--petcare-gold);
}

.petcare-footer .social-icon-link {
    color: rgba(255, 255, 255, .72);
}

    .petcare-footer .social-icon-link:hover {
        color: var(--petcare-gold);
    }


/* =========================================================
   ERROR / 404
========================================================= */

.error-page {
    min-height: 68vh;
    display: flex;
    align-items: center;
    padding: 100px 0;
    background: linear-gradient( 135deg, var(--petcare-light), var(--petcare-soft-green) );
}

.error-page-inner {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.error-code {
    color: rgba(87, 155, 87, .15);
    font-size: 150px;
    font-weight: 900;
    line-height: .9;
    letter-spacing: -10px;
    margin-bottom: 25px;
}

.error-code-small {
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(208, 169, 54, .12);
    color: var(--petcare-gold);
    font-size: 70px;
    letter-spacing: 0;
}

.error-page h1 {
    color: var(--petcare-dark);
    font-size: 45px;
    font-weight: 800;
    margin: 12px 0 18px;
}

.error-page p {
    max-width: 600px;
    margin: 0 auto 30px;
    color: var(--petcare-muted);
    font-size: 18px;
    line-height: 1.8;
}

.error-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.error-request-id {
    display: block;
    margin-top: 35px;
    color: var(--petcare-muted);
    font-size: 11px;
}


/* =========================================================
   BUTTON FINAL
========================================================= */

.btn-petcare,
.btn-outline-petcare,
.map-link-button,
.btn-whatsapp {
    transition: transform .2s ease, background-color .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
}

    .btn-petcare:hover,
    .btn-outline-petcare:hover,
    .map-link-button:hover,
    .btn-whatsapp:hover {
        transform: translateY(-1px);
    }

.btn-outline-petcare {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .75rem 1.25rem;
    border: 1px solid var(--petcare-green);
    border-radius: .5rem;
    color: var(--petcare-green);
    background-color: transparent;
    font-weight: 700;
}

    .btn-outline-petcare:hover {
        color: white;
        background-color: var(--petcare-green);
    }


/* =========================================================
   FOOTER
========================================================= */

.petcare-footer {
    overflow: hidden;
}

    .petcare-footer img {
        max-width: 100%;
    }

    .petcare-footer a {
        transition: color .2s ease;
    }


/* =========================================================
   TABLET - LARGE
========================================================= */

@media (max-width: 1199.98px) {

    .section-padding {
        padding: 80px 0;
    }

    .navbar-nav .nav-link {
        padding-left: 8px !important;
        padding-right: 8px !important;
        font-size: 13px;
    }

        .navbar-nav .nav-link::after {
            left: 8px;
            right: 8px;
        }

    .gallery-image-wrapper {
        height: 340px;
    }

    .patient-image {
        height: 270px;
    }
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 991.98px) {

    .section-padding {
        padding: 70px 0;
    }

    .section-title {
        font-size: 36px;
    }

    /*
       Bootstrap navbar açıldığında linkler
       masaüstündeki gibi sıkışmasın.
    */

    .navbar-collapse {
        margin-top: 15px;
        padding: 15px;
        border-radius: 14px;
        background-color: var(--petcare-white);
        box-shadow: 0 15px 35px rgba(38, 50, 58, .08);
    }

    .navbar-nav {
        align-items: stretch;
    }

        .navbar-nav .nav-link {
            padding: 11px 8px !important;
        }

            .navbar-nav .nav-link::after {
                display: none;
            }

    .about-box {
        margin-top: 15px;
    }

    .gallery-image-wrapper {
        height: 310px;
    }

    .patient-image {
        height: 260px;
    }

    .patient-detail-section {
        padding: 65px 0 80px;
    }

    .patient-detail-cover {
        margin-bottom: 35px;
    }

    .hours-main {
        gap: 15px;
    }

    .error-page {
        min-height: 60vh;
        padding: 80px 0;
    }

    .error-code {
        font-size: 120px;
    }

    .error-page h1 {
        font-size: 38px;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767.98px) {

    body {
        font-size: 15px;
    }

    .container {
        padding-left: 18px;
        padding-right: 18px;
    }

    .section-padding {
        padding: 58px 0;
    }

    .section-eyebrow {
        font-size: 11px;
        letter-spacing: 1.2px;
    }

    .section-title {
        font-size: 31px;
        line-height: 1.2;
    }

    .section-description,
    .about-text {
        font-size: 15px;
        line-height: 1.75;
    }


    /* NAV */

    .navbar-brand img {
        max-height: 54px;
    }


    /* ABOUT */

    .about-box {
        grid-template-columns: 1fr;
    }

    .about-box-item {
        padding: 22px;
    }

        .about-box-item strong {
            font-size: 20px;
        }


    /* GALLERY */

    .gallery-image-wrapper {
        height: 270px;
    }

    .gallery-content {
        padding: 16px 18px;
    }

        .gallery-content h3 {
            font-size: 19px;
        }


    /* PATIENT */

    .patient-image {
        height: 250px;
    }

    .patient-card-body {
        padding: 21px;
    }

    .patient-detail-header {
        padding: 55px 0;
    }

    .patient-detail-heading h1 {
        font-size: 34px;
    }

    .patient-detail-heading p {
        font-size: 16px;
    }

    .patient-detail-section {
        padding: 55px 0 70px;
    }

    .patient-detail-cover {
        max-height: 480px;
        border-radius: 18px;
    }

    .patient-gallery {
        margin-top: 45px;
    }

    .patient-gallery-image {
        height: 300px;
    }


    /* STAFF */

    .staff-card img {
        max-height: 420px;
    }


    /* CONTACT */

    .hours-main {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        padding: 20px 0;
    }

        .hours-main strong {
            font-size: 19px;
        }

    .emergency-notice {
        padding: 20px;
    }

    .map-link-button {
        width: 100%;
        justify-content: center;
    }


    /* ERROR */

    .error-page {
        min-height: 58vh;
        padding: 65px 0;
    }

    .error-code {
        font-size: 95px;
        letter-spacing: -6px;
    }

    .error-code-small {
        width: 95px;
        height: 95px;
        font-size: 55px;
    }

    .error-page h1 {
        font-size: 31px;
    }

    .error-page p {
        font-size: 16px;
    }

    .error-actions {
        flex-direction: column;
    }

        .error-actions .btn,
        .error-actions .btn-outline-petcare {
            width: 100%;
        }


    /* FOOTER */

    .petcare-footer {
        text-align: center;
    }

        .petcare-footer .social-icon-link {
            justify-content: center;
        }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 575.98px) {

    .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .section-padding {
        padding: 50px 0;
    }

    .section-title {
        font-size: 28px;
    }

    .navbar-brand img {
        max-height: 48px;
    }

    .gallery-image-wrapper {
        height: 235px;
    }

    .patient-image {
        height: 225px;
    }

    .patient-card-body h3,
    .patient-list-title {
        font-size: 19px;
    }

    .patient-gallery-image {
        height: 260px;
    }

    .social-icon-link {
        gap: 7px;
    }

    .social-icon {
        width: 18px;
        height: 18px;
        flex-basis: 18px;
    }
}


/* =========================================================
   ACCESSIBILITY
========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}

.gallery-card,
.patient-card,
.article-card,
.product-card,
.staff-card,
.product-detail-section,
.patient-detail-section {
    min-width: 0;
    max-width: 100%;
}

    .gallery-card img,
    .patient-card img,
    .article-card img,
    .product-card img,
    .staff-card img,
    .product-detail-section img,
    .patient-detail-section img {
        max-width: 100%;
    }