/* =========================================================
   elscii — Services Page
   ========================================================= */

.services-page {
    background: #faf6ef;
    color: #171717;
    font-family: var(--font-2);
}

.services-page main {
    overflow: hidden;
}

/* =========================================================
   Part 1 — Hero
   ========================================================= */

.services-hero {
    min-height: 100svh;
    padding: 0 0 26px;
    display: flex;
    align-items: stretch;
    justify-content: center;
    background: #faf6ef;
}

.services-hero-frame {
    position: relative;
    width: calc(100% - 18px);
    min-height: calc(100svh - 26px);
    overflow: hidden;
    border-radius: 0 0 78px 78px;
    background-image: url('../assets/services/hero-bg.jpg');
    background-size: cover;
    background-position: center center;
    isolation: isolate;
}

.services-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .34);
    z-index: 0;
}

.services-hero-content {
    position: absolute;
    z-index: 3;
    left: 25.5%;
    top: 30%;
    width: min(68%, 1100px);
    color: #fff;
}

.services-hero-content h1 {
    font-family: var(--font-1);
    font-size: clamp(3.5rem, 6.3vw, 6.5rem);
    line-height: 1.05;
    letter-spacing: .01em;
    text-shadow: 0 5px 10px rgba(0,0,0,.24);
    margin-bottom: 20px;
}

.services-hero-content p {
    max-width: 1100px;
    font-size: clamp(1.25rem, 1.8vw, 1.8rem);
    line-height: 1.45;
    letter-spacing: .08em;
    text-shadow: 0 3px 8px rgba(0,0,0,.45);
}

.services-hero-content .hero-lead {
    margin-bottom: 4px;
}

.services-hero-avatar {
    position: absolute;
    z-index: 2;
    left: 3.5%;
    bottom: -1%;
    width: clamp(260px, 24vw, 450px);
    max-height: 92%;
    object-fit: contain;
    object-position: bottom center;
    filter: drop-shadow(0 13px 15px rgba(0,0,0,.20));
}

.petal-layer {
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
    overflow: hidden;
}

.petal {
    position: absolute;
    top: -30px;
    width: 12px;
    height: 19px;
    border-radius: 70% 30% 70% 30%;
    background: #ef5b9c;
    opacity: .9;
    transform: rotate(25deg);
    animation: petal-fall linear infinite;
}

.petal:nth-child(3n) {
    width: 10px;
    height: 14px;
    background: #ff9cc4;
}

.petal:nth-child(4n) {
    width: 15px;
    height: 11px;
    background: #f48ab7;
}

