@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,500;0,600;1,400;1,500&display=swap');

:root {
    --black: #171512;
    --cream: #f8f5ef;
    --white: #ffffff;
    --gold: #b18a52;
    --brown: #65503a;
    --muted: #898177;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--white);
    color: var(--black);
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}


/* ANNOUNCEMENT BAR */

.announcement {
    background: var(--black);
    color: #e6d1ad;
    height: 35px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.announcement-track {
    display: flex;
    align-items: center;
    gap: 65px;
    white-space: nowrap;
    min-width: max-content;
    animation: moveText 35s linear infinite;
}

.announcement-track span {
    font-size: 10px;
    letter-spacing: 2px;
}

@keyframes moveText {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}


/* HEADER */

.site-header {
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #eee9e1;
}

.header-inner {
    max-width: 1450px;
    margin: auto;
    min-height: 88px;
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    font-family: 'Playfair Display', serif;
    font-size: 23px;
    letter-spacing: 2px;
    color: #29221b;
    font-weight: 600;
}

.brand span {
    color: var(--gold);
}

.brand small {
    display: block;
    font-family: 'DM Sans', sans-serif;
    font-size: 8px;
    letter-spacing: 3px;
    margin-top: 5px;
    text-align: center;
}

.brand-crown {
    color: var(--gold);
    font-size: 27px;
}

.main-nav {
    display: flex;
    gap: 34px;
    align-items: center;
}

.main-nav a {
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: color .3s;
}

.main-nav a:hover {
    color: var(--gold);
}

.menu-toggle {
    display: none;
    border: 0;
    background: transparent;
    font-size: 25px;
    cursor: pointer;
}


/* HERO SECTION */

.hero {
    height: 650px;
    min-height: 500px;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;

    background-image:
        url("../images/castle-hero-model.png");

    background-position: center right;
    background-size: cover;
    background-repeat: no-repeat;

    color: #292016;
}

.hero-overlay {
    position: absolute;
    inset: 0;

    background: linear-gradient(
        90deg,
        rgba(248, 235, 216, 0.30) 0%,
        rgba(248, 235, 216, 0.12) 43%,
        transparent 70%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    padding-left: 8%;
    padding-top: 20px;
    color: #292016;
}

.eyebrow {
    color: var(--gold);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 3px;
    margin-bottom: 18px;
}

.hero .eyebrow {
    color: #a97838;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(48px, 6vw, 78px);
    line-height: 1.06;
    font-weight: 400;
    color: #302216;
}

.hero h1 em {
    color: #b18443;
    font-weight: 400;
}

.hero-description {
    max-width: 440px;
    margin: 24px 0 30px;
    font-size: 14px;
    line-height: 2;
    color: #65503a;
}

.gold-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--gold);
    color: white;
    padding: 16px 26px;
    font-size: 10px;
    letter-spacing: 2px;
    font-weight: 600;
    transition: .3s;
}

.gold-button:hover {
    background: #8e6939;
    transform: translateY(-2px);
}

.hero-caption {
    position: absolute;
    bottom: 22px;
    left: 7%;
    z-index: 2;
    font-size: 9px;
    letter-spacing: 2px;
    color: #493522;
}


/* MARQUEE */

.marquee-bar {
    background: var(--black);
    color: #e3cba8;
    overflow: hidden;
    padding: 16px 0;
}

.marquee-track {
    display: flex;
    width: max-content;
    gap: 65px;
    white-space: nowrap;
    animation: moveText 40s linear infinite;
}

.marquee-track span {
    font-size: 10px;
    letter-spacing: 2px;
}


/* COMMON SECTIONS */

.section-padding {
    padding: 90px 7%;
}

.section-heading {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 48px;
}

.section-heading h2,
.about-content h2,
.contact-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 400;
    line-height: 1.25;
}

.section-heading h2 em,
.about-content h2 em,
.contact-section h2 em {
    color: var(--gold);
    font-weight: 400;
}

.section-heading > p:last-child {
    font-size: 12px;
    line-height: 1.8;
    color: var(--muted);
    margin-top: 15px;
}


/* COLLECTIONS */

.collections {
    background: #fff;
}

.category-grid {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 28px;
}

.category-item {
    text-align: center;
}

.category-circle {
    width: 135px;
    height: 135px;
    margin: auto;
    border-radius: 50%;
    overflow: hidden;
    background: var(--cream);
    transition: .4s;
}

.category-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s;
}

.category-item:hover .category-circle img {
    transform: scale(1.1);
}

.category-item h3 {
    font-family: 'Playfair Display', serif;
    font-size: 14px;
    font-weight: 400;
    margin-top: 14px;
}

.category-placeholder {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    color: var(--gold);
    font-size: 35px;
}


/* FEATURED PRODUCTS */

.featured {
    background: #f8f6f2;
}

