/* ============================================
   Pencil Website - Global Styles
   Dark Luxury Theme: #0A0A0A + #C9A962 Gold
   Typography: Cormorant Garamond + Inter + JetBrains Mono
   ============================================ */

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* --- CSS Variables --- */
:root {
    --bg-page: #0A0A0A;
    --bg-surface: #141414;
    --bg-card: transparent;
    --bg-darker: #060606;
    --bg-input: #0E0E0E;

    --gold: #C9A962;
    --gold-hover: #D4B872;
    --gold-transparent: rgba(201, 169, 98, 0.25);
    --gold-subtle: rgba(201, 169, 98, 0.1);

    --text-primary: #FFFFFF;
    --text-secondary: #848484;
    --text-tertiary: #6A6A6A;
    --text-muted: #4A4A4A;
    --text-disabled: #3A3A3A;

    --border: #2A2A2A;
    --border-subtle: #1A1A1A;
    --border-gold: #C9A962;
    --border-gold-transparent: rgba(201, 169, 98, 0.25);

    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'Inter', -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --radius: 0px;
}

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-page);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: var(--gold);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

img { max-width: 100%; height: auto; }

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.2;
}

h1 { font-size: 72px; }
h2 { font-size: 48px; }
h3 { font-size: 32px; }
h4 { font-size: 24px; }

p {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.6;
}

.text-gold { color: var(--gold); }
.text-muted { color: var(--text-muted) !important; }
.text-center { text-align: center; }

.section-label {
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 2px;
    color: var(--gold);
    text-transform: uppercase;
}

/* --- Layout Utilities --- */
.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 120px;
}

.container-narrow {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 80px;
}

.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-center { align-items: center; justify-content: center; }
.flex-between { justify-content: space-between; }
.items-center { align-items: center; }
.gap-4 { gap: 4px; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-20 { gap: 20px; }
.gap-24 { gap: 24px; }
.gap-32 { gap: 32px; }
.gap-40 { gap: 40px; }
.gap-48 { gap: 48px; }
.gap-64 { gap: 64px; }
.w-full { width: 100%; }
.flex-1 { flex: 1; }

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-primary {
    background: var(--gold);
    color: var(--bg-page);
    padding: 16px 36px;
    font-size: 16px;
    font-weight: 600;
}

.btn-primary:hover {
    background: var(--gold-hover);
    color: var(--bg-page);
}

.btn-secondary {
    background: transparent;
    color: var(--text-secondary);
    padding: 16px 36px;
    font-size: 16px;
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--text-secondary);
    color: var(--text-primary);
}

.btn-sm {
    padding: 10px 24px;
    font-size: 14px;
}

.btn-lg {
    padding: 18px 48px;
    font-size: 18px;
}

.btn-full {
    width: 100%;
}

.btn-ghost {
    background: transparent;
    color: var(--gold);
    padding: 10px 24px;
    font-size: 14px;
}

/* --- Form Elements --- */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
}

.form-input {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease;
}

.form-input:focus {
    border-color: var(--gold);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-row {
    display: flex;
    gap: 12px;
}

.form-row .form-group {
    flex: 1;
}

/* --- Cards --- */
.card {
    border: 1px solid var(--border);
    background: transparent;
    transition: border-color 0.2s ease;
}

.card:hover {
    border-color: var(--gold-transparent);
}

/* --- Divider --- */
.divider {
    width: 100%;
    height: 1px;
    background: var(--border-subtle);
}

.divider-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.divider-row span {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
}

.divider-row::before,
.divider-row::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* --- Lucide Icons --- */
.icon {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.icon-sm { width: 14px; height: 14px; }
.icon-lg { width: 24px; height: 24px; }
.icon-xl { width: 32px; height: 32px; }

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-page);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* --- Alert/Error Messages --- */
.alert {
    padding: 12px 16px;
    font-size: 14px;
    border: 1px solid;
}

.alert-error {
    color: #E57373;
    border-color: rgba(229, 115, 115, 0.3);
    background: rgba(229, 115, 115, 0.05);
}

.alert-success {
    color: var(--gold);
    border-color: var(--gold-transparent);
    background: var(--gold-subtle);
}

/* --- Responsive --- */
@media (max-width: 1200px) {
    .container { padding: 0 60px; }
    .container-narrow { padding: 0 40px; }
    h1 { font-size: 56px; }
    h2 { font-size: 40px; }
}

@media (max-width: 768px) {
    .container { padding: 0 20px; }
    .container-narrow { padding: 0 20px; }
    h1 { font-size: 36px; }
    h2 { font-size: 28px; }
    h3 { font-size: 24px; }
    h4 { font-size: 20px; }
    .hide-mobile { display: none !important; }
    .show-mobile { display: flex !important; }
    .btn-primary { padding: 14px 28px; font-size: 15px; }
    .btn-secondary { padding: 14px 28px; font-size: 15px; }
    .btn-sm { padding: 10px 20px; font-size: 13px; }
    .form-input { height: 44px; }
    .flex-col-mobile { flex-direction: column; }
    .w-full-mobile { width: 100%; }
    .gap-mobile-16 { gap: 16px; }
    .text-center-mobile { text-align: center; }
    .items-center-mobile { align-items: center; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .container-narrow { padding: 0 16px; }
    h1 { font-size: 30px; }
    h2 { font-size: 24px; }
    .btn-primary { padding: 12px 24px; font-size: 14px; }
    .btn-secondary { padding: 12px 24px; font-size: 14px; }
}
