/* =========================================================
   CAKE BY DILINI
   COMPLETE STYLE.CSS
   ========================================================= */


/* =========================================================
   01. RESET
   ========================================================= */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Poppins", "Segoe UI", Arial, sans-serif;
    background: #fffaf7;
    color: #382722;
    line-height: 1.6;
}

body,
button,
input,
textarea,
select {
    font-family: inherit;
}

img {
    display: block;
    width: 100%;
    max-width: 100%;
}

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

button {
    border: none;
    cursor: pointer;
}


/* =========================================================
   02. VARIABLES
   ========================================================= */

:root {
    --primary: #c86f63;
    --primary-dark: #a95349;
    --brown: #382722;
    --brown-light: #725e56;
    --cream: #fff8f2;
    --cream-dark: #f3e1d6;
    --white: #ffffff;
    --border: #eadbd3;
    --shadow: 0 18px 45px rgba(65, 38, 28, 0.10);
    --shadow-small: 0 8px 25px rgba(65, 38, 28, 0.07);
    --radius: 20px;
    --container: 1180px;
}


/* =========================================================
   03. GLOBAL
   ========================================================= */

.container {
    width: min(var(--container), 92%);
    margin: 0 auto;
}

section {
    padding: 100px 0;
}


/* =========================================================
   04. SECTION HEADING
   ========================================================= */

.section-heading {
    max-width: 700px;
    margin: 0 auto 55px;
    text-align: center;
}

    .section-heading > span,
    .section-label {
        display: inline-block;
        color: var(--primary);
        font-size: 12px;
        font-weight: 800;
        letter-spacing: 2px;
    }

    .section-heading h2 {
        margin-top: 10px;
        margin-bottom: 15px;
        color: var(--brown);
        font-size: clamp(32px, 4vw, 48px);
        line-height: 1.12;
        letter-spacing: -0.8px;
    }

    .section-heading p {
        color: var(--brown-light);
        font-size: 15px;
    }


/* =========================================================
   05. BUTTONS
   ========================================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 50px;
    padding: 0 25px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

    .btn-primary:hover {
        background: var(--primary-dark);
        transform: translateY(-3px);
        box-shadow: 0 10px 25px rgba(200, 111, 99, 0.25);
    }

.btn-secondary {
    background: var(--white);
    color: var(--brown);
    border: 1px solid var(--border);
}

    .btn-secondary:hover {
        color: var(--primary);
        border-color: var(--primary);
        transform: translateY(-3px);
    }


/* =========================================================
   06. HEADER
   ========================================================= */

.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 250, 247, 0.94);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(234, 219, 211, 0.8);
}

.nav {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}


/* =========================================================
   LOGO
   ========================================================= */

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--brown);
    font-size: 23px;
    font-weight: 800;
    white-space: nowrap;
}

.logo-icon {
    font-size: 25px;
}

.logo-accent {
    color: var(--primary);
}


/* =========================================================
   NAVIGATION
   ========================================================= */

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

    .nav-links a {
        position: relative;
        color: var(--brown-light);
        font-size: 14px;
        font-weight: 600;
        transition: color 0.3s ease;
    }

        .nav-links a::after {
            content: "";
            position: absolute;
            left: 0;
            bottom: -8px;
            width: 0;
            height: 2px;
            background: var(--primary);
            transition: width 0.3s ease;
        }

        .nav-links a:hover,
        .nav-links a.active {
            color: var(--primary);
        }

            .nav-links a:hover::after,
            .nav-links a.active::after {
                width: 100%;
            }


/* =========================================================
   NAV BUTTON
   ========================================================= */

.nav-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 23px;
    border-radius: 50px;
    background: var(--primary);
    color: var(--white);
    font-size: 13px;
    font-weight: 700;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

    .nav-button:hover {
        background: var(--primary-dark);
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(200, 111, 99, 0.20);
    }


/* =========================================================
   07. HERO
   ========================================================= */

.hero {
    position: relative;
    min-height: calc(100vh - 78px);
    display: flex;
    align-items: center;
    padding: 80px 0;
    overflow: hidden;
    background: radial-gradient( circle at 85% 15%, rgba(200, 111, 99, 0.14), transparent 34% ), var(--cream);
}

.hero-container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 80px;
}

.hero-content {
    max-width: 600px;
}

