/* ============================================================
   Eterna Gem Lab — Main Stylesheet
   ============================================================ */

:root {
    --black:       #080808;
    --bg:          #0d0d0d;
    --card:        #141414;
    --card-hover:  #1a1a1a;
    --gold:        #c8a96e;
    --gold-light:  #e8d5a3;
    --gold-dim:    rgba(200, 169, 110, 0.12);
    --border:      rgba(200, 169, 110, 0.18);
    --text:        #f0ece4;
    --text-muted:  #888880;
    --text-faint:  #555550;
    --radius:      4px;
    --transition:  0.25s ease;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ── Typography ── */
h1, h2, h3 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    line-height: 1.2;
    letter-spacing: 0.01em;
}

/* ── Container ── */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 32px;
}

/* ── Navigation ── */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 0 32px;
    height: 72px;
    display: flex;
    align-items: center;
    background: linear-gradient(to bottom, rgba(8,8,8,0.95) 0%, rgba(8,8,8,0) 100%);
    backdrop-filter: blur(0px);
    transition: background var(--transition), backdrop-filter var(--transition);
}
.nav.scrolled {
    background: rgba(8,8,8,0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}
.nav-inner {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}
.nav-logo-img {
    height: 36px;
    width: auto;
}
.nav-logo-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 0.2em;
    color: var(--gold-light);
}
/* ── Nav right cluster ── */
.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* ── Language Toggle ── */
.lang-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 7px 12px;
    cursor: pointer;
    transition: border-color var(--transition);
}
.lang-toggle:hover { border-color: var(--gold); }
.lang-toggle span {
    font-family: 'Jost', sans-serif;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.15em;
    transition: color var(--transition);
}
.lang-divider { color: var(--text-faint) !important; }
#lang-en-opt { color: var(--text-faint); }
#lang-vi-opt { color: var(--text-faint); }
.lang-en #lang-en-opt { color: var(--gold); }
.lang-vi #lang-vi-opt { color: var(--gold); }

.btn-outline-sm {
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
    border: 1px solid var(--border);
    padding: 8px 20px;
    border-radius: var(--radius);
    transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.btn-outline-sm:hover {
    background: var(--gold-dim);
    border-color: var(--gold);
    color: var(--gold-light);
}

/* ── Buttons ── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gold);
    color: var(--black);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 14px 32px;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: background var(--transition), transform var(--transition);
}
.btn-primary:hover {
    background: var(--gold-light);
    transform: translateY(-1px);
}
.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--gold);
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 13px 32px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: background var(--transition), border-color var(--transition);
}
.btn-outline:hover {
    background: var(--gold-dim);
    border-color: var(--gold);
}
.btn-full { width: 100%; justify-content: center; }

/* ── Hero ── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--black);
    background-image: url('/static/img/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    overflow: hidden;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(0,0,0,0.75) 0%,
        rgba(0,0,0,0.55) 50%,
        rgba(8,6,2,0.65) 100%
    );
}
.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 720px;
    padding: 0 32px;
}
.hero-eyebrow {
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 24px;
}
.hero-title {
    font-size: clamp(48px, 7vw, 84px);
    font-weight: 300;
    color: var(--text);
    margin-bottom: 24px;
    line-height: 1.1;
}
.hero-desc {
    font-size: 17px;
    font-weight: 300;
    color: rgba(240,236,228,0.75);
    margin-bottom: 40px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}
.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
    transition: color var(--transition);
    animation: bounce 2.5s ease-in-out infinite;
}
.hero-scroll:hover { color: var(--gold); }
@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(6px); }
}

/* ── Sections ── */
.section {
    padding: 120px 0;
}
.section-label {
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 20px;
}
.section-title {
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 300;
    color: var(--text);
    margin-bottom: 24px;
}
.section-desc {
    font-size: 16px;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 64px;
    line-height: 1.8;
}

/* ── Features Grid ── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
}
.feature-card {
    background: var(--card);
    padding: 48px 40px;
    border-top: 1px solid var(--border);
    transition: background var(--transition);
}
.feature-card:hover { background: var(--card-hover); }
.feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gold-dim);
    border: 1px solid var(--border);
    border-radius: 50%;
    margin-bottom: 28px;
    color: var(--gold);
}
.feature-card h3 {
    font-size: 20px;
    font-weight: 400;
    color: var(--text);
    margin-bottom: 12px;
    font-family: 'Cormorant Garamond', serif;
}
.feature-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.8;
}

/* ── CTA Banner ── */
.cta-banner {
    background: linear-gradient(135deg, #0f0b04 0%, #1a1306 50%, #0f0b04 100%);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 100px 0;
    text-align: center;
}
.cta-banner h2 {
    font-size: clamp(28px, 3.5vw, 44px);
    color: var(--gold-light);
    margin-bottom: 16px;
}
.cta-banner p {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 40px;
}

/* ── Contact ── */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
}
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: var(--card);
    padding: 40px;
    transition: background var(--transition);
}
.contact-item:hover { background: var(--card-hover); }
.contact-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gold-dim);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--gold);
}
.contact-label {
    font-size: 11px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 6px;
}
.contact-value {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.7;
}
.contact-value a {
    color: var(--text-muted);
    transition: color var(--transition);
}
.contact-value a:hover { color: var(--gold-light); }

