/* Modern Design System - LoanAgainstGold.com */

/* Modern Design System - LoanAgainstGold.com */

/* Blur removed for transparency */
/* Custom styles */

: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);
}

.mobile-menu-btn {
    display: none;
}

.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);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-gold), var(--primary-gold-dark));
    color: var(--white);
    padding: 12px 28px;
    border-radius: var(--radius-md);
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(212, 175, 55, 0.3);
}

.btn-secondary {
    background: var(--secondary-dark);
    color: var(--white);
    padding: 12px 28px;
    border-radius: var(--radius-md);
    font-weight: 600;
    border: 1px solid var(--secondary-dark);
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-secondary:hover {
    background: var(--text-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* 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;
}

.btn-hero-primary {
    background: #FFFFFF;
    color: var(--secondary-dark);
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    font-size: 1.1rem;
}

.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    background: #f8f9fa;
}

.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    color: #FFFFFF;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.4);
}

/* 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;
}

/* CITY PAGE LAYOUT */
.city-content-wrapper {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.city-results-column {
    flex: 2;
    min-width: 300px;
}

.city-sidebar-column {
    flex: 1;
    min-width: 280px;
}

@media (max-width: 768px) {

    .city-results-column,
    .city-sidebar-column {
        min-width: 100%;
        flex: 1 1 100%;
    }

    .city-content-wrapper {
        gap: 20px;
    }
}

/* CALCULATOR PAGE LAYOUT */
.calculator-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.results-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

@media (max-width: 768px) {
    .calculator-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .results-grid {
        grid-template-columns: 1fr 1fr;
        /* Keep side-by-side or stack? 1fr 1fr usually fits small numbers */
    }
}

@media (max-width: 480px) {
    .results-grid {
        grid-template-columns: 1fr;
    }
}

.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 ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer li {
    margin-bottom: 10px;
}

.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;
}

/* ======================================================
   RESPONSIVE DESIGN — Comprehensive Breakpoints
   ====================================================== */

