/* =========================================================
   elscii — Homepage Styles
   ========================================================= */

:root {
    --cream: #f8f3eb;
    --cream-2: #fffaf3;
    --white: #ffffff;
    --ink: #202020;
    --muted: #5d5a59;
    --peach: #ffd9bc;
    --pink: #f3a8c9;
    --lavender: #d6b4ed;
    --shadow: 0 12px 24px rgba(30, 25, 20, .18);

    /* Temporary closest web-font matches */
    --font-1: "Fredoka", "Bubblebody Neue", sans-serif;
    --font-2: "Patrick Hand", "FF Providence Sans", sans-serif;
    --font-3: "Finger Paint", cursive;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 20px;
}

body {
    background: var(--cream);
    color: var(--ink);
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

.section-light {
    background: var(--cream);
}

.section-bg {
    position: relative;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

/* =========================================================
   Welcome video
   ========================================================= */

.welcome-screen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #171616;
    display: grid;
    place-items: center;
    overflow: hidden;
    transition: opacity .7s ease, visibility .7s ease;
}

.welcome-screen.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.welcome-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-fallback {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 14px;
    background: var(--cream);
    color: var(--ink);
    font-family: var(--font-2);
    text-align: center;
}

.video-fallback[hidden] {
    display: none;
}

.fallback-logo {
    font-family: var(--font-1);
    font-size: clamp(4rem, 10vw, 8rem);
    background: linear-gradient(90deg, #8fd8ff, #f5a9cb, #d4b0ee);
    -webkit-background-clip: text;
    color: transparent;
}

.video-fallback p {
    font-size: 1.4rem;
}

.video-fallback button,
.skip-intro {
    border: 0;
    cursor: pointer;
    font: 1.1rem var(--font-2);
    background: #fff0df;
    border-radius: 999px;
    padding: 12px 28px;
    box-shadow: var(--shadow);
}

.skip-intro {
    position: absolute;
    right: 25px;
    bottom: 25px;
    z-index: 3;
    opacity: .8;
}

/* =========================================================
   Hero
   ========================================================= */

.hero {
    min-height: 100svh;
    display: flex;
    align-items: center;
    background-image: url("../assets/hero-bg.jpg");
    overflow: hidden;
}

.section-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .30);
}

.hero-avatar {
    position: absolute;
    left: 8%;
    bottom: -1%;
    width: min(40vw, 650px);
    max-height: 88%;
    object-fit: contain;
    object-position: bottom;
    z-index: 1;
    filter: drop-shadow(0 15px 20px rgba(0,0,0,.22));
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(55%, 820px);
    margin-left: auto;
    margin-right: 6%;
    color: white;
}

.hero-content h1 {
    font-family: var(--font-1);
    font-weight: 700;
    font-size: clamp(3rem, 5vw, 5.3rem);
    line-height: 1.14;
    letter-spacing: .01em;
}

.hero-content p {
    margin-top: 24px;
    font: clamp(1.2rem, 1.8vw, 1.8rem)/1.45 var(--font-2);
    letter-spacing: .06em;
}

/* =========================================================
   About
   ========================================================= */

.about {
    position: relative;
    min-height: 900px;
    padding: 110px 8% 180px;
    overflow: hidden;
}

.about-inner {
    position: relative;
    z-index: 2;
    width: min(100%, 1250px);
    margin: 0 auto;
    text-align: center;
}

.brand-wordmark {
    font-family: var(--font-1);
    font-size: clamp(3.2rem, 6vw, 5.5rem);
    background: linear-gradient(90deg, #ed9bc1, #c7b1ec);
    -webkit-background-clip: text;
    color: transparent;
    margin-bottom: 30px;
}

.about-card {
    background: rgba(255,255,255,.94);
    border-radius: 6px;
    padding: 34px clamp(30px, 7vw, 95px);
    box-shadow: 0 2px 10px rgba(0,0,0,.03);
}

.about-card p {
    font: clamp(1.2rem, 1.8vw, 1.65rem)/1.65 var(--font-2);
    letter-spacing: .07em;
}

.about-name {
    font-family: var(--font-2);
}

.pill-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 45px;
    min-width: 275px;
    padding: 15px 36px;
    border-radius: 999px;
    background: #fff0df;
    box-shadow: var(--shadow);
    font: 1.55rem var(--font-2);
    transition: transform .25s ease, box-shadow .25s ease;
}

