/* =========================================================
   Sinorah Jewels - style.css
   Fonts: Cormorant Garamond (headings), Poppins (body text),
          Dancing Script (handwritten accents)
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Dancing+Script:wght@500;700&display=swap');

:root {
    --font-heading: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Poppins', Arial, sans-serif;
    --font-script: 'Dancing Script', cursive;
}

/* ===== GLOBAL ===== */
body {
    background-color: #f4f4f4;
    color: #333;
    margin: 0;
    padding: 0 0 70px; /* keeps the last content clear of the fixed footer */
    overflow-y: auto;
}

/* "html body" outranks Bootstrap's own body rule on pages that load it after this file */
html body {
    font-family: var(--font-body);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 0.3px;
}

/* Cormorant runs small, so headings get a little more size */
h1 {
    font-size: 2.6rem;
}

h2 {
    font-size: 2.2rem;
}

h3 {
    font-size: 1.6rem;
}

button, input, select, textarea {
    font-family: inherit;
}

/* ===== HEADER ===== */
header {
    background-color: #6B0F1A;
    color: #FFF4E0;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    header nav a {
        color: #FFF4E0;
        text-decoration: none;
        margin-left: 25px;
        font-size: 18px;
        transition: 0.3s;
        white-space: nowrap; /* never split a menu link across two lines */
    }

        header nav a:hover {
            color: #FFD700;
        }

.main-header {
    background: #6B0F1A;
    color: #FFF4E0;
    display: flex;
    align-items: center;
    padding: 20px 40px;
    position: relative;
}

    .main-header nav {
        margin-left: auto;
    }

        .main-header nav a {
            color: #FFF4E0;
            margin-left: 25px;
            text-decoration: none;
        }

.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.logo-img {
    height: 60px;
    width: auto;
    margin-bottom: 5px;
}

/* Handwritten accents */
.tagline {
    font-size: 32px;
    color: #FFD700;
    font-family: var(--font-script);
}

.logo .tagline {
    font-size: 16px;
    margin: 0;
}

/* ===== WELCOME SECTION ===== */
.welcome {
    text-align: center;
    margin: 0;
    padding: 100px 20px;
    background: linear-gradient(rgba(107,15,26,0.7), rgba(107,15,26,0.7)), url('/images/banner.jpg') center/cover no-repeat;
    color: #FFF4E0;
}

    .welcome h1 {
        font-size: 60px;
        font-weight: 700;
        color: #FFF4E0;
        letter-spacing: 3px;
    }

    .welcome p {
        font-size: 28px;
        color: #FFD700;
        font-family: var(--font-script);
        margin-top: 10px;
    }

/* ===== HERO SLIDER ===== */
.hero-slider {
    width: 100%;
    overflow: hidden;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.slider-container {
    display: flex;
    transition: transform 0.6s ease;
}

.slide {
    flex: 0 0 100%;
}

    .slide img {
        display: block;
        width: 100%;
        height: 420px;
        object-fit: cover;
    }

.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(107, 15, 26, 0.75);
    color: #FFF4E0;
    border: none;
    font-size: 22px;
    padding: 10px 14px;
    cursor: pointer;
    border-radius: 4px;
    z-index: 2;
}

    .arrow:hover {
        background: #6B0F1A;
    }

    .arrow.left {
        left: 10px;
    }

    .arrow.right {
        right: 10px;
    }

/* ===== JEWELRY GALLERY ===== */
.jewelry-gallery {
    padding: 20px;
    text-align: center;
}

.gallery {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.jewel-image {
    max-width: 300px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
}

    .jewel-image:hover {
        transform: scale(1.1);
    }

/* ===== FOOTER ===== */
footer {
    background-color: #6B0F1A;
    color: #FFF4E0;
    text-align: center;
    padding: 12px;
    width: 100%;
}

/* ===== CATEGORIES (LANDING PAGE) ===== */
.jewelry-categories {
    text-align: center;
    margin: 40px 0;
}

    .jewelry-categories h2 {
        font-size: 38px;
        color: #6B0F1A;
        margin-bottom: 40px;
        font-weight: bold;
    }

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 20px;
}

.category-card {
    background-color: #fff;
    padding: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: 0.3s ease;
}

    .category-card h3 {
        font-size: 26px;
        font-weight: 700;
        color: #6B0F1A;
        margin-top: 15px;
    }

    .category-card p {
        font-size: 14px;
        color: #6B0F1A;
        margin-bottom: 15px;
        font-style: italic;
    }

    .category-card:hover {
        transform: translateY(-8px);
    }

.category-image-home {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: transparent;
    color: #6B0F1A;
    border: 1px solid #6B0F1A;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 10px;
    transition: 0.3s;
}

    .btn:hover {
        background-color: #6B0F1A;
        color: #FFF4E0;
    }

