/* =========================================================
   RATILAL P. CHOKSHI & SONS
   Premium Heritage Jewellery Website
========================================================= */


/* =========================
   ROOT / BRAND COLORS
========================= */

:root {
    --charcoal: #171513;
    --charcoal-light: #25211e;

    --gold: #c9a45c;
    --gold-light: #e3c989;
    --gold-dark: #9d7837;

    --ivory: #f8f4eb;
    --white: #ffffff;

    --text: #282522;
    --muted: #6e6860;

    --border: rgba(201, 164, 92, 0.28);

    --serif: "Cormorant Garamond", Georgia, serif;
    --sans: "Montserrat", Arial, sans-serif;

    --container: 1180px;
}


/* =========================
   RESET
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--ivory);
    color: var(--text);
    font-family: var(--sans);
    line-height: 1.7;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}


/* =========================
   COMMON
========================= */

.container {
    width: min(92%, var(--container));
    margin: 0 auto;
}

.section {
    padding: 110px 0;
}

.section-label {
    color: var(--gold-dark);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    margin-bottom: 15px;
}

.section-heading {
    max-width: 720px;
    margin: 0 auto 70px;
    text-align: center;
}

.section-heading h2,
.intro-content h2,
.contact-content h2 {
    font-family: var(--serif);
    font-size: clamp(2.6rem, 5vw, 4.4rem);
    font-weight: 500;
    line-height: 1;
    color: var(--charcoal);
}

.section-heading h2 span,
.intro-content h2 span,
.contact-content h2 span {
    color: var(--gold-dark);
    display: block;
}

.section-heading > p:last-child {
    color: var(--muted);
    margin-top: 25px;
}


/* =========================
   HEADER
========================= */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;

    background: rgba(23, 21, 19, 0.96);
    border-bottom: 1px solid var(--border);
}

.nav-wrapper {
    min-height: 82px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}


/*
    LOGO SIZE:

    Desktop maximum:
    769px × 859px

    The actual displayed logo is much smaller so that
    it fits naturally inside the navigation.

    object-fit: contain prevents distortion/cropping.
*/

.brand img {
    width: 75px;
    height: 70px;

    object-fit: contain;
}


.nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav a {
    color: #f7f2e8;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;

    transition: color 0.3s ease;
}

.nav a:hover {
    color: var(--gold-light);
}


/* Mobile menu button */

.menu-toggle {
    display: none;

    width: 42px;
    height: 42px;

    border: 1px solid var(--border);
    background: transparent;

    cursor: pointer;
}

.menu-toggle span {
    display: block;

    width: 20px;
    height: 1px;

    margin: 5px auto;

    background: var(--gold-light);
}


/* =========================
   HERO
========================= */

.hero {
    min-height: 100vh;

    display: flex;
    align-items: center;

    position: relative;

    /*
        HERO IMAGE:
        Replace the background image with the client's
        actual hero/store/jewellery image.

        background-size: cover fills the complete hero.
        If the original image must NEVER crop, use an
        <img> element with object-fit: contain instead.
    */
    background:
        url("assets/hero.jpeg")
        center center / cover
        no-repeat;

    background-color: var(--charcoal);
}

.hero-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(15, 13, 11, 0.92) 0%,
            rgba(15, 13, 11, 0.72) 50%,
            rgba(15, 13, 11, 0.42) 100%
        );
}

.hero-content {
    position: relative;
    z-index: 2;

    max-width: 800px;

    padding-top: 100px;
}

.eyebrow {
    color: var(--gold-light);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.25em;

    margin-bottom: 22px;
}

.hero h1 {
    color: var(--white);

    font-family: var(--serif);
    font-size: clamp(4rem, 9vw, 8rem);
    font-weight: 500;
    line-height: 0.85;
}

.hero h1 span {
    display: block;
    color: var(--gold-light);
}

.hero-text {
    max-width: 600px;

    margin-top: 30px;

    color: #eee7da;

    font-size: 1rem;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;

    margin-top: 35px;
}


