@import url(fonts.css);

/* ===== CSS Custom Properties (Variables) ===== */
:root {
    --carousel-size: 6vh;
    --carousel-gap: 5px;
    --primary-color: #f1cdb3;
    --dark-text: #292929;
    --light-text: #cdcdcd;
    --section-text: #4c4c4c;
    --section-title: #545454;
}

/* ===== Base Styles ===== */
html,
body {
    overflow-x: hidden;
    scrollbar-gutter: stable;
}

ul,
li {
    display: block;
    padding: 0;
    margin: 0;
}

/* ===== Typography & Colors ===== */
.Logo {
    font-family: 'Georgia';
    font-size: 32px;
    color: var(--primary-color);
}

.LogoDescription {
    font-family: 'Arial';
    font-size: 13px;
    color: #ffffff;
}

.Logo-Pets {
    font-family: 'Georgia';
    font-size: 32px;
    color: var(--section-title);
}

.LogoDescription-Pets {
    font-family: 'Arial';
    font-size: 13px;
    color: var(--section-title);
}

.Titel {
    font-family: 'Georgia';
    font-size: 44px;
    color: #ffffff;
}

.TitelDescription {
    font-family: 'Arial';
    font-size: 15px;
    color: var(--light-text);
}

.TextTitel {
    font-family: 'Georgia';
    font-size: 35px;
    color: var(--section-title);
    letter-spacing: 60;
    line-height: 45px;
}

.Text {
    font-family: 'Arial';
    font-size: 15px;
    color: var(--section-text);
    letter-spacing: 0;
    line-height: 24px;
}

.IconName {
    font-family: 'Georgia';
    font-size: 20px;
    color: var(--section-title);
}

.TextTitelFooter {
    font-family: 'Georgia';
    font-size: 35px;
    color: #ffffff;
    letter-spacing: 60;
    line-height: 45px;
}

.Сontacts {
    font-family: 'Times New Roman';
    font-size: 20px;
    color: var(--primary-color);
    text-decoration: none;
}

/* ===== Navigation Menu ===== */
.menu__item {
    margin-left: 0;
    font-size: clamp(12px, 2.5vw, 15px);
}

.menu__item a {
    text-decoration: none;
    font-family: 'Arial';
    color: var(--light-text);
    transition: color 200ms ease;
}

.menu__item a:hover {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 6px;
    text-decoration-thickness: 3px;
    text-decoration-color: var(--primary-color);
}

.menu__item-Pets {
    margin-left: 0;
    font-size: clamp(12px, 2.5vw, 15px);
}

.menu__item-Pets a {
    text-decoration: none;
    font-family: 'Arial';
    color: var(--section-title);
    transition: color 200ms ease;
}

.menu__item-Pets a:hover {
    color: var(--section-title);
    text-decoration: underline;
    text-underline-offset: 6px;
    text-decoration-thickness: 3px;
    text-decoration-color: var(--primary-color);
}

