/* =========================================
   TGBMG Authentic Corporate/Legal Theme
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

:root {
    /* Color Palette - Matte and Solid */
    --bg-color: #0d1117; /* Very dark matte navy/black, like deep ink */
    --text-color: #c9d1d9; /* Off-white / Silver */
    --heading-color: #ffffff;
    --royal-gold: #d4af37; /* Solid Royal Gold Accent */
    --border-color: #30363d; /* Subtle gray border */
    --nav-bg: #010409;
    --card-bg: #161b22; /* Solid dark color, no transparency */
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Georgia', "Times New Roman", serif; /* Changed base back to serif for a more document feel */
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--bg-color);
    margin: 0;
    padding: 0;
    position: relative;
}

/* Texture overlay for authenticity (subtle grain) */
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"><filter id="noiseFilter"><feTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23noiseFilter)" opacity="0.03"/></svg>');
    pointer-events: none;
    z-index: 9999;
}

body.no-scroll {
    overflow: hidden;
}

/* =========================================
   Page Transition / Lazy Load Reveal
   ========================================= */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.page-transition {
    animation: fadeIn 0.8s ease-out forwards;
}

/* =========================================
   Splash Screen Overlay
   ========================================= */
.splash-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100vh;
    background-color: var(--bg-color);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease, visibility 0.8s;
}

.splash-overlay.fade-out {
    opacity: 0;
    visibility: hidden;
}

.splash-content {
    text-align: center;
    padding: 3rem;
    border: 1px solid var(--royal-gold);
    background: var(--card-bg);
    max-width: 600px;
    width: 90%;
}

.splash-title {
    font-size: 2.2rem;
    letter-spacing: 3px;
    color: var(--heading-color);
}

.splash-desc {
    margin-bottom: 2rem;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: var(--text-color);
}

.splash-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.btn-splash {
    background: transparent;
    border: 1px solid var(--royal-gold);
    color: var(--royal-gold);
    padding: 1.5rem;
    cursor: pointer;
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.2s ease;
}

.btn-splash small {
    font-family: 'Georgia', serif;
    font-size: 0.8rem;
    text-transform: none;
    font-style: italic;
}

.btn-splash:hover {
    background-color: var(--royal-gold);
    color: #000;
}

/* =========================================
   Layout & Typography
   ========================================= */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 2rem;
    position: relative;
    z-index: 10;
}

h1, h2, h3, .nav-brand {
    color: var(--heading-color);
    font-family: 'Cinzel', "Georgia", serif;
    font-weight: 400;
}

h1 {
    font-size: 2.8rem;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.subtitle {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.2rem;
    margin-top: 1.5rem;
    color: var(--royal-gold);
}

.heavy-rule {
    border: 0;
    border-top: 1px solid var(--royal-gold);
    margin: 1.5rem auto;
    width: 30%;
}

/* =========================================
   Navigation
   ========================================= */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background-color: var(--nav-bg);
    border-bottom: 1px solid var(--royal-gold);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-brand {
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 3px;
    color: var(--royal-gold);
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    margin: 0 1rem;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 2px;
    font-family: 'Cinzel', serif;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--royal-gold);
}

/* =========================================
   Buttons
   ========================================= */
.btn-submit, .btn-link {
    background: transparent;
    border: 1px solid var(--royal-gold);
    color: var(--royal-gold);
    padding: 0.8rem 1.8rem;
    cursor: pointer;
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 1.5px;
    transition: all 0.2s ease;
    display: inline-block;
}

.btn-submit:hover, .btn-link:hover {
    background-color: var(--royal-gold);
    color: #000;
}

/* =========================================
   Sections
   ========================================= */
.section {
    padding: 5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.section-title {
    text-align: center;
    font-size: 2rem;
    letter-spacing: 3px;
    margin-bottom: 1rem;
    color: var(--royal-gold);
}

.section-desc {
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    margin-bottom: 4rem;
    color: #8b949e;
}

/* =========================================
   Vault (Hero)
   ========================================= */
.header {
    text-align: center;
    margin-bottom: 5rem;
}

.hero-text {
    font-size: 1.6rem;
    letter-spacing: 4px;
    font-family: 'Cinzel', serif;
}

.ceo-statement {
    background: var(--card-bg);
    padding: 3rem;
    border: 1px solid var(--border-color);
    text-align: justify;
}

.ceo-statement h3 {
    text-align: center;
    margin-bottom: 1.5rem;
}

.signature {
    margin-top: 2rem;
    text-align: right;
    font-family: 'Playfair Display', serif;
    color: var(--royal-gold);
}

/* =========================================
   Sectors (Cards)
   ========================================= */
.sector-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.sector-card {
    border: 1px solid var(--border-color);
    padding: 2.5rem 1.5rem;
    background: var(--card-bg);
    text-align: center;
}

.sector-card h3 {
    font-size: 1.2rem;
    color: var(--royal-gold);
    margin-bottom: 1rem;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.product-list {
    list-style-type: none;
    padding: 0;
    margin: 2rem 0;
    text-align: left;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: var(--text-color);
}

.product-list li {
    margin-bottom: 1rem;
    padding-left: 1.2rem;
    position: relative;
}

.product-list li::before {
    content: "■"; /* Classic square bullet */
    position: absolute;
    left: 0;
    top: 4px;
    color: var(--royal-gold);
    font-size: 0.6rem;
}

/* =========================================
   Order Form
   ========================================= */
.order-form {
    background: var(--card-bg);
    padding: 3rem;
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 2.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    font-family: 'Cinzel', serif;
    letter-spacing: 1px;
    color: var(--royal-gold);
}

.order-form input[type="text"],
.order-form select,
.order-form textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-color);
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.order-form input:focus,
.order-form select:focus,
.order-form textarea:focus {
    outline: none;
    border-color: var(--royal-gold);
}

.radio-group label {
    display: block;
    padding: 1.2rem;
    border: 1px solid var(--border-color);
    margin-bottom: 0.8rem;
    cursor: pointer;
    background-color: var(--bg-color);
}

.small-text {
    font-size: 0.85rem;
    font-style: italic;
    opacity: 0.7;
    font-family: 'Georgia', serif;
}

.btn-submit {
    width: 100%;
    padding: 1.2rem;
    margin-top: 1rem;
}

/* =========================================
   Footer (Legal)
   ========================================= */
.footer {
    background: var(--nav-bg);
    border-top: 3px double var(--royal-gold);
    padding: 4rem 2rem;
    text-align: center;
}

.footer h3 {
    color: var(--royal-gold);
    margin-bottom: 2rem;
}

.legal-text {
    max-width: 800px;
    margin: 0 auto 3rem auto;
    font-size: 0.85rem;
    text-align: justify;
    line-height: 1.8;
    color: #8b949e;
}

.legal-text strong {
    color: var(--text-color);
}

.copyright {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Cinzel', serif;
    color: #8b949e;
}
