/* ── Vazirmatn Font ─────────────────────────────────────────────────────────── */
@font-face {
    font-family: 'Vazirmatn';
    src: url('/assets/fonts/Vazirmatn-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Vazirmatn';
    src: url('/assets/fonts/Vazirmatn-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Vazirmatn';
    src: url('/assets/fonts/Vazirmatn-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ── Design Tokens ─────────────────────────────────────────────────────────── */
:root {
    --bg-deep:     #EFE0C4;
    --bg-primary:  #F5E6CA;
    --bg-secondary:#FFF8EA;
    --bg-card:     #FFFDF7;
    --bg-card-alt: rgba(255, 253, 247, 0.94);
    --gold:        #D4AF37;
    --gold-on-dark:#FFD700;
    --gold-light:  #E9CA67;
    --gold-dark:   #8F6D16;
    --gold-text:   #6F5410;  /* gold used as TEXT on the light theme (AA on cream) */
    --gold-subtle: rgba(212, 175, 55, 0.16);
    --gold-border: rgba(143, 109, 22, 0.24);
    --gold-glow:   0 10px 28px rgba(143, 109, 22, 0.16);
    --gold-glow-lg:0 18px 46px rgba(143, 109, 22, 0.22);
    --text-white:  #050505;
    --text-silver: #050505;
    --text-muted:  #111111;
    --radius-sm:   6px;
    --radius:      12px;
    --radius-lg:   20px;
    --transition:  0.22s ease;
    --header-h:    72px;
    --fs-xs:       0.75rem;
    --fs-sm:       0.875rem;
    --fs-base:     1rem;
    --fs-md:       1.125rem;
    --fs-lg:       1.25rem;
    --fs-xl:       1.5rem;
    --fs-2xl:      clamp(1.5rem, 3.5vw, 2.125rem);
    --fs-3xl:      clamp(1.875rem, 5vw, 3.25rem);
}

/* ── Reset ─────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: 'Vazirmatn', system-ui, sans-serif;
    background: radial-gradient(circle at 12% -10%, rgba(212,175,55,.18), transparent 32%), var(--bg-primary);
    color: var(--text-silver);
    direction: rtl;
    line-height: 1.9;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
.raymah-splash {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at 50% 36%, rgba(212,175,55,.2), transparent 34%), #050505;
    transition: opacity .45s ease, visibility .45s ease;
}
.raymah-splash.is-hidden {
    opacity: 0;
    visibility: hidden;
}
.raymah-splash-card {
    display: grid;
    gap: 14px;
    justify-items: center;
    color: var(--gold-on-dark);
    font-weight: 700;
}
.raymah-splash-card img {
    width: 132px;
    height: 132px;
    object-fit: contain;
    filter: drop-shadow(0 18px 34px rgba(212,175,55,.32));
}
h1, h2, h3, h4, h5, h6 {
    line-height: 1.45;
    letter-spacing: 0;
    text-wrap: balance;
}
p { text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    direction: rtl;
}
ul { list-style: none; }

/* ── Layout ────────────────────────────────────────────────────────────────── */
.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}
.container-sm {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Utility ───────────────────────────────────────────────────────────────── */
.gold          { color: var(--gold-text); }
.text-white    { color: var(--text-white); }
.text-muted    { color: var(--text-muted); }
.text-silver   { color: var(--text-silver); }
.fw-bold       { font-weight: 700; }
.fw-medium     { font-weight: 500; }
.text-center   { text-align: center; }
.mt-4  { margin-top: 1rem; }
.mt-8  { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mb-4  { margin-bottom: 1rem; }
.mb-8  { margin-bottom: 2rem; }
.d-flex       { display: flex; }
.align-center { align-items: center; }
.gap-2  { gap: 0.5rem; }
.gap-4  { gap: 1rem; }

/* ── Buttons ───────────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.9375rem;
    cursor: pointer;
    border: none;
    transition: all var(--transition);
    white-space: nowrap;
    text-decoration: none;
}
.btn-gold {
    background: var(--gold);
    color: #241A0D;
    box-shadow: 0 2px 12px rgba(212,175,55,0.35);
}
.btn-gold:hover, .btn-gold:focus-visible {
    background: var(--gold-light);
    box-shadow: 0 4px 20px rgba(212,175,55,0.5);
    transform: translateY(-1px);
}
.btn-ghost {
    background: transparent;
    color: var(--gold-text);
    border: 1.5px solid var(--gold);
}
.btn-ghost:hover, .btn-ghost:focus-visible {
    background: var(--gold-subtle);
    transform: translateY(-1px);
}
.btn-dark {
    background: var(--bg-card);
    color: var(--text-silver);
    border: 1px solid var(--gold-border);
}
.btn-dark:hover {
    border-color: var(--gold);
    color: var(--gold-text);
}
.btn-sm { padding: 8px 18px; font-size: 0.875rem; }
.btn-lg { padding: 15px 36px; font-size: 1rem; }
.btn-full { width: 100%; justify-content: center; }

/* ── Header ────────────────────────────────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-h);
    background: rgba(255,248,234,0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--gold-border);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-h);
    gap: 20px;
}
.header-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.header-logo-img {
    width: 54px;
    height: 54px;
    object-fit: contain;
    flex-shrink: 0;
}
.logo-mark {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: #241A0D;
}
.logo-text {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-white);
    letter-spacing: 0;
}
.logo-text span {
    display: block;
    font-size: 0.65rem;
    font-weight: 400;
    color: var(--text-muted);
    letter-spacing: 0.01em;
    line-height: 1.4;
}
.header-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 1;
    justify-content: center;
}
.header-nav a {
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    color: var(--text-silver);
    transition: all var(--transition);
    white-space: nowrap;
}
.header-nav a:hover,
.header-nav a.active {
    color: var(--gold-text);
    background: var(--gold-subtle);
}
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.header-phone {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--gold-text);
    direction: ltr;
}
.header-phone svg { flex-shrink: 0; }
.header-cart-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    border: 1px solid var(--gold-border);
    color: var(--text-white);
    cursor: pointer;
    transition: all var(--transition);
}
.header-cart-btn:hover { color: var(--gold-text); border-color: var(--gold); }
.cart-badge {
    position: absolute;
    top: -6px;
    left: -6px;
    background: var(--gold);
    color: #241A0D;
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    border: 1px solid var(--gold-border);
    cursor: pointer;
    color: var(--text-silver);
}
.hamburger:hover { color: var(--gold-text); border-color: var(--gold); }

/* Mobile nav overlay */
.mobile-nav {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(255,248,234,0.98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 40px 24px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-silver);
    padding: 14px 32px;
    border-radius: var(--radius);
    width: 100%;
    text-align: center;
    transition: all var(--transition);
    border: 1px solid transparent;
}
.mobile-nav a:hover, .mobile-nav a.active {
    color: var(--gold-text);
    background: var(--gold-subtle);
    border-color: var(--gold-border);
}
.mobile-nav-close {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--gold-border);
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition);
}
.mobile-nav-close:hover { color: var(--gold-text); border-color: var(--gold); }
.mobile-nav-logo {
    position: absolute;
    top: 24px;
    right: 24px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gold-text);
}

/* ── Hero Section ──────────────────────────────────────────────────────────── */
.hero {
    position: relative;
    min-height: calc(100vh - var(--header-h));
    min-height: 620px;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(255,253,247,0.88) 0%,
        rgba(245,230,202,0.74) 52%,
        rgba(239,224,196,0.82) 100%
    );
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 620px;
}
.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gold-subtle);
    border: 1px solid var(--gold-border);
    border-radius: 100px;
    padding: 6px 16px;
    font-size: 0.8rem;
    color: var(--gold-text);
    margin-bottom: 24px;
}
.hero-title {
    font-size: var(--fs-3xl);
    font-weight: 700;
    color: var(--text-white);
    line-height: 1.45;
    margin-bottom: 16px;
}
.hero-title .gold-line {
    color: var(--gold-text);
    display: block;
}
.hero-sub {
    font-size: var(--fs-base);
    color: var(--text-silver);
    margin-bottom: 36px;
    max-width: 480px;
    line-height: 1.95;
}
.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}
.hero-stats {
    position: absolute;
    bottom: 36px;
    left: 0;
    right: 0;
    z-index: 2;
}
.hero-stats-inner {
    display: flex;
    gap: 24px;
    justify-content: flex-end;
}
.hero-stat-card {
    background: rgba(255,253,247,0.84);
    backdrop-filter: blur(10px);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius);
    padding: 16px 24px;
    text-align: center;
    min-width: 100px;
}
.hero-stat-num {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold-text);
    line-height: 1;
    margin-bottom: 4px;
}
.hero-stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ── Price Ticker ──────────────────────────────────────────────────────────── */
.price-ticker {
    background: var(--bg-deep);
    border-top: 1px solid var(--gold-border);
    border-bottom: 1px solid var(--gold-border);
    padding: 0;
    overflow: hidden;
}
.ticker-header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--gold-border);
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.ticker-label {
    font-size: 0.8rem;
    color: var(--gold-text);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}
