/* =========================================================
   FLOWERS & FLORALS
   Main Website Stylesheet
   ========================================================= */


/* =========================================================
   RESET
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
}

body {
    font-family:
        Arial,
        Helvetica,
        sans-serif;

    color: var(--text);

    background: var(--cream);

    overflow-x: hidden;
    overflow-y: auto;
}


/* =========================================================
   COLOR VARIABLES
   ========================================================= */

:root {
    --pink: #d98c9e;
    --pink-dark: #b9687d;
    --pink-soft: #f9e9ed;
    --pink-light: #f8e3e8;
    --pink-border: #e8c5cc;

    --cream: #fffaf8;
    --cream-dark: #f5e7dc;

    --text: #493b3e;
    --text-soft: #604b51;
    --muted: #7d6d70;

    --white: #ffffff;

    --whatsapp: #67b967;
    --whatsapp-dark: #54a754;
}


/* =========================================================
   LANDING PAGE
   ========================================================= */

.landing-page {
    position: relative;

    width: 100%;
    min-height: 100vh;

    display: flex;
    flex-direction: column;
}


/* =========================================================
   HEADER / HERO
   ========================================================= */

.hero-section {
    width: 100%;

    text-align: center;

    padding: 28px 20px 32px;

    background:
        linear-gradient(
            135deg,
            #f7d9e0 0%,
            #f4cbd5 50%,
            #f8e3e8 100%
        );

    border-bottom:
        1px solid var(--pink-border);
}


/* =========================================================
   COMPANY NAME
   ========================================================= */

.company-name {
    margin: 0;

    font-size:
        clamp(22px, 3vw, 38px);

    line-height: 1.1;

    font-weight: 500;

    letter-spacing: 5px;

    color: #704b55;
}


/* Decorative line underneath company name */

.company-name::after {
    content: "";

    display: block;

    width: 42px;
    height: 2px;

    margin: 10px auto 0;

    background: var(--pink);

    border-radius: 10px;
}


/* =========================================================
   COMPANY TAGLINE
   ========================================================= */

.company-tagline {
    margin-top: 12px;

    font-size:
        clamp(18px, 2vw, 25px);

    line-height: 1.3;

    font-weight: 400;

    color: var(--text);
}


/* =========================================================
   HERO DESCRIPTION
   ========================================================= */

.hero-description {
    max-width: 600px;

    margin: 10px auto 0;

    font-size: 13px;

    line-height: 1.5;

    color: var(--muted);
}


/* =========================================================
   CATEGORIES
   ========================================================= */

.categories-section {
    width: 100%;

    text-align: center;

    padding:
        30px 30px 35px;
}


/* =========================================================
   SECTION LABEL
   ========================================================= */

.section-label {
    position: relative;

    display: inline-flex;

    align-items: center;

    gap: 12px;

    font-size: 10px;

    letter-spacing: 3px;

    font-weight: bold;

    color: var(--pink-dark);

    margin-bottom: 8px;
}


/* Decorative lines around section label */

.section-label::before,
.section-label::after {
    content: "";

    width: 22px;
    height: 1px;

    background: var(--pink-border);
}


/* =========================================================
   COLLECTION HEADING
   ========================================================= */

.categories-section h2 {
    font-size: 30px;

    font-weight: 400;

    color: var(--text);
}


/* =========================================================
   CATEGORY DESCRIPTION
   ========================================================= */

.category-description {
    color: var(--muted);

    font-size: 14px;

    margin-top: 8px;
}


/* =========================================================
   CATEGORY GRID
   ========================================================= */

.category-grid {
    width: 100%;

    max-width: 1250px;

    margin:
        25px auto 0;

    display: grid;

    /*
     * Automatically creates as many columns as can fit.
     * Add more tiles without changing the CSS.
     */
    grid-template-columns:
        repeat(
            auto-fit,
            minmax(220px, 1fr)
        );

    gap: 20px;
}


/* =========================================================
   CATEGORY TILE
   ========================================================= */

.category-tile {
    position: relative;

    min-height: 190px;

    padding: 24px;

    display: flex;

    flex-direction: column;

    justify-content: space-between;

    text-align: left;

    cursor: pointer;

    background:
        rgba(255, 255, 255, 0.92);

    border:
        1px solid var(--pink-border);

    border-radius: 18px;

    box-shadow:
        0 8px 25px
        rgba(150, 90, 105, 0.08);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        background 0.3s ease,
        border-color 0.3s ease;
}


/* Small tile number */

.tile-number {
    display: block;

    margin-bottom: 18px;

    font-size: 11px;

    letter-spacing: 2px;

    color: var(--pink-dark);
}


/* Tile title */

.category-tile h3 {
    margin: 0;

    padding-right: 40px;

    font-size: 20px;

    font-weight: 500;

    color: var(--text);
}


/* Tile description */

.category-tile p {
    max-width: 280px;

    margin-top: 9px;

    padding-right: 30px;

    font-size: 12px;

    line-height: 1.6;

    color: var(--muted);
}


/* Tile arrow */

