﻿/* =========================================
   CAKE BY DILINI
   CUPCAKES PAGE
========================================= */

:root {
    --pink: #d96f86;
    --pink-dark: #bd526b;
    --rose: #f7dce3;
    --cream: #fffaf7;
    --cream-2: #fdf0f3;
    --brown: #3a2725;
    --brown-light: #786563;
    --white: #ffffff;
    --border: #eadfe0;
    --shadow: 0 20px 50px rgba(55, 31, 29, 0.10);
    --shadow-small: 0 10px 30px rgba(55, 31, 29, 0.07);
    --radius: 24px;
    --container: 1180px;
}


/* =========================================
   RESET
========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {
    font-family: Arial, Helvetica, sans-serif;
    background: var(--cream);
    color: var(--brown);
    line-height: 1.6;
}


img {
    display: block;
    max-width: 100%;
}


a {
    color: inherit;
    text-decoration: none;
}


button,
a {
    -webkit-tap-highlight-color: transparent;
}


/* =========================================
   CONTAINER
========================================= */

.container {
    width: min(calc(100% - 100px), var(--container));
    margin-inline: auto;
}


/* =========================================
   HEADER
========================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 250, 247, 0.96);
    border-bottom: 1px solid rgba(234, 223, 224, 0.8);
    backdrop-filter: blur(15px);
}


.header-inner {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}


/* =========================================
   BRAND
========================================= */

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}


    .brand img {
        width: 72px;
        height: 72px;
        object-fit: cover;
        border-radius: 50%;
    }


.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}


    .brand-text span {
        color: var(--brown);
        font-family: Georgia, serif;
        font-size: 17px;
        font-weight: 700;
    }


    .brand-text strong {
        margin-top: 3px;
        color: var(--pink);
        font-family: Georgia, serif;
        font-size: 27px;
    }


/* =========================================
   NAVIGATION
========================================= */

.main-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}


    .main-nav a {
        position: relative;
        padding: 8px 0;
        color: var(--brown-light);
        font-size: 14px;
        font-weight: 600;
        transition: color .3s ease;
    }


        .main-nav a::after {
            content: "";
            position: absolute;
            left: 0;
            bottom: 0;
            width: 0;
            height: 2px;
            background: var(--pink);
            transition: width .3s ease;
        }


        .main-nav a:hover {
            color: var(--pink);
        }


            .main-nav a:hover::after {
                width: 100%;
            }


/* =========================================
   HEADER ORDER
========================================= */

.header-order {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 10px 21px;
    border-radius: 999px;
    background: var(--pink);
    color: var(--white);
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(217, 111, 134, .20);
    transition: .3s ease;
}


    .header-order:hover {
        transform: translateY(-3px);
        background: var(--pink-dark);
    }


/* =========================================
   HERO
========================================= */

.cupcake-hero {
    padding: 20px 0;
    background: radial-gradient( circle at 85% 20%, #f8dce3 0, transparent 30% ), radial-gradient( circle at 10% 90%, #f7e6df 0, transparent 28% ), var(--cream);
}


.cupcake-hero-grid {
    min-height: 540px;
    display: grid;
    grid-template-columns: 1fr .9fr;
    align-items: center;
    gap: 60px;
}


/* =========================================
   HERO CONTENT
========================================= */

.cupcake-hero-content {
    max-width: 620px;
}


.hero-label {
    display: inline-block;
    margin-bottom: 15px;
    color: var(--pink);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
}


.cupcake-hero h1 {
    margin-bottom: 20px;
    color: var(--brown);
    font-family: Georgia, serif;
    font-size: clamp(45px, 6vw, 72px);
    line-height: 1.03;
    letter-spacing: -2px;
}


    .cupcake-hero h1 span {
        display: block;
        color: var(--pink);
    }


.cupcake-hero-content > p {
    max-width: 560px;
    margin-bottom: 25px;
    color: var(--brown-light);
    font-size: 16px;
    line-height: 1.8;
}


/* =========================================
   BUTTONS
========================================= */

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 28px;
}


.btn {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 23px;
    border: 2px solid transparent;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    transition: .3s ease;
}


    .btn:hover {
        transform: translateY(-3px);
    }