.ticker-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}
.ticker-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    border: none;
}
.ticker-cell {
    padding: 20px 24px;
    border-left: 1px solid var(--gold-border);
    transition: background var(--transition);
}
.ticker-cell:last-child { border-left: none; }
.ticker-cell:hover { background: var(--gold-subtle); }
.ticker-name {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}
.ticker-price {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 4px;
}
.ticker-unit {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}
.ticker-change {
    font-size: 0.78rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 8px;
    border-radius: 100px;
}
.ticker-change.up   { color: #22c55e; background: rgba(34,197,94,0.12); }
.ticker-change.down { color: #ef4444; background: rgba(239,68,68,0.12); }
.ticker-change.up::before   { content: '▲ '; font-size: 0.6em; }
.ticker-change.down::before { content: '▼ '; font-size: 0.6em; }
.price-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.live-board {
    margin-bottom: 32px;
    padding: clamp(20px, 4vw, 32px);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, #050505 0%, #16120b 54%, #2a210d 100%);
    color: var(--gold-on-dark);
    box-shadow: 0 1px 2px rgba(143,109,22,.10), 0 12px 28px rgba(143,109,22,.16), 0 28px 64px rgba(143,109,22,.18);
}
.live-board :where(.section-eyebrow, h2, h3, div, span, strong) {
    color: inherit;
}
.live-board-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}
.live-board-title {
    font-size: var(--fs-2xl);
    line-height: 1.45;
    margin: 0;
}
.live-board-meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    background: rgba(255, 215, 0, .09);
    border: 1px solid rgba(255, 215, 0, .22);
    font-size: var(--fs-sm);
    white-space: nowrap;
}
.live-board-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}
.live-board-card {
    min-width: 0;
    padding: 18px;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 215, 0, .2);
    background: rgba(255, 248, 234, .06);
    transition: transform var(--transition), border-color var(--transition), background var(--transition);
}
.live-board-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 215, 0, .5);
    background: rgba(255, 248, 234, .1);
}
.live-board-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}
.live-board-card h3 {
    font-size: var(--fs-sm);
    line-height: 1.6;
    margin: 0;
}
.live-board-price {
    font-size: clamp(1.25rem, 2.2vw, 1.75rem);
    line-height: 1.25;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    margin-bottom: 4px;
}
.live-board-unit {
    font-size: var(--fs-xs);
    opacity: .82;
    margin-bottom: 14px;
}
.sparkline {
    height: 42px;
    display: flex;
    align-items: end;
    gap: 4px;
}
.sparkline span {
    flex: 1;
    height: var(--h);
    min-height: 8px;
    border-radius: 999px 999px 3px 3px;
    background: currentColor;
    opacity: .9;
}
.sparkline.up { color: #22c55e; }
.sparkline.down { color: #ef4444; }
.gram-converter{min-width:0}

/* ── Section Base ──────────────────────────────────────────────────────────── */
.section {
    padding: clamp(72px, 10vw, 112px) 0;
}
.section-header {
    margin-bottom: clamp(32px, 5vw, 56px);
}
.section-eyebrow {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--gold-text);
    letter-spacing: 0;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.section-eyebrow::before {
    content: '';
    display: block;
    width: 24px;
    height: 2px;
    background: var(--gold);
    border-radius: 2px;
}
.section-title {
    font-size: var(--fs-2xl);
    font-weight: 700;
    color: var(--text-white);
    line-height: 1.45;
    margin-bottom: 12px;
}
.section-subtitle {
    font-size: var(--fs-base);
    color: var(--text-muted);
    max-width: 560px;
    line-height: 1.95;
}
.section-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gold-text);
    font-size: 0.9rem;
    font-weight: 500;
    transition: gap var(--transition);
    margin-top: 12px;
}
.section-more:hover { gap: 12px; }