.product-grid {
    max-width: 1350px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.product-card {
    display: block;
    background: white;
    min-width: 0;
}

.product-image-wrap {
    height: 310px;
    position: relative;
    overflow: hidden;
    background: #f1eee8;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
    transition: transform .5s;
}

.product-card:hover .product-image {
    transform: scale(1.06);
}

.product-no-image {
    height: 100%;
    display: grid;
    place-items: center;
    color: #a28a68;
    font-family: 'Playfair Display', serif;
    letter-spacing: 2px;
    font-size: 13px;
}

.view-product {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    padding: 13px;
    background: rgba(23, 21, 18, .88);
    color: white;
    font-size: 9px;
    letter-spacing: 2px;
    opacity: 0;
    transform: translateY(10px);
    transition: .3s;
}

.product-card:hover .view-product {
    opacity: 1;
    transform: translateY(0);
}

.product-info {
    padding: 18px 15px 20px;
}

.product-category {
    color: var(--gold);
    text-transform: uppercase;
    font-size: 9px;
    letter-spacing: 1.5px;
}

.product-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 17px;
    font-weight: 400;
    margin: 8px 0;
}

.product-material {
    font-size: 11px;
    color: var(--muted);
}

.product-price {
    font-size: 14px;
    font-weight: 600;
    margin-top: 13px;
}

.price-note {
    color: var(--muted);
    font-size: 9px;
}

.empty-message {
    text-align: center;
    color: var(--muted);
    padding: 30px;
    font-size: 13px;
}


/* EDITORIAL BANNER */

.editorial-banner {
    min-height: 480px;
    display: flex;
    align-items: center;
    position: relative;

    background:
        linear-gradient(
            90deg,
            rgba(17,14,12,.75),
            rgba(17,14,12,.05)
        ),
        url("https://images.unsplash.com/photo-1617038220319-276d3cfab638?auto=format&fit=crop&w=1800&q=85")
        center / cover no-repeat;

    color: white;
}

.editorial-content {
    padding: 65px 10%;
    max-width: 650px;
}

.editorial-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(38px, 5vw, 58px);
    font-weight: 400;
    line-height: 1.2;
}

.editorial-content h2 em {
    color: #d1a568;
}

.editorial-content > p:not(.eyebrow) {
    font-size: 12px;
    line-height: 2;
    color: #e8ded1;
    margin: 20px 0 28px;
}


/* GOLD RATES */

.gold-section {
    background: #f5f0e8;
}

.gold-rate-grid {
    max-width: 800px;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.rate-card {
    background: #fff;
    padding: 38px 20px;
    text-align: center;
    border: 1px solid #e9dfd1;
}

.rate-card p {
    font-size: 10px;
    letter-spacing: 2px;
    color: var(--brown);
}

.rate-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    font-weight: 400;
    color: #8b642d;
    margin: 18px 0 8px;
}

.rate-card span {
    font-size: 9px;
    letter-spacing: 2px;
    color: var(--muted);
}

.rate-information {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 25px;
    font-size: 10px;
    color: var(--muted);
}

.rate-status {
    color: #3d7a46;
    font-weight: 600;
}

.rate-status.manual {
    color: #95672f;
}

.gold-disclaimer {
    text-align: center;
    font-size: 10px;
    color: var(--muted);
    margin: 20px auto 0;
    max-width: 650px;
    line-height: 1.8;
}


/* ABOUT */

.about-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8%;
    align-items: center;
    background: white;
}

.about-image {
    min-height: 430px;
    background: #eee8df;
    overflow: hidden;
}

.about-image-inner {
    height: 430px;
    background:
        url("https://images.unsplash.com/photo-1611652022419-a9419f74343d?auto=format&fit=crop&w=1100&q=85")
        center / cover no-repeat;
    transition: transform .6s;
}

.about-image:hover .about-image-inner {
    transform: scale(1.04);
}

.about-content h2 {
    font-size: clamp(32px, 4vw, 45px);
}

.about-content > p:not(.eyebrow) {
    color: var(--muted);
    font-size: 13px;
    line-height: 2;
    margin: 22px 0;
}

.text-link {
    display: inline-block;
    color: var(--gold);
    font-size: 10px;
    letter-spacing: 1.5px;
    font-weight: 600;
    border-bottom: 1px solid var(--gold);
    padding-bottom: 7px;
}


/* CONTACT */

.contact-section {
    text-align: center;
    background: #f8f5ef;
}

.contact-section h2 {
    max-width: 750px;
    margin: auto;
}

.contact-section > p:not(.eyebrow) {
    color: var(--muted);
    font-size: 12px;
    margin: 18px 0 28px;
}


/* FOOTER */

.site-footer {
    background: var(--black);
    color: #eee5d9;
    padding: 65px 8% 20px;
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    padding-bottom: 45px;
}

.footer-logo {
    color: white;
}

