/* =========================================================
   Brink's WhatKnots - main stylesheet
   ========================================================= */

/* ================= COLORS (change once, updates everywhere) ================= */

:root {
    --plum:        #70495b;
    --rose:        #b46d86;
    --rose-dark:   #a85f79;
    --logo:        #9a6578;
    --yellow:      #ebe031;
    --yellow-dark: #d6cb1f;
    --text:        #4a3b35;
    --text-soft:   #756762;
    --cream:       #fffaf7;
    --blush:       #f7ebe5;
    --white:       #ffffff;
    --shadow:      0 5px 20px rgba(0, 0, 0, 0.08);
}


/* ================= GENERAL ================= */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    background-color: var(--cream);
    color: var(--text);
    line-height: 1.6;
}

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


/* ================= HEADER / NAV ================= */

#site-header {
    position: sticky;
    top: 0;
    z-index: 100;
}

header {
    background-color: var(--white);
    padding: 18px 7%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.logo {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--logo);
    text-decoration: none;
}

nav {
    display: flex;
    align-items: center;
    gap: 25px;
}

nav a {
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    padding: 4px 2px;
    border-bottom: 2px solid transparent;
}

nav a:hover {
    color: var(--rose);
}

nav a.active {
    color: var(--rose);
    border-bottom-color: var(--rose);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--plum);
    cursor: pointer;
    line-height: 1;
}


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

.hero,
.page-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #fffbc8, #f8eee8, #f8e959);
}

.hero {
    min-height: 60vh;
}

.page-hero {
    min-height: 35vh;
}

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

.hero h1,
.page-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--plum);
    line-height: 1.15;
}

.page-hero h1 {
    font-size: 3rem;
}

.hero p,
.page-hero p {
    font-size: 1.2rem;
}

.hero p {
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}


/* ================= BUTTONS ================= */

.main-button,
.outline-button {
    display: inline-block;
    text-decoration: none;
    padding: 13px 25px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: 0.2s;
}

.main-button {
    background-color: var(--yellow);
    color: var(--text);
    border: 2px solid var(--yellow);
}

.main-button:hover {
    background-color: var(--yellow-dark);
    border-color: var(--yellow-dark);
    transform: translateY(-2px);
}

.outline-button {
    background-color: var(--white);
    color: var(--rose);
    border: 2px solid var(--rose);
}

.outline-button:hover {
    background-color: var(--rose);
    color: var(--white);
    transform: translateY(-2px);
}


/* ================= SECTIONS ================= */

.section {
    padding: 80px 7%;
}

.section-alt {
    background-color: var(--blush);
}

.section-heading {
    text-align: center;
    margin-bottom: 45px;
}

.section-heading h2 {
    font-size: 2.5rem;
    color: var(--plum);
    margin-bottom: 10px;
}

.section-heading p {
    color: var(--text-soft);
}

.section-cta {
    text-align: center;
    margin-top: 45px;
}


/* ================= PRODUCT CARDS ================= */

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.product-card {
    position: relative;
    background-color: var(--white);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: 0.25s;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background-color: var(--blush);
}

.product-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-info h3 {
    color: var(--plum);
    margin-bottom: 6px;
}

.product-description {
    color: var(--text-soft);
    margin-bottom: 12px;
    flex: 1;
}

.product-price {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--rose-dark);
}

/* Smaller cards on the gallery page */
.gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 24px;
}

.gallery-grid .product-info {
    padding: 15px;
}

/* Badges: add class="badge" or "badge sold" inside a card */
.badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background-color: var(--yellow);
    color: var(--text);
    font-size: 0.8rem;
    font-weight: bold;
    padding: 4px 12px;
    border-radius: 20px;
}

.badge.sold {
    background-color: var(--plum);
    color: var(--white);
}

.product-card.is-sold img {
    opacity: 0.55;
}


/* ================= CUSTOM ORDER BANNER ================= */

