
/* =========================================
   DINASTIA HERO
   ========================================= */

.dinastia-hero,
.dinastia-hero * {
    box-sizing: border-box;
}

.dinastia-hero {
    --dinastia-hero-accent: #079a9c;
    --dinastia-hero-accent-dark: #087e82;
    --dinastia-hero-text: #303c45;

    position: relative;
    isolation: isolate;

    display: flex;
    align-items: center;

    min-height: clamp(490px, 37vw, 705px);
    overflow: hidden;

    background: #eaf5f9;
}

/* =========================================
   Background image
   ========================================= */

.dinastia-hero__media {
    position: absolute;
    z-index: -1;
    inset: 0;
    overflow: hidden;
}

.dinastia-hero__image {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center top;
}

/* =========================================
   Content container
   ========================================= */

.dinastia-hero__container {
    /*width: calc(100% - clamp(48px, 8vw, 160px));
    max-width: 1760px;*/

    margin-inline: auto;
    padding-block: 58px;
}

.dinastia-hero__content {
    max-width: 850px;
}

/* =========================================
   Eyebrow
   ========================================= */

.dinastia-hero__eyebrow {
    display: flex;
    align-items: center;
    gap: 14px;

    margin: 0 0 27px;

    color: #546570;

    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.19em;
    text-transform: uppercase;
}

.dinastia-hero__eyebrow::before {
    content: "";

    display: block;
    flex: 0 0 34px;

    height: 2px;

    background: #4bbec5;
}

/* =========================================
   Heading
   ========================================= */

.dinastia-hero__title {
    margin: 0;

    color: var(--dinastia-hero-text);

    font-size: clamp(35px, 3.15vw, 60px);
    font-weight: 700;
    line-height: 1.09;
    letter-spacing: -0.038em;
}

.dinastia-hero__title-line {
    display: block;
}

.dinastia-hero__title-accent {
    color: var(--dinastia-hero-accent);
}

/* =========================================
   Description
   ========================================= */

.dinastia-hero__description {
    max-width: 675px;

    margin: 28px 0 0;

    color: #5e6a72;

    font-size: clamp(15px, 1.18vw, 19px);
    font-weight: 400;
    line-height: 1.65;
}

/* =========================================
   Buttons
   ========================================= */
    .btn-bg-white {
        background-color: white;
    }
.dinastia-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;

    margin-top: 38px;
}

.dinastia-hero__actions .btn{
    display: flex;
    gap: 12px;
}

.dinastia-hero .dinastia-hero__button,
.dinastia-hero .dinastia-hero__button:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 13px;

    min-height: 54px;
    padding: 13px 23px;

    border: 1px solid var(--dinastia-hero-accent);
    border-radius: 7px;

    background: var(--dinastia-hero-accent);
    color: #fff;

    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.dinastia-hero .dinastia-hero__button:hover {
    border-color: var(--dinastia-hero-accent-dark);

    background: var(--dinastia-hero-accent-dark);
    color: #fff;

    transform: translateY(-1px);
}

/* Secondary button */

.dinastia-hero .dinastia-hero__button--outline,
.dinastia-hero .dinastia-hero__button--outline:visited {
    background: rgba(255, 255, 255, 0.82);
    color: var(--dinastia-hero-accent-dark);
}

.dinastia-hero .dinastia-hero__button--outline:hover {
    background: #e4f7f7;
    color: var(--dinastia-hero-accent-dark);
}

/* Icons */

.dinastia-hero__icon {
    display: block;

    width: 20px;
    height: 20px;

    flex: none;
}

/* Keyboard accessibility */

.dinastia-hero .dinastia-hero__button:focus-visible {
    outline: 3px solid #153f59;
    outline-offset: 3px;
}

/* =========================================
   Tablet: up to 1199px
   ========================================= */

@media (max-width: 1199px) {

    .dinastia-hero {
        min-height: 515px;
    }

    .dinastia-hero__content {
        max-width: 59%;
    }

    .dinastia-hero__title-line {
        display: inline;
    }

    .dinastia-hero__title-line::after {
        content: " ";
    }

    .dinastia-hero__description {
        max-width: 530px;
    }
}

/* =========================================
   Mobile: up to 767px
   ========================================= */

@media (max-width: 767px) {

    .dinastia-hero {
        display: flex;
        flex-direction: column;
        align-items: stretch;

        min-height: 0;

        background: #edf7fa;
    }

    /* Content first, image second */

    .dinastia-hero__container {
        order: 1;

        /*width: min(100% - 36px, 560px);*/

        padding-block: 35px 0;
    }

    .dinastia-hero__content {
        max-width: none;
    }

    /* Eyebrow */

    .dinastia-hero__eyebrow {
        gap: 10px;

        margin-bottom: 18px;

        font-size: 10px;
        letter-spacing: 0.13em;
    }

    .dinastia-hero__eyebrow::before {
        flex-basis: 25px;
    }

    /* Heading */

    .dinastia-hero__title {
        font-size: clamp(29px, 7.4vw, 39px);
        line-height: 1.12;
        letter-spacing: -0.03em;
    }

    /* Description */

    .dinastia-hero__description {
        margin-top: 18px;

        font-size: 14px;
        line-height: 1.6;
    }

    /* Buttons */

    .dinastia-hero__actions {
        flex-direction: column;
        gap: 11px;

        margin-top: 25px;
    }
    


    .dinastia-hero .dinastia-hero__button {
        width: 100%;
        min-height: 49px;

        padding: 11px 15px;

        font-size: 14px;
    }

    /* Image below content */

    .dinastia-hero__media {
        position: relative;
        order: 2;
        z-index: 0;
        inset: auto;

        height: clamp(225px, 59vw, 345px);
    }

    .dinastia-hero__image {
        object-position: 73% center;
    }

    /* Smooth transition into image */

    .dinastia-hero__media::before {
        content: "";

        position: absolute;
        z-index: 1;

        inset: 0 0 auto;
        height: 45px;

        background: linear-gradient(
            #edf7fa,
            rgba(237, 247, 250, 0)
        );

        pointer-events: none;
    }
}

/* =========================================
   Reduced motion
   ========================================= */

@media (prefers-reduced-motion: reduce) {

    .dinastia-hero .dinastia-hero__button {
        transition: none;
    }
}


/* =========================================
   HERO — MOBILE BACKGROUND
   ========================================= */

@media (max-width: 767px) {

    .dinastia-hero {
        display: block;
        position: relative;
        isolation: isolate;

        min-height: 0;
        background: #edf7fa;
    }

    .dinastia-hero__media {
        position: absolute;
        inset: 0;
        z-index: -1;

        width: 100%;
        height: 100%;
        overflow: hidden;
    }

    .dinastia-hero__image {
        width: 100%;
        height: 100%;

        object-fit: cover;
        object-position: 72% center;
    }

    /* Remove previous mobile gradient */

    .dinastia-hero__media::before {
        display: none;
    }

    /* Light overlay for text readability */

    .dinastia-hero__media::after {
        content: "";

        position: absolute;
        inset: 0;
        z-index: 1;

        background: linear-gradient(
            180deg,
            rgba(237, 247, 250, 0.97) 0%,
            rgba(237, 247, 250, 0.92) 55%,
            rgba(237, 247, 250, 0.76) 100%
        );

        pointer-events: none;
    }

    .dinastia-hero__container {
        position: relative;
        z-index: 1;

        order: initial;

        padding-block: 35px 45px;
    }
}