/*
Theme Name: diamonds.com.lb
Theme URI: https://diamonds.com.lb
Description: Editorial child theme for diamonds.com.lb — high-end Beirut jewelry house. Design tokens lifted from the original brand SPA.
Author: diamonds.com.lb
Version: 1.0.0
Template: astra
Text Domain: diamonds-com-lb
*/

/* ============================================================
   Design tokens — single source of truth, lifted from app.html
   ============================================================ */
:root {
    --ivory:     #F7F2EA;
    --ivory-2:   #EFE7DA;
    --paper:     #FBF8F2;
    --ink:       #1B1915;
    --ink-2:     #3A352C;
    --muted:     #675E4D;
    --line:      #E3DAC9;
    --line-2:    #D6C9AE;
    --gold:      #B08A46;
    --gold-2:    #6F5519;
    --gold-soft: #E7D6AE;
    --ruby:      #8C1F2B;
    --sapphire:  #1E3A66;
    --emerald:   #1F5A44;
    --shadow:    0 1px 0 rgba(27,25,21,.04), 0 24px 60px -30px rgba(27,25,21,.18);
    --max:       1400px;
    --gutter:    32px;
}

/* ============================================================
   Reset (light) + base typography
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.diamonds-com-lb {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: 'Jost', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 300;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--gold-2); }
button { font-family: inherit; cursor: pointer; }

::selection { background: var(--gold-soft); color: var(--ink); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 10px; }
::-webkit-scrollbar-track { background: transparent; }

/* Astra hides — neutralize page wrappers so our templates own layout */
body.diamonds-com-lb #page,
body.diamonds-com-lb #content,
body.diamonds-com-lb .site-content,
body.diamonds-com-lb .ast-container,
body.diamonds-com-lb #primary,
body.diamonds-com-lb .content-area,
body.diamonds-com-lb .site-main,
body.diamonds-com-lb #main,
body.diamonds-com-lb article,
body.diamonds-com-lb .post,
body.diamonds-com-lb .entry-content {
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}
body.diamonds-com-lb .entry-title,
body.diamonds-com-lb .ast-post-title,
body.diamonds-com-lb .page-title,
body.diamonds-com-lb #ast-scroll-top,
body.diamonds-com-lb .ast-secondary-header-wrap,
body.diamonds-com-lb .ast-primary-header-wrap,
body.diamonds-com-lb .ast-above-header-section,
body.diamonds-com-lb .ast-below-header-section { display: none !important; }

/* ============================================================
   Typography utilities
   ============================================================ */
.serif {
    font-family: 'Cormorant Garamond', 'Times New Roman', serif;
    font-weight: 400;
    letter-spacing: .01em;
}

.eyebrow {
    font-family: 'Jost', sans-serif;
    font-size: 11px;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 400;
}

h1, h2, h3, h4, h5 { font-family: 'Cormorant Garamond', serif; font-weight: 400; letter-spacing: .005em; line-height: 1.1; color: var(--ink); margin: 0; }
p { margin: 0 0 1em; }

/* ============================================================
   Layout primitives
   ============================================================ */
.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 880px; }
.container--wide { max-width: 1600px; }

.section { padding: 88px 0; }
.section--tight { padding: 56px 0; }
.section--ink { background: var(--ink); color: var(--ivory); }
.section--ivory { background: var(--ivory); }
.section--bordered { border-bottom: 1px solid var(--line); }

.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    border: 0; padding: 14px 28px; cursor: pointer;
    font-family: 'Jost', sans-serif; font-size: 12px;
    letter-spacing: .22em; text-transform: uppercase;
    background: var(--ink); color: var(--ivory);
    transition: background .2s ease, color .2s ease, transform .2s ease;
    text-decoration: none;
}
.btn:hover { background: var(--ink-2); color: var(--ivory); transform: translateY(-1px); }
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: var(--gold-2); color: var(--ivory); }
.btn--ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--ivory); }
.btn--ghost-gold { background: transparent; color: var(--gold-2); border: 1px solid var(--gold); }
.btn--ghost-gold:hover { background: var(--gold); color: var(--ivory); }
.btn--ivory { background: var(--ivory); color: var(--ink); }
.btn--ivory:hover { background: var(--ivory-2); }

/* ============================================================
   Section title (eyebrow + serif heading)
   ============================================================ */
.section-title { margin: 0 0 40px; }
.section-title__eyebrow { margin-bottom: 16px; }
.section-title__h { font-size: 44px; line-height: 1.1; }
.section-title--center { text-align: center; }
.section-title--center .section-title__eyebrow,
.section-title--center .section-title__h { display: block; }

@media (max-width: 768px) {
    .section-title__h { font-size: 32px; }
}

/* ============================================================
   Stone shape silhouettes (used in nav, hero, cards)
   ============================================================ */
.stone-shape { display: inline-block; color: var(--ink-2); transition: color .2s ease; }
.stone-shape:hover { color: var(--gold-2); }

/* ============================================================
   Announcement bar
   ============================================================ */