/* =========================
   BUTTONS
========================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 50px;
    padding: 0 28px;

    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;

    transition:
        background 0.3s ease,
        color 0.3s ease,
        border 0.3s ease;
}

.btn-gold {
    background: var(--gold);
    color: var(--charcoal);
}

.btn-gold:hover {
    background: var(--gold-light);
}

.btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.55);
    color: var(--white);
}

.btn-outline:hover {
    border-color: var(--gold-light);
    color: var(--gold-light);
}


/* =========================
   INTRODUCTION
========================= */

.intro {
    background: var(--ivory);
}

.intro-grid {
    display: grid;

    grid-template-columns: minmax(300px, 0.8fr) minmax(300px, 1.2fr);

    gap: 90px;

    align-items: center;
}

.intro-image {
    min-height: 400px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #efe9dd;
    object-fit: cover;
    border: 1px solid var(--border);
}


/*
    HERITAGE LOGO / IMAGE:

    Original ratio requested by client:
    769 × 859 pixels.

    max-width: 769px
    max-height: 859px

    object-fit: contain ensures the entire image remains visible.
*/

.heritage-logo {
    width: 100%;
    max-width: 1254px;

    height: auto;
    max-height: 1254px;

    object-fit: contain;
}

.intro-content p:not(.section-label) {
    color: var(--muted);
    margin-top: 22px;
}

.text-link {
    display: inline-block;

    margin-top: 30px;

    color: var(--gold-dark);

    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}


/* =========================
   STORY / TIMELINE
========================= */

.story {
    background: #eee8dc;
}

.timeline {
    max-width: 900px;

    margin: 0 auto;

    position: relative;
}

.timeline::before {
    content: "";

    position: absolute;

    left: 135px;
    top: 0;
    bottom: 0;

    width: 1px;

    background: var(--gold);
    opacity: 0.45;
}

.timeline-item {
    display: grid;

    grid-template-columns: 170px 1fr;

    gap: 55px;

    position: relative;

    padding-bottom: 65px;
}

.timeline-item::before {
    content: "";

    position: absolute;

    left: 130px;
    top: 5px;

    width: 10px;
    height: 10px;

    border-radius: 50%;

    background: var(--gold);

    box-shadow:
        0 0 0 5px #eee8dc,
        0 0 0 6px var(--gold);
}

.timeline-year {
    color: var(--gold-dark);

    font-family: var(--serif);
    
    font-size: 1.6rem;
    font-weight: 600;

    text-align: right;
}

.timeline-content {
    padding-left: 15px;
}

.timeline-content h3 {
    color: var(--charcoal);

    font-family: var(--serif);

    font-size: 2rem;
    font-weight: 600;

    line-height: 1.1;

    margin-bottom: 15px;
}

.timeline-content p {
    color: var(--muted);

    margin-bottom: 15px;
}

.timeline-item.highlight .timeline-content {
    padding: 30px;

    background: var(--charcoal);
}

.timeline-item.highlight .timeline-content h3 {
    color: var(--gold-light);
}

.timeline-item.highlight .timeline-content p {
    color: #ddd5c8;
}


/* =========================
   VALUES
========================= */

.values {
    background: var(--charcoal);
}

.section-heading.light h2 {
    color: var(--white);
}

.section-heading.light > p:last-child {
    color: #c7c0b5;
}

.values-grid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 1px;

    background: var(--border);
}

.value-card {
    min-height: 270px;

    padding: 35px 30px;

    background: var(--charcoal-light);

    transition:
        background 0.3s ease,
        transform 0.3s ease;
}

.value-card:hover {
    background: #302a25;
    transform: translateY(-5px);
}

.value-number {
    color: var(--gold);

    font-size: 0.7rem;
    letter-spacing: 0.15em;

    margin-bottom: 45px;
}

.value-card h3 {
    color: var(--gold-light);

    font-family: var(--serif);

    font-size: 2.2rem;

    margin-bottom: 12px;
}

.value-card p {
    color: #c8c0b4;

    font-size: 0.9rem;
}


/* =========================
   COLLECTION
========================= */

.collection {
    background: var(--ivory);
}


/*
    PRODUCT GRID:

    Six products only.
    No categories.

    Images use aspect-ratio and object-fit: contain.

    This means:
    - jewellery is never cropped
    - different image ratios are supported
    - complete product remains visible
*/

.product-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 20px;
}