.btn-primary {
    background: var(--pink);
    color: var(--white);
    box-shadow: 0 10px 25px rgba(217, 111, 134, .22);
}


    .btn-primary:hover {
        background: var(--pink-dark);
    }


.btn-outline {
    color: var(--pink);
    border-color: var(--pink);
    background: transparent;
}


    .btn-outline:hover {
        background: var(--pink);
        color: var(--white);
    }


/* =========================================
   WHATSAPP BUTTON
========================================= */

.btn-whatsapp {
    background: #25d366;
    color: var(--white);
    box-shadow: 0 10px 25px rgba(37, 211, 102, .18);
}


    .btn-whatsapp:hover {
        background: #1fbd59;
    }


/* =========================================
   HERO FEATURES
========================================= */

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
}


    .hero-features div {
        display: flex;
        flex-direction: column;
    }


    .hero-features strong {
        font-size: 13px;
    }


    .hero-features span {
        color: var(--brown-light);
        font-size: 11px;
    }


/* =========================================
   HERO IMAGE
========================================= */

.cupcake-hero-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}


.hero-image-frame {
    width: min(100%, 500px);
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: 180px 180px 30px 30px;
    background: var(--rose);
    box-shadow: var(--shadow);
    transform: rotate(2deg);
}


    .hero-image-frame img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transform: rotate(-2deg) scale(1.02);
        transition: transform .6s ease;
    }


    .hero-image-frame:hover img {
        transform: rotate(-2deg) scale(1.07);
    }


/* =========================================
   HERO BADGE
========================================= */

.hero-badge {
    position: absolute;
    right: 0;
    bottom: 25px;
    width: 115px;
    height: 115px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    border-radius: 50%;
    background: var(--white);
    box-shadow: var(--shadow);
    text-align: center;
}


    .hero-badge i {
        margin-bottom: 3px;
        color: var(--pink);
        font-size: 18px;
    }


    .hero-badge strong {
        font-size: 11px;
    }


    .hero-badge span {
        color: var(--pink);
        font-family: Georgia, serif;
        font-size: 16px;
        font-weight: 700;
    }


/* =========================================
   SECTION HEADING
========================================= */

.section-heading {
    max-width: 700px;
    margin: 0 auto 15px;
    text-align: center;
}


    .section-heading span {
        display: inline-block;
        margin-bottom: 7px;
        color: var(--pink);
        font-size: 10px;
        font-weight: 800;
        letter-spacing: 2px;
    }


    .section-heading h2 {
        margin-bottom: 7px;
        color: var(--brown);
        font-family: Georgia, serif;
        font-size: clamp(32px, 4vw, 46px);
        line-height: 1.15;
    }


    .section-heading p {
        color: var(--brown-light);
        font-size: 13px;
    }


/* =========================================
   CUPCAKE SECTION
========================================= */

.cakes-section {
    padding: 20px 0;
    background: var(--white);
}


/* =========================================
   CUPCAKE GALLERY
========================================= */

.cupcake-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
    max-width: 950px;
    margin-inline: auto;
}


.cupcake-gallery-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border-radius: 24px;
    background: var(--rose);
    box-shadow: var(--shadow-small);
    cursor: zoom-in;
    transition: transform .35s ease, box-shadow .35s ease;
}


    .cupcake-gallery-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform .6s ease;
    }


    .cupcake-gallery-item:hover {
        transform: translateY(-7px);
        box-shadow: var(--shadow);
    }


        .cupcake-gallery-item:hover img {
            transform: scale(1.06);
        }


/* =========================================
   IMAGE VIEWER
========================================= */

.image-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background: rgba(20, 10, 12, .94);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
}


    .image-modal.active {
        opacity: 1;
        visibility: visible;
    }


.cupcake-modal-image {
    display: block;
    max-width: min(90vw, 1100px);
    max-height: 86vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 18px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, .45);
    transform: scale(.94);
    transition: transform .3s ease;
}


.image-modal.active
.cupcake-modal-image {
    transform: scale(1);
}