.custom-banner {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.custom-banner h2 {
    font-size: 2.2rem;
    color: var(--plum);
    margin-bottom: 15px;
}

.custom-banner p {
    margin-bottom: 25px;
}


/* ================= CONTACT ================= */

.contact-container {
    max-width: 1100px;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info {
    padding: 20px;
}

.contact-info h2,
.contact-form-container h2 {
    font-size: 2.2rem;
    color: var(--plum);
    margin-bottom: 15px;
}

.contact-info > p,
.contact-form-container > p {
    margin-bottom: 30px;
    color: var(--text-soft);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-detail {
    padding: 20px;
    background-color: var(--blush);
    border-radius: 15px;
}

.contact-detail h3 {
    color: var(--plum);
    margin-bottom: 8px;
}

.contact-detail a {
    color: var(--rose-dark);
    font-weight: bold;
    text-decoration: none;
    word-break: break-word;
}

.contact-detail a:hover {
    color: var(--rose);
}

.contact-detail ul {
    margin-top: 10px;
    padding-left: 20px;
}

.contact-form-container {
    background-color: var(--white);
    padding: 35px;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
    font-family: Arial, sans-serif;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--rose);
    box-shadow: 0 0 0 2px rgba(180, 109, 134, 0.15);
}

.form-group textarea {
    min-height: 140px;
    resize: vertical;
}

.contact-form-container .main-button {
    width: 100%;
}


/* ================= FOOTER ================= */

footer {
    text-align: center;
    padding: 35px;
    background-color: var(--text);
    color: var(--white);
}

footer a {
    color: var(--white);
}


/* ================= MOBILE ================= */

@media (max-width: 700px) {

    header {
        padding: 14px 5%;
    }

    .nav-toggle {
        display: block;
    }

    nav {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 0;
        margin-top: 12px;
    }

    nav.open {
        display: flex;
    }

    nav a {
        width: 100%;
        text-align: center;
        padding: 12px 0;
        border-bottom: 1px solid #f0e6e1;
    }

    nav a.active {
        border-bottom-color: #f0e6e1;
        background-color: var(--blush);
    }

    .hero h1 {
        font-size: 2.4rem;
    }

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

    .section {
        padding: 60px 5%;
    }

    .section-heading h2 {
        font-size: 2rem;
    }

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

    .gallery-grid .product-info {
        padding: 12px;
    }

    .gallery-grid .product-description {
        display: none;
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-form-container {
        padding: 25px;
    }
}

/* Featured cards on the home page: 3 across on desktop */
.showcase-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    max-width: 1050px;
}


/* ================= HOME HERO PHOTO COLLAGE ================= */

.hero-split {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    align-items: center;
    gap: 50px;
    padding: 70px 7%;
    text-align: left;
    min-height: auto;
}

.hero-split .hero-content {
    max-width: 520px;
    justify-self: end;
}

.hero-split .hero-buttons {
    justify-content: flex-start;
}

/*  Mosaic layout (3 columns x 3 rows):
      [ 1  1 ][2]
      [ 1  1 ][3]
      [4][ 5 ][6]           */
.collage {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 1fr;
    gap: 12px;
    max-width: 600px;
    aspect-ratio: 1 / 1;
    width: 100%;
}

.collage .tile {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    border: 5px solid var(--white);
    box-shadow: 0 6px 18px rgba(112, 73, 91, 0.18);
    background-color: var(--blush);
    transition: transform 0.25s;
}

.collage .tile:hover {
    transform: scale(1.03) rotate(-1deg);
}

.collage .tile-big {
    grid-column: span 2;
    grid-row: span 2;
}

@media (max-width: 900px) {

    .hero-split {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 35px;
        padding: 50px 5%;
    }

    .hero-split .hero-content {
        justify-self: center;
    }

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

    .collage {
        margin: 0 auto;
        gap: 8px;
    }

    .collage .tile {
        border-width: 3px;
        border-radius: 12px;
    }
}