/* ===== CATEGORY / PRODUCT LISTING PAGE ===== */
.category-collection {
    text-align: center;
    margin: 40px 0;
}

.category-images-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 20px;
}

/* The page scrolls as a whole (inside .content-area), so the grid does not scroll on its own */
.vertical-slider {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 20px;
}

.category-image-item {
    background-color: #fff;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    margin-bottom: 20px;
}

.category-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    cursor: pointer;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

    .category-image:hover {
        transform: scale(1.05);
    }

.enquiry-btn {
    background-color: #b8860b;
    color: white;
    border: none;
    padding: 10px 15px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 8px;
    transition: all 0.3s ease-in-out;
    box-shadow: 2px 4px 8px rgba(0, 0, 0, 0.2);
    display: block;
    margin: 10px auto;
    width: 80%;
}

    .enquiry-btn:hover {
        background-color: #a57c04;
        transform: scale(1.05);
        box-shadow: 3px 5px 10px rgba(0, 0, 0, 0.3);
    }

    .enquiry-btn:active {
        transform: scale(0.98);
    }

.whatsapp-btn {
    background-color: #25D366;
    color: white;
    border: none;
    padding: 10px 15px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 8px;
    transition: 0.3s;
    box-shadow: 2px 4px 8px rgba(0,0,0,0.2);
    display: block;
    margin: 5px auto;
    width: 80%;
}

    .whatsapp-btn:hover {
        background-color: #1ebe5d;
        transform: scale(1.05);
    }

/* ===== ABOUT PAGE ===== */
.about-hero {
    background: linear-gradient(rgba(107,15,26,0.7), rgba(107,15,26,0.7)), url('/images/about-banner.jpg') center/cover no-repeat;
    text-align: center;
    padding: 120px 20px;
    color: #FFF4E0;
}

    .about-hero h1 {
        font-size: 54px;
        font-weight: 700;
        margin: 0;
    }

.about-section {
    background-color: #fff4e0;
    text-align: center;
    padding: 80px 20px;
    color: #6B0F1A;
}

    .about-section .container {
        max-width: 800px;
        margin: 0 auto;
        line-height: 1.8;
        font-size: 18px;
    }

    .about-section .highlight {
        font-family: var(--font-script);
        font-size: 28px;
        color: #FFD700;
        margin: 20px 0;
    }

/* ===== CONTACT PAGE ===== */
.contact-page {
    padding: 60px 20px;
    background-color: #FFF4E0;
}

.contact-container {
    max-width: 1000px;
    margin: auto;
    text-align: center;
}

    .contact-container h2 {
        font-size: 40px;
        color: #6B0F1A;
        margin-bottom: 10px;
    }

    .contact-container p {
        font-size: 18px;
        color: #6B0F1A;
        margin-bottom: 40px;
    }

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    text-align: left;
}

.contact-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #6B0F1A;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #6B0F1A;
    border-radius: 5px;
    font-size: 16px;
}

    .contact-form input:focus,
    .contact-form textarea:focus {
        outline: none;
        border-color: #FFD700;
    }

.contact-info h3 {
    color: #6B0F1A;
    margin-bottom: 10px;
}

.contact-info p {
    color: #6B0F1A;
    line-height: 1.8;
}

.contact-info a {
    color: #6B0F1A;
    text-decoration: none;
    font-weight: bold;
    margin-right: 10px;
}

    .contact-info a:hover {
        color: #FFD700;
    }

/* ===== TESTIMONIALS ===== */
.testimonials-section {
    background-color: #fff4e0;
    text-align: center;
    padding: 60px 20px;
}

    .testimonials-section h2 {
        color: #6B0F1A;
        font-size: 38px;
        margin-bottom: 40px;
    }

.testimonials-slider {
    display: flex;
    gap: 20px;
    overflow: hidden;
}

.testimonial-card {
    flex: 0 0 300px;
    background-color: #fff;
    border-radius: 12px;
    padding: 25px 20px;
    box-shadow: 0 8px 18px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

    .testimonial-card:hover {
        transform: translateY(-8px);
    }

.testimonial-text {
    font-style: italic;
    color: #6B0F1A;
    margin-bottom: 15px;
}

.testimonial-author {
    font-weight: bold;
    color: #b8860b;
    font-family: var(--font-script);
}

/* ===== FIXED HEADER / FOOTER, SCROLLING MIDDLE ===== */
.fixed-header,
.fixed-footer {
    box-sizing: border-box; /* so the 70px / 50px heights are the real heights */
}

.fixed-header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 70px;
    z-index: 1000;
}

.fixed-footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 50px;
    z-index: 1000;
}