.hero-label {
    display: inline-block;
    margin-bottom: 18px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.hero h1 {
    color: var(--brown);
    font-size: clamp(46px, 6vw, 76px);
    line-height: 1.02;
    letter-spacing: -2.5px;
    margin-bottom: 25px;
}

    .hero h1 span {
        display: block;
        color: var(--primary);
    }

.hero-content > p {
    max-width: 550px;
    margin-bottom: 32px;
    color: var(--brown-light);
    font-size: 16px;
}

.hero-buttons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}


/* =========================================================
   HERO IMAGE
   ========================================================= */

.hero-visual {
    position: relative;
    width: min(520px, 100%);
    margin-left: auto;
}

.hero-decoration {
    position: absolute;
    width: 88%;
    aspect-ratio: 1;
    top: 6%;
    left: 6%;
    border-radius: 50%;
    background: var(--cream-dark);
    transform: rotate(8deg);
}

.hero-image {
    position: relative;
    z-index: 2;
    width: 100%;
    aspect-ratio: 1;
    padding: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow);
    overflow: hidden;
}

    .hero-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        border-radius: 50%;
    }


/* =========================================================
   HERO BADGE
   ========================================================= */

.fresh-badge {
    position: absolute;
    z-index: 5;
    right: -10px;
    bottom: 45px;
    width: 135px;
    height: 135px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 50%;
    background: var(--white);
    box-shadow: var(--shadow);
}

    .fresh-badge strong {
        color: var(--primary);
        font-size: 28px;
        line-height: 1;
    }

    .fresh-badge span {
        margin-top: 7px;
        color: var(--brown-light);
        font-size: 11px;
        font-weight: 700;
        line-height: 1.3;
    }


/* =========================================================
   08. CATEGORIES
   ========================================================= */

