:root {
    --primary-background: #0a0a0a;
    --secondary-background: #141414;
    --primary-text: #f4f4f0;
    --secondary-text: #a0a0a0;
    --accent-gold: #d4af37;
    --warm-tone: #b8860b;
    --font-headings: "Playfair Display", serif;
    --font-body: "Montserrat", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--primary-background);
    color: var(--primary-text);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-headings);
    font-weight: 700;
    margin: 0;
    color: inherit;
}

a,
a:hover,
a:focus {
    text-decoration: none;
    transition: color 0.3s ease, border-color 0.3s ease;
    color: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
    padding: 0;
}

ul,
ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.focus-visible:focus {
    outline: 2px solid var(--accent-gold);
    outline-offset: 2px;
}

@media (max-width: 768px) {
    h1 {
        font-size: clamp(2rem, 10vw, 3rem);
    }

    h2 {
        font-size: clamp(1.5rem, 8vw, 2.25rem);
    }

    h3 {
        font-size: clamp(1.25rem, 6vw, 1.75rem);
    }

    p,
    a,
    span,
    li,
    div {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
}

@media (max-width: 640px) {
    body {
        font-size: 14px;
    }
}

/* ===== header_section ===== */
#header {
    width: 100%;
}

.js-mobile-menu {
    z-index: 100;
    transition: all 0.3s ease-in-out;
}

/* ===== hero_section ===== */
#hero {
    position: relative;
}

.brush-texture {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    pointer-events: none;
}

h1 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* ===== about_gallery ===== */
#about {
    width: 100%;
    background-color: var(--primary-background);
}

.about-card {
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.js-fade-in {
    transition: all 1s ease-out;
}

.js-fade-in.opacity-100 {
    opacity: 1;
    transform: translateY(0);
}

/* ===== product_grid ===== */
#catalog {
    background-color: var(--primary-background);
    width: 100%
}

.product-frame {
    border: 12px solid var(--accent-gold);
    position: relative;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1)
}

.product-frame:hover {
    transform: scale(1.03)
}

.product-frame::before {
    content: "";
    position: absolute;
    inset: -4px;
    border: 1px solid var(--warm-tone);
    pointer-events: none
}

.product-frame::after {
    content: "";
    position: absolute;
    inset: 4px;
    border: 1px solid rgba(0, 0, 0, 0.3);
    pointer-events: none
}

.card-custom {
    background-color: var(--secondary-background);
    border: 4px solid var(--accent-gold);
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5)
}

.card-custom:hover {
    border-color: var(--warm-tone);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.15)
}

/* ===== artist_story ===== */
#history {
    position: relative;
}

.font-serif {
    font-family: 'Playfair Display', serif;
}

/* ===== execution_options ===== */
#materials {
    width: 100%;
}

#materials .card {
    background-color: var(--primary-background);
}

#materials .badge-outline {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

#materials .text-accent-gold {
    color: var(--accent-gold);
}

#materials .text-secondary-text {
    color: var(--secondary-text);
}

#materials .text-primary-text {
    color: var(--primary-text);
}

/* ===== creation_process ===== */
.js-process-card {
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.js-process-card.is-visible {
    transform: translateY(0);
    opacity: 1;
}

/* ===== did_you_know ===== */
#facts {
    position: relative;
    overflow: hidden;
}

.js-fact-card {
    position: relative;
    overflow: hidden;
}

.js-fact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent-gold);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.js-fact-card:hover::before {
    opacity: 1;
}

/* ===== buyer_guide ===== */
.js-guide-card {
    opacity: 0;
    transform: translateY(30px);
}

/* ===== faq_section ===== */
#faq .collapse-plus .collapse-title:after {
    color: var(--accent-gold);
}

#faq .js-faq-item {
    transition: border-color 0.3s ease;
}

#faq .js-faq-input:checked~.collapse-title {
    color: var(--accent-gold);
}

/* ===== shipping_info ===== */
#delivery {
    background-color: var(--secondary-background);
}

/* ===== footer_section ===== */
#footer {
    width: 100%;
    position: relative;
}

#footer a {
    text-decoration: none;
}

#footer i {
    color: var(--accent-gold);
}

#header span,
#footer span,
#delivery a{
    font-size: clamp(15px,2vw,18px) !important;
}