/* Modern Design System - LoanAgainstGold.com */

.blur-name {
    filter: blur(5px);
    user-select: none;
    pointer-events: none;
    opacity: 0.7;
    transition: filter 0.3s;
}

:root {
    /* Premium Color Palette */
    --primary-gold: #D4AF37;
    --primary-gold-dark: #B4941F;
    --primary-gold-light: #F4E5A8;
    --secondary-dark: #1A1A1A;
    --secondary-gray: #2D2D2D;
    --text-dark: #111111;
    --text-light: #F5F5F5;
    --text-muted: #666666;
    --white: #FFFFFF;
    --bg-light: #F8F9FA;
    --success: #28A745;
    --danger: #DC3545;

    /* Shadows & Effects */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.95);
    --glass-border: 1px solid rgba(255, 255, 255, 0.2);

    /* Spacing */
    --container-width: 1200px;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

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

body {
    font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--secondary-dark);
}

h1 {
    font-size: 2.5rem;
    color: var(--secondary-dark);
}

.hero h1,
.city-hero h1 {
    color: #fff !important;
}

.hero p,
.city-hero p {
    color: rgba(255, 255, 255, 0.9) !important;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

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

/* Layout Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

/* HEADER & NAVIGATION */
.header {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
    box-shadow: var(--shadow-sm);
}

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

.logo a {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--secondary-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo a span {
    color: var(--primary-gold);
}

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

.nav a {
    font-weight: 500;
    color: var(--secondary-gray);
    position: relative;
    padding: 5px 0;
}

.nav a:hover,
.nav a.active {
    color: var(--primary-gold);
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gold);
    transition: width 0.3s ease;
}

.nav a:hover::after,
.nav a.active::after {
    width: 100%;
}

.btn-cta {
    background: linear-gradient(135deg, var(--primary-gold), var(--primary-gold-dark));
    color: var(--white);
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
    color: var(--white);
}

/* HERO SECTION */
.hero {
    background: var(--secondary-dark);
    color: var(--white);
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, rgba(26, 26, 26, 0) 70%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    background: linear-gradient(to right, #fff, #D4AF37);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
}

/* GOLD PRICE WIDGET */
.gold-price-widget {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0, 0, 0, 0.05);
    max-width: 500px;
    margin: -60px auto 40px;
    /* Floating effect over hero */
    position: relative;
    z-index: 10;
}

.calculator-card {
    background: rgba(0, 0, 0, 0.7) !important;
    backdrop-filter: blur(15px);
    padding: 30px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff !important;
    box-shadow: var(--shadow-lg);
}

.calculator-card h2,
.calculator-card label {
    color: #fff !important;
}

.gold-price-widget h2 {
    font-size: 1.2rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price-row {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.price-row:last-child {
    border-bottom: none;
}

.price-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-dark);
}

.price-change.up {
    color: var(--success);
}

.price-change.down {
    color: var(--danger);
}

/* CARDS & FEATURES */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 50px 0;
}

.feature-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 2rem;
    color: var(--primary-gold);
    margin-bottom: 20px;
    background: rgba(212, 175, 55, 0.1);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* COMPARISON TABLE */
.comparison-table-wrapper {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    margin: 40px 0;
    overflow-x: auto;
    /* Scroll table on mobile */
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

th {
    background: var(--secondary-gray);
    color: var(--white);
    padding: 18px 20px;
    text-align: left;
    font-weight: 600;
}

td {
    padding: 18px 20px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

tr:hover {
    background-color: #fcfcfc;
}

/* LEAD FORM */
.lead-form-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 80px 0;
    color: var(--white);
    border-radius: var(--radius-xl);
    margin: 60px 0;
}

.lead-form-section h2 {
    color: var(--white);
}

.lead-form {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    max-width: 600px;
    margin: 0 auto;
    color: var(--text-dark);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--secondary-gray);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-control:focus {
    border-color: var(--primary-gold);
    outline: none;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.btn-submit {
    width: 100%;
    background: var(--secondary-dark);
    color: var(--white);
    padding: 15px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-submit:hover {
    background: var(--primary-gold);
    color: var(--secondary-dark);
}

/* FOOTER */
.footer {
    background: var(--secondary-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 0 30px;
}

.footer h4 {
    color: var(--white);
    margin-bottom: 20px;
}

.footer a {
    color: rgba(255, 255, 255, 0.7);
}

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

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.disclaimer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    font-size: 0.9rem;
    text-align: center;
}

/* CALCULATOR */
.calculator-container {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: 800px;
    margin: 0 auto;
}

/* MOBILE RESPONSIVENESS */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 15px;
    }

    .nav {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .gold-price-widget {
        margin: -40px 20px 40px;
        /* Adjust spacing */
    }

    .section {
        padding: 50px 0;
    }

    .comparison-table-wrapper {
        margin: 20px -20px;
        /* Full width on mobile */
        border-radius: 0;
        box-shadow: none;
    }
}