.footer-brand > p {
    color: #aaa198;
    font-size: 12px;
    line-height: 1.8;
    max-width: 300px;
    margin-top: 20px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-links h3 {
    color: var(--gold);
    font-size: 10px;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.footer-links a {
    font-size: 11px;
    color: #c5bcb1;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #39342d;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    color: #a69c90;
    font-size: 10px;
}


/* RESPONSIVE DESIGN */

@media (max-width: 1000px) {

    .category-grid {
        grid-template-columns: repeat(3, 1fr);
        row-gap: 35px;
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .category-circle {
        width: 125px;
        height: 125px;
    }

    .hero {
        background-position: 58% center;
    }

}


@media (max-width: 700px) {

    .header-inner {
        min-height: 75px;
    }

    .menu-toggle {
        display: block;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        padding: 20px 7%;
        flex-direction: column;
        align-items: flex-start;
        gap: 22px;
        border-top: 1px solid #eee;
    }

    .main-nav.active {
        display: flex;
    }

    .hero {
        height: 570px;
        background-position: 62% center;
    }

    .hero-overlay {
        background: linear-gradient(
            90deg,
            rgba(248, 235, 216, 0.72),
            rgba(248, 235, 216, 0.35) 60%,
            transparent
        );
    }

    .hero-content {
        padding: 30px 7%;
        max-width: 100%;
    }

    .hero h1 {
        font-size: 46px;
    }

    .hero-description {
        max-width: 300px;
    }

    .hero-caption {
        left: 7%;
        font-size: 8px;
    }

    .section-padding {
        padding: 65px 6%;
    }

    .category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 25px 10px;
    }

    .category-circle {
        width: 95px;
        height: 95px;
    }

    .category-item h3 {
        font-size: 12px;
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .product-image-wrap {
        height: 210px;
    }

    .product-info {
        padding: 13px 10px;
    }

    .product-info h3 {
        font-size: 14px;
    }

    .view-product {
        display: none;
    }

    .editorial-banner {
        min-height: 420px;
        background-position: 60% center;
    }

    .editorial-content {
        padding: 45px 7%;
    }

    .gold-rate-grid {
        grid-template-columns: 1fr;
    }

    .about-section {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .about-image,
    .about-image-inner {
        min-height: 330px;
        height: 330px;
    }

    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 35px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        flex-direction: column;
    }

}


@media (max-width: 380px) {

    .category-circle {
        width: 80px;
        height: 80px;
    }

    .product-image-wrap {
        height: 175px;
    }

    .hero h1 {
        font-size: 39px;
    }

}
/* =================================
   GLORIOUS COLLECTIONS
================================= */

.collections {
    background: #faf8f4;
}

.category-grid {
    max-width: 1250px;
    margin: 40px auto 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
}

.category-item {
    text-align: center;
    display: block;
    text-decoration: none;
}

.category-circle {
    width: 100%;
    height: 270px;
    border-radius: 0;
    overflow: hidden;
    background: #eee8df;
}

.category-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s ease;
}

.category-item:hover .category-circle img {
    transform: scale(1.07);
}

.category-item h3 {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    margin-top: 18px;
    color: #30251b;
}

.category-explore {
    display: inline-block;
    margin-top: 10px;
    color: #a98249;
    font-size: 9px;
    letter-spacing: 1.5px;
}

.category-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #a98249;
}

@media (max-width: 700px) {

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 22px 12px;
    }

    .category-circle {
        height: 180px;
    }

    .category-item h3 {
        font-size: 17px;
    }

}
/* PRODUCT SEARCH */

.product-search-section {
    padding: 55px 20px 20px;
    background: #faf8f4;
    text-align: center;
}

.product-search-box {
    max-width: 550px;
    margin: 30px auto 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    background: white;
    border: 1px solid #d8c6a5;
    border-radius: 3px;
}

.product-search-box span {
    font-size: 25px;
    color: #a98249;
}

.product-search-box input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-size: 15px;
    color: #30251b;
}

.product-search-box input::placeholder {
    color: #999;
}

.search-message {
    min-height: 24px;
    color: #a34b36;
    font-size: 14px;
    margin-top: 12px;
}

@media (max-width: 600px) {

    .product-search-section {
        padding: 35px 15px 15px;
    }

    .product-search-box {
        padding: 12px 15px;
    }

    .product-search-box input {
        font-size: 13px;
    }

}
/* =================================
   CASTLE JEWELLERY PRODUCT SEARCH
================================= */

.product-search-section {
    padding: 55px 20px 35px;
    background: #faf8f4;
    text-align: center;
}

.product-search-section .section-heading {
    text-align: center;
}

.product-search-box {
    width: 100%;
    max-width: 550px;
    margin: 30px auto 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    background: #ffffff;
    border: 1px solid #d8c6a5;
    border-radius: 3px;
    box-sizing: border-box;
}

.product-search-box span {
    font-size: 25px;
    color: #a98249;
    flex-shrink: 0;
}

.product-search-box input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-size: 15px;
    color: #30251b;
    font-family: inherit;
}

.product-search-box input::placeholder {
    color: #999;
}

.search-message {
    min-height: 24px;
    color: #a34b36;
    font-size: 14px;
    margin-top: 12px;
}

@media (max-width: 600px) {
    .product-search-section {
        padding: 35px 15px 25px;
    }

    .product-search-box {
        padding: 12px 15px;
    }

    .product-search-box input {
        font-size: 13px;
    }
}