/* ── Services Cards ────────────────────────────────────────────────────────── */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.service-card {
    background: var(--bg-card);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius);
    padding: 32px 24px;
    transition: all var(--transition);
    cursor: default;
}
.service-card:hover {
    border-color: var(--gold);
    box-shadow: var(--gold-glow);
    transform: translateY(-4px);
}
.service-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--gold-subtle), rgba(212,175,55,0.05));
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-text);
    margin-bottom: 20px;
}
.service-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 8px;
}
.service-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ── Products Grid ─────────────────────────────────────────────────────────── */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.product-card {
    background: var(--bg-card);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    border-color: var(--gold);
    box-shadow: var(--gold-glow);
    transform: translateY(-4px);
}
.product-img-wrap {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--bg-secondary);
}
.product-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.product-card:hover .product-img-wrap img {
    transform: scale(1.05);
}
.product-cat-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255,253,247,0.88);
    backdrop-filter: blur(6px);
    border: 1px solid var(--gold-border);
    color: var(--gold-text);
    font-size: 0.7rem;
    padding: 3px 10px;
    border-radius: 100px;
}
.product-body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.product-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-white);
    margin-bottom: 8px;
    line-height: 1.5;
}
.product-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gold-text);
    margin-bottom: 14px;
    margin-top: auto;
}
.product-add-btn {
    width: 100%;
    padding: 10px;
    background: var(--gold-subtle);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-sm);
    color: var(--gold-text);
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}
.product-add-btn:hover {
    background: var(--gold);
    color: #241A0D;
    border-color: var(--gold);
}