.product-card {
    background: #eee8dc;

    overflow: hidden;

    border: 1px solid rgba(157, 120, 55, 0.18);
}

.product-image {
    width: 100%;

    /*
        PRODUCT IMAGE HEIGHT / RATIO:
        1:1 gives every product a consistent presentation area.
    */
    aspect-ratio: 1 / 1;

    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    width: 100%;
    height: 100%;

    /*
        contain = NO CROPPING.
        The entire product image remains visible.
    */
    object-fit: cover;

    transition: transform 0.5s ease;
}

.product-card:hover img {
    transform: scale(1.04);
}


/* =========================
   CONTACT
========================= */

.contact {
    background: #eee8dc;
}

.contact-grid {
    display: grid;

    grid-template-columns: 1.3fr 0.7fr;

    gap: 80px;

    align-items: center;
}

.contact-content > p:not(.section-label) {
    color: var(--muted);

    max-width: 600px;

    margin-top: 25px;
}

.contact-details {
    display: grid;

    gap: 18px;

    margin-top: 35px;
}

.contact-details a {
    display: flex;

    flex-direction: column;

    color: var(--muted);

    font-size: 0.9rem;
}

.contact-details strong {
    color: var(--charcoal);

    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.contact-card {
    padding: 45px;

    background: var(--charcoal);

    border: 1px solid var(--border);
}

.contact-card > p {
    color: var(--gold-light);

    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.18em;
}

.social-links {
    display: grid;

    gap: 12px;

    margin: 30px 0;
}

.social-links a {
    padding: 14px 0;

    color: #eee7da;

    border-bottom: 1px solid var(--border);

    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--gold-light);
}

.full-btn {
    width: 100%;
}


/* =========================
   FOOTER
========================= */

.footer {
    background: #100f0d;

    color: #c8c0b5;

    padding: 35px 0;
}

.footer-content {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 30px;
}

.footer h3 {
    color: var(--gold-light);

    font-family: var(--serif);

    font-size: 1.5rem;
}

.footer p {
    font-size: 0.72rem;
}


/* =========================
   WHATSAPP
========================= */

.whatsapp {
    position: fixed;

    right: 25px;
    bottom: 25px;

    z-index: 999;

    padding: 13px 18px;

    background: #1f9d55;
    color: white;

    border-radius: 50px;

    font-size: 0.7rem;
    font-weight: 600;

    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}


/* =========================
   TABLET
========================= */

@media (max-width: 900px) {

    .section {
        padding: 80px 0;
    }

    .nav {
        gap: 18px;
    }

    .intro-grid {
        grid-template-columns: 1fr;

        gap: 50px;
    }

    .intro-image {
        max-width: 600px;

        margin: 0 auto;
    }

    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* =========================
   MOBILE
========================= */

@media (max-width: 700px) {

    .nav-wrapper {
        min-height: 70px;
    }

    .brand img {
        width: 62px;
        height: 58px;
    }

    .menu-toggle {
        display: block;
    }

    .nav {
        position: absolute;

        top: 70px;
        left: 0;

        width: 100%;

        display: none;
        flex-direction: column;

        align-items: flex-start;

        gap: 0;

        background: var(--charcoal);

        border-top: 1px solid var(--border);
    }

    .nav.active {
        display: flex;
    }

    .nav a {
        width: 100%;

        padding: 17px 4%;

        border-bottom: 1px solid var(--border);
    }

    .hero {
        min-height: 90vh;
    }

    .hero h1 {
        font-size: clamp(3.5rem, 17vw, 5.5rem);
    }

    .hero-buttons {
        flex-direction: column;

        align-items: flex-start;
    }

    .timeline::before {
        left: 5px;
    }

    .timeline-item {
        display: block;

        padding-left: 30px;
    }

    .timeline-item::before {
        left: 0;
    }

    .timeline-year {
        text-align: left;

        margin-bottom: 12px;
    }

    .timeline-content {
        padding-left: 0;
    }

    .timeline-item.highlight .timeline-content {
        padding: 25px;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .contact-card {
        padding: 30px 25px;
    }

    .footer-content {
        flex-direction: column;

        align-items: flex-start;
    }

    .whatsapp {
        right: 15px;
        bottom: 15px;
    }
}