.categories {
    background: var(--white);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.category-card {
    padding: 32px 24px;
    text-align: center;
    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

    .category-card:hover {
        transform: translateY(-8px);
        border-color: transparent;
        box-shadow: var(--shadow);
    }

.category-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: var(--white);
    font-size: 30px;
    box-shadow: var(--shadow-small);
}

.category-card h3 {
    margin-bottom: 9px;
    color: var(--brown);
    font-size: 18px;
}

.category-card p {
    min-height: 67px;
    margin-bottom: 18px;
    color: var(--brown-light);
    font-size: 13px;
}

.category-card a {
    color: var(--primary);
    font-size: 13px;
    font-weight: 800;
}

    .category-card a:hover {
        color: var(--primary-dark);
    }


/* =========================================================
   09. FEATURED CAKES
   ========================================================= */

.featured {
    background: var(--cream);
}

.cake-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.cake-card {
    overflow: hidden;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: 0 8px 30px rgba(65, 38, 28, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .cake-card:hover {
        transform: translateY(-8px);
        box-shadow: var(--shadow);
    }

.cake-image {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

    .cake-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        transition: transform 0.5s ease;
    }

.cake-card:hover .cake-image img {
    transform: scale(1.05);
}

.cake-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 11px;
    border-radius: 30px;
    background: var(--white);
    color: var(--primary);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    box-shadow: var(--shadow-small);
}

.cake-content {
    padding: 25px;
}

.cake-category {
    color: var(--primary);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.cake-content h3 {
    margin: 7px 0 9px;
    color: var(--brown);
    font-size: 20px;
    line-height: 1.25;
}

.cake-content p {
    min-height: 47px;
    margin-bottom: 20px;
    color: var(--brown-light);
    font-size: 13px;
}

.cake-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding-top: 17px;
    border-top: 1px solid var(--border);
}

    .cake-footer strong {
        color: var(--brown);
        font-size: 13px;
    }

    .cake-footer a {
        color: var(--primary);
        font-size: 13px;
        font-weight: 800;
    }


/* =========================================================
   10. ABOUT
   ========================================================= */

.about {
    background: var(--white);
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 90px;
}

.about-image {
    position: relative;
    padding: 15px;
}

    .about-image::before {
        content: "";
        position: absolute;
        inset: 0;
        border: 2px solid var(--cream-dark);
        border-radius: 28px;
        transform: rotate(-3deg);
    }

    .about-image img {
        position: relative;
        z-index: 2;
        width: 100%;
        aspect-ratio: 1;
        object-fit: cover;
        object-position: center;
        border-radius: 25px;
        box-shadow: var(--shadow-small);
    }

.about-content {
    max-width: 550px;
}

    .about-content h2 {
        margin: 12px 0 24px;
        color: var(--brown);
        font-size: clamp(36px, 4vw, 54px);
        line-height: 1.08;
        letter-spacing: -1px;
    }

    .about-content p {
        margin-bottom: 15px;
        color: var(--brown-light);
        font-size: 15px;
    }

.about-features {
    display: flex;
    align-items: flex-start;
    gap: 35px;
    margin: 28px 0;
}

    .about-features div {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .about-features strong {
        color: var(--primary);
        font-size: 21px;
    }

    .about-features span {
        color: var(--brown-light);
        font-size: 11px;
        font-weight: 600;
    }


/* =========================================================
   11. GALLERY
   ========================================================= */

.gallery {
    background: var(--cream);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.gallery-item {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    border-radius: 18px;
    background: var(--cream-dark);
}

    .gallery-item img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        transition: transform 0.5s ease;
    }

    .gallery-item:hover img {
        transform: scale(1.04);
    }


/* =========================================================
   12. ORDER
   ========================================================= */

.order {
    padding: 65px 0;
    background: var(--cream);
}

.order-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 55px 60px;
    overflow: hidden;
    border-radius: 30px;
    background: linear-gradient( 135deg, #c86f63, #b85f55 );
    color: var(--white);
    box-shadow: 0 20px 45px rgba(200, 111, 99, 0.18);
}

.order-content {
    max-width: 720px;
}

    .order-content > span {
        font-size: 11px;
        font-weight: 800;
        letter-spacing: 2px;
        opacity: 0.9;
    }

    .order-content h2 {
        margin: 9px 0 12px;
        font-size: clamp(29px, 4vw, 44px);
        line-height: 1.12;
    }

    .order-content p {
        font-size: 14px;
        opacity: 0.92;
    }

.order-button {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 25px;
    border-radius: 50px;
    background: var(--white);
    color: var(--primary-dark);
    font-size: 13px;
    font-weight: 800;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .order-button:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    }


/* =========================================================
   13. CONTACT
   ========================================================= */

.contact {
    background: var(--white);
}

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

.contact-card {
    min-height: 170px;
    padding: 30px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--white);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

    .contact-card:hover {
        transform: translateY(-6px);
        border-color: var(--primary);
        box-shadow: var(--shadow-small);
    }

.contact-icon {
    margin-bottom: 12px;
    font-size: 30px;
    line-height: 1;
}

.contact-card h3 {
    margin-bottom: 5px;
    color: var(--brown);
    font-size: 18px;
}

.contact-card p {
    color: var(--brown-light);
    font-size: 13px;
}


/* =========================================================
   14. CONTACT MAP AREA
   ========================================================= */

.contact-map-area {
    width: 100%;
    min-height: 360px;
    margin-top: 35px;
    padding: 12px;
    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: var(--shadow-small);
}

.map-placeholder {
    width: 100%;
    min-height: 330px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    border-radius: 14px;
    background: var(--cream-dark);
    color: var(--brown-light);
    text-align: center;
}

.map-icon {
    font-size: 48px;
    line-height: 1;
    margin-bottom: 5px;
}

.map-placeholder h3 {
    color: var(--brown);
    font-size: 26px;
    font-weight: 700;
}

.map-placeholder p {
    color: var(--brown-light);
    font-size: 13px;
}


/* =========================================================
   15. FOOTER
   ========================================================= */

.footer {
    padding: 30px 0;
    background: #2b1d19;
    color: var(--white);
}

.footer-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.footer-logo {
    color: var(--white);
}

.footer-container > p {
    color: #c7b6ae;
    font-size: 12px;
    text-align: center;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 18px;
}

    .social-links a {
        color: #c7b6ae;
        font-size: 12px;
        transition: color 0.3s ease;
    }

        .social-links a:hover {
            color: var(--white);
        }


/* =========================================================
   16. TABLET
   ========================================================= */

@media (max-width: 1050px) {

    .nav-links {
        gap: 18px;
    }

    .hero-container {
        gap: 45px;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-container {
        gap: 55px;
    }
}


/* =========================================================
   17. TABLET GALLERY
   ========================================================= */

@media (max-width: 900px) {

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .gallery-item {
        aspect-ratio: 3 / 2;
    }

    .nav-links {
        gap: 14px;
    }
}


/* =========================================================
   18. MOBILE
   ========================================================= */

@media (max-width: 768px) {

    section {
        padding: 75px 0;
    }


    /* HEADER */

    .nav {
        min-height: 70px;
        gap: 15px;
    }

    .nav-links {
        display: none;
    }

    .logo {
        font-size: 20px;
    }

    .logo-icon {
        font-size: 22px;
    }

    .nav-button {
        padding: 10px 16px;
        font-size: 11px;
    }


    /* HERO */

    .hero {
        min-height: auto;
        padding: 65px 0 85px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 55px;
        text-align: center;
    }

    .hero-content {
        max-width: 650px;
        margin: 0 auto;
    }

    .hero h1 {
        font-size: clamp(43px, 11vw, 60px);
        letter-spacing: -1.8px;
    }

    .hero-content > p {
        margin-left: auto;
        margin-right: auto;
        font-size: 14px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-visual {
        width: min(470px, 88vw);
        margin: 0 auto;
    }

    .fresh-badge {
        width: 110px;
        height: 110px;
        right: -5px;
        bottom: 25px;
    }

        .fresh-badge strong {
            font-size: 23px;
        }


    /* CATEGORIES */

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .category-card {
        padding: 25px 15px;
    }

    .category-icon {
        width: 62px;
        height: 62px;
        font-size: 27px;
    }

    .category-card h3 {
        font-size: 16px;
    }

    .category-card p {
        min-height: auto;
        font-size: 12px;
    }


    /* CAKES */

    .cake-grid {
        grid-template-columns: 1fr;
        width: min(500px, 100%);
        margin: 0 auto;
    }


    /* ABOUT */

    .about-container {
        grid-template-columns: 1fr;
        gap: 55px;
    }

    .about-content {
        max-width: 650px;
        margin: 0 auto;
        text-align: center;
    }

    .about-features {
        justify-content: center;
    }


    /* GALLERY */

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .gallery-item {
        aspect-ratio: 3 / 2;
        border-radius: 15px;
    }

        .gallery-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: center;
        }


    /* ORDER */

    .order-box {
        flex-direction: column;
        padding: 45px 25px;
        text-align: center;
    }


    /* CONTACT */

    .contact-grid {
        grid-template-columns: 1fr;
        width: min(500px, 100%);
        margin: 0 auto;
    }

    .contact-card {
        min-height: 145px;
    }

    .contact-map-area {
        min-height: 300px;
        margin-top: 25px;
    }

    .map-placeholder {
        min-height: 270px;
    }


    /* FOOTER */

    .footer-container {
        flex-direction: column;
        text-align: center;
    }
}


/* =========================================================
   19. SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .container {
        width: 90%;
    }

    .nav-button {
        padding: 9px 13px;
    }

    .hero {
        padding-top: 55px;
    }

        .hero h1 {
            font-size: 42px;
        }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

        .hero-buttons .btn {
            width: 100%;
        }

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


    /* GALLERY */

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .gallery-item {
        aspect-ratio: 3 / 2;
        border-radius: 12px;
    }

        .gallery-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }


    /* CONTACT MAP */

    .contact-map-area {
        min-height: 260px;
        padding: 8px;
    }

    .map-placeholder {
        min-height: 235px;
    }

    .map-icon {
        font-size: 38px;
    }

    .map-placeholder h3 {
        font-size: 22px;
    }

    .map-placeholder p {
        font-size: 11px;
    }


    .section-heading {
        margin-bottom: 40px;
    }

        .section-heading h2 {
            font-size: 32px;
        }

    .order-content h2 {
        font-size: 30px;
    }

    .about-features {
        gap: 22px;
    }
}


/* =========================================================
   20. VERY SMALL SCREENS
   ========================================================= */

@media (max-width: 360px) {

    .logo {
        font-size: 18px;
    }

    .logo-icon {
        font-size: 20px;
    }

    .nav-button {
        padding: 8px 11px;
        font-size: 10px;
    }

    .hero h1 {
        font-size: 38px;
    }

    .gallery-grid {
        gap: 8px;
    }

    .gallery-item {
        border-radius: 10px;
    }

    .contact-map-area {
        min-height: 230px;
    }

    .map-placeholder {
        min-height: 205px;
    }
}


/* =========================================================
   21. REDUCED MOTION
   ========================================================= */

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

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}