/* ── About Teaser ──────────────────────────────────────────────────────────── */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}
.about-text-side {}
.about-img-side {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/3;
    box-shadow: var(--gold-glow-lg);
    border: 1px solid var(--gold-border);
}
.about-img-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.about-img-badge {
    position: absolute;
    bottom: 24px;
    right: 24px;
    background: rgba(255,253,247,0.9);
    backdrop-filter: blur(10px);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius);
    padding: 16px 20px;
    text-align: center;
}
.about-badge-num {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gold-text);
    line-height: 1;
    margin-bottom: 4px;
}
.about-badge-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}
.about-features {
    margin: 28px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.about-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--text-silver);
}
.about-feature-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--gold-subtle);
    border: 1px solid var(--gold-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-text);
    flex-shrink: 0;
}

/* ── Blog Cards ─────────────────────────────────────────────────────────────── */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all var(--transition);
}
.blog-card:hover {
    border-color: var(--gold);
    box-shadow: var(--gold-glow);
    transform: translateY(-3px);
}
.blog-img {
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--bg-secondary);
}
.blog-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.blog-card:hover .blog-img img { transform: scale(1.04); }
.blog-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.blog-date {
    font-size: 0.75rem;
    color: var(--gold-text);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.blog-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-white);
    line-height: 1.5;
    margin-bottom: 10px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.blog-excerpt {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 16px;
}
.blog-read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--gold-text);
    font-weight: 500;
    transition: gap var(--transition);
}
.blog-read-more:hover { gap: 10px; }

