/*
  Muzamil A. Ali Law Offices - Main Stylesheet
  Civil Litigation & Appeals
*/

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

:root {
    --dark: #0a0a0a;
    --charcoal: #1a1a1a;
    --gold: #c9a961;
    --cream: #f5f1e8;
    --white: #ffffff;
    --gray: #8a8a8a;
}

body {
    font-family: 'Lato', sans-serif;
    color: var(--cream);
    background: var(--dark);
    line-height: 1.6;
}

.serif {
    font-family: 'Playfair Display', serif;
}

/* Header/Navigation */
header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(201, 169, 97, 0.1);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 0.5rem;
    width: 40px;
    height: 40px;
    flex-direction: column;
    justify-content: space-between;
}

.mobile-nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--gold);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.mobile-nav-toggle.active span:nth-child(1) {
    transform: translateY(12px) rotate(45deg);
}

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

.mobile-nav-toggle.active span:nth-child(3) {
    transform: translateY(-12px) rotate(-45deg);
}

.logo {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    position: relative;
    padding-left: 1rem;
    border-left: 2px solid var(--gold);
}

.logo-initials {
    font-size: 2.2rem;
    font-weight: 300;
    letter-spacing: 5px;
    color: var(--gold);
    margin-bottom: -0.2rem;
    font-family: 'Playfair Display', serif;
    font-style: italic;
}

.logo-full {
    font-size: 0.75rem;
    color: var(--cream);
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 300;
}

nav {
    display: flex;
    align-items: center;
    gap: 3rem;
    transition: gap 0.3s ease;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    transition: gap 0.3s ease;
}

.nav-links a {
    color: var(--cream);
    text-decoration: none;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
    position: relative;
    white-space: nowrap;
}

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

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

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

.nav-links a.active {
    color: var(--gold);
}

.header-contact {
    display: flex;
    align-items: center;
    gap: 2rem;
    transition: gap 0.3s ease;
}

.call-us {
    text-align: right;
    white-space: nowrap;
}

.call-label {
    font-size: 0.75rem;
    color: var(--gray);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.phone {
    font-size: 1.1rem;
    color: var(--gold);
    text-decoration: none;
    font-weight: 700;
    white-space: nowrap;
}

.btn-consultation {
    padding: 0.75rem 1.5rem;
    background: transparent;
    color: var(--gold);
    text-decoration: none;
    font-size: 0.8rem;
    letter-spacing: 1px;
    font-weight: 700;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid var(--gold);
    text-transform: uppercase;
    white-space: nowrap;
}

.btn-consultation:hover {
    background: var(--gold);
    color: var(--dark);
    box-shadow: 0 4px 20px rgba(201, 169, 97, 0.2);
    transform: translateY(-1px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 0 3rem;
    background: linear-gradient(rgba(10, 10, 10, 0.8), rgba(10, 10, 10, 0.6)),
                url('../images/inaki-del-olmo-NIJuEQw0RKg-unsplash.jpg'),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><rect fill="%23141414" width="1200" height="800"/></svg>');
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, rgba(10,10,10,1) 0%, rgba(10,10,10,0.4) 50%, rgba(10,10,10,0) 100%);
    z-index: 1;
}

.hero-ornament {
    position: absolute;
    right: -10%;
    top: 50%;
    transform: translateY(-50%);
    width: 50%;
    height: 80%;
    opacity: 0.15;
    background: radial-gradient(circle, rgba(201,169,97,0.3) 0%, transparent 70%);
    filter: blur(100px);
}

.hero-pattern {
    position: absolute;
    right: 0;
    top: 0;
    width: 60%;
    height: 100%;
    background-image:
        repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(201,169,97,0.03) 35px, rgba(201,169,97,0.03) 70px);
    opacity: 0.5;
}

.hero-content {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding-top: 6rem;
    position: relative;
    z-index: 2;
}

.hero-text {
    max-width: 650px;
}

.hero-text h1 {
    font-size: 4.5rem;
    line-height: 1.15;
    font-weight: 400;
    margin-bottom: 2rem;
    color: var(--cream);
}

.hero-text h1 .highlight {
    color: var(--gold);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 2.5rem;
    line-height: 1.9;
    max-width: 560px;
}

/* Page Header (for subpages) */
.page-header {
    padding: 10rem 3rem 5rem;
    background: var(--charcoal);
    text-align: center;
    border-bottom: 1px solid rgba(201, 169, 97, 0.1);
}

.page-header h1 {
    font-size: 4rem;
    font-weight: 400;
    color: var(--cream);
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.2rem;
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto;
}

/* Services Section */
.services {
    padding: 8rem 3rem;
    background: var(--charcoal);
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 100px;
    background: linear-gradient(to bottom, transparent, var(--gold), transparent);
}

.section-header {
    max-width: 1400px;
    margin: 0 auto 5rem;
    text-align: center;
}