/* =========================================
   MODAL BUTTONS
========================================= */

.cupcake-modal-close,
.cupcake-modal-prev,
.cupcake-modal-next {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,.12);
    color: #ffffff;
    font-size: 20px;
    cursor: pointer;
    transition: background .25s ease, transform .25s ease;
}


    .cupcake-modal-close:hover,
    .cupcake-modal-prev:hover,
    .cupcake-modal-next:hover {
        background: rgba(255,255,255,.22);
        transform: scale(1.08);
    }


.cupcake-modal-close {
    top: 25px;
    right: 25px;
    z-index: 3;
}


.cupcake-modal-prev {
    left: 25px;
    top: 50%;
    transform: translateY(-50%);
}


.cupcake-modal-next {
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
}


    .cupcake-modal-prev:hover,
    .cupcake-modal-next:hover {
        transform: translateY(-50%) scale(1.08);
    }


/* =========================================
   CUSTOM CTA
========================================= */

.custom-section {
    padding: 20px 0;
    background: var(--cream-2);
}


.custom-box {
    padding: 45px 25px;
    border-radius: 28px;
    background: linear-gradient( 135deg, #382725, #523936 );
    color: var(--white);
    text-align: center;
    box-shadow: var(--shadow);
}


    .custom-box > span {
        color: #f5b8c5;
        font-size: 10px;
        font-weight: 800;
        letter-spacing: 2px;
    }


    .custom-box h2 {
        max-width: 650px;
        margin: 9px auto 10px;
        font-family: Georgia, serif;
        font-size: clamp(32px, 5vw, 50px);
        line-height: 1.1;
    }


    .custom-box p {
        max-width: 550px;
        margin: 0 auto 20px;
        color: rgba(255,255,255,.7);
        font-size: 13px;
    }


.btn-light {
    background: var(--white);
    color: var(--pink);
}


    .btn-light:hover {
        background: var(--pink);
        color: var(--white);
    }


/* =========================================
   FOOTER
========================================= */

.site-footer {
    padding: 20px 0 15px;
    background: #2d211f;
    color: var(--white);
}


.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,.12);
}


.footer-brand a {
    display: inline-block;
    margin-bottom: 8px;
    font-family: Georgia, serif;
    font-size: 23px;
    font-weight: 700;
}


.footer-brand p {
    max-width: 330px;
    color: rgba(255,255,255,.55);
    font-size: 12px;
}


.footer-links {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
}


    .footer-links h3 {
        margin-bottom: 5px;
        font-size: 13px;
    }


    .footer-links > a {
        color: rgba(255,255,255,.58);
        font-size: 11px;
        transition: .3s ease;
    }


        .footer-links > a:hover {
            color: var(--white);
            transform: translateX(3px);
        }


/* =========================================
   SOCIAL BUTTONS
========================================= */

.social-buttons {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 3px;
    flex-wrap: wrap;
}


.social-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: rgba(255,255,255,.82);
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    font-size: 16px;
    transition: .3s ease;
}


    .social-btn:hover {
        transform: translateY(-4px);
        color: var(--white);
        border-color: transparent;
        box-shadow: 0 10px 25px rgba(0,0,0,.2);
    }


    .social-btn.facebook:hover {
        background: #1877f2;
    }


    .social-btn.tiktok:hover {
        background: #111111;
    }


    .social-btn.youtube:hover {
        background: #ff0000;
    }


    .social-btn.whatsapp:hover {
        background: #25d366;
    }


/* =========================================
   FOOTER BOTTOM
========================================= */

.footer-bottom {
    padding-top: 12px;
    text-align: center;
}


    .footer-bottom p {
        color: rgba(255,255,255,.4);
        font-size: 10px;
    }


/* =========================================
   TABLET
========================================= */

@media (max-width: 1050px) {

    .main-nav {
        gap: 18px;
    }


    .cupcake-hero-grid {
        gap: 40px;
    }


    .footer-top {
        grid-template-columns: 1.3fr 1fr 1fr 1fr;
        gap: 20px;
    }
}


/* =========================================
   TABLET / MOBILE
========================================= */

