/* ============================================================
   Moissanite GRA — Design System
   Palette: ivory / charcoal / gold
   Fonts: Cormorant Garamond (display) + Jost (body)
   ============================================================ */

:root {
    --ivory: #faf8f4;
    --white: #ffffff;
    --charcoal: #1c1a17;
    --ink: #2e2b26;
    --muted: #7a746a;
    --gold: #b08d57;
    --gold-dark: #96753f;
    --gold-light: #e8dcc8;
    --line: #e9e4da;
    --success: #2e7d4f;
    --radius: 14px;
    --shadow: 0 10px 40px rgba(28, 26, 23, 0.08);
    --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --font-body: 'Jost', 'Segoe UI', Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background-color: var(--ivory);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 16.5px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--charcoal);
    line-height: 1.2;
    margin: 0 0 0.5em;
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); }
h3 { font-size: 1.35rem; }

p { margin: 0 0 1em; }

a { color: var(--gold-dark); }

img { max-width: 100%; }

.container {
    width: min(1080px, 92%);
    margin: 0 auto;
}

.narrow {
    width: min(760px, 92%);
    margin: 0 auto;
}

/* ---------- Header ---------- */

.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    gap: 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand img {
    height: 84px;
    width: auto;
    margin: -14px 0;
}

.brand-name {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--charcoal);
    letter-spacing: 0.06em;
}

.brand-name span { color: var(--gold); }

.site-nav {
    display: flex;
    gap: 6px;
}

.site-nav a {
    text-decoration: none;
    color: var(--ink);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    padding: 10px 16px;
    border-radius: 999px;
    transition: color 0.2s, background 0.2s;
}

.site-nav a:hover,
.site-nav a.active {
    color: var(--gold-dark);
    background: var(--ivory);
}

/* ---------- Hero / slider ---------- */

.hero {
    position: relative;
    overflow: hidden;
    background: var(--charcoal);
}

.hero-slides {
    position: relative;
    width: 100%;
    padding-top: 42%;
}

.hero-slides img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.2s ease;
}

.hero-slides img.active { opacity: 1; }

.hero-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    background: linear-gradient(rgba(20, 18, 15, 0.45), rgba(20, 18, 15, 0.55));
}

.hero-overlay h1 {
    color: var(--white);
    margin-bottom: 0.3em;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.hero-overlay p {
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    letter-spacing: 0.04em;
    max-width: 560px;
    margin: 0;
}

.hero-dots {
    position: absolute;
    bottom: 16px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.hero-dots button {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: none;
    padding: 0;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

.hero-dots button.active {
    background: var(--gold-light);
    transform: scale(1.3);
}

/* ---------- Sections ---------- */

.section { padding: 64px 0; }

.section-alt {
    background: var(--white);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.section-title {
    text-align: center;
    margin-bottom: 8px;
}

.section-sub {
    text-align: center;
    color: var(--muted);
    max-width: 620px;
    margin: 0 auto 40px;
}

.eyebrow {
    display: block;
    text-align: center;
    color: var(--gold-dark);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

/* ---------- Verify card ---------- */

.verify-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 44px 36px;
    max-width: 640px;
    margin: -70px auto 0;
    position: relative;
    z-index: 2;
    text-align: center;
}

.verify-form {
    display: flex;
    gap: 10px;
    max-width: 480px;
    margin: 24px auto 0;
}

.verify-form input {
    flex: 1;
    min-width: 0;
    padding: 14px 18px;
    font-size: 1rem;
    font-family: var(--font-body);
    letter-spacing: 0.06em;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--ivory);
    color: var(--charcoal);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.verify-form input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(176, 141, 87, 0.15);
    background: var(--white);
}

.btn-gold {
    padding: 14px 30px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.2s;
    text-decoration: none;
    display: inline-block;
}

.btn-gold:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(150, 117, 63, 0.35);
}

.verify-hint {
    color: var(--muted);
    font-size: 0.88rem;
    margin: 14px 0 0;
}

/* ---------- Result ---------- */

#result { scroll-margin-top: 30px; }

.result-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    max-width: 640px;
    margin: 34px auto 0;
    overflow: hidden;
}

.result-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 28px;
    background: var(--charcoal);
}

.result-head .badge {
    width: 34px;
    height: 34px;
    flex: none;
    border-radius: 50%;
    background: var(--gold);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
}

.result-head h3 {
    color: var(--white);
    margin: 0;
    font-size: 1.25rem;
}