.pill-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 17px 28px rgba(30,25,20,.20);
}

.about-avatar {
    position: absolute;
    right: 2%;
    bottom: -2%;
    width: min(30vw, 470px);
    z-index: 1;
}

/* =========================================================
   Services
   ========================================================= */

.services {
    min-height: 900px;
    padding: 110px 5% 180px;
    text-align: center;
}

.services-heading h2,
.projects-content h2 {
    font: clamp(2.5rem, 4.2vw, 4.4rem) var(--font-2);
}

.services-heading p {
    margin-top: 15px;
    color: #ffad79;
    font: clamp(1.2rem, 2vw, 1.7rem) var(--font-2);
    letter-spacing: .16em;
}

.services-grid {
    width: min(100%, 1450px);
    margin: 75px auto 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
}

.service-card {
    position: relative;
    aspect-ratio: 1 / 1;
    min-width: 0;
}

.menu-board {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.service-card-content {
    position: absolute;
    inset: 11% 12%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.service-card h3 {
    font: clamp(1.7rem, 2.5vw, 2.8rem)/1.2 var(--font-3);
    max-width: 85%;
    margin-bottom: 20px;
}

.service-card p {
    color: #feb2d5;
    white-space: normal;
    font: clamp(1rem, 1.45vw, 1.45rem)/1.55 var(--font-2);
    letter-spacing: .04em;
}

/* =========================================================
   Projects
   ========================================================= */

.projects {
    min-height: 900px;
    display: grid;
    grid-template-columns: 42% 58%;
    overflow: hidden;
}

.projects-image-side {
    position: relative;
    min-height: 900px;
    background-image: url("../assets/projects-bg.jpg");
    background-size: cover;
    background-position: center;
    border-radius: 0 110px 0 0;
    overflow: hidden;
}

.projects-image-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.20);
}

.projects-avatar {
    position: absolute;
    z-index: 1;
    left: 4%;
    bottom: 0;
    width: 92%;
    max-height: 92%;
    object-fit: contain;
    object-position: bottom center;
}

.projects-content {
    padding: 90px 8% 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.project-list {
    width: min(100%, 780px);
    margin-top: 65px;
    display: grid;
    gap: 48px;
}

.project-item {
    display: flex;
    align-items: center;
    gap: 28px;
    background: rgba(255,255,255,.92);
    border: 3px solid #343333;
    border-radius: 26px;
    padding: 25px 30px;
    min-height: 175px;
    box-shadow: 0 2px 0 rgba(0,0,0,.1);
}

.project-icon {
    width: 120px;
    height: 120px;
    object-fit: contain;
    flex: 0 0 120px;
}

.project-title {
    font-size: 1.55rem !important;
}

.project-item p {
    font: 1.3rem/1.45 var(--font-2);
    letter-spacing: .04em;
}

/* =========================================================
   Contact
   ========================================================= */

.contact {
    min-height: 900px;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.contact-image-side {
    position: absolute;
    inset: 0 0 0 52%;
    background-image: url("../assets/contact-bg.jpg");
    background-size: cover;
    background-position: center;
    border-radius: 90px 0 0 0;
}

.contact-image-side::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.12);
    border-radius: 90px 0 0 0;

}

.contact-avatar {
    position: absolute;
    left: 15%;
    bottom: 10%;
    width: min(30vw, 430px);
    z-index: 3;
}

.about-avatar {
    position: absolute;
    right: 2%;
    bottom: -2%;
    width: min(30vw, 470px);
    z-index: 1;
}


.contact-card {
    position: relative;
    z-index: 4;
    width: min(62%, 1050px);
    margin-left: 14%;
    background: rgba(255,255,255,.97);
    box-shadow: 0 15px 35px rgba(0,0,0,.16);
}

.contact-card h2 {
    background: #fff0df;
    padding: 25px 50px;
    font: 2.5rem var(--font-2);
}

.contact-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 50px;
    gap: 50px;
}

.contact-message {
    padding-right: 45px;
    border-right: 2px solid #777;
    display: flex;
    align-items: center;
}

.contact-message p {
    font: 1.45rem/1.55 var(--font-2);
    letter-spacing: .05em;
}

.contact-details {
    display: grid;
    gap: 35px;
}