.content-area {
    position: absolute;
    top: 70px;
    bottom: 50px;
    width: 100%;
    overflow-y: auto;
    padding-bottom: 80px; /* keeps the last card clear of the footer */
    scroll-behavior: smooth;
}

    /* Gold scrollbar for the scrolling middle area */
    .content-area::-webkit-scrollbar {
        width: 8px;
    }

    .content-area::-webkit-scrollbar-thumb {
        background: #b8860b;
        border-radius: 10px;
    }

    .content-area::-webkit-scrollbar-track {
        background: #f1f1f1;
    }

/* =========================================================
   RESPONSIVE (keep these last, widest screen first)
   ========================================================= */

/* Tablets: 2 columns */
@media (max-width: 992px) {
    .categories-grid,
    .vertical-slider {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .logo-img {
        height: 45px;
    }

    header nav a {
        font-size: 16px;
        margin-left: 15px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* Phones */
@media (max-width: 600px) {

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    h3 {
        font-size: 1.35rem;
    }

    /* Hero slider */
    .slide img {
        height: 200px;
    }

    .arrow {
        font-size: 14px;
        padding: 6px 10px;
    }

    /* Landing page: one category card per row */
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 12px 16px;
    }

    .category-image-home {
        height: 220px;
    }

    .jewelry-categories h2,
    .testimonials-section h2 {
        font-size: 30px;
        margin-bottom: 20px;
    }

    /* Landing page header: menu wraps between links, centered */
    .main-header nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        margin-left: 0;
    }

        .main-header nav a {
            margin: 4px 10px;
            font-size: 15px;
        }

    /* Fixed header on inner pages: keep the menu on one line */
    .fixed-header {
        padding: 0 10px;
        justify-content: center;
    }

        .fixed-header nav {
            display: flex;
            justify-content: center;
        }

            .fixed-header nav a {
                margin: 0 7px;
                font-size: 14px;
            }

    /* Product listing: 2 per row, smaller buttons */
    .vertical-slider {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 10px;
    }

    .category-image {
        height: 150px;
    }

    .enquiry-btn,
    .whatsapp-btn {
        width: 100%;
        font-size: 13px;
        padding: 8px 4px;
    }
}

@media (max-width: 480px) {
    .logo-img {
        height: 35px;
    }

    header {
        flex-direction: column;
        padding: 10px 20px;
    }

    .main-header nav {
        margin-left: 0;
        margin-top: 10px;
    }
}

/* Small phones: Poppins is wide, so tighten the menu */
@media (max-width: 400px) {
    .fixed-header nav a {
        margin: 0 5px;
        font-size: 13px;
    }
}

/* Very small phones: one product per row */
@media (max-width: 360px) {
    .vertical-slider {
        grid-template-columns: 1fr;
    }

    .category-image {
        height: 200px;
    }
}

/* ===== FOOTER FIX: sits at the end of the page instead of covering it ===== */
body {
    padding-bottom: 0 !important;
    background-color: #fbf7f1;
}

footer {
    position: static !important;
    height: auto !important;
    margin-top: 0 !important;
    padding: 22px 16px 14px !important;
    background: #4a0a12 !important;
    border-top: 2px solid #b8860b;
    line-height: 1.7;
}

    footer a {
        color: #d9b45a;
        text-decoration: none;
        margin: 0 10px;
        font-size: .88rem;
    }

        footer a:hover {
            color: #fff;
        }
    /* leave room so the floating Wishlist / chat buttons never hide the last line */
    footer::after {
        content: "";
        display: block;
        height: 34px;
    }

/* =========================================================
   TYPOGRAPHY - one scale for the whole shop
   Headings : Cormorant Garamond (serif, elegant)
   Text     : Poppins 400, medium (500) for links, semi-bold (600) for buttons
   Script   : Dancing Script only for the logo tagline and small accents
   ========================================================= */
body {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 15px;
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: .2px;
}

h1 {
    font-size: clamp(2rem, 4.5vw, 3rem);
}

h2 {
    font-size: clamp(1.7rem, 3.5vw, 2.4rem);
}

h3 {
    font-size: 1.4rem;
}

/* menu: lighter and a little smaller so it sits quietly beside the serif headings */
header nav a, .main-header nav a, .fixed-header nav a {
    font-family: var(--font-body);
    font-weight: 500 !important;
    font-size: 15.5px !important;
    letter-spacing: .3px;
}

/* buttons and form controls use the same font */
button, .btn, input, select, textarea {
    font-family: var(--font-body);
}

    .btn, button[type=submit] {
        font-weight: 600;
        letter-spacing: .3px;
    }

/* floating Wishlist and chat labels */
#chat-button .chat-pill, .wish-fab, [class*="wishlist-float"] {
    font-family: var(--font-body);
    font-weight: 600 !important;
    font-size: .85rem;
}

/* bold text inside paragraphs stays readable but not heavy */
strong, b {
    font-weight: 600;
}