/* ===== Header & Footer ===== */
.menu-bar {
    width: 100%;
    min-height: 300px;
    background-image: url(../img/Background.png);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 0;
    color: var(--light-text);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.menu-bar-pets {
    width: 100%;
    min-height: 80px;
    background-size: cover;
    background-position: center;
    padding: 20px 0;
    color: var(--light-text);
}

.FooterBar {
    width: 100%;
    min-height: auto;
    background-image: url(../img/FooterBackground.png);
    background-size: cover;
    background-position: center;
    color: var(--light-text);
    padding: 20px 0;
}

/* ===== Buttons ===== */
.Button {
    display: inline-block;
    padding: 15px;
    margin-top: 46px;
    border-radius: 26px;
    box-shadow: 0 0 40px 40px var(--primary-color) inset, 0 0 0 0 var(--primary-color);
    font-family: 'Georgia';
    font-size: 17px;
    color: var(--dark-text);
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 200ms ease;
    cursor: pointer;
}

.ButtonPay {
    display: inline-block;
    padding: 15px;
    border-radius: 26px;
    box-shadow: 0 0 40px 40px var(--primary-color) inset, 0 0 0 0 var(--primary-color);
    font-family: 'Georgia';
    font-size: 17px;
    color: var(--dark-text);
    text-decoration: none;
    cursor: pointer;
}

.ButtonSlider {
    border: 1px var(--primary-color) solid;
    display: inline-block;
    padding: 15px;
    margin-top: 46px;
    border-radius: 26px;
    box-shadow: 0 0 40px 40px #ffffff inset, 0 0 0 0 #ffffff;
    font-family: 'Georgia';
    font-size: 17px;
    color: var(--dark-text);
    text-decoration: none;
    cursor: pointer;
    transition: box-shadow 200ms ease;
}

.ButtonSlider:hover,
.ButtonSlider:active {
    box-shadow: 0 0 40px 40px var(--primary-color) inset, 0 0 0 0 var(--primary-color);
}

/* ===== Cards & Carousel ===== */
.card {
    background-color: #fafafa;
    margin: 0 0.5em;
    border: none;
}

.card-title {
    font-family: 'Georgia';
    font-size: 20px;
    color: var(--section-title);
}

.card .img-wrapper {
    max-width: 100%;
    height: 13em;
    display: flex;
    justify-content: center;
    align-items: center;
}

.card img {
    max-height: 100%;
    max-width: 100%;
}

.pet-subtitle {
    font-size: 12px;
    margin-bottom: 10px;
}

.carousel {
    position: relative !important;
}

.carousel-inner {
    padding: 1em;
}

@media (min-width: 768px) {
    .carousel-item {
        margin-right: 0;
        flex: 0 0 33.333333%;
        display: block;
    }

    .carousel-inner {
        display: flex;
    }
}

/* ===== Carousel Controls ===== */
.carousel-control-prev,
.carousel-control-next {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    margin: 0 !important;
    z-index: 150 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: var(--carousel-size) !important;
    height: var(--carousel-size) !important;
    border-radius: 50% !important;
    background-color: #ffffff !important;
    border: 2px solid var(--primary-color) !important;
    pointer-events: auto !important;
    visibility: visible !important;
    opacity: 1 !important;
    transition: background-color 140ms ease !important;
}

.carousel-control-prev {
    left: var(--carousel-gap) !important;
    right: auto !important;
}

.carousel-control-next {
    right: var(--carousel-gap) !important;
    left: auto !important;
}

.carousel-control-prev svg,
.carousel-control-next svg {
    width: calc(var(--carousel-size) * 0.5) !important;
    height: calc(var(--carousel-size) * 0.5) !important;
    color: var(--dark-text) !important;
}

.carousel-control-prev:hover,
.carousel-control-next:hover,
.carousel-control-prev:focus,
.carousel-control-next:focus {
    background-color: var(--primary-color) !important;
}

/* ===== Modal ===== */
.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.4);
}

.modal.show {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0.5rem !important;
}

.modal-dialog {
    margin: 0 !important;
    max-width: 820px !important;
    width: 100% !important;
}

.modal-content {
    position: relative !important;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.modal-header {
    position: relative !important;
    padding-right: 3rem !important;
    flex-shrink: 0;
}

.modal-body {
    overflow-y: auto;
    flex: 1 1 auto;
    padding: 1.5rem;
}

.modal-footer {
    flex-shrink: 0;
}

.btn-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 1.5rem;
    height: 1.5rem;
    opacity: 0.8;
    background: none;
    border: none;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--dark-text);
    cursor: pointer;
}

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

#petImageDetail {
    max-width: 100%;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1rem;
    object-fit: contain;
    border-radius: 8px;
}

/* ===== Layout Sections ===== */
.hero-section {
    min-height: 586px;
    padding: 30px 15px;
}

.section-center {
    min-height: 230px;
    text-align: center;
    padding: 40px 15px;
}

.carousel-section {
    min-height: 230px;
    text-align: center;
    padding: 20px 10px;
}

.cta-section {
    min-height: 185px;
    text-align: center;
    margin-top: 5%;
    padding: 30px 15px;
}

.help-title-section {
    min-height: 230px;
    text-align: center;
    padding: 40px 15px;
}

.icon-row {
    text-align: center;
    padding: 20px 15px;
}

.donation-section {
    padding: 30px 15px;
}

.donation-text {
    text-align: left;
}

.bank-name {
    font-family: Georgia;
    font-size: 15px;
}

.donation-link {
    font-family: 'Times New Roman';
    font-size: 20px;
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
}

.legal-info {
    font-family: Arial;
    font-size: 12px;
    color: #b2b2b2;
    letter-spacing: 0;
    line-height: 18px;
    margin-top: 35px;
}

/* ===== Containers ===== */
.container-fluid {
    padding-left: 10px;
    padding-right: 10px;
}

/* ===== Responsive Design ===== */

/* Mobile devices (up to 575.98px) */
@media (max-width: 575.98px) {
    :root {
        --carousel-size: 40px;
        --carousel-gap: 2px;
    }

    .Titel {
        font-size: 22px;
    }

    .TitelDescription {
        font-size: 11px;
        line-height: 16px;
    }

    .TextTitel {
        font-size: 20px;
        line-height: 25px;
    }

    .Text {
        font-size: 12px;
        line-height: 18px;
    }

    .TextTitelFooter {
        font-size: 18px;
        line-height: 1.2;
    }

    .IconName {
        font-size: 14px;
        margin-top: 8px;
    }

    .card-title {
        font-size: 14px;
    }

    .Сontacts {
        font-size: 13px;
    }

    .Button,
    .ButtonPay,
    .ButtonSlider {
        padding: 10px 15px;
        margin-top: 15px;
        font-size: 13px;
        border-radius: 20px;
    }

    .card .img-wrapper {
        height: 10em;
    }

    .carousel-inner {
        padding: 0.25em;
    }

    .card {
        margin: 0 0.15em;
    }

    .modal-dialog {
        max-width: 95vw !important;
    }

    .modal-body {
        padding: 1rem;
    }
}

