/* Advanced Premium Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

:root {
    /* Refined Gold Palette - Metallic/Antique */
    --gold-50:  #F9F1D8;
    --gold-100: #F4E4BC;
    --gold-200: #E9C989;
    --gold-300: #DEAF5B;
    --gold-400: #D49834;
    --gold-500: #B67F26;
    --gold-600: #93621B;
    --gold-900: #4B300B;

    /* Deep Night Palette - Obsidian/Midnight */
    --night-950: #020305;
    --night-900: #06090E;
    --night-800: #0F141E;
    --night-700: #1A2233;

    /* Functional Colors */
    --surface-glass: rgba(15, 20, 30, 0.6);
    --surface-border: rgba(222, 175, 91, 0.15);
    
    /* Typography */
    --font-display: 'Cinzel', serif;
    --font-body: 'Manrope', sans-serif;
    
    /* Layout */
    --container-max: 1280px;
    --gutter: 2rem;
}

body {
    background-color: var(--night-950);
    color: var(--gold-50);
    font-family: var(--font-body);
    line-height: 1.8;
    font-weight: 300;
    overflow-x: hidden;
    position: relative;
}

/* 1. GRAIN TEXTURE (Advanced CSS) */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* 2. ISLAMIC GEOMETRY (Refined) */
.bg-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.4;
    background: 
        radial-gradient(circle at 50% 0%, rgba(222, 175, 91, 0.08), transparent 40%),
        linear-gradient(45deg, rgba(22, 28, 36, 0) 48%, rgba(222, 175, 91, 0.03) 50%, rgba(22, 28, 36, 0) 52%);
    background-size: 100% 100%, 60px 60px;
}

/* Typography System */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 500;
    color: var(--gold-100);
    letter-spacing: -0.01em;
}

.display-hero {
    font-size: clamp(3.5rem, 8vw, 7rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 2.5rem;
    background: linear-gradient(135deg, var(--gold-100) 0%, var(--gold-300) 40%, var(--gold-100) 60%, var(--gold-400) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 2em rgba(222, 175, 91, 0.1));
}

.text-eyebrow {
    font-family: var(--font-body);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--gold-400);
    display: block;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.lead {
    font-size: clamp(1.125rem, 2vw, 1.35rem);
    color: rgba(244, 228, 188, 0.7);
    max-width: 60ch;
    margin-bottom: 3rem;
}

/* Layout Containers */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

section {
    padding: 8rem 0;
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    padding: 2rem 0;
    transition: background 0.3s ease;
}

header.scrolled {
    background: rgba(6, 9, 14, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--surface-border);
    padding: 1rem 0;
}

.nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--gold-100);
    text-decoration: none;
    letter-spacing: 0.1em;
    border: 1px solid var(--gold-500);
    padding: 0.6rem 1.2rem;
    position: relative;
    overflow: hidden;
}

.logo::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.logo:hover::before {
    left: 100%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 6rem;
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 6rem;
    align-items: center;
}

.hero-stats {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    border-left: 1px solid var(--surface-border);
    padding-left: 3rem;
}

.stat-block strong {
    font-family: var(--font-display);
    font-size: 3.5rem;
    line-height: 1;
    color: var(--gold-200);
    display: block;
}

.stat-block span {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--gold-500);
    margin-top: 0.5rem;
    display: block;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 2.5rem;
    font-size: 0.95rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
    color: var(--night-950);
    position: relative;
    z-index: 1;
    box-shadow: 0 10px 30px -10px rgba(182, 127, 38, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px -10px rgba(182, 127, 38, 0.6);
}

.btn-ghost {
    background: transparent;
    color: var(--gold-200);
    border: 1px solid var(--surface-border);
}

.btn-ghost:hover {
    border-color: var(--gold-400);
    background: rgba(222, 175, 91, 0.05);
}

/* Feature Cards */
.feature-section {
    position: relative;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.card {
    background: linear-gradient(180deg, rgba(26, 34, 51, 0.4) 0%, rgba(15, 20, 30, 0.6) 100%);
    border: 1px solid var(--surface-border);
    backdrop-filter: blur(10px);
    padding: 3rem;
    transition: transform 0.4s ease, border-color 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--gold-400);
    box-shadow: 0 20px 40px -20px rgba(0,0,0,0.8);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--gold-300);
    margin-bottom: 2rem;
    opacity: 0.8;
}

.card h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--gold-100);
}

.card p {
    color: rgba(244, 228, 188, 0.6);
    font-size: 1.05rem;
    line-height: 1.7;
}

/* Contact Form Styles */
.contact-form-section {
    max-width: 800px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 2rem;
    position: relative;
}

.form-label {
    display: block;
    margin-bottom: 0.8rem;
    color: var(--gold-200);
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.form-control {
    width: 100%;
    background: rgba(15, 20, 30, 0.4);
    border: 1px solid var(--surface-border);
    border-radius: 4px;
    padding: 1.2rem;
    color: var(--gold-50);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--gold-400);
    box-shadow: 0 0 20px rgba(222, 175, 91, 0.1);
    background: rgba(15, 20, 30, 0.8);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23DEAF5B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.form-submit {
    width: 100%;
    margin-top: 1rem;
}

/* Section Dividers */
.divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--surface-border), transparent);
    margin: 0;
}

/* Footer */
footer {
    background: var(--night-900);
    border-top: 1px solid var(--surface-border);
    padding: 6rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand p {
    color: rgba(244, 228, 188, 0.5);
    margin-top: 1.5rem;
    max-width: 300px;
}

.footer-col h5 {
    color: var(--gold-100);
    font-family: var(--font-display);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 1rem;
}

.footer-col a {
    color: rgba(244, 228, 188, 0.6);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--gold-300);
}

.copyright {
    text-align: center;
    color: rgba(255,255,255,0.2);
    font-size: 0.85rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    .hero-stats {
        border-left: none;
        border-top: 1px solid var(--surface-border);
        padding-left: 0;
        padding-top: 3rem;
        flex-direction: row;
        justify-content: space-between;
    }
    .display-hero {
        font-size: 4.5rem;
    }
}

@media (max-width: 768px) {
    .hero-stats {
        flex-wrap: wrap;
        gap: 2rem;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}