/* ── Footer ── */
.footer {
    border-top: 1px solid var(--border);
    padding: 48px 0;
    text-align: center;
}
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 14px;
    letter-spacing: 0.2em;
    color: var(--gold-light);
}
.footer-logo-img { height: 28px; width: auto; }
.footer-tagline {
    font-size: 12px;
    color: var(--text-faint);
    letter-spacing: 0.15em;
    margin-bottom: 16px;
}
.footer-copy {
    font-size: 12px;
    color: var(--text-faint);
}

/* ── Lookup Page ── */
.page-main {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 32px 60px;
}
.lookup-wrap {
    width: 100%;
    max-width: 460px;
}
.lookup-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 56px 48px;
    text-align: center;
}
.lookup-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 36px;
}
.lookup-logo img { height: 52px; width: auto; }
.lookup-logo-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 13px;
    letter-spacing: 0.3em;
    color: var(--gold);
}
.lookup-title {
    font-size: 32px;
    font-weight: 300;
    color: var(--text);
    margin-bottom: 12px;
}
.lookup-desc {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 36px;
    line-height: 1.7;
}
.lookup-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: left;
}
.input-group { display: flex; flex-direction: column; gap: 8px; }
.input-label {
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.input-field {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px;
    font-size: 15px;
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    color: var(--text);
    width: 100%;
    transition: border-color var(--transition);
    outline: none;
}
.input-field::placeholder { color: var(--text-faint); }
.input-field:focus { border-color: var(--gold); }
.lookup-note {
    margin-top: 20px;
    font-size: 12px;
    color: var(--text-faint);
    line-height: 1.7;
}

/* ── Result Page ── */
.result-wrap {
    width: 100%;
    max-width: 960px;
    padding: 100px 32px 60px;
    margin: 0 auto;
}
.result-header {
    text-align: center;
    margin-bottom: 40px;
}
.result-logo {
    height: 72px;
    width: auto;
    margin: 0 auto 12px;
}
.result-logo-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 13px;
    letter-spacing: 0.3em;
    color: var(--gold);
    margin-bottom: 8px;
}
.result-code {
    font-size: 14px;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}
.result-code strong {
    color: var(--gold-light);
    font-weight: 400;
}
.result-pdf-wrap {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 28px;
}
.result-pdf {
    display: block;
    width: 100%;
    height: 80vh;
    min-height: 600px;
    border: none;
}
.result-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ── Not Found ── */
.result-notfound {
    text-align: center;
    padding: 80px 32px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
}
.notfound-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gold-dim);
    border: 1px solid var(--border);
    border-radius: 50%;
    margin: 0 auto 28px;
    color: var(--gold);
}
.result-notfound h2 {
    font-size: 32px;
    color: var(--text);
    margin-bottom: 12px;
}
.result-notfound p {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 8px;
}
.notfound-hint {
    font-size: 13px;
    color: var(--text-faint);
    margin-bottom: 36px !important;
}

/* ── Nav scroll behaviour ── */
.home-page .nav {
    background: linear-gradient(to bottom, rgba(8,8,8,0.85) 0%, transparent 100%);
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .nav { padding: 0 20px; height: 64px; }
    .container { padding: 0 20px; }
    .section { padding: 80px 0; }
    .features-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .feature-card { padding: 36px 28px; }
    .contact-item { padding: 28px; }
    .lookup-card { padding: 40px 28px; }
    .result-wrap { padding: 80px 20px 48px; }
    .result-pdf { height: 60vh; min-height: 400px; }
    .result-actions { flex-direction: column; align-items: center; }
    .cta-banner { padding: 72px 0; }
}

@media (max-width: 480px) {
    .nav-logo-text { display: none; }
    .hero-title { font-size: 40px; }
    .lookup-card { padding: 32px 20px; }
}