/* --- Tablet landscape (≤1024px) --- */
@media (max-width: 1024px) {
    .container {
        padding: 0 24px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .nav {
        gap: 18px;
    }

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

    .comparison-table-wrapper {
        overflow-x: auto;
    }
}

/* --- Tablet portrait (≤768px) --- */
@media (max-width: 768px) {

    /* Header & Nav */
    .header {
        padding: 10px 0;
    }

    .header .container {
        flex-wrap: wrap;
        justify-content: space-between;
        padding: 10px 16px;
        position: relative;
    }

    .logo a {
        font-size: 1.25rem;
    }

    .mobile-menu-btn {
        display: flex !important;
        background: none;
        border: none;
        font-size: 1.5rem;
        color: var(--secondary-dark);
        cursor: pointer;
        padding: 5px;
        align-items: center;
        justify-content: center;
        z-index: 1002;
    }

    .nav {
        display: none;
        width: 100%;
        flex-direction: column;
        background: #fff;
        position: absolute;
        top: 100%;
        left: 0;
        padding: 16px;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
        border-top: 2px solid var(--primary-gold);
        z-index: 1001;
        gap: 0;
    }

    .nav.active {
        display: flex;
    }

    .nav a {
        display: block;
        padding: 12px 8px;
        border-bottom: 1px solid #f0f0f0;
        font-size: 1rem;
    }

    .nav a::after {
        display: none;
    }

    .nav a:last-child {
        border-bottom: none;
        margin-top: 8px;
        text-align: center;
    }

    /* Hero */
    .hero {
        padding: 80px 0 60px;
    }

    .hero h1 {
        font-size: 2rem;
        line-height: 1.25;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 24px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        max-width: 320px;
        justify-content: center;
        font-size: 1rem;
        padding: 14px 24px;
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        margin-top: 40px;
    }

    .stat-item {
        padding: 20px 15px;
    }

    .stat-number {
        font-size: 1.6rem;
    }

    /* Gold Ticker */
    .ticker-content {
        justify-content: center;
        gap: 16px;
    }

    .ticker-item {
        flex: 1 1 40%;
        justify-content: center;
    }

    /* Sections */
    .section {
        padding: 50px 0;
    }

    h2 {
        font-size: 1.6rem;
    }

    h3 {
        font-size: 1.2rem;
    }

    /* Grids */
    .features-grid,
    .steps-grid,
    .trust-grid,
    .cities-grid,
    .dashboard-grid,
    .offer-grid,
    .lender-layout,
    .admin-layout {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    .feature-card {
        padding: 22px;
    }

    /* CTA Section */
    .cta-section {
        padding: 60px 0;
    }

    .cta-section h2 {
        font-size: 1.8rem;
    }

    .cta-section p {
        font-size: 1rem;
    }

    /* Tables */
    .comparison-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 20px 0;
        border-radius: var(--radius-md);
    }

    table {
        min-width: 560px;
    }

    th,
    td {
        padding: 12px 14px;
        font-size: 0.9rem;
    }

    /* Forms */
    .lead-form {
        padding: 24px;
    }

    /* Comparison card */
    .comparison-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 12px;
    }

    .comparison-details {
        text-align: center;
        justify-content: center;
    }

    .comparison-details>div {
        justify-content: center;
    }

    /* Lender / Admin sidebars */
    .lender-sidebar,
    .admin-sidebar {
        border-right: none;
        border-bottom: 1px solid #eee;
        padding-bottom: 20px;
    }

    /* Gold Price Widget */
    .gold-price-widget {
        margin: -40px 16px 40px;
    }

    /* Footer */
    .footer {
        padding: 40px 0 24px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 24px;
    }

    .footer-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    .footer li {
        margin-bottom: 0;
    }

    /* City page */
    .city-content-wrapper {
        flex-direction: column;
        gap: 20px;
    }

    .city-results-column,
    .city-sidebar-column {
        width: 100%;
        min-width: unset;
        flex: 1 1 100%;
    }

    /* Calculator */
    .calculator-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .calculator-container {
        padding: 24px 16px;
    }
}

/* --- Mobile (≤480px) --- */
@media (max-width: 480px) {
    .container {
        padding: 0 14px;
    }

    .hero {
        padding: 70px 0 50px;
    }

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

    .hero-stats {
        grid-template-columns: 1fr;
    }

    .stat-number {
        font-size: 1.4rem;
    }

    .ticker-item {
        flex: 1 1 100%;
    }

    .ticker-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .ticker-price {
        font-size: 1.1rem;
    }

    .section {
        padding: 40px 0;
    }

    h2 {
        font-size: 1.4rem;
    }

    .btn-cta,
    .btn-primary {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .results-grid {
        grid-template-columns: 1fr;
    }

    .feature-card {
        padding: 18px;
    }

    .step-number {
        width: 55px;
        height: 55px;
        font-size: 1.5rem;
    }

    .trust-number {
        font-size: 2rem;
    }

    .trust-icon {
        font-size: 2.5rem;
    }

    .cta-section h2 {
        font-size: 1.5rem;
    }

    .lead-form {
        padding: 18px 14px;
    }

    .footer h3 {
        font-size: 1.1rem;
    }

    table {
        min-width: 480px;
    }

    th,
    td {
        padding: 10px 10px;
        font-size: 0.8rem;
    }
}

/* --- Small phones (≤360px) --- */
@media (max-width: 360px) {
    .hero h1 {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: 0.9rem;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        font-size: 0.9rem;
        padding: 12px 16px;
    }

    .logo a {
        font-size: 1.1rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    .section {
        padding: 30px 0;
    }
}

/* --- Force Desktop Nav on wide screens --- */
@media (min-width: 769px) {
    .mobile-menu-btn {
        display: none !important;
    }

    .nav {
        display: flex !important;
        position: static;
        flex-direction: row;
        box-shadow: none;
        border: none;
        padding: 0;
        gap: 30px;
    }
}