.contact-details a {
    display: flex;
    align-items: center;
    gap: 20px;
}

.contact-icon {
    display: grid;
    place-items: center;
    width: 55px;
    height: 55px;
    border-radius: 12px;
    font: 1.7rem var(--font-1);
}

.contact-icon.whatsapp {
    background: #42dd6d;
    color: white;
}

.contact-icon.email {
    background: #ff6f6f;
    color: white;
}

.contact-details small {
    display: block;
    font: 1rem var(--font-2);
}

.contact-details strong {
    display: block;
    margin-top: 5px;
    color: #ffab72;
    font: 1.35rem var(--font-2);
}

/* =========================================================
   Footer
   ========================================================= */

.footer {
    position: relative;
    min-height: 650px;
    background: var(--cream);
    overflow: hidden;
    display: grid;
    place-items: center;
    padding: 100px 30px 180px;
}

.footer-brand {
    position: relative;
    z-index: 3;
    text-align: center;
}

.footer-brand > img {
    width: min(450px, 70vw);
    height: auto;
    margin-bottom: 50px;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: clamp(30px, 7vw, 110px);
    font: clamp(1.3rem, 2vw, 2rem) var(--font-2);
    color: #ffac7a;
    text-decoration: underline;
    text-underline-offset: 7px;
}

.copyright {
    margin-top: 90px;
    font: 1.55rem var(--font-2);
}

.tagline {
    margin-top: 15px;
    font: 1.6rem var(--font-2);
}

.footer-decor {
    position: absolute;
    z-index: 1;
    pointer-events: none;
}

.footer-flower {
    top: -5px;
    left: -25px;
    width: 140px;
}

.footer-vine {
    top: 5px;
    right: -15px;
    width: 270px;
}

.footer-fern {
    bottom: -25px;
    left: -25px;
    width: 170px;
}

.footer-monstera {
    bottom: -35px;
    right: -30px;
    width: 250px;
}

/* =========================================================
   Bottom navigation
   ========================================================= */

.bottom-nav {
    position: fixed;
    z-index: 100;
    left: 8px;
    right: 8px;
    bottom: 0;
    height: 92px;
    background: rgba(255,255,255,.97);
    border-radius: 30px 30px 0 0;
    box-shadow: 0 -6px 18px rgba(0,0,0,.08);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: center;
    padding: 0 8px;
}

.bottom-nav a {
    min-width: 0;
    text-decoration: none;
    color: #111;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    font-family: var(--font-2);
    -webkit-tap-highlight-color: transparent;
}

.bottom-nav .nav-item {
    height: 100%;
}

.bottom-nav .nav-icon {
    width: 58px;
    height: 54px;
    object-fit: contain;
    object-position: center;
    display: block;
}

.bottom-nav .nav-icon-active {
    display: none;
}

.bottom-nav .nav-item.is-active .nav-icon-active {
    display: block;
}

.bottom-nav .nav-item.is-active .nav-icon-inactive {
    display: none;
}

.bottom-nav small {
    font-size: 1rem;
    line-height: 1;
    color: #111;
}

.bottom-nav .nav-home {
    width: 88px;
    height: 88px;
    justify-self: center;
    margin-top: -30px;
    border-radius: 35px;
    background: #fff5fb;
    box-shadow: 0 5px 15px rgba(0,0,0,.04);
    overflow: hidden;
}

.bottom-nav .nav-home-icon {
    width: 66px;
    height: 44px;
    object-fit: contain;
}

.bottom-nav .nav-home .nav-icon-active {
    display: none;
}

.bottom-nav .nav-home.is-active .nav-icon-active {
    display: block;
}

.bottom-nav .nav-home.is-active .nav-icon-inactive {
    display: none;
}

/* =========================================================
   Reveal animations
   ========================================================= */