@keyframes petal-fall {
    0% {
        transform: translate3d(0, -30px, 0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: .92;
    }
    50% {
        transform: translate3d(var(--drift), 50vh, 0) rotate(170deg);
    }
    100% {
        transform: translate3d(calc(var(--drift) * -1), 115vh, 0) rotate(340deg);
        opacity: .05;
    }
}

/* =========================================================
   Part 2 — Service cards
   ========================================================= */

.service-packages {
    padding: 80px 5.5% 105px;
    background: #faf6ef;
}

.service-grid {
    width: min(100%, 1500px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 45px;
}

.service-package-card {
    position: relative;
    min-height: 690px;
    padding: 130px 34px 55px;
    background: rgba(255,255,255,.92);
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 1px 10px rgba(35, 27, 20, .025);
}

.service-package-icon-wrap {
    position: absolute;
    top: -62px;
    left: 50%;
    width: 230px;
    height: 180px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-package-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center bottom;
}

.service-package-card h2 {
    display: inline-block;
    padding: 9px 20px 12px;
    background: #ffedaa;
    font-family: var(--font-2);
    font-size: clamp(1.55rem, 2.1vw, 2.15rem);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: .07em;
}

.service-description {
    margin: 34px auto 0;
    max-width: 390px;
    min-height: 170px;
    font-size: clamp(1.12rem, 1.45vw, 1.45rem);
    line-height: 1.5;
    letter-spacing: .06em;
}

.service-price {
    margin-top: 20px;
    color: #ffa36f;
    font-size: clamp(1.15rem, 1.45vw, 1.45rem);
    letter-spacing: .07em;
}

.service-features {
    list-style: none;
    margin-top: 17px;
    color: #8c6b60;
    font-size: clamp(1.05rem, 1.35vw, 1.35rem);
    line-height: 1.62;
    letter-spacing: .07em;
}

.pricing-note {
    width: min(100%, 1500px);
    margin: 22px auto 0;
    font-size: clamp(1rem, 1.35vw, 1.35rem);
    line-height: 1.45;
    letter-spacing: .05em;
}

.additional-features-trigger {
    appearance: none;
    border: 0;
    padding: 0;
    background: transparent;
    color: #ffad82;
    font: inherit;
    letter-spacing: inherit;
    cursor: pointer;
}

.additional-features-trigger:hover,
.additional-features-trigger:focus-visible {
    text-decoration: underline;
}

/* =========================================================
   Part 3 — Modal
   ========================================================= */

.features-modal {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.features-modal.is-open {
    display: flex;
}

.features-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(25, 24, 23, .48);
    backdrop-filter: blur(2px);
}

.features-modal-panel {
    position: relative;
    z-index: 1;
    width: min(100%, 1480px);
    max-height: min(88vh, 900px);
    overflow: auto;
    background: #fff;
    box-shadow: 0 22px 45px rgba(0,0,0,.27);
}

.features-modal-heading {
    padding: 36px 75px 30px;
    background: #fff0df;
}

.features-modal-heading h2 {
    font-family: var(--font-2);
    font-size: clamp(2rem, 3.2vw, 3.25rem);
    font-weight: 400;
    letter-spacing: .05em;
}

.features-modal-heading p {
    margin-top: 6px;
    font-size: clamp(1.2rem, 1.6vw, 1.55rem);
    letter-spacing: .06em;
}

.features-modal-close {
    position: absolute;
    top: 12px;
    right: 18px;
    z-index: 3;
    width: 42px;
    height: 42px;
    border: 0;
    background: transparent;
    cursor: pointer;
    font: 2rem/1 var(--font-1);
    color: #5c4c45;
}

.additional-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 42px 70px 30px;
}

.additional-feature-column {
    padding: 0 35px;
}

.additional-feature-column + .additional-feature-column {
    border-left: 1px solid #555;
}

.additional-feature-column h3 {
    color: #9a6d5d;
    font-family: var(--font-2);
    font-size: clamp(1.65rem, 2.3vw, 2.3rem);
    font-weight: 400;
    letter-spacing: .07em;
    margin-bottom: 16px;
}

.additional-feature-column ul {
    margin: 0;
    padding-left: 30px;
}

.additional-feature-column li {
    margin: 5px 0;
    font-size: clamp(1.15rem, 1.7vw, 1.7rem);
    line-height: 1.42;
    letter-spacing: .05em;
}

.features-modal-footer {
    padding: 0 70px 48px;
    font-size: clamp(1.15rem, 1.6vw, 1.6rem);
    letter-spacing: .05em;
}

/* =========================================================
   Part 4 — Contact
   ========================================================= */

.services-contact {
    min-height: 560px;
    padding: 110px 6% 150px;
    background: #faf6ef;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    text-align: center;
}

.services-contact-inner {
    width: min(100%, 1280px);
}

.services-contact h2 {
    font-family: var(--font-2);
    font-size: clamp(2rem, 3.4vw, 3.3rem);
    font-weight: 400;
    letter-spacing: .07em;
}

.services-contact-intro {
    margin-top: 38px;
    font-size: clamp(1.2rem, 1.75vw, 1.75rem);
    letter-spacing: .08em;
}

.services-contact-options {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(60px, 8vw, 145px);
    margin-top: 75px;
}

.services-contact-option {
    display: flex;
    align-items: center;
    gap: 22px;
    text-align: left;
}

.contact-art {
    flex: 0 0 66px;
    width: 66px;
    height: 66px;
    display: block;
}

.contact-art svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.whatsapp-art svg rect {
    fill: #35d45f;
    stroke: #222;
    stroke-width: 1.5;
}

.whatsapp-art svg path {
    fill: none;
    stroke: #fff;
    stroke-width: 3.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.whatsapp-art svg path:last-child {
    fill: #fff;
    stroke: #35d45f;
    stroke-width: 1;
}

.email-art svg rect {
    fill: #ff5d63;
    stroke: #222;
    stroke-width: 1.5;
}

.email-art svg path:first-of-type {
    fill: none;
    stroke: #222;
    stroke-width: 2;
}

.email-art svg circle {
    fill: #fff;
    stroke: #222;
    stroke-width: 1.5;
}

.email-art svg path:last-of-type {
    fill: none;
    stroke: #222;
    stroke-width: 2;
    stroke-linecap: round;
}

.services-contact-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.services-contact-copy small {
    font-size: clamp(1rem, 1.35vw, 1.3rem);
    letter-spacing: .05em;
}

.services-contact-copy strong {
    color: #ffa26f;
    font-size: clamp(1.15rem, 1.55vw, 1.5rem);
    font-weight: 400;
    letter-spacing: .07em;
}

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

@media (max-width: 1050px) {
    .services-hero-content {
        left: 31%;
        width: 64%;
        top: 31%;
    }

    .services-hero-avatar {
        left: 1%;
        width: 31vw;
    }

    .service-grid {
        gap: 25px;
    }

    .service-package-card {
        padding-left: 25px;
        padding-right: 25px;
    }

    .services-contact-options {
        gap: 50px;
    }
}

@media (max-width: 760px) {
    .services-hero {
        padding: 0 0 14px;
    }

    .services-hero-frame {
        width: calc(100% - 10px);
        min-height: calc(100svh - 14px);
        border-radius: 0 0 38px 38px;
        background-position: 57% center;
    }

    .services-hero-content {
        left: 6%;
        top: 21%;
        width: 88%;
        text-align: center;
    }

    .services-hero-content h1 {
        font-size: clamp(2.5rem, 10vw, 4.1rem);
        line-height: 1.05;
    }

    .services-hero-content p {
        font-size: 1.08rem;
        line-height: 1.48;
        letter-spacing: .055em;
    }

    .services-hero-avatar {
        left: -8%;
        bottom: 3%;
        width: 66vw;
        max-height: 60%;
    }

    .petal {
        transform: scale(.8) rotate(25deg);
    }

    .service-packages {
        padding: 75px 20px 105px;
    }

    .service-grid {
        grid-template-columns: 1fr;
        width: min(100%, 470px);
        gap: 70px;
    }

    .service-package-card {
        min-height: 0;
        padding: 112px 25px 42px;
    }

    .service-package-icon-wrap {
        top: -55px;
        width: 205px;
        height: 165px;
    }

    .service-package-card h2 {
        font-size: 1.8rem;
    }

    .service-description {
        min-height: 0;
        margin-top: 25px;
        font-size: 1.2rem;
    }

    .service-price {
        margin-top: 25px;
        font-size: 1.2rem;
    }

    .service-features {
        font-size: 1.15rem;
    }

    .pricing-note {
        margin-top: 28px;
        font-size: 1.08rem;
        text-align: center;
    }

    .features-modal {
        padding: 12px;
    }

    .features-modal-panel {
        max-height: 92vh;
    }

    .features-modal-heading {
        padding: 30px 28px 24px;
    }

    .features-modal-close {
        top: 8px;
        right: 10px;
    }

    .additional-features-grid {
        grid-template-columns: 1fr;
        padding: 26px 28px 20px;
        gap: 28px;
    }

    .additional-feature-column {
        padding: 0;
    }

    .additional-feature-column + .additional-feature-column {
        border-left: 0;
        border-top: 1px solid #777;
        padding-top: 24px;
    }

    .additional-feature-column h3 {
        font-size: 1.7rem;
    }

    .additional-feature-column li {
        font-size: 1.2rem;
    }

    .features-modal-footer {
        padding: 5px 28px 35px;
        font-size: 1.1rem;
    }

    .services-contact {
        min-height: 650px;
        padding: 85px 20px 145px;
    }

    .services-contact h2 {
        font-size: 2rem;
        line-height: 1.15;
    }

    .services-contact-intro {
        margin-top: 25px;
        font-size: 1.18rem;
        line-height: 1.45;
    }

    .services-contact-options {
        flex-direction: column;
        align-items: flex-start;
        width: min(100%, 390px);
        margin: 60px auto 0;
        gap: 34px;
    }

    .services-contact-option {
        width: 100%;
        gap: 17px;
    }

    .contact-art {
        flex-basis: 60px;
        width: 60px;
        height: 60px;
    }

    .services-contact-copy small {
        font-size: 1rem;
    }

    .services-contact-copy strong {
        font-size: 1.2rem;
    }
}

@media (max-width: 390px) {
    .services-hero-content {
        top: 18%;
    }

    .services-hero-content h1 {
        font-size: 2.35rem;
    }

    .services-hero-content p {
        font-size: 1rem;
    }

    .services-hero-avatar {
        width: 70vw;
        left: -12%;
    }

    .service-package-card h2 {
        font-size: 1.6rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .petal {
        animation: none;
        display: none;
    }
}

body.modal-open {
    overflow: hidden;
}