.tile-arrow {
    position: absolute;

    right: 22px;
    bottom: 20px;

    width: 34px;
    height: 34px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background:
        var(--pink-soft);

    color:
        var(--pink-dark);

    font-size: 19px;

    transition:
        transform 0.3s ease,
        background 0.3s ease;
}


/* Tile hover */

.category-tile:hover {
    transform:
        translateY(-6px);

    background:
        #fffafa;

    border-color:
        #dca9b5;

    box-shadow:
        0 15px 35px
        rgba(150, 90, 105, 0.15);
}


.category-tile:hover .tile-arrow {
    transform:
        translateX(4px);

    background:
        var(--pink-light);
}


/* Keyboard accessibility */

.category-tile:focus-visible {
    outline:
        3px solid
        rgba(185, 104, 125, 0.35);

    outline-offset: 3px;
}


/* =========================================================
   FOOTER
   ========================================================= */

.landing-footer {
    margin-top: auto;

    padding:
        14px 25px 10px;

    background:
        linear-gradient(
            135deg,
            #f5d5dd,
            #f8e3e8
        );

    border-top:
        1px solid var(--pink-border);

    text-align: center;
}


/* =========================================================
   FOOTER BRAND
   ========================================================= */

.footer-brand h3 {
    font-size: 16px;

    font-weight: 500;

    color: #60464e;
}


.footer-brand p {
    margin-top: 3px;

    font-size: 10px;

    color: var(--muted);
}


/* =========================================================
   FOOTER CONTACT
   ========================================================= */

.footer-contact {
    display: flex;

    justify-content: center;

    align-items: center;

    gap: 40px;

    margin-top: 10px;
}


/* Contact item */

.contact-item {
    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 4px;
}


/* Contact label */

.contact-label {
    font-size: 8px;

    letter-spacing: 2px;

    font-weight: bold;

    color: var(--pink-dark);
}


/* Phone link */

.contact-item > a:not(.whatsapp-button) {
    color: var(--text-soft);

    text-decoration: none;

    font-size: 12px;

    transition:
        color 0.3s ease;
}


.contact-item > a:not(.whatsapp-button):hover {
    color: var(--pink-dark);
}


/* =========================================================
   WHATSAPP BUTTON
   ========================================================= */

.whatsapp-button {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 6px;

    padding:
        6px 12px;

    border-radius: 20px;

    background:
        var(--whatsapp);

    color: white;

    text-decoration: none;

    font-size: 11px;

    font-weight: bold;

    box-shadow:
        0 4px 12px
        rgba(70, 160, 70, 0.12);

    transition:
        background 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;
}


/* WhatsApp SVG */

.whatsapp-button svg {
    width: 17px;
    height: 17px;
}


/* WhatsApp hover */

.whatsapp-button:hover {
    background:
        var(--whatsapp-dark);

    transform:
        translateY(-2px);

    box-shadow:
        0 7px 16px
        rgba(70, 160, 70, 0.20);
}


/* =========================================================
   FOOTER BOTTOM
   ========================================================= */

.footer-bottom {
    display: flex;

    justify-content: center;

    align-items: center;

    gap: 8px;

    margin-top: 9px;

    padding-top: 7px;

    border-top:
        1px solid
        rgba(185, 104, 125, 0.15);

    color:
        #9b858b;

    font-size: 8px;

    letter-spacing: 1px;

    text-transform: uppercase;
}


.footer-dot {
    color:
        var(--pink);
}


/* =========================================================
   GALLERY OVERLAY
   ========================================================= */

.gallery-overlay {
    position: fixed;

    inset: 0;

    z-index: 100;

    background:
        rgba(255, 249, 248, 0.98);

    backdrop-filter:
        blur(12px);

    opacity: 0;

    visibility: hidden;

    transform:
        translateY(20px);

    transition:
        opacity 0.3s ease,
        transform 0.3s ease,
        visibility 0.3s ease;
}


/* Active gallery */

.gallery-overlay.active {
    opacity: 1;

    visibility: visible;

    transform:
        translateY(0);
}


/* =========================================================
   GALLERY CONTAINER
   ========================================================= */

.gallery-container {
    width: 100%;

    height: 100%;

    overflow-y: auto;

    padding:
        40px 6% 60px;
}


/* =========================================================
   GALLERY HEADER
   ========================================================= */

.gallery-header {
    max-width: 1200px;

    margin:
        0 auto 30px;

    display: flex;

    justify-content: space-between;

    align-items: center;
}


/* Gallery heading */

.gallery-header h2 {
    font-size: 32px;

    font-weight: 400;

    color: var(--text);
}


/* =========================================================
   CLOSE BUTTON
   ========================================================= */

.close-gallery {
    width: 46px;
    height: 46px;

    flex-shrink: 0;

    border-radius: 50%;

    border:
        1px solid
        var(--pink-border);

    background:
        white;

    color:
        #765860;

    font-size: 29px;

    line-height: 1;

    cursor: pointer;

    transition:
        transform 0.3s ease,
        background 0.3s ease,
        box-shadow 0.3s ease;
}