.reveal {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity .8s ease, transform .8s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

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

@media (max-width: 1050px) {
    .hero-content {
        width: 58%;
        margin-right: 4%;
    }

    .hero-avatar {
        left: 0;
        width: 48vw;
    }

    .services-grid {
        gap: 20px;
    }

    .projects {
        grid-template-columns: 1fr;
    }

    .projects-image-side {
        min-height: 620px;
        border-radius: 0;
    }

    .projects-avatar {
        width: min(560px, 90%);
        left: 50%;
        transform: translateX(-50%);
    }

    .contact-card {
        width: 72%;
        margin-left: 8%;
    }
}

@media (max-width: 760px) {
    .bottom-nav {
        left: 5px;
        right: 5px;
        height: 76px;
        border-radius: 22px 22px 0 0;
        padding: 0 4px;
    }

    .bottom-nav .nav-icon {
        width: 48px;
        height: 43px;
    }

    .bottom-nav .nav-home {
        width: 70px;
        height: 70px;
        margin-top: -22px;
        border-radius: 28px;
    }

    .bottom-nav .nav-home-icon {
        width: 54px;
        height: 36px;
    }

    .bottom-nav small {
        font-size: .82rem;
    }

    .hero {
        min-height: 100svh;
        align-items: flex-end;
        padding: 0 20px 140px;
        background-position: 55% center;
    }

    .hero::after {
        content: "";
        position: absolute;
        inset: 0;
        background: rgba(0,0,0,.12);
    }

    .hero-avatar {
        width: 78vw;
        max-height: 72%;
        left: -7%;
        bottom: 17%;
        opacity: .95;
    }

    .hero-content {
        width: 100%;
        margin: 0;
        text-align: center;
        z-index: 3;
    }

    .hero-content h1 {
        font-size: clamp(2.45rem, 10vw, 4rem);
        text-shadow: 0 2px 8px rgba(0,0,0,.15);
    }

    .hero-content p {
        font-size: 1.25rem;
        margin-top: 15px;
    }

    .desktop-only {
        display: none;
    }

    .about {
        min-height: 850px;
        padding: 70px 20px 210px;
    }

    .about-card {
        padding: 25px 20px;
    }

    .about-card p {
        font-size: 1.2rem;
    }

    .about-avatar {
        width: 270px;
        right: -10px;
    }

    .services {
        padding: 75px 20px 150px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        width: min(100%, 430px);
        gap: 20px;
        margin-top: 45px;
    }

    .service-card {
        min-height: 390px;
    }

    .service-card h3 {
        font-size: 2rem;
    }

    .service-card p {
        font-size: 1.2rem;
    }

    .projects-image-side {
        min-height: 520px;
    }

    .projects-content {
        padding: 65px 20px 150px;
    }

    .project-list {
        margin-top: 40px;
        gap: 25px;
    }

    .project-item {
        gap: 15px;
        padding: 20px;
        min-height: 145px;
    }

    .project-icon {
        width: 80px;
        height: 80px;
        flex-basis: 80px;
    }

    .project-item p {
        font-size: 1.05rem;
    }

    .project-title {
        font-size: 1.3rem !important;
    }

    .contact {
        min-height: 950px;
        align-items: flex-end;
        padding-bottom: 110px;
    }

    .contact-image-side {
        inset: 0;
        border-radius: 0;
        background-position: center;
    }

    .contact-card {
        width: 94%;
        margin: 0 auto;
    }

    .contact-card h2 {
        padding: 20px 25px;
        font-size: 2.2rem;
    }

    .contact-body {
        grid-template-columns: 1fr;
        padding: 30px 25px;
        gap: 30px;
    }

    .contact-message {
        padding-right: 0;
        padding-bottom: 30px;
        border-right: 0;
        border-bottom: 2px solid #777;
    }

    .contact-message p {
        font-size: 1.2rem;
    }

    .contact-details small {
        font-size: .9rem;
    }

    .contact-avatar {
        width: 180px;
        left: -5px;
        bottom: 5px;
    }

    .speech-bubble {
        display: none;
    }

    .footer {
        min-height: 600px;
        padding-bottom: 140px;
    }

    .footer-nav {
        flex-wrap: wrap;
        gap: 20px 35px;
    }

    .footer-decor {
        opacity: .9;
    }
}

/* =========================================================
   Mobile refinement pass
   Keeps the Canva composition intact while preventing
   important artwork/faces from being cropped or covered.
   ========================================================= */
@media (max-width: 760px) {
    /* Keep the welcome artwork/page fully visible on portrait phones. */
    .welcome-screen {
        background: #fff;
    }

    .welcome-video {
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center;
        background: #fff;
    }

    .skip-intro {
        right: 16px;
        bottom: calc(18px + env(safe-area-inset-bottom));
        padding: 12px 25px;
        font-size: 1.05rem;
    }

    /* ---------------- Hero ---------------- */
    .hero {
        min-height: 100svh;
        height: 100svh;
        padding: 0 18px calc(105px + env(safe-area-inset-bottom));
        align-items: flex-end;
        background-position: 55% center;
    }

    .hero-avatar {
        width: 84vw;
        max-width: none;
        max-height: none;
        height: auto;
        left: -9%;
        bottom: 0;
        object-fit: contain;
        object-position: bottom left;
        z-index: 1;
    }

    .hero-content {
        width: 100%;
        margin: 0;
        padding-bottom: 4px;
        position: relative;
        z-index: 3;
    }

    .hero-content h1 {
        font-size: clamp(2.25rem, 9.6vw, 3.65rem);
        line-height: 1.12;
    }

    .hero-content p {
        margin-top: 13px;
        font-size: clamp(1.08rem, 4.8vw, 1.28rem);
        line-height: 1.42;
        letter-spacing: .035em;
    }

    /* ---------------- About ---------------- */
    .about {
        min-height: 900px;
        padding: 58px 18px 285px;
    }

    .about-inner {
        width: 100%;
    }

    .brand-wordmark {
        margin-bottom: 20px;
        font-size: clamp(3rem, 14vw, 4.3rem);
    }

    .about-card {
        position: relative;
        z-index: 2;
        padding: 24px 18px;
        border-radius: 0 0 8px 8px;
    }

    .about-card p {
        font-size: clamp(1.08rem, 4.5vw, 1.28rem);
        line-height: 1.55;
        letter-spacing: .045em;
    }

    .about .pill-button {
        position: relative;
        z-index: 4;
        margin-top: 34px;
        min-width: min(86vw, 380px);
        padding: 15px 28px;
        font-size: 1.45rem;
    }

    .about-avatar {
        width: min(82vw, 360px);
        max-width: none;
        right: -2%;
        bottom: -7%;
        z-index: 1;
    }

    /* ---------------- Services ---------------- */
    .services {
        min-height: auto;
        padding: 65px 18px 145px;
    }

    .services-heading h2,
    .projects-content h2 {
        font-size: clamp(2.15rem, 10vw, 3rem);
        line-height: 1.15;
    }

    .services-heading p {
        font-size: 1.15rem;
        line-height: 1.35;
    }

    .services-grid {
        width: 100%;
        max-width: 430px;
        margin-top: 38px;
        gap: 26px;
    }

    .service-card {
        width: 100%;
        min-height: 0;
        aspect-ratio: 1 / 1;
    }

    .service-card-content {
        inset: 12% 12%;
    }

    .service-card h3 {
        font-size: clamp(1.7rem, 7vw, 2.15rem);
        margin-bottom: 15px;
    }

    .service-card p {
        font-size: clamp(1.05rem, 4.3vw, 1.22rem);
        line-height: 1.48;
    }

    /* ---------------- Projects ---------------- */
    .projects-image-side {
        min-height: 540px;
        height: 62svh;
        max-height: 680px;
        border-radius: 0 0 55px 0;
    }

    .projects-avatar {
        width: min(112vw, 560px);
        max-width: none;
        max-height: none;
        left: 50%;
        bottom: 0;
        transform: translateX(-50%);
        object-fit: contain;
        object-position: bottom center;
    }

    .projects-content {
        padding: 58px 18px 145px;
    }

    .project-list {
        width: 100%;
        margin-top: 35px;
        gap: 22px;
    }

    .project-item {
        align-items: flex-start;
        gap: 14px;
        padding: 18px;
        min-height: 0;
        border-radius: 20px;
    }

    .project-icon {
        width: 72px;
        height: 72px;
        flex-basis: 72px;
    }

    .project-item p {
        font-size: 1.02rem;
        line-height: 1.42;
    }

    /* ---------------- Contact ---------------- */
    .contact {
        min-height: 1000px;
        padding: 0 0 calc(105px + env(safe-area-inset-bottom));
        align-items: flex-end;
    }

    .contact-image-side {
        inset: 0;
        background-position: center bottom;
        border-radius: 0;
    }

    /* Put the character where her face remains visible instead of hiding
       her behind the white contact card. */
    .contact-avatar {
        width: min(54vw, 245px);
        left: auto;
        right: -2%;
        bottom: auto;
        top: 1.5%;
        z-index: 3;
    }

    .contact-card {
        width: calc(100% - 28px);
        margin: 0 14px;
        z-index: 4;
        border-radius: 0;
        max-height: none;
    }

    .contact-card h2 {
        padding: 18px 22px;
        font-size: clamp(1.9rem, 8vw, 2.25rem);
    }

    .contact-body {
        padding: 26px 20px 30px;
        gap: 25px;
    }

    .contact-message {
        padding-bottom: 25px;
    }

    .contact-message p {
        font-size: 1.12rem;
        line-height: 1.48;
    }

    .contact-details {
        gap: 25px;
    }

    .contact-details a {
        align-items: flex-start;
        gap: 14px;
    }

    .contact-icon {
        width: 52px;
        height: 52px;
        flex: 0 0 52px;
    }

    .contact-details small {
        font-size: .9rem;
        line-height: 1.3;
    }

    .contact-details strong {
        font-size: 1.2rem;
        overflow-wrap: anywhere;
    }

    /* ---------------- Footer ---------------- */
    .footer {
        min-height: 610px;
        padding: 80px 18px calc(135px + env(safe-area-inset-bottom));
    }

    .footer-brand > img {
        width: min(390px, 84vw);
        margin-bottom: 35px;
    }

    .footer-nav {
        gap: 14px 25px;
        font-size: 1.25rem;
    }

    .copyright {
        margin-top: 65px;
        font-size: 1.35rem;
    }

    .tagline {
        font-size: 1.35rem;
    }

    .footer-flower {
        width: 105px;
        left: -22px;
    }

    .footer-vine {
        width: 190px;
        right: -25px;
    }

    .footer-fern {
        width: 130px;
        left: -25px;
    }

    .footer-monstera {
        width: 190px;
        right: -28px;
    }
}

/* Very small phones: keep the composition breathable rather than
   allowing headings/cards to collide. */
@media (max-width: 390px) {
    .hero {
        padding-left: 14px;
        padding-right: 14px;
    }

    .hero-avatar {
        width: 88vw;
        left: -13%;
    }

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

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

    .about {
        padding-left: 14px;
        padding-right: 14px;
        padding-bottom: 270px;
    }

    .about-avatar {
        width: 86vw;
        right: -7%;
    }

    .contact-card {
        width: calc(100% - 20px);
        margin: 0 10px;
    }

    .contact-avatar {
        width: 58vw;
        right: -5%;
    }
}

/* =========================================================
   SERVICES PAGE
   ========================================================= */

.services-page {
    background: var(--cream);
    padding-bottom: 0;
}

.services-page main {
    overflow: hidden;
}

/* ---------------- Part 1: Hero ---------------- */

.services-hero {
    position: relative;
    width: 100%;
    min-height: 100svh;
    background: var(--cream);
    display: grid;
    place-items: center;
    overflow: hidden;
}

.services-hero-art {
    display: block;
    width: 100%;
    height: auto;
    max-width: 1920px;
    object-fit: contain;
}

/* Falling pink leaves — lightweight replacement for the Canva GIF. */
.falling-leaves {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 2;
}

.leaf {
    position: absolute;
    top: -40px;
    width: 14px;
    height: 22px;
    background: #ec4d91;
    border-radius: 70% 25% 70% 25%;
    opacity: .9;
    animation: service-leaf-fall linear infinite;
}

.leaf-1 { left: 12%; animation-duration: 8s; animation-delay: -2s; transform: rotate(28deg); }
.leaf-2 { left: 29%; width: 11px; height: 18px; animation-duration: 10s; animation-delay: -7s; }
.leaf-3 { left: 46%; width: 9px; height: 15px; animation-duration: 7s; animation-delay: -4s; }
.leaf-4 { left: 58%; animation-duration: 11s; animation-delay: -9s; }
.leaf-5 { left: 69%; width: 10px; height: 17px; animation-duration: 8.5s; animation-delay: -1s; }
.leaf-6 { left: 81%; width: 12px; height: 20px; animation-duration: 12s; animation-delay: -6s; }
.leaf-7 { left: 91%; width: 9px; height: 15px; animation-duration: 9s; animation-delay: -3s; }
.leaf-8 { left: 37%; width: 8px; height: 14px; animation-duration: 13s; animation-delay: -11s; }

@keyframes service-leaf-fall {
    0% {
        transform: translate3d(0, -50px, 0) rotate(0deg);
        opacity: 0;
    }
    12% {
        opacity: .9;
    }
    50% {
        transform: translate3d(45px, 50vh, 0) rotate(170deg);
    }
    100% {
        transform: translate3d(-35px, 110vh, 0) rotate(340deg);
        opacity: 0;
    }
}

/* ---------------- Part 2: Packages ---------------- */

.services-packages {
    position: relative;
    padding: 80px 5% 115px;
    background: var(--cream);
}

.services-page-grid {
    width: min(100%, 1600px);
    margin: 0 auto;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 48px;
}

.service-package-card {
    position: relative;
    min-height: 770px;
    padding: 0 28px 38px;
    border-radius: 18px;
    background: rgba(255,255,255,.96);
    text-align: center;
    box-shadow: 0 4px 16px rgba(50,35,25,.035);
}

.service-package-icon-wrap {
    height: 245px;
    display: grid;
    place-items: center;
    margin-top: -28px;
    position: relative;
    z-index: 2;
}

.service-package-icon {
    width: min(82%, 330px);
    height: 220px;
    object-fit: contain;
}

.service-package-card h2 {
    display: inline-block;
    width: 100%;
    padding: 15px 12px 14px;
    margin: 0 auto 32px;
    background: #ffeda5;
    font: clamp(1.45rem, 2vw, 2rem)/1.2 var(--font-3);
    color: #111;
}

.service-package-description {
    max-width: 92%;
    min-height: 165px;
    margin: 0 auto;
    font: clamp(1.08rem, 1.45vw, 1.45rem)/1.55 var(--font-2);
    letter-spacing: .06em;
}

.service-price {
    margin-top: 28px;
    color: #ff9b6c;
    font: clamp(1.15rem, 1.5vw, 1.45rem) var(--font-2);
    letter-spacing: .07em;
}

.service-feature-list {
    margin: 24px auto 0;
    padding: 0;
    list-style: none;
    color: #856d63;
    font: clamp(1rem, 1.35vw, 1.3rem)/1.55 var(--font-2);
    letter-spacing: .06em;
}

.service-feature-list li + li {
    margin-top: 2px;
}

.service-pricing-note {
    width: min(100%, 1600px);
    margin: 24px auto 0;
    font: clamp(1rem, 1.5vw, 1.35rem)/1.5 var(--font-2);
    letter-spacing: .04em;
    text-align: left;
}

.additional-features-trigger {
    border: 0;
    padding: 0;
    background: transparent;
    color: #ffad79;
    cursor: pointer;
    font: inherit;
    text-decoration: none;
}

.additional-features-trigger:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* ---------------- Part 3: Modal ---------------- */

body.modal-open {
    overflow: hidden;
}

.features-modal {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: grid;
    place-items: center;
    padding: 30px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .25s ease, visibility .25s ease;
}

.features-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

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

.features-modal-card {
    position: relative;
    z-index: 2;
    width: min(100%, 1450px);
    max-height: min(88svh, 850px);
    overflow: auto;
    background: #fff;
    box-shadow: 0 22px 50px rgba(0,0,0,.25);
}

.features-modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    width: 45px;
    height: 45px;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.65);
    color: #333;
    cursor: pointer;
    font: 2rem/1 var(--font-2);
    z-index: 3;
}