/* ── Trust Strip ───────────────────────────────────────────────────────────── */
.trust-strip {
    background: var(--bg-deep);
    border-top: 1px solid var(--gold-border);
    border-bottom: 1px solid var(--gold-border);
    padding: 48px 0;
}
.trust-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}
.trust-badge {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bg-card);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius);
    padding: 16px 24px;
    flex: 1;
    min-width: 200px;
    transition: all var(--transition);
}
.trust-badge:hover {
    border-color: var(--gold);
    box-shadow: var(--gold-glow);
}
.trust-badge-icon {
    width: 48px;
    height: 48px;
    background: var(--gold-subtle);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-text);
    flex-shrink: 0;
}
.trust-badge-info {}
.trust-badge-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 2px;
}
.trust-badge-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ── Footer ────────────────────────────────────────────────────────────────── */
.site-footer {
    background: var(--bg-deep);
    border-top: 1px solid var(--gold-border);
    padding: 64px 0 32px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 48px;
    margin-bottom: 48px;
}
.footer-brand .logo-text { font-size: 1.5rem; }
.footer-brand p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 16px;
    line-height: 1.8;
    max-width: 280px;
}
.footer-col-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--gold-border);
}
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-links a {
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: color var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}
.footer-links a:hover { color: var(--gold-text); }
.footer-links a::before {
    content: '›';
    color: var(--gold-text);
    font-size: 1.1rem;
}
.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 14px;
}
.footer-contact-item svg { color: var(--gold-text); flex-shrink: 0; margin-top: 2px; }
.footer-phone-num {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--gold-text);
    direction: ltr;
    display: inline-block;
}
.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}
.footer-social a {
    min-height: 40px;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    border: 1px solid var(--gold-border);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: var(--fs-sm);
    font-weight: 700;
    transition: all var(--transition);
}
.footer-social a:hover {
    color: var(--gold-text);
    border-color: var(--gold);
    background: var(--gold-subtle);
}
.footer-bottom {
    border-top: 1px solid var(--gold-border);
    padding-top: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.footer-copy {
    font-size: 0.8rem;
    color: var(--text-muted);
}
.footer-rights {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ── Card base ──────────────────────────────────────────────────────────────── */
.card {
    background: var(--bg-card);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius);
}

/* ── Section alt bg ─────────────────────────────────────────────────────────── */
.section-dark { background: var(--bg-deep); }
.section-alt  { background: var(--bg-secondary); }

/* Requested contrast pass: bright/gold surfaces use black text; black panels use gold text. */
.site-header,
.mobile-nav,
.hero,
.price-ticker,
.section,
.site-footer,
.page-hero,
.card,
.auth-page {
    color: #000000;
}
.site-header :where(.gold, .section-eyebrow, .section-more),
.mobile-nav :where(.gold, .section-eyebrow, .section-more),
.hero :where(.gold, .hero-tag, .gold-line, .section-eyebrow, .section-more),
.price-ticker :where(.gold, .ticker-label, .section-eyebrow, .section-more),
.section:not(.section-black) :where(.gold, .section-eyebrow, .section-more),
.site-footer :where(.gold, .section-eyebrow, .section-more),
.page-hero :where(.gold, .section-eyebrow, .section-more),
.card :where(.gold, .section-eyebrow, .section-more) {
    color: #000000;
}
.section:not(.section-black) [style*="color:var(--gold)"],
.page-hero [style*="color:var(--gold)"],
.site-footer [style*="color:var(--gold)"],
.price-ticker [style*="color:var(--gold)"],
.card [style*="color:var(--gold)"] {
    color: #000000 !important;
}
.section-black {
    background: #050505;
    color: var(--gold-on-dark);
}
.section-black :where(h1, h2, h3, h4, h5, h6, p, a, span, div, svg, .section-title, .section-eyebrow, .section-subtitle, .text-muted, .text-white, .text-silver) {
    color: var(--gold-on-dark) !important;
}

/* ── Gold divider ─────────────────────────────────────────────────────────── */
.gold-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 0;
    border: none;
}

/* ── Forms ────────────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-silver);
    margin-bottom: 8px;
}
.form-control {
    width: 100%;
    padding: 11px 14px;
    background: var(--bg-card);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-sm);
    color: var(--text-white);
    font-size: 0.9rem;
    transition: border-color var(--transition);
    outline: none;
}
.form-control:focus { border-color: var(--gold); }
.form-control::placeholder { color: var(--text-muted); }

/* ── Auth pages ─────────────────────────────────────────────────────────────── */
.auth-page {
    min-height: calc(100vh - var(--header-h));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    background: var(--bg-primary);
}
.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    width: 100%;
    max-width: 440px;
    box-shadow: var(--gold-glow);
}
.auth-logo { text-align: center; margin-bottom: 32px; }
.auth-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-white);
    text-align: center;
    margin-bottom: 8px;
}
.auth-sub {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 32px;
}
.auth-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.auth-footer a { color: var(--gold-text); font-weight: 500; }