.result-head p {
    color: rgba(255, 255, 255, 0.65);
    margin: 0;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
}

.result-table {
    width: 100%;
    border-collapse: collapse;
}

.result-table th,
.result-table td {
    padding: 13px 28px;
    text-align: left;
    font-size: 0.98rem;
    border-bottom: 1px solid var(--line);
}

.result-table tr:last-child th,
.result-table tr:last-child td { border-bottom: none; }

.result-table th {
    width: 42%;
    font-weight: 500;
    color: var(--muted);
    letter-spacing: 0.04em;
}

.result-table td {
    font-weight: 500;
    color: var(--charcoal);
}

.result-empty {
    text-align: center;
    padding: 44px 28px;
}

.result-empty .badge-empty {
    width: 52px;
    height: 52px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: var(--ivory);
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--muted);
}

.result-empty h3 { margin-bottom: 6px; }

.result-empty p {
    color: var(--muted);
    max-width: 380px;
    margin: 0 auto;
    font-size: 0.95rem;
}

/* ---------- Steps ---------- */

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
    margin-top: 44px;
}

.step {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 32px 26px;
    text-align: center;
}

.step-num {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--gold);
    display: block;
    margin-bottom: 10px;
}

.step h3 { font-size: 1.2rem; }

.step p {
    color: var(--muted);
    font-size: 0.95rem;
    margin: 0;
}

/* ---------- FAQ ---------- */

.faq { max-width: 760px; margin: 0 auto; }

.faq details {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
}

.faq summary {
    cursor: pointer;
    list-style: none;
    padding: 18px 24px;
    font-weight: 500;
    color: var(--charcoal);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
    content: '+';
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--gold);
    flex: none;
    line-height: 1;
    transition: transform 0.25s;
}

.faq details[open] summary::after { transform: rotate(45deg); }

.faq details p {
    padding: 0 24px 18px;
    margin: 0;
    color: var(--muted);
}

/* ---------- Explanation page ---------- */

.page-hero {
    background: var(--charcoal);
    text-align: center;
    padding: 72px 20px;
}

.page-hero h1 { color: var(--white); }

.page-hero p {
    color: rgba(255, 255, 255, 0.75);
    max-width: 620px;
    margin: 0 auto;
}

.prose h2 {
    margin-top: 1.8em;
    padding-bottom: 0.3em;
    border-bottom: 1px solid var(--line);
}

.prose ul { padding-left: 1.2em; }

.prose li { margin-bottom: 0.4em; }

.grade-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    margin: 20px 0 30px;
    box-shadow: var(--shadow);
}

.grade-table th,
.grade-table td {
    padding: 13px 18px;
    text-align: left;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--line);
}

.grade-table thead th {
    background: var(--charcoal);
    color: var(--gold-light);
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.78rem;
    border-bottom: none;
}

.grade-table tbody tr:last-child td,
.grade-table tbody tr:last-child th { border-bottom: none; }

.grade-table tbody th {
    font-weight: 600;
    color: var(--charcoal);
    white-space: nowrap;
}

.grade-table td { color: var(--muted); }

.cta-band {
    background: var(--charcoal);
    text-align: center;
    padding: 56px 20px;
}

.cta-band h2 { color: var(--white); }

.cta-band p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 26px;
}

/* ---------- Footer ---------- */

.site-footer {
    background: var(--charcoal);
    color: rgba(255, 255, 255, 0.75);
    padding: 44px 0 28px;
    margin-top: 64px;
}

.cta-band + .site-footer { margin-top: 0; }

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-brand {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--white);
    margin-bottom: 6px;
}

.footer-brand span { color: var(--gold); }

.site-footer p {
    margin: 0 0 4px;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-links a:hover { color: var(--gold-light); }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    margin-top: 30px;
    padding-top: 18px;
    text-align: center;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.45);
}

/* ---------- Responsive ---------- */

@media (max-width: 760px) {
    .header-inner {
        flex-direction: column;
        gap: 4px;
        padding-bottom: 10px;
    }

    .brand img { height: 64px; margin: -8px 0; }

    .hero-slides { padding-top: 68%; }

    .verify-card {
        margin-top: -40px;
        padding: 32px 20px;
    }

    .verify-form { flex-direction: column; }

    .steps { grid-template-columns: 1fr; }

    .section { padding: 44px 0; }

    .result-table th,
    .result-table td { padding: 12px 16px; }

    .footer-inner {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
}
