:root {
    --primary: #003366;
    --accent: #D4AF37;
    --bg-light: #FFFFFF;
    --bg-alt: #F8F9FA;
    --text-dark: #1A1A1A;
    --text-muted: #555555;
    --white: #FFFFFF;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

h1, h2, h3, .serif {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header & Navigation */
.main-header {
    height: 90px;
    background: var(--white);
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--primary);
    text-transform: uppercase;
}

.logo span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-item {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-dark);
    padding: 8px 0;
    position: relative;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
}

.nav-item:hover {
    color: var(--accent);
}

.nav-item:hover::after {
    width: 100%;
}

.btn {
    display: inline-block;
    padding: 14px 28px;
    background: var(--primary);
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: var(--transition);
}

.btn:hover {
    background: var(--accent);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-nav {
    padding: 10px 24px;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    height: 90vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    background-color: #000;
    color: var(--white);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    margin-bottom: 24px;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 32px;
    opacity: 0.9;
    max-width: 600px;
}

/* Common Sections */
section {
    padding: 120px 0;
}

.section-alt {
    background: var(--bg-alt);
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-header h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: var(--primary);
}

.accent-line {
    width: 60px;
    height: 3px;
    background: var(--accent);
    margin: 0 auto 20px;
}

/* Features Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
}

.feature-card {
    text-align: center;
    padding: 40px;
    background: var(--white);
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    border-bottom: 4px solid transparent;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-bottom-color: var(--accent);
}

.feature-card i {
    width: 64px;
    height: 64px;
    color: var(--accent);
    margin-bottom: 24px;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

/* Tools / Widgets */
.tool-box {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 48px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 14px;
    border: 1px solid #E2E8F0;
    font-family: inherit;
    font-size: 1rem;
}

.result-display {
    margin-top: 32px;
    padding: 24px;
    background: var(--bg-alt);
    border-left: 4px solid var(--accent);
    display: none;
}

/* Footer */
footer {
    background: #0A0A0A;
    color: var(--white);
    padding: 100px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 60px;
    margin-bottom: 80px;
}

.footer-logo {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 24px;
    display: block;
}

.footer-text {
    opacity: 0.7;
    margin-bottom: 24px;
}

.footer-heading {
    font-size: 1.1rem;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    opacity: 0.7;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--accent);
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    opacity: 0.6;
}

/* Responsive */
@media (max-width: 1024px) {
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .main-header {
        height: 70px;
    }
    .mobile-toggle {
        display: block;
    }
    .nav-container {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--white);
        padding: 40px 24px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }
    .nav-container.active {
        display: block;
    }
    .nav-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }
    .feature-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .hero-content h1 {
        font-size: 2.8rem;
    }
}

/* Animations */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}