/* ==========================================
   York Breed Page — styles
   Uses existing site tokens from variables.css
   ========================================== */

/* ---- Page wrapper ---- */
.york-page {
    background: var(--pink-gradient);
}

/* ---- Shared container mixin ---- */
.york-section {
    padding: 90px 0;
}

/* ---- Section titles — weight matches main-page headings ---- */
.york-section__title {
    margin: 0 0 60px;
    text-align: center;
    text-transform: uppercase;
    color: var(--text-color);
    font-family: var(--font-family);
    font-size: 96px;
    font-weight: 500;
    line-height: 0.95;
    letter-spacing: -2px;
}

/* ======== HERO SECTION ======== */
.york-hero {
    padding: 0;
    overflow: hidden;
}

.york-hero__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: var(--container-max-width);
    margin: 0 auto;
    min-height: 620px;
    padding: 0 40px;
    align-items: stretch;
}

.york-hero__text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 40px 60px 0;
}

.york-hero__title {
    margin: 0 0 28px;
    line-height: 0.88;
    font-family: var(--font-family);
    font-weight: 500;
    color: var(--text-color);
}

.york-hero__title-main {
    display: block;
    font-size: 180px;
    letter-spacing: -4px;
    text-transform: uppercase;
}

.york-hero__title-sub {
    display: block;
    font-size: 44px;
    letter-spacing: -1px;
    text-transform: uppercase;
}

.york-hero__description {
    margin: 0 0 36px;
    font-family: var(--font-family);
    font-size: 20px;
    font-weight: 400;
    line-height: 1.45;
    color: var(--text-color);
}

.york-hero__btn {
    display: inline-flex;
    align-items: center;
    padding: 20px 36px;
    background: var(--black);
    color: #fff;
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border: none;
    border-radius: var(--border-radius-full);
    cursor: pointer;
    transition: opacity 0.25s ease, transform 0.25s ease;
    align-self: flex-start;
}

.york-hero__btn:hover {
    opacity: 0.82;
    transform: translateY(-2px);
}

/* ---- Hero visual (image + badges) ---- */
.york-hero__visual {
    position: relative;
    overflow: hidden;
}

.york-hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.york-hero__badges {
    position: absolute;
    bottom: 44px;
    right: 36px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-end;
}

.york-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 22px;
    border-radius: 100px;
    font-family: var(--font-family);
    font-size: 24px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.york-hero__badge-icon {
    font-size: 18px;
    line-height: 1;
}

.york-hero__badge--price {
    background: var(--accent-yellow);
    color: var(--text-color);
}

.york-hero__badge--time {
    background: var(--accent-pink);
    color: #fff;
}

/* ======== INCLUDES SECTION ======== */
.york-section--pink {
    background: #f1cee7;
    position: relative;
    overflow: hidden;
}

/* Blur ellipses (same style as about/services sections) */
.york-blur-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.york-blur-bg .blur-ellipse {
    position: absolute;
    filter: blur(80px);
}

.york-blur-bg .blur-ellipse-1 {
    width: 700px;
    height: 489px;
    border-radius: 700px;
    background: rgba(255, 255, 255, 0.26);
    top: 10%;
    right: -5%;
}

.york-blur-bg .blur-ellipse-2 {
    width: 586px;
    height: 298px;
    border-radius: 586px;
    background: #F2FF86;
    bottom: 10%;
    left: 5%;
}

.york-section--pink .container {
    position: relative;
    z-index: 1;
}

/* Cards grid: 3 × 2 */
#york-includes .container {
    position: relative;
    z-index: 1;
}