/* Tablets (576px to 991.98px) */
@media (min-width: 576px) and (max-width: 991.98px) {
    :root {
        --carousel-size: 50px;
        --carousel-gap: 6px;
    }

    .container-fluid {
        padding-left: 15px;
        padding-right: 15px;
    }

    .Titel {
        font-size: 32px;
    }

    .TitelDescription {
        font-size: 12px;
        line-height: 18px;
    }

    .TextTitel {
        font-size: 26px;
        line-height: 32px;
    }

    .Text {
        font-size: 13px;
        line-height: 20px;
    }

    .TextTitelFooter {
        font-size: 24px;
        line-height: 1.2;
    }

    .IconName {
        font-size: 16px;
    }

    .card-title {
        font-size: 16px;
    }

    .Сontacts {
        font-size: 14px;
    }

    .Button,
    .ButtonPay,
    .ButtonSlider {
        padding: 12px 18px;
        margin-top: 20px;
        font-size: 14px;
    }

    .card .img-wrapper {
        height: 12em;
    }

    .carousel-inner {
        padding: 0.5em;
    }

    .card {
        margin: 0 0.3em;
    }

    .modal-dialog {
        max-width: 90vw !important;
    }
}

/* Desktop (992px and up) */
@media (min-width: 992px) {
    :root {
        --carousel-size: 6vh;
        --carousel-gap: 5px;
    }

    .container-fluid {
        padding-left: 30px;
        padding-right: 30px;
    }

    .carousel-inner {
        padding: 1em;
    }

    .card {
        margin: 0 0.5em;
    }

    .card .img-wrapper {
        height: 13em;
    }

    .modal-dialog {
        max-width: 820px !important;
    }
}

/* ===== Help Page & Additional Sections ===== */
.help-header-section {
    min-height: 200px;
    text-align: center;
    padding: 40px 15px;
}

.help-header-title {
    font-size: clamp(28px, 6vw, 44px);
    margin-bottom: 15px;
}

.help-header-subtitle {
    font-size: clamp(13px, 2.5vw, 15px);
}

.help-card {
    background-color: #fafafa;
    border: none;
    padding: 20px;
}

.help-card-icon {
    text-align: center;
    font-size: 48px;
    margin-bottom: 15px;
}

.help-card-title {
    text-align: center;
}

.help-card-button {
    text-align: center;
    margin-top: 15px;
}

.bank-info-section {
    padding: 40px 15px;
    text-align: center;
}

.bank-info-title {
    font-size: clamp(24px, 5vw, 35px);
    margin-bottom: 20px;
}

.bank-info-label {
    font-size: 13px;
    margin-bottom: 15px;
}

.bank-card {
    background-color: #f9f9f9;
    border: 2px solid var(--primary-color);
    padding: 20px;
}

.bank-detail {
    font-family: 'Times New Roman';
    font-size: 18px;
    margin-bottom: 10px;
}

.bank-detail:last-child {
    margin-bottom: 0;
}

/* ===== Contacts Page Sections ===== */
.contacts-header-section {
    min-height: 200px;
    text-align: center;
    padding: 40px 15px;
}

.contacts-header-title {
    font-size: clamp(28px, 6vw, 44px);
}

.contacts-header-subtitle {
    font-size: clamp(13px, 2.5vw, 15px);
}

.contacts-card {
    background-color: #fafafa;
    border: none;
    padding: 25px;
}

.contacts-card-title {
    margin-bottom: 20px;
    font-size: clamp(18px, 4vw, 24px);
}

.contacts-card-section {
    margin-bottom: 20px;
}

.contacts-card-label {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: bold;
}

.contacts-card-text {
    font-size: 13px;
    margin: 0;
}

.contacts-card-link {
    color: var(--section-title);
    text-decoration: none;
}

.contacts-card-link:hover {
    text-decoration: underline;
}

.contacts-form-section {
    padding: 40px 15px;
}

.contacts-form-title {
    font-size: clamp(24px, 5vw, 35px);
    text-align: center;
    margin-bottom: 30px;
}

.contacts-form {
    background-color: #fafafa;
    padding: 30px;
    border-radius: 10px;
}

.contacts-form-label {
    font-weight: bold;
}

.contacts-form-button {
    text-align: center;
}

/* ===== Landscape orientation adjustments */
@media (max-height: 500px) {
    .modal-content {
        max-height: 95vh;
    }

    .modal-body {
        max-height: 70vh;
        overflow-y: auto;
    }

    .carousel-section {
        min-height: auto;
        padding: 10px 10px;
    }
}