.features-modal-header {
    padding: 42px 70px 35px;
    background: #fff0df;
}

.features-modal-header h2 {
    font: clamp(2rem, 3.5vw, 3.5rem) var(--font-3);
}

.features-modal-header p {
    margin-top: 10px;
    font: clamp(1.15rem, 1.8vw, 1.6rem) var(--font-2);
}

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

.features-column {
    padding: 0 38px;
}

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

.features-column h3 {
    color: #8d6e64;
    font: clamp(1.45rem, 2vw, 2rem) var(--font-3);
    margin-bottom: 18px;
}

.features-column ul {
    padding-left: 26px;
    font: clamp(1.15rem, 1.8vw, 1.6rem)/1.55 var(--font-2);
}

.features-modal-note {
    padding: 10px 70px 55px;
    font: clamp(1.1rem, 1.8vw, 1.55rem) var(--font-2);
}

/* ---------------- Part 4: Contact ---------------- */

.services-contact {
    min-height: 700px;
    padding: 100px 6% 170px;
    background: var(--cream);
    display: grid;
    place-items: start center;
    text-align: center;
}

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

.services-contact h2 {
    font: clamp(2rem, 3.5vw, 3.5rem) var(--font-3);
}

.services-contact-intro {
    margin-top: 35px;
    font: clamp(1.25rem, 2vw, 1.7rem) var(--font-2);
    letter-spacing: .04em;
}