.york-includes {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

/* Stat-card style (mirrors .stat-card from about.css) */
.york-card {
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 30px;
    padding: 36px 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.york-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 35px rgba(44, 43, 43, 0.12);
}

.york-card__icon {
    font-size: 48px;
    line-height: 1;
    margin-bottom: 20px;
    display: block;
}

.york-card__title {
    margin: 0 0 12px;
    font-family: var(--font-family);
    font-size: 20px;
    font-weight: 500;
    text-transform: uppercase;
    color: #ff0099;
    line-height: 1.2;
}

.york-card__text {
    margin: 0;
    font-family: var(--font-family);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.45;
    color: rgba(44, 43, 43, 0.85);
}

/* ======== PRICE BANNER ======== */
.york-price-banner {
    margin-top: 40px;
    border-radius: 30px;
    background-color: #FF0099;
    background-image: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 12px,
        rgba(255, 255, 255, 0.1) 12px,
        rgba(255, 255, 255, 0.1) 24px
    );
    height: 180px;
    padding: 0 40px;
    display: flex;
    align-items: center;
    gap: 24px;
    overflow: visible;
}

.york-price-banner__text {
    flex: 1;
    min-width: 0;
}

.york-price-banner__title {
    font-family: var(--font-family);
    font-size: 36px;
    font-weight: 400;
    color: #fff;
    margin: 0 0 8px;
    line-height: 1.2;
}

