
/* =========================================
   SIRSON DELIVERIES
   Responsive website stylesheet
========================================= */

:root {
    --cream: #faf7f0;
    --beige: #eee6db;
    --indigo: #472632;
    --indigo-dark: #351c27;
    --text: #302522;
    --muted: #81746d;
    --border: #ded5ca;

    --heading: 'Playfair Display', Georgia, serif;
    --body: 'DM Sans', Arial, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    background: var(--cream);
    color: var(--text);
    font-family: var(--body);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

button,
label {
    font-family: inherit;
}


/* =========================================
   NAVIGATION
========================================= */

.navbar {
    width: 100%;
    min-height: 96px;
    padding: 18px 4%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--cream);
}

.logo {
    display: flex;
    align-items: center;
    gap: 11px;
    font-family: var(--heading);
    font-size: clamp(24px, 3vw, 35px);
    white-space: nowrap;
}

.logo em {
    font-weight: 400;
}

.logo-icon {
    width: 47px;
    height: 47px;
    background: var(--indigo);
    color: var(--cream);
    border-radius: 14px;

    display: flex;
    justify-content: center;
    align-items: center;

    font-size: 31px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-links a {
    font-size: 16px;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #946d79;
}


/* =========================================
   HERO / LANDING SECTION
========================================= */

.hero {
    width: 92%;
    max-width: 1600px;
    min-height: 390px;
    margin: 0 auto;

    background: var(--indigo);
    color: var(--cream);

    display: grid;
    grid-template-columns: 1fr 1fr;

    overflow: hidden;
    position: relative;
}

.hero-content {
    padding: 45px 35px;
    align-self: center;
    position: relative;
    z-index: 2;
}

.hero-label {
    display: block;
    color: #e9d7ce;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
}

.hero h1 {
    font-family: var(--heading);
    font-size: clamp(42px, 5vw, 68px);
    font-weight: 400;
    line-height: 1.08;
    margin: 18px 0;
}

.hero-content p {
    max-width: 390px;
    color: #e9dcd6;
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.55;
}

.hero-image {
    width: 100%;
    height: 100%;
    min-height: 390px;
    position: relative;
    overflow: hidden;
}

.hero-image::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;

    background: linear-gradient(
        90deg,
        var(--indigo) 0%,
        rgba(71, 38, 50, 0.3) 20%,
        transparent 65%
    );
}

.hero-image img {
    object-position: center;
}


/* =========================================
   COLLECTION SECTION
========================================= */

.collection-section {
    width: 92%;
    max-width: 1600px;
    margin: auto;
    padding: 75px 0 80px;
}

.section-heading {
    margin-bottom: 24px;
}

.eyebrow {
    display: block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 3px;
    color: #51443f;
}

.section-heading h2 {
    font-family: var(--heading);
    font-size: clamp(36px, 4.5vw, 53px);
    font-weight: 400;
    line-height: 1.2;
    margin-top: 15px;
}


/* =========================================
   COLLECTION TABS
========================================= */

.collection-tabs {
    width: 100%;
}

/* Hide radio controls */

.collection-tabs input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

/* Tabs wrapper */

.tab-labels {
    display: inline-flex;
    align-items: center;
    gap: 3px;

    padding: 5px;
    border: 1px solid #d9cfc3;
    border-radius: 19px;

    background: #f1ebe2;
    margin-bottom: 18px;
}

/* Individual tab */

.tab-labels label {
    padding: 14px 24px;
    border-radius: 14px;

    font-size: 15px;
    font-weight: 600;

    cursor: pointer;
    white-space: nowrap;

    transition: background 0.3s ease, color 0.3s ease;
}

/* Active tab */

#all-pieces:checked ~ .tab-labels label[for="all-pieces"],
#perfumes:checked ~ .tab-labels label[for="perfumes"],
#home-decor:checked ~ .tab-labels label[for="home-decor"] {
    background: var(--indigo);
    color: white;
}

/* Keyboard focus */