.services-contact-links {
    margin: 90px auto 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 80px;
    text-align: left;
}

.services-contact-link {
    display: flex;
    align-items: center;
    gap: 26px;
}

.services-contact-link img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    flex: 0 0 64px;
}

.services-contact-link small {
    display: block;
    font: clamp(1rem, 1.4vw, 1.25rem) var(--font-2);
    letter-spacing: .04em;
}

.services-contact-link strong {
    display: block;
    margin-top: 7px;
    color: #ff9f70;
    font: clamp(1.25rem, 1.7vw, 1.55rem) var(--font-2);
    letter-spacing: .05em;
}

/* ---------------- Services responsive ---------------- */

@media (max-width: 1050px) {
    .services-hero {
        min-height: auto;
    }

    .services-page-grid {
        gap: 24px;
    }

    .service-package-card {
        min-height: 720px;
        padding-left: 18px;
        padding-right: 18px;
    }

    .service-package-description {
        min-height: 190px;
    }

    .features-modal-columns {
        padding-left: 35px;
        padding-right: 35px;
    }

    .features-column {
        padding: 0 20px;
    }
}

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

    .services-hero-art {
        width: 100%;
        height: auto;
        object-fit: contain;
    }

    .falling-leaves .leaf {
        width: 9px;
        height: 15px;
    }

    .services-packages {
        padding: 55px 18px calc(110px + env(safe-area-inset-bottom));
    }

    .services-page-grid {
        grid-template-columns: 1fr;
        width: min(100%, 450px);
        gap: 34px;
    }

    .service-package-card {
        min-height: auto;
        padding: 0 22px 35px;
        border-radius: 18px;
    }

    .service-package-icon-wrap {
        height: 215px;
        margin-top: -18px;
    }

    .service-package-icon {
        width: min(85%, 310px);
        height: 195px;
    }

    .service-package-card h2 {
        margin-bottom: 26px;
        font-size: 1.55rem;
    }

    .service-package-description {
        min-height: 0;
        max-width: 95%;
        font-size: 1.18rem;
        line-height: 1.5;
    }

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

    .service-feature-list {
        margin-top: 20px;
        font-size: 1.15rem;
    }

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

    .features-modal {
        padding: 14px;
    }

    .features-modal-card {
        max-height: 90svh;
        border-radius: 12px;
    }

    .features-modal-header {
        padding: 32px 25px 26px;
    }

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

    .features-modal-columns {
        grid-template-columns: 1fr;
        padding: 28px 25px 10px;
        gap: 25px;
    }

    .features-column {
        padding: 0;
    }

    .features-column + .features-column {
        border-left: 0;
        border-top: 1px solid #555;
        padding-top: 25px;
    }

    .features-column h3 {
        margin-bottom: 10px;
    }

    .features-column ul {
        font-size: 1.15rem;
        padding-left: 23px;
    }

    .features-modal-note {
        padding: 18px 25px 30px;
        font-size: 1.1rem;
    }

    .services-contact {
        min-height: 720px;
        padding: 70px 20px calc(120px + env(safe-area-inset-bottom));
    }

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

    .services-contact-links {
        grid-template-columns: 1fr;
        gap: 32px;
        margin-top: 60px;
        width: min(100%, 430px);
    }

    .services-contact-link {
        gap: 17px;
    }

    .services-contact-link img {
        width: 58px;
        height: 58px;
        flex-basis: 58px;
    }

    .services-contact-link small {
        font-size: 1rem;
        line-height: 1.3;
    }

    .services-contact-link strong {
        font-size: 1.25rem;
    }
}

@media (max-width: 390px) {
    .service-package-card h2 {
        font-size: 1.38rem;
    }

    .service-package-description,
    .service-feature-list {
        font-size: 1.08rem;
    }

    .services-contact-link strong {
        font-size: 1.1rem;
    }
}