/* ── Page header (inner pages) ──────────────────────────────────────────────── */
.page-hero {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--gold-border);
    padding: clamp(48px, 8vw, 72px) 0;
}
.page-hero-title {
    font-size: var(--fs-2xl);
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 8px;
    line-height: 1.45;
}
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}
.breadcrumb a { color: var(--gold-text); transition: opacity var(--transition); }
.breadcrumb a:hover { opacity: 0.8; }
.breadcrumb-sep { font-size: 0.7rem; }

/* ── Alert / notice ─────────────────────────────────────────────────────────── */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    margin-bottom: 20px;
    border: 1px solid transparent;
}
.alert-error   { background: rgba(239,68,68,0.1);  border-color: rgba(239,68,68,0.3);  color: #fca5a5; }
.alert-success { background: rgba(34,197,94,0.1);  border-color: rgba(34,197,94,0.3);  color: #86efac; }
.alert-info    { background: var(--gold-subtle);   border-color: var(--gold-border);   color: var(--gold-text); }

/* ── Empty / stub page ──────────────────────────────────────────────────────── */
.coming-soon {
    min-height: calc(100vh - var(--header-h) - 200px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 64px 24px;
    gap: 16px;
}
.coming-soon-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gold-subtle);
    border: 1px solid var(--gold-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-text);
    margin-bottom: 8px;
}
.coming-soon h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-white);
}
.coming-soon p {
    color: var(--text-muted);
    max-width: 400px;
}

/* ── Scroll-to-top ─────────────────────────────────────────────────────────── */
.scroll-top {
    position: fixed;
    bottom: 28px;
    left: 28px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gold);
    color: #241A0D;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(212,175,55,0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
    z-index: 500;
    border: none;
}
.scroll-top.visible { opacity: 1; pointer-events: auto; }
.scroll-top:hover { background: var(--gold-light); }

/* ── Melted gold calculator ───────────────────────────────────────────────── */
.melted-calculator-panel {
    box-shadow: var(--gold-glow);
}
.melted-rate-note {
    margin-top: 10px;
    color: #000000;
    font-size: var(--fs-xs);
}
.melted-result {
    margin-top: 14px;
    padding: 14px;
    border-radius: var(--radius-sm);
    background: var(--gold-subtle);
    border: 1px solid var(--gold-border);
    color: #000000;
    font-variant-numeric: tabular-nums;
    display: grid;
    gap: 8px;
}
.melted-result > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}
.melted-result span {
    font-size: var(--fs-xs);
    color: #000000;
}
.melted-result strong {
    font-size: var(--fs-sm);
    color: #000000;
    font-weight: 700;
    white-space: nowrap;
}
.melted-result > div:last-child {
    border-top: 1px solid var(--gold-border);
    padding-top: 8px;
}
.melted-result > div:last-child strong {
    font-size: var(--fs-lg);
}
.melted-buy-btn {
    margin-top: 14px;
}
.gold-melt-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, .95fr);
    gap: 40px;
    align-items: center;
}
.gold-melt-card {
    padding: 34px;
}
.gold-melt-title {
    font-size: var(--fs-2xl);
    line-height: 1.55;
    color: var(--text-white);
    margin: 8px 0 10px;
}
.gold-melt-copy {
    color: var(--text-muted);
    line-height: 1.9;
    margin: 0 0 24px;
    max-width: 62ch;
}
.gold-melt-form-row {
    display: flex;
    gap: 10px;
    align-items: center;
}
.gold-melt-form-row .form-control,
.gold-melt-form-row .btn {
    min-height: 48px;
}
.gold-melt-form-row .btn {
    white-space: nowrap;
}
.gold-melt-visual {
    border-radius: var(--radius-lg);
    border: 1px solid var(--gold-border);
    background: rgba(255,255,255,.03);
    padding: 18px;
    box-shadow: var(--gold-glow-lg);
}
.gold-melt-visual img {
    width: 100%;
    max-height: 460px;
    object-fit: contain;
    border-radius: var(--radius);
    background: #050505;
}
.gold-melt-source {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: var(--fs-xs);
    line-height: 1.8;
    margin-top: 14px;
}
.gold-melt-source svg {
    color: var(--gold-text);
    flex-shrink: 0;
}
.buy-modal[hidden] {
    display: none;
}
.buy-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: grid;
    place-items: center;
    padding: 24px;
}
.buy-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
}
.buy-modal-content {
    position: relative;
    z-index: 1;
    width: min(760px, 100%);
    max-height: calc(100vh - 48px);
    overflow: auto;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 215, 0, 0.55);
    background: #050505;
    color: var(--gold-on-dark);
    padding: 24px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    outline: none;
}
.buy-modal-content h2,
.buy-modal-content p {
    color: var(--gold-on-dark);
}
.buy-modal-content h2 {
    font-size: var(--fs-lg);
    margin-bottom: 16px;
}
.buy-modal-content img {
    width: 100%;
    max-height: 58vh;
    object-fit: contain;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 215, 0, 0.28);
    background: #050505;
}
.buy-modal-content p {
    margin-top: 16px;
    font-size: var(--fs-base);
    font-weight: 700;
    line-height: 1.9;
}
.buy-modal-close {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 215, 0, 0.45);
    background: #050505;
    color: var(--gold-on-dark);
    cursor: pointer;
}
.buy-modal-close:hover,
.buy-modal-close:focus-visible {
    background: rgba(255, 215, 0, 0.12);
}

/* ── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 1180px) {
    .header-phone { display: none; }
    .header-nav a { padding-inline: 9px; font-size: .84rem; }
}

@media (max-width: 1024px) {
    .services-grid   { grid-template-columns: repeat(2, 1fr); }
    .products-grid   { grid-template-columns: repeat(2, 1fr); }
    .footer-grid     { grid-template-columns: 1fr 1fr; gap: 32px; }
    .ticker-grid     { grid-template-columns: repeat(3, 1fr); }
    .ticker-cell:nth-child(4),
    .ticker-cell:nth-child(5),
    .ticker-cell:nth-child(6) { border-top: 1px solid var(--gold-border); }
    .price-cards-grid { grid-template-columns: repeat(2, 1fr); }
    .live-board-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .gold-melt-grid { grid-template-columns: 1fr; }
}

@media (max-width: 920px) {
    .header-nav { display: none; }
    .hamburger { display: flex; }
}

@media (max-width: 768px) {
    :root { --header-h: 60px; }
    .header-nav   { display: none; }
    .header-phone { display: none; }
    .hamburger    { display: flex; }
    .hero { min-height: 500px; }
    .hero-stats { display: none; }
    .about-grid  { grid-template-columns: 1fr; gap: 36px; }
    .about-img-side { order: -1; }
    .blog-grid   { grid-template-columns: 1fr; }
    .trust-inner { flex-direction: column; }
    .trust-badge { min-width: 100%; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .section { padding: 56px 0; }
    .header-logo-img { width: 46px; height: 46px; }
    .live-board-head { align-items: stretch; flex-direction: column; }
    .live-board-meta { justify-content: center; white-space: normal; }
    .live-board-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
    .ticker-grid { grid-template-columns: repeat(2, 1fr); }
    .ticker-cell:nth-child(n) { border-top: none; }
    .ticker-cell:nth-child(odd) { border-left: none; }
    .ticker-cell:nth-child(even) { border-left: 1px solid var(--gold-border); }
    .ticker-cell:nth-child(3),
    .ticker-cell:nth-child(4),
    .ticker-cell:nth-child(5),
    .ticker-cell:nth-child(6) { border-top: 1px solid var(--gold-border); }
    .price-cards-grid { grid-template-columns: 1fr; }
    .gram-converter-grid{grid-template-columns:1fr!important}
    .gram-converter > div{flex-wrap:wrap}
    .gram-converter .btn{width:100%;justify-content:center}
    .live-board-grid { grid-template-columns: 1fr; }
    .gold-melt-card { padding: 24px; }
    .gold-melt-form-row { flex-direction: column; align-items: stretch; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .services-grid { grid-template-columns: 1fr; }
    .products-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .product-body { padding: 12px; }
    .product-name { font-size: 0.8rem; }
    .product-price { font-size: 0.9rem; }
    .btn-lg { padding: 12px 24px; }
    .hero-title { font-size: clamp(1.75rem, 9vw, 2.25rem); }
    .auth-card { padding: 32px 20px; }
    .section { padding: 44px 0; }
    .section-title { font-size: 1.35rem; }
}

/* No overflow at any width */
@media (max-width: 390px) {
    body { min-width: 320px; }
    .header-inner { gap: 10px; }
    .logo-text span { display: none; }
    .products-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; justify-content: center; }
}