.section-label {
    font-size: 0.85rem;
    letter-spacing: 2px;
    color: var(--gold);
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.section-header h2 {
    font-size: 3.5rem;
    font-weight: 400;
    color: var(--cream);
    margin-bottom: 1.5rem;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto;
}

.services-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.service-card {
    padding: 3rem 2rem;
    background: var(--dark);
    border: 1px solid rgba(201, 169, 97, 0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transition: transform 0.4s ease;
    transform-origin: left;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(201, 169, 97, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 500;
    color: var(--cream);
}

.service-card p {
    color: var(--gray);
    line-height: 1.8;
    font-size: 0.95rem;
}

/* Service Detail (for practice pages) */
.service-detail {
    padding: 6rem 3rem;
    background: var(--dark);
}

.service-detail-content {
    max-width: 1200px;
    margin: 0 auto;
}

.service-detail h2 {
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--gold);
    margin-bottom: 2rem;
}

.service-detail h3 {
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--cream);
    margin: 2rem 0 1rem;
}

.service-detail p {
    font-size: 1.05rem;
    color: var(--gray);
    line-height: 1.9;
    margin-bottom: 1.5rem;
}

.service-detail ul {
    list-style: none;
    margin: 2rem 0;
}

.service-detail ul li {
    font-size: 1.05rem;
    color: var(--gray);
    padding: 0.8rem 0;
    padding-left: 2rem;
    position: relative;
}

.service-detail ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-size: 1.5rem;
}

/* About Section */
.about {
    padding: 8rem 3rem;
    background: var(--dark);
}

.about-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.about-image {
    position: relative;
    height: 600px;
    background: linear-gradient(135deg, rgba(201,169,97,0.2) 0%, rgba(26,26,26,0.8) 100%);
    border: 1px solid rgba(201, 169, 97, 0.2);
}

.about-image::before {
    content: '';
    position: absolute;
    inset: 20px;
    border: 1px solid rgba(201, 169, 97, 0.1);
}

.about-text h2 {
    font-size: 3.5rem;
    font-weight: 400;
    margin-bottom: 2rem;
    color: var(--cream);
    line-height: 1.2;
}

.about-text p {
    font-size: 1.05rem;
    color: var(--gray);
    line-height: 1.9;
    margin-bottom: 1.5rem;
}

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

.stat {
    text-align: center;
    padding: 2rem 1rem;
    border: 1px solid rgba(201, 169, 97, 0.1);
}

.stat-number {
    font-size: 3rem;
    font-weight: 400;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--gray);
    letter-spacing: 1px;
}

/* Contact Form */
.contact-form-section {
    padding: 6rem 3rem;
    background: var(--charcoal);
}

.contact-form-container {
    max-width: 800px;
    margin: 0 auto;
}

.form-grid {
    display: grid;
    gap: 2rem;
}

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

.form-group label {
    font-size: 0.9rem;
    color: var(--cream);
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 1rem;
    background: var(--dark);
    border: 1px solid rgba(201, 169, 97, 0.2);
    color: var(--cream);
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

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

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

/* CTA Section */
.cta {
    padding: 6rem 3rem;
    background: var(--charcoal);
    text-align: center;
    border-top: 1px solid rgba(201, 169, 97, 0.1);
    border-bottom: 1px solid rgba(201, 169, 97, 0.1);
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 3rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    color: var(--cream);
}

.cta-content p {
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 2.5rem;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.btn {
    padding: 1rem 2.5rem;
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    display: inline-block;
    text-transform: uppercase;
    font-weight: 700;
}

.btn-primary {
    background: var(--gold);
    color: var(--dark);
    border: 2px solid var(--gold);
}

.btn-primary:hover {
    background: transparent;
    color: var(--gold);
}

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

.btn-secondary:hover {
    background: var(--cream);
    color: var(--dark);
}

/* Footer */
footer {
    background: var(--dark);
    padding: 4rem 3rem 2rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-about h3 {
    font-size: 1.5rem;
    color: var(--gold);
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.footer-about p {
    color: var(--gray);
    line-height: 1.8;
    font-size: 0.95rem;
}

.footer-links h4 {
    font-size: 1rem;
    color: var(--cream);
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.footer-links ul {
    list-style: none;
}

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

.footer-links a {
    color: var(--gray);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(201, 169, 97, 0.1);
    text-align: center;
    color: var(--gray);
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .mobile-nav-toggle {
        display: flex;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 320px;
        height: 100vh;
        background: var(--dark);
        border-left: 1px solid rgba(201, 169, 97, 0.2);
        padding: 6rem 3rem 3rem;
        flex-direction: column;
        align-items: flex-start !important;
        gap: 4rem !important;
        z-index: 1000;
        transition: right 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    }

    nav.nav-open {
        right: 0;
    }

    .nav-links {
        flex-direction: column;
        gap: 2rem !important;
        width: 100%;
    }

    .nav-links a {
        font-size: 1.2rem;
        width: 100%;
        display: block;
    }

    .header-contact {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 2.5rem !important;
        width: 100%;
    }

    .call-us {
        text-align: left;
    }

    .btn-consultation {
        width: 100%;
        text-align: center;
        padding: 1rem;
    }

    .hero-text h1 {
        font-size: 3.5rem;
    }

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

    .about-content {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 1.2rem 2rem;
    }

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

    .page-header h1 {
        font-size: 2.5rem;
    }

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

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

    .cta-buttons {
        flex-direction: column;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

