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

:root {
    --primary: #0a192f;
    --secondary: #c9a86c;
    --accent: #d32f2f;
    --text: #1a1a1a;
    --text-light: #5a5a5a;
    --bg-light: #f8f9fa;
    --white: #ffffff;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

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

/* Header */
header {
    background: rgba(10, 25, 47, 0.95);
    backdrop-filter: blur(10px);
    color: var(--white);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.header-phone {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.header-phone:hover {
    color: var(--white);
}

.header-phone i {
    margin-right: 0.5rem;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    margin-right: 0;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background: var(--secondary);
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: center;
    display: block;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(0, 10px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(0, -10px);
}

nav .nav-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

nav .nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    padding: 0.4rem 0.7rem;
    border-radius: 4px;
    transition: background 0.3s ease, color 0.3s ease;
}

nav .nav-links a:hover,
nav .nav-links a.active {
    background: rgba(201, 168, 108, 0.15);
    color: var(--secondary);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(10, 25, 47, 0.85), rgba(10, 25, 47, 0.9)), 
                url('../images/BackgroundPhoto.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
    padding: 180px 0 120px;
    text-align: center;
    position: relative;
}

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

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero .sub-headline {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    color: #e0e0e0;
    font-weight: 500;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.btn {
    padding: 16px 36px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--secondary);
    color: var(--primary);
    box-shadow: 0 4px 15px rgba(201, 168, 108, 0.3);
}

.btn-primary:hover {
    background: #b89860;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(201, 168, 108, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--secondary);
}

.btn-secondary:hover {
    background: var(--secondary);
    color: var(--primary);
    transform: translateY(-3px);
}

/* Section Styles */
section {
    padding: 100px 0;
}

.section-title {
    font-size: 2.8rem;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--primary);
    font-weight: 800;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--secondary);
    margin: 1rem auto 0;
    border-radius: 2px;
}

/* About Section */
.about {
    background: var(--bg-light);
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.9;
    text-align: center;
}

.about-image {
    text-align: center;
    margin-bottom: 3rem;
}

.about-image img {
    max-width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Practice Areas */
.practice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.practice-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
    border: none;
}

.practice-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.practice-card-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.practice-card-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(10,25,47,0.7) 100%);
}

.practice-card-content {
    padding: 2rem;
}

.practice-card h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.practice-card h3 i {
    color: var(--secondary);
    font-size: 1.5rem;
}

.practice-card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* Why Choose Us */
.why-choose-us {
    background: var(--bg-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.feature-item {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border-top: 4px solid var(--secondary);
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.feature-icon {
    color: var(--secondary);
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.feature-content h4 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-family: 'Playfair Display', serif;
}

.feature-content p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Defense Philosophy */
.defense-philosophy {
    background: var(--primary);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.defense-philosophy::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/BackgroundPhoto.png') center/cover;
    opacity: 0.1;
    z-index: 0;
}

.defense-philosophy .container {
    position: relative;
    z-index: 1;
}

.defense-philosophy .section-title {
    color: var(--white);
}

.philosophy-quotes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.quote-card {
    background: rgba(201, 168, 108, 0.1);
    padding: 2rem;
    border-radius: 10px;
    border-left: 5px solid var(--secondary);
    font-style: italic;
    font-size: 1.2rem;
    font-family: 'Playfair Display', serif;
    text-align: center;
}

.challenge-list {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.challenge-item {
    padding: 1rem;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.challenge-item:hover {
    background: rgba(201, 168, 108, 0.15);
    transform: translateX(5px);
}

.challenge-item::before {
    content: '⚖';
    color: var(--secondary);
    font-size: 1.5rem;
    flex-shrink: 0;
}

/* CTA Section */
.cta-section {
    background: var(--secondary);
    color: var(--primary);
    text-align: center;
    position: relative;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/BackgroundPhoto.png') center/cover;
    opacity: 0.1;
    z-index: 0;
}

.cta-section .container {
    position: relative;
    z-index: 1;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

.cta-section .urgency {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    font-weight: 600;
    color: var(--primary);
}

/* Footer */
footer {
    background: var(--primary);
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
}

.footer-tagline {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--secondary);
    font-family: 'Playfair Display', serif;
}

.footer-contact {
    margin-top: 2rem;
}

.footer-contact p {
    margin: 0.5rem 0;
    font-size: 1.1rem;
}

.footer-contact a {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: var(--white);
}

.footer-phone-link {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.footer-phone-link:hover {
    color: var(--white);
}

/* Responsive */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
    }

    /* Hide regular nav layout but keep it accessible for nav-links */
    nav {
        position: absolute;
        top: 0;
        left: -9999px;
        width: 1px;
        height: 1px;
        overflow: visible;
    }

    nav .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 80%;
        max-width: 320px;
        background: rgba(10, 25, 47, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 2rem 2rem;
        gap: 0;
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -5px 0 20px rgba(0,0,0,0.3);
        z-index: 1001;
        overflow-y: auto;
        display: flex !important;
        visibility: visible;
        opacity: 1;
    }

    nav .nav-links.active {
        right: 0;
    }

    nav .nav-links a {
        width: 100%;
        padding: 1rem;
        border-bottom: 1px solid rgba(201, 168, 108, 0.1);
        font-size: 1.1rem;
        display: block;
    }

    nav .nav-links a.header-phone {
        margin-top: 1rem;
        padding: 1rem;
        background: rgba(201, 168, 108, 0.15);
        border-radius: 6px;
        text-align: center;
        width: 100%;
    }

    .header-content {
        position: relative;
        padding-right: 60px;
    }

    .logo {
        font-size: 1.2rem;
        flex: 1;
    }

    .hero {
        background-attachment: scroll;
        padding: 140px 0 80px;
    }

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

    .hero .sub-headline {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .section-title::after {
        width: 60px;
    }

    .challenge-list {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

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

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Consultation Form Modal */
.consultation-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.consultation-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 25, 47, 0.95);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background: var(--white);
    border-radius: 12px;
    padding: 2.5rem;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    z-index: 10001;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

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

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--text-light);
    cursor: pointer;
    padding: 0.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 10002;
}

.modal-close:hover {
    background: var(--bg-light);
    color: var(--primary);
}

.modal-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--bg-light);
}

.modal-header h2 {
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-family: 'Playfair Display', serif;
}

.modal-header p {
    color: var(--text-light);
    font-size: 1rem;
}

.consultation-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.875rem;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    background: var(--white);
    color: var(--text);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(201, 168, 108, 0.1);
}

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

.form-group .btn-submit {
    width: 100%;
    margin-top: 0.5rem;
}

.success-message {
    text-align: center;
    padding: 2rem;
}

.success-icon {
    font-size: 4rem;
    color: #28a745;
    margin-bottom: 1rem;
}

.success-message h3 {
    color: var(--primary);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
}

.success-message p {
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Prevent body scroll when modal is open */
body.modal-open {
    overflow: hidden;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .modal-content {
        padding: 1.5rem;
        width: 95%;
        max-height: 95vh;
    }

    .modal-header h2 {
        font-size: 1.5rem;
    }

    .modal-close {
        top: 0.5rem;
        right: 0.5rem;
    }
}