@media (max-width: 800px) {

    .container {
        width: calc(100% - 30px);
    }


    /* HEADER */

    .header-inner {
        min-height: 70px;
    }


    .brand {
        gap: 8px;
    }


        .brand img {
            width: 58px;
            height: 58px;
        }


    .brand-text span {
        font-size: 13px;
    }


    .brand-text strong {
        font-size: 21px;
    }


    .main-nav {
        display: none;
    }


    .header-order {
        min-height: 40px;
        padding: 9px 15px;
        font-size: 11px;
    }


    /* HERO */

    .cupcake-hero {
        padding: 15px 0;
    }


    .cupcake-hero-grid {
        min-height: auto;
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }


    .cupcake-hero-content {
        max-width: 700px;
        margin-inline: auto;
    }


    .cupcake-hero h1 {
        font-size: clamp(40px, 10vw, 58px);
        letter-spacing: -1px;
    }


    .cupcake-hero-content > p {
        margin-inline: auto;
    }


    .hero-buttons {
        justify-content: center;
    }


    .hero-features {
        justify-content: center;
    }


    .cupcake-hero-image {
        max-width: 500px;
        width: 100%;
        margin-inline: auto;
    }


    /* GALLERY */

    .cupcake-gallery {
        grid-template-columns: repeat(2, 1fr);
    }


    /* FOOTER */

    .footer-top {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }


    .footer-brand {
        grid-column: 1 / -1;
    }
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 600px) {

    .container {
        width: calc(100% - 24px);
    }


    /* HERO */

    .cupcake-hero {
        padding: 15px 0;
    }


        .cupcake-hero h1 {
            font-size: 42px;
        }


    .cupcake-hero-content > p {
        font-size: 14px;
    }


    .hero-buttons {
        flex-direction: column;
    }


        .hero-buttons .btn {
            width: 100%;
        }


    .hero-features {
        gap: 15px;
    }


    .hero-image-frame {
        border-radius: 130px 130px 25px 25px;
    }


    .hero-badge {
        width: 90px;
        height: 90px;
        right: 5px;
    }


        .hero-badge span {
            font-size: 13px;
        }


    /* SECTION */

    .cakes-section,
    .custom-section {
        padding: 15px 0;
    }


    .section-heading {
        margin-bottom: 10px;
    }


    /* CUPCAKES */

    .cupcake-gallery {
        grid-template-columns: 1fr;
        gap: 14px;
    }


    .cupcake-gallery-item {
        aspect-ratio: 4 / 3;
        border-radius: 18px;
    }


    /* CUSTOM */

    .custom-box {
        padding: 35px 18px;
        border-radius: 22px;
    }


    /* FOOTER */

    .footer-top {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }


    .footer-brand {
        grid-column: auto;
    }


        .footer-brand p {
            margin-inline: auto;
        }


    .footer-links {
        align-items: center;
    }


    .social-buttons {
        justify-content: center;
    }


    /* IMAGE VIEWER */

    .image-modal {
        padding: 15px;
    }


    .cupcake-modal-image {
        max-width: 94vw;
        max-height: 78vh;
        border-radius: 12px;
    }


    .cupcake-modal-close,
    .cupcake-modal-prev,
    .cupcake-modal-next {
        width: 42px;
        height: 42px;
        font-size: 17px;
    }


    .cupcake-modal-close {
        top: 15px;
        right: 15px;
    }


    .cupcake-modal-prev {
        left: 12px;
    }


    .cupcake-modal-next {
        right: 12px;
    }
}


/* =========================================
   EXTRA SMALL MOBILE
========================================= */

@media (max-width: 400px) {

    .brand img {
        width: 52px;
        height: 52px;
    }


    .brand-text strong {
        font-size: 19px;
    }


    .header-order {
        padding: 8px 12px;
        font-size: 10px;
    }


    .cupcake-hero h1 {
        font-size: 37px;
    }


    .hero-badge {
        width: 78px;
        height: 78px;
    }


        .hero-badge i {
            font-size: 14px;
        }


        .hero-badge strong {
            font-size: 9px;
        }


        .hero-badge span {
            font-size: 11px;
        }
}