.york-price-banner__note {
    font-family: var(--font-family);
    font-size: 24px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.york-price-banner__badge {
    position: relative;
    width: 275px;
    height: 275px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -40px 0;
}

.york-price-banner__badge-star {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.york-price-banner__badge-price {
    position: relative;
    font-family: var(--font-family);
    font-size: 56px;
    font-weight: 700;
    color: var(--text-color);
    white-space: nowrap;
    transform: rotate(8deg);
    z-index: 1;
}

.york-price-banner__btn {
    background: var(--black);
    color: #fff;
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    border: none;
    border-radius: var(--border-radius-full);
    padding: 20px 30px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.york-price-banner__btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.york-price-banner__btn:hover::before {
    left: 100%;
}

.york-price-banner__btn:hover {
    background: var(--black);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* ======== GALLERY SECTION ======== */
.york-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.york-gallery__item {
    overflow: hidden;
    border-radius: 30px;
    min-height: 320px;
}

.york-gallery__item .york-placeholder {
    width: 100%;
    height: 100%;
    min-height: 320px;
    border-radius: 30px;
}

.york-gallery__img {
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
    object-position: center top;
    border-radius: 30px;
    display: block;
}

/* ======== FAQ SECTION — override margin-top only ======== */
.york-page .faq-section {
    margin-top: 0;
}

/* ======== INCLUDES BLUR BACKGROUND ======== */
.york-includes-blur {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.york-includes-blur__ellipse {
    position: absolute;
    filter: blur(80px);
    border-radius: 50%;
}

.york-includes-blur__ellipse--yellow {
    width: 586px;
    height: 298px;
    background: #F2FF86;
    top: 30%;
    right: 5%;
    opacity: 0.55;
}

.york-includes-blur__ellipse--pink {
    width: 478px;
    height: 600px;
    background: #F1CEE7;
    top: 5%;
    left: 0%;
    opacity: 0.6;
}

.york-includes-blur__ellipse--white {
    width: 700px;
    height: 400px;
    background: rgba(255, 255, 255, 0.3);
    bottom: 10%;
    right: 20%;
    transform: rotate(-26deg);
    opacity: 0.5;
}

/* ======== SEO TEXT SECTION ======== */
.york-section--white {
    background: var(--cream-white);
    position: relative;
}

.york-text__heading {
    text-align: left !important;
    font-size: 72px !important;
    letter-spacing: -1.5px !important;
    margin-bottom: 40px !important;
}

.york-text p {
    margin: 0 0 20px;
    font-family: var(--font-family);
    font-size: 22px;
    font-weight: 400;
    line-height: 1.45;
    color: var(--text-color);
}

.york-text p:last-child {
    margin-bottom: 0;
}

.york-text__subtitle {
    font-family: var(--font-family);
    font-size: 32px;
    font-weight: 500;
    color: var(--text-color);
    margin: 40px 0 16px;
    line-height: 1.2;
}

.york-text__link {
    color: #ff0099;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: opacity 0.2s ease;
}

.york-text__link:hover {
    opacity: 0.75;
}

/* ======== RESPONSIVE ======== */
@media (max-width: 1200px) {
    .york-hero__inner {
        padding: 0 24px;
        grid-template-columns: 1fr 1.3fr;
    }

    .york-hero__title-main {
        font-size: 140px;
    }

    .york-hero__title-sub {
        font-size: 36px;
    }

    /* 1) Прив'язка hero-картинки до нижнього краю */
    .york-hero__visual {
        min-height: 420px;
    }

    .york-hero__img {
        object-position: center bottom;
    }

    /* 2) Зменшуємо текст рожевої плашки */
    .york-price-banner__title {
        font-size: 26px;
    }

    .york-price-banner__note {
        font-size: 18px;
    }

    .york-section__title {
        font-size: 72px;
    }

    .york-text__heading {
        font-size: 56px !important;
    }

    .york-text__subtitle {
        font-size: 26px;
    }
}

@media (max-width: 1024px) {
    /* 3) Хіро — одна колонка, центральне вирівнювання */
    .york-hero__inner {
        grid-template-columns: 1fr;
        min-height: auto;
        padding: 0;
    }

    .york-hero__text {
        padding: 50px 24px 40px;
        align-items: center;
        text-align: center;
    }

    .york-hero__btn {
        align-self: center;
    }

    .york-hero__title-main {
        font-size: 120px;
    }

    .york-hero__visual {
        min-height: 480px;
    }

    .york-hero__img {
        max-height: none;
        object-position: center bottom;
    }

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

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

    /* 4) Рожева плашка — зверху вниз */
    .york-price-banner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
        height: auto;
        padding: 32px 40px;
    }

    .york-price-banner__text {
        width: 100%;
    }

    .york-price-banner__badge {
        width: 220px;
        height: 220px;
        margin: 0;
    }

    .york-price-banner__badge-price {
        font-size: 48px;
    }

    .york-price-banner__btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .york-hero__text {
        padding: 40px 20px 36px;
    }

    .york-hero__title-main {
        font-size: 92px;
        letter-spacing: -1.5px;
    }

    .york-hero__title-sub {
        font-size: 32px;
    }

    .york-hero__description,
    .york-text p {
        font-size: 18px;
    }

    .york-hero__visual {
        min-height: 400px;
    }

    .york-hero__badges {
        bottom: 28px;
        right: 20px;
        gap: 8px;
    }

    .york-hero__badge {
        font-size: 13px;
        padding: 11px 18px;
    }

    .york-section {
        padding: 70px 0;
    }

    .york-section__title {
        font-size: 52px;
        margin-bottom: 34px;
    }

    .york-card__icon {
        font-size: 36px;
    }

    .york-card__title {
        font-size: 18px;
    }

    .york-card__text {
        font-size: 16px;
    }

    .york-text__heading {
        font-size: 40px !important;
        margin-bottom: 28px !important;
    }

    .york-text__subtitle {
        font-size: 22px;
        margin: 28px 0 12px;
    }

    .york-price-banner {
        padding: 28px 24px;
    }

    .york-price-banner__badge {
        width: 200px;
        height: 200px;
        margin: 0;
    }

    .york-price-banner__badge-price {
        font-size: 44px;
    }

    .york-blur-bg .blur-ellipse {
        display: none;
    }
}

@media (max-width: 480px) {
    .york-hero__title-main {
        font-size: 72px;
    }

    .york-hero__title-sub {
        font-size: 26px;
    }

    .york-hero__visual {
        min-height: 320px;
    }

    .york-hero__badge {
        font-size: 12px;
        padding: 10px 14px;
    }

    .york-includes,
    .york-gallery {
        grid-template-columns: 1fr;
    }

    .york-gallery__item {
        min-height: 250px;
    }

    .york-section__title {
        font-size: 40px;
    }

    .york-text__heading {
        font-size: 32px !important;
    }

    .york-text__subtitle {
        font-size: 20px;
        margin: 24px 0 10px;
    }

    .york-price-banner__badge {
        width: 170px;
        height: 170px;
    }

    .york-price-banner__badge-price {
        font-size: 38px;
    }
}