.collection-tabs input:focus-visible ~ .tab-labels label {
    outline: 2px solid var(--indigo);
    outline-offset: 3px;
}

/* Description */

.collection-description {
    max-width: 800px;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.7;
    margin-bottom: 25px;
}


/* =========================================
   PRODUCT GRID
========================================= */

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 48px 25px;
    align-items: start;
}

.product-card {
    min-width: 0;
    padding-bottom: 27px;
    border-bottom: 1px solid var(--border);

    animation: appear 0.4s ease;
}

/* Product image */

.product-image {
    width: 100%;
    aspect-ratio: 1 / 1;

    background: #e9e3dc;
    overflow: hidden;

    margin-bottom: 23px;
}

.product-image img {
    object-fit: cover;
    transition: transform 0.6s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.045);
}

/* Product details */

.product-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.product-category {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--muted);
    margin-bottom: 14px;
}

.product-info h3 {
    font-family: var(--heading);
    font-weight: 400;
    font-size: clamp(23px, 2.4vw, 32px);
    line-height: 1.35;
    margin-bottom: 19px;
}

.product-info a {
    font-size: 16px;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--text);
    transition: color 0.3s ease;
}

.product-info a:hover {
    color: #956b77;
    border-color: #956b77;
}


/* =========================================
   CSS TAB FILTERING
========================================= */

/* All pieces: display all products */

#all-pieces:checked ~ .product-grid .product-card {
    display: block;
}

/* Perfumes: display only perfumes */

#perfumes:checked ~ .product-grid .decor-item {
    display: none;
}

/* Home decor: display only home decor */

#home-decor:checked ~ .product-grid .perfume-item {
    display: none;
}


/* =========================================
   CONTACT SECTION
========================================= */

.contact-section {
    width: 100%;
    background: var(--beige);
    padding: 95px 4%;
}

.contact-content {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

.contact-section h2 {
    font-family: var(--heading);
    font-size: clamp(42px, 5vw, 65px);
    font-weight: 400;
    line-height: 1.15;
    margin: 20px 0 25px;
}

.contact-description {
    max-width: 650px;
    font-size: clamp(18px, 2vw, 23px);
    line-height: 1.7;
    margin-bottom: 30px;
}

.contact-person {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 55px;
}

.contact-person p {
    font-size: 21px;
}

.contact-person a {
    font-size: 19px;
    border-bottom: 1px solid var(--text);
    padding-bottom: 5px;
    overflow-wrap: anywhere;
}

.business-address .eyebrow {
    margin-bottom: 18px;
}

.business-address p {
    font-size: 20px;
    line-height: 2.1;
}


/* =========================================
   FOOTER
========================================= */

.footer {
    min-height: 95px;
    padding: 25px 4%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    background: var(--cream);
}

.footer p {
    color: #685c56;
    font-size: 16px;
}


/* =========================================
   ANIMATIONS
========================================= */

@keyframes appear {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* =========================================
   LARGE DESKTOP SCREENS
========================================= */

@media screen and (min-width: 1200px) {

    .product-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 50px 28px;
    }

    .hero {
        min-height: 420px;
    }

    .hero-image {
        min-height: 420px;
    }

    .collection-section {
        padding-top: 85px;
        padding-bottom: 90px;
    }

}


/* =========================================
   TABLETS AND SMALL LAPTOPS
========================================= */

@media screen and (min-width: 601px) and (max-width: 1199px) {

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 42px 22px;
    }

    .hero {
        min-height: 340px;
    }

    .hero-image {
        min-height: 340px;
    }

    .hero-content {
        padding: 30px 25px;
    }

    .collection-section {
        padding: 65px 0;
    }

    .contact-section {
        padding: 80px 5%;
    }

}


/* =========================================
   MOBILE PHONES
========================================= */