/* ═══ #311 readability + logo fixes (2026-08-08) ═══ */
/* darken gold TEXT on light backgrounds so it is readable */
.footer-phone-num, .gold-line, .about-badge-num, .about-badge-label,
.btn-ghost, .btn-ghost.btn-sm, .header-cart-btn { color: #6f5410 !important; }
.btn-ghost, .btn-ghost.btn-sm { border-color: #6f5410 !important; }
.ticker-change.up { color: #157a3a !important; }
.ticker-change.down { color: #b3261e !important; }
/* enlarge the initial (splash) + header logo — customer request */
.raymah-splash-card img { width: 196px !important; height: 196px !important; }
.header-logo-img { width: 68px !important; height: 68px !important; }
@media (max-width: 640px){ .header-logo-img { width: 56px !important; height: 56px !important; } }


/* ═══ CR #852 — contrast + logo (2026-09-02) ═══ */
/* .section-black forces gold text on every descendant; buttons are the one
   place that breaks — a gold label on a gold button, and the dark #6f5410
   ghost label on a black panel. Restore per-button contrast. */
.section-black .btn-gold,
.section-black .btn-gold * { color: #241A0D !important; }
.section-black .btn-ghost,
.section-black .btn-ghost * { color: var(--gold-on-dark) !important; }
.section-black .btn-ghost { border-color: var(--gold-on-dark) !important; }
.section-black .btn-dark,
.section-black .btn-dark * { color: #241A0D !important; }

/* rising-price pill: #157a3a on the tinted pill measured 3.84 — below AA */
.ticker-change.up { color: #0D5C2B !important; }

/* splash logo: the customer reports it still reads too small under the glow */
.raymah-splash-card img {
    width: min(64vw, 300px) !important;
    height: min(64vw, 300px) !important;
    filter: drop-shadow(0 14px 26px rgba(212,175,55,.22));
}
/* CR #852 follow-up: the darker up/down colours are for LIGHT surfaces only.
   Inside the dark price board / black sections they must stay bright. */
.live-board .ticker-change.up,
.section-black .ticker-change.up   { color: #3DDC84 !important; }
.live-board .ticker-change.down,
.section-black .ticker-change.down { color: #FF6B6B !important; }
/* CR854: brand name inside the hero H1 for brand search.
   Deliberately NOT gold -- the standing complaint on this site is
   that it already reads too yellow. */
.hero-title .hero-brand{display:block;font-size:.46em;font-weight:600;letter-spacing:.03em;opacity:.93;margin-bottom:.28em;color:inherit}


/* ═══ CR #893 / #894 / #896 (2026-09-03) ═══ */

/* #896 — .hero-stats is position:absolute, full-width, z-index:2 and overlaps
   the lower two thirds of the hero buttons, so only their top edge could be
   clicked. Let clicks pass through the strip; keep the cards interactive. */
.hero-stats, .hero-stats-inner { pointer-events: none; }
.hero-stat-card { pointer-events: auto; }

/* #894 — darker hero overlay, light text on top of it */
.hero-overlay {
    background: linear-gradient(135deg,
        rgba(18,13,4,0.88) 0%,
        rgba(42,30,9,0.78) 52%,
        rgba(12,9,3,0.90) 100%) !important;
}
.hero .hero-title,
.hero .hero-title .hero-brand { color: #FFFFFF !important; }
.hero .hero-sub { color: rgba(255,255,255,0.94) !important; }
.hero .hero-title .gold-line { color: var(--gold-on-dark) !important; }
.hero .hero-tag {
    background: rgba(255,255,255,0.12) !important;
    border-color: rgba(255,215,0,0.55) !important;
}
.hero .hero-tag, .hero .hero-tag * { color: #FFE9A8 !important; }
.hero .btn-ghost, .hero .btn-ghost * { color: var(--gold-on-dark) !important; }
.hero .btn-ghost { border-color: var(--gold-on-dark) !important; }

/* #893 — larger, more prominent header logo */
.header-logo-img {
    width: 88px !important;
    height: 88px !important;
    filter: drop-shadow(0 3px 8px rgba(0,0,0,.28));
}
@media (max-width: 640px) {
    .header-logo-img { width: 64px !important; height: 64px !important; }
}
