/* Design System */
:root {
    --color-bg-dark: #0a0e14;
    --color-bg-card: #131b26;
    --color-primary-gold: #c5a059;
    --color-primary-gold-hover: #b08d4b;
    --color-text-white: #f5f5f5;
    --color-text-muted: #a0a0a0;
    --color-border: #2c3e50;
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
    
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.3);
    --radius-card: 8px;
    --radius-btn: 4px;
}

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

body {
    background-color: var(--color-bg-dark);
    color: var(--color-text-white);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-text-white);
    font-weight: 700;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

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

/* Header */
.header {
    background-color: rgba(10, 14, 20, 0.95);
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    transition: padding 0.3s ease;
}

.header.scrolled {
    padding: 1rem 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-white);
}

.logo-icon {
    color: var(--color-primary-gold);
    font-size: 1.8rem;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text-white);
    position: relative;
    padding-bottom: 5px;
}

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

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

.nav-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.nav-phone {
    color: var(--color-primary-gold);
    font-weight: 700;
    font-size: 1rem;
    margin-top: 2px;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--color-primary-gold);
    transition: 0.3s;
}

/* Hero Section */
.hero {
    position: relative;
    padding: var(--spacing-xl) 0;
    overflow: hidden;
    min-height: 80vh;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at 70% 50%, rgba(20, 30, 45, 0.6) 0%, var(--color-bg-dark) 70%);
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.hero-visual img {
    max-height: 500px;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.5));
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
    max-width: 450px;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--color-primary-gold) 0%, #a68545 100%);
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: var(--radius-btn);
    box-shadow: 0 4px 15px rgba(197, 160, 89, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(197, 160, 89, 0.4);
    color: #fff;
}

/* Trust Cards */
.trust-cards {
    margin-top: -5rem;
    padding-bottom: var(--spacing-lg);
    position: relative;
    z-index: 10;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.card {
    background-color: var(--color-bg-card);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: var(--shadow-soft);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(197, 160, 89, 0.2);
}

.card-icon {
    font-size: 2rem;
    color: var(--color-primary-gold);
    margin-bottom: 1.5rem;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.card-text {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* Main Content */
.section {
    padding: var(--spacing-xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Grid Layouts for inner pages */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* Footer */
.footer {
    background-color: #05070a;
    padding: 4rem 0 2rem;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    color: var(--color-primary-gold);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

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

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: #555;
    font-size: 0.85rem;
}

/* Popup Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background-color: var(--color-bg-card);
    padding: 3rem;
    border-radius: var(--radius-card);
    text-align: center;
    max-width: 400px;
    border: 1px solid var(--color-primary-gold);
    box-shadow: 0 0 50px rgba(197, 160, 89, 0.2);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-icon {
    font-size: 3rem;
    color: var(--color-primary-gold);
    margin-bottom: 1.5rem;
}

.modal h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.modal p {
    color: var(--color-text-muted);
    margin-bottom: 2rem;
}

.modal-close {
    background: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-text-white);
    padding: 0.8rem 2rem;
    border-radius: var(--radius-btn);
    cursor: pointer;
    transition: 0.3s;
}

.modal-close:hover {
    background: var(--color-border);
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--color-text-white);
    font-size: 0.9rem;
}

.form-input, .form-textarea {
    width: 100%;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-btn);
    color: var(--color-text-white);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-input:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--color-primary-gold);
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-container {
        flex-direction: column-reverse;
        text-align: center;
        padding-top: 4rem;
        gap: 2rem;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-subtitle {
        margin: 0 auto 2.5rem;
    }
    
    .cards-grid, .grid-3, .grid-2 {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .trust-cards {
        margin-top: 0;
        padding-top: var(--spacing-lg);
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--color-bg-dark);
        flex-direction: column;
        padding: 2rem;
        border-bottom: 1px solid var(--color-border);
        transform: translateY(-150%);
        transition: transform 0.3s ease;
        z-index: 999;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    }
    
    .nav-contact {
        display: none;
    }
}

/* Mobile Footer Optimization */
@media (max-width: 768px) {
    .footer-content {
        display: flex;
        flex-direction: column;
        gap: 2.5rem;
        margin-bottom: 2rem;
    }

    .footer-col {
        width: 100%;
        text-align: left;
    }

    .footer-col h4 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .footer-col .logo {
        margin-bottom: 1rem;
    }

    .footer-col p {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .footer-links a {
        font-size: 1rem;
        line-height: 2;
        display: block;
    }

    .footer-links li {
        display: flex;
        align-items: flex-start;
        margin-bottom: 0.5rem;
    }
    
    /* Ensure icons in contact list align properly */
    .footer-links i {
        min-width: 25px;
        margin-top: 5px; /* Visual alignment with text */
    }

    .copyright {
        margin-top: 1rem;
        padding-top: 2rem;
        font-size: 0.85rem;
        text-align: center;
    }
}