@media screen and (max-width: 600px) {

    /* NAVIGATION */

    .navbar {
        min-height: 80px;
        padding: 14px 4%;
        gap: 8px;
    }

    .logo {
        font-size: clamp(20px, 5vw, 27px);
        gap: 8px;
    }

    .logo-icon {
        width: 39px;
        height: 39px;
        font-size: 25px;
        border-radius: 12px;
    }

    .nav-links {
        gap: 15px;
    }

    .nav-links a {
        font-size: 14px;
    }


    /* HERO */

    .hero {
        width: 92%;
        min-height: 315px;
        grid-template-columns: 1fr 1fr;
    }

    .hero-content {
        padding: 22px 15px;
    }

    .hero-label {
        font-size: 9px;
        letter-spacing: 1px;
    }

    .hero h1 {
        font-size: clamp(28px, 7vw, 40px);
        line-height: 1.1;
        margin: 14px 0;
    }

    .hero-content p {
        font-size: 14px;
        line-height: 1.5;
    }

    .hero-image {
        min-height: 315px;
    }

    .hero-image::before {
        background: linear-gradient(
            90deg,
            rgba(71, 38, 50, 0.65),
            transparent 60%
        );
    }


    /* COLLECTION */

    .collection-section {
        width: 92%;
        padding: 50px 0 45px;
    }

    .section-heading {
        margin-bottom: 22px;
    }

    .section-heading h2 {
        font-size: clamp(31px, 8vw, 40px);
        margin-top: 13px;
    }

    .eyebrow {
        font-size: 11px;
        letter-spacing: 2.5px;
    }


    /* TABS */

    .tab-labels {
        display: flex;
        width: 100%;
        gap: 2px;
        padding: 4px;
        border-radius: 16px;
        margin-bottom: 17px;
    }

    .tab-labels label {
        flex: 1;
        text-align: center;
        padding: 13px 4px;
        font-size: 12px;
        border-radius: 12px;
        white-space: nowrap;
    }

    .collection-description {
        font-size: 14px;
        line-height: 1.7;
        margin-bottom: 22px;
    }


    /* PRODUCT GRID */

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 35px 17px;
    }

    .product-card {
        padding-bottom: 20px;
    }

    .product-image {
        aspect-ratio: 0.9 / 1;
        margin-bottom: 17px;
    }

    .product-category {
        font-size: 9px;
        letter-spacing: 1.7px;
        margin-bottom: 10px;
    }

    .product-info h3 {
        font-size: clamp(19px, 5vw, 26px);
        line-height: 1.35;
        margin-bottom: 15px;
    }

    .product-info a {
        font-size: 14px;
    }


    /* CONTACT */

    .contact-section {
        padding: 75px 4%;
    }

    .contact-section h2 {
        font-size: clamp(38px, 9vw, 49px);
        margin: 20px 0 25px;
    }

    .contact-description {
        font-size: 18px;
        line-height: 1.65;
        margin-bottom: 30px;
    }

    .contact-person {
        gap: 22px;
        margin-bottom: 48px;
    }

    .contact-person p {
        font-size: 19px;
    }

    .contact-person a {
        font-size: 16px;
    }

    .business-address .eyebrow {
        margin-bottom: 17px;
    }

    .business-address p {
        font-size: 17px;
        line-height: 2.1;
    }


    /* FOOTER */

    .footer {
        min-height: 85px;
        padding: 20px 4%;
        gap: 10px;
    }

    .footer p {
        font-size: 14px;
    }

}


/* =========================================
   VERY SMALL PHONES
========================================= */

@media screen and (max-width: 360px) {

    .logo {
        font-size: 19px;
    }

    .nav-links {
        gap: 9px;
    }

    .nav-links a {
        font-size: 12px;
    }

    .hero h1 {
        font-size: 27px;
    }

    .hero-content p {
        font-size: 12px;
    }

    .tab-labels label {
        font-size: 10px;
        padding: 12px 3px;
    }

    .product-grid {
        gap: 28px 12px;
    }

    .product-info h3 {
        font-size: 19px;
    }

    .footer p {
        font-size: 12px;
    }

}


/* =========================================
   ACCESSIBILITY
========================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

}