.announce {
    background: var(--ink); color: var(--ivory);
    text-align: center; padding: 9px 16px;
    font-size: 11px; letter-spacing: .24em; text-transform: uppercase;
}

/* ============================================================
   Site header
   ============================================================ */
.site-header {
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    position: sticky; top: 0; z-index: 50;
}
.site-header__top {
    max-width: var(--max); margin: 0 auto; padding: 18px var(--gutter);
    display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
}
.site-header__left,
.site-header__right { display: flex; align-items: center; gap: 22px; color: var(--ink-2); }
.site-header__right { justify-content: flex-end; }
.site-header__brand { display: flex; align-items: center; justify-content: center; color: var(--ink); text-decoration: none; }
.site-header__brand-img { display: block; height: 76px; width: auto; }

.linkbtn {
    background: none; border: 0; padding: 0;
    font-family: 'Jost', sans-serif; font-size: 12px; letter-spacing: .18em;
    text-transform: uppercase; color: inherit; cursor: pointer;
    display: inline-flex; align-items: center; gap: 6px;
    text-decoration: none;
}
.linkbtn:hover { color: var(--gold-2); }

.site-header__sep { width: 1px; height: 12px; background: var(--line); }

.site-nav { border-top: 1px solid var(--line); padding: 0 var(--gutter); }
.site-nav__list {
    max-width: var(--max); margin: 0 auto;
    display: flex; gap: 36px; justify-content: center;
    list-style: none; padding: 0;
}
.site-nav__list a {
    display: block; padding: 16px 4px;
    font-family: 'Cormorant Garamond', serif; font-size: 17px;
    color: var(--ink-2); letter-spacing: .04em;
    border-bottom: 1px solid transparent;
}
.site-nav__list a:hover,
.site-nav__list .current-menu-item > a { color: var(--ink); border-bottom-color: var(--gold); }

.site-header__menu-toggle { display: none; }
.site-nav-toggle, .site-nav__close, .site-nav-backdrop { display: none; }

@media (max-width: 880px) {
    .site-header__top { grid-template-columns: auto 1fr auto; padding: 14px 18px; }
    .site-header__left .linkbtn,
    .site-header__left .site-header__sep { display: none; }
    .site-header__brand-img { height: 52px; }

    .site-nav-toggle { display: inline-flex; }
    .site-nav {
        position: fixed; top: 0; left: 0; bottom: 0; width: min(82vw, 340px); max-width: 100%;
        background: #faf7f1; border-top: 0; border-right: 1px solid var(--line);
        padding: 0; z-index: 1200; transform: translateX(-100%);
        transition: transform .32s cubic-bezier(.4, 0, .2, 1); overflow-y: auto;
        box-shadow: 0 0 60px rgba(27, 25, 21, .22);
    }
    body.nav-open .site-nav { transform: translateX(0); }
    .site-nav__list {
        flex-direction: column; align-items: stretch; justify-content: flex-start;
        gap: 0; max-width: none; margin: 0; padding: 80px 0 24px;
    }
    .site-nav__list li { border-bottom: 1px solid var(--line); }
    .site-nav__list a { display: block; padding: 17px 28px; font-size: 19px; white-space: nowrap; border-bottom: 0; }
    .site-nav__list .current-menu-item > a { color: var(--gold-2); border-bottom: 0; }
    .site-nav__close { display: inline-flex; }
    .site-nav-backdrop {
        display: block; position: fixed; inset: 0; background: rgba(20, 18, 14, .45);
        z-index: 1100; opacity: 0; visibility: hidden; transition: opacity .3s;
    }
    body.nav-open .site-nav-backdrop { opacity: 1; visibility: visible; }
    body.nav-open { overflow: hidden; }
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer { margin-top: 96px; background: var(--ink); color: var(--ivory); padding: 60px var(--gutter) 32px; }
.site-footer__inner { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1.2fr repeat(7, 1fr); gap: 20px; }
.site-footer__brand { display: inline-block; }
.site-footer__brand-img { display: block; height: 64px; width: auto; }
.site-footer__about { color: rgba(247,242,234,.6); font-size: 13px; line-height: 1.7; margin-top: 14px; max-width: 320px; }
.site-footer__col-h {
    font-size: 11px; letter-spacing: .28em; text-transform: uppercase;
    color: var(--gold-soft); margin-bottom: 18px;
}
.site-footer__col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer__col a { font-size: 13px; color: rgba(247,242,234,.75); }
.site-footer__col a:hover { color: var(--ivory); }
.site-footer__bottom {
    max-width: var(--max); margin: 40px auto 0;
    padding-top: 24px; border-top: 1px solid rgba(247,242,234,.1);
    display: flex; justify-content: space-between;
    font-size: 11px; color: rgba(247,242,234,.5); letter-spacing: .14em;
}
@media (max-width: 880px) {
    .site-footer { padding: 48px 18px 24px; margin-top: 64px; }
    .site-footer__inner { grid-template-columns: 1fr 1fr; gap: 32px; }
    .site-footer__bottom { flex-direction: column; gap: 8px; }
}