.close-gallery:hover {
    background:
        var(--pink-soft);

    transform:
        rotate(90deg);

    box-shadow:
        0 5px 15px
        rgba(150, 90, 105, 0.10);
}


.close-gallery:focus-visible {
    outline:
        3px solid
        rgba(185, 104, 125, 0.35);

    outline-offset: 3px;
}


/* =========================================================
   GALLERY GRID
   ========================================================= */

.gallery {
    max-width: 1200px;

    margin:
        auto;

    display: grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(280px, 1fr)
        );

    gap: 25px;

    justify-items: center;
}


/* =========================================================
   GALLERY CARD
   ========================================================= */

.gallery-item {
    width: 100%;

    max-width: 380px;

    padding: 8px;

    background:
        var(--white);

    border-radius: 22px;

    box-shadow:
        0 10px 35px
        rgba(90, 50, 60, 0.10);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}


.gallery-item:hover {
    transform:
        translateY(-4px);

    box-shadow:
        0 15px 40px
        rgba(90, 50, 60, 0.14);
}


/* =========================================================
   GALLERY IMAGE
   ========================================================= */

.gallery-item img {
    display: block;

    width: 100%;

    height: 300px;

    object-fit: cover;

    border-radius: 16px;
}


/* =========================================================
   SINGLE IMAGE
   ========================================================= */

.gallery.single-image {
    grid-template-columns:
        1fr;
}


.gallery.single-image .gallery-item {
    max-width:
        560px;
}


.gallery.single-image .gallery-item img {
    height:
        auto;

    max-height:
        65vh;

    object-fit:
        contain;
}


/* =========================================================
   LOADING / ERROR
   ========================================================= */

.loading,
.error-message {
    grid-column:
        1 / -1;

    width: 100%;

    text-align:
        center;

    padding:
        60px;

    color:
        var(--pink-dark);
}


.error-message h3 {
    font-size: 20px;

    font-weight: 500;

    margin-bottom: 8px;

    color: var(--text);
}


.error-message p {
    font-size: 13px;

    color: var(--muted);
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .category-grid {
        grid-template-columns:
            repeat(
                auto-fit,
                minmax(200px, 1fr)
            );

        gap: 16px;
    }

    .category-tile {
        min-height: 180px;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 768px) {

    .hero-section {
        padding:
            22px 18px 25px;
    }


    .company-name {
        font-size: 27px;

        letter-spacing: 4px;
    }


    .company-tagline {
        font-size: 19px;

        line-height: 1.35;

        white-space:
            normal;
    }


    .hero-description {
        font-size: 12px;

        max-width:
            390px;
    }


    .categories-section {
        padding:
            25px 18px 30px;
    }


    .categories-section h2 {
        font-size: 26px;
    }


    .category-description {
        font-size: 13px;
    }


    .category-grid {
        grid-template-columns:
            repeat(
                auto-fit,
                minmax(180px, 1fr)
            );

        gap: 14px;

        margin-top:
            20px;
    }


    .category-tile {
        min-height: 170px;

        padding: 20px;
    }


    .category-tile h3 {
        font-size: 18px;
    }


    .category-tile p {
        font-size: 11px;
    }


    .footer-contact {
        gap: 25px;
    }


    .gallery-container {
        padding:
            25px 18px 40px;
    }


    .gallery {
        grid-template-columns:
            1fr;
    }


    .gallery-item {
        max-width:
            500px;
    }


    .gallery-header h2 {
        font-size: 26px;
    }


    .close-gallery {
        width: 42px;
        height: 42px;

        font-size: 26px;
    }

}


/* =========================================================
   SMALL MOBILE DEVICES
   ========================================================= */

@media (max-width: 480px) {

    .hero-section {
        padding:
            18px 15px 22px;
    }


    .company-name {
        font-size: 23px;

        letter-spacing: 3px;
    }


    .company-name::after {
        margin-top:
            8px;

        width:
            35px;
    }


    .company-tagline {
        font-size: 17px;
    }


    .hero-description {
        font-size: 11px;

        line-height:
            1.6;
    }


    .categories-section {
        padding:
            23px 15px 28px;
    }


    .categories-section h2 {
        font-size:
            24px;
    }


    .category-description {
        font-size:
            12px;
    }


    .category-grid {
        grid-template-columns:
            1fr;

        gap:
            13px;

        margin-top:
            18px;
    }


    .category-tile {
        min-height:
            150px;

        padding:
            19px;
    }


    .category-tile h3 {
        font-size:
            17px;
    }


    .category-tile p {
        font-size:
            11px;
    }


    .tile-number {
        margin-bottom:
            12px;
    }


    .tile-arrow {
        right:
            18px;

        bottom:
            18px;

        width:
            31px;

        height:
            31px;
    }


    .footer-brand h3 {
        font-size:
            15px;
    }


    .footer-brand p {
        display:
            none;
    }


    .footer-contact {
        gap:
            18px;
    }


    .whatsapp-button {
        padding:
            6px 10px;

        font-size:
            10px;
    }


    .footer-bottom {
        font-size:
            7px;
    }

}
