/* ==========================================
   AXEL RAUL LANZA MOLINA — LEGAL SERVICES
   Brand Colors:
   - Deep Midnight Blue: #081229
   - Professional Sky Blue: #183363
   - Polished Steel: #617392
   - Warm Antique Gold: #B58F58
   - Aged Parchment: #E1D9C8
   - Pure Ivory White: #F5F5F0
   - Text Dark Grey: #282F3E
   ========================================== */

/* ---------- RESET & BASE ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Montserrat', Arial, sans-serif;
    color: #F5F5F0;
    background-color: #081229;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul { list-style: none; }

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

/* ---------- NAVBAR ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease;
    padding: 0.8rem 0;
}

.navbar.scrolled {
    background: rgba(8, 18, 41, 0.97);
    box-shadow: 0 2px 30px rgba(0, 0, 0, 0.4);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
}

.nav-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.nav-logo {
    font-family: 'Great Vibes', cursive;
    font-size: 2.2rem;
    color: #F5F5F0;
    line-height: 1;
    margin-bottom: 0.15rem;
    transition: color 0.3s;
}

.nav-logo:hover {
    color: #B58F58;
}

.nav-subtitle-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.nav-line {
    height: 1px;
    background-color: #F5F5F0;
    flex-grow: 1;
    opacity: 0.4;
}

.nav-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.42rem;
    font-weight: 500;
    letter-spacing: 2.5px;
    color: #F5F5F0;
    opacity: 0.8;
}

.nav-menu {
    display: flex;
    gap: 1.8rem;
    align-items: center;
}

.nav-link {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: #F5F5F0;
    position: relative;
    padding: 0.25rem 0;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: #B58F58;
    transition: width 0.3s ease;
}

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

.nav-link:hover,
.nav-link.active {
    color: #B58F58;
}

/* Mobile toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: #F5F5F0;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ---------- HERO SECTION ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    overflow: hidden;
    background: #081229;
    padding-top: 70px;
}

/* Background glow effect */
.hero-bg-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(ellipse 70% 60% at 35% 50%, rgba(24, 51, 99, 0.5) 0%, transparent 70%),
        radial-gradient(ellipse 50% 50% at 60% 40%, rgba(97, 115, 146, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse 30% 40% at 30% 60%, rgba(181, 143, 88, 0.08) 0%, transparent 50%);
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    padding: 2rem 2rem 0;
    position: relative;
    z-index: 2;
    gap: 1rem;
}

.hero-image-wrapper {
    flex: 0 0 44%;
    max-width: 44%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image {
    width: 100%;
    max-height: 82vh;
    object-fit: contain;
    object-position: center;
    filter: drop-shadow(0 0 60px rgba(24, 51, 99, 0.4)) drop-shadow(0 0 120px rgba(181, 143, 88, 0.1));
    animation: heroFloat 6s ease-in-out infinite;
}

@keyframes heroFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.hero-content {
    flex: 0 0 48%;
    max-width: 48%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-left: 1rem;
}

.hero-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.4rem;
    font-weight: 800;
    color: #F5F5F0;
    line-height: 1.15;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1.5rem;
    text-shadow: 0 2px 30px rgba(0, 0, 0, 0.3);
}

/* Gold accent line under title */
.hero-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, #B58F58, rgba(245, 245, 240, 0.2), transparent);
}

.hero-services {
    width: 100%;
    max-width: 380px;
    margin-bottom: 2.5rem;
}

.hero-services li {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1rem;
    font-weight: 400;
    color: #F5F5F0;
    padding: 0.7rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: padding-left 0.3s ease;
}

.hero-services li:hover {
    padding-left: 6px;
}

.hero-services li:last-child {
    border-bottom: none;
}

.hero-icon-img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    filter: none;
    opacity: 1;
    flex-shrink: 0;
}

.hero-cta {
    display: inline-block;
    background: linear-gradient(135deg, #B58F58, #C9A56C);
    color: #F5F5F0;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 1.1rem 2.5rem;
    border: none;
    cursor: pointer;
    text-align: center;
    border-radius: 4px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(181, 143, 88, 0.3);
}

.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(181, 143, 88, 0.4);
}

/* ---------- SERVICES GRID ---------- */
.services {
    background: #060b14;
    padding: 5rem 0 6rem;
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(8, 18, 41, 0.5) 0%, transparent 30%, transparent 70%, rgba(8, 18, 41, 0.5) 100%);
    pointer-events: none;
}

.section-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    color: #B58F58;
    margin-bottom: 3.5rem;
    letter-spacing: 2px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    justify-items: center;
}

.service-card {
    background-color: #0b1426;
    text-align: center;
    padding: 2.5rem 1.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    border: 1px solid rgba(181, 143, 88, 0.4);
    min-height: 380px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(181, 143, 88, 0.15);
    width: 100%;
    color: #F5F5F0;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 35px rgba(181, 143, 88, 0.35);
}

.service-icon-wrapper {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80px;
    height: 80px;
}

.service-icon-img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    filter: none;
}

.service-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    min-height: 2.8rem;
}

.service-desc {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 400;
    color: #9ba6b5;
    line-height: 1.6;
}

/* ---------- ABOUT SECTION ---------- */
.about {
    background: #081229;
    padding: 5rem 0;
}

.about .section-title {
    text-align: center;
}

.about-content-box {
    background: linear-gradient(135deg, rgba(24, 51, 99, 0.3), rgba(8, 18, 41, 0.8));
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 3.5rem 4rem;
    border-radius: 6px;
    backdrop-filter: blur(10px);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.about-col p {
    font-size: 0.8rem;
    font-weight: 300;
    line-height: 1.9;
    color: #E1D9C8;
    margin-bottom: 1.5rem;
    text-align: justify;
}

.about-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #F5F5F0;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}

.about-col-right {
    padding-top: 3rem;
}

.about-cta {
    display: inline-block;
    background: #B58F58;
    color: #F5F5F0;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 0.7rem 2.2rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.about-cta:hover {
    background: #C9A56C;
    transform: translateY(-2px);
}

/* ---------- CONTACT / FOOTER SECTION ---------- */
.contact {
    background: linear-gradient(180deg, #183363 0%, #081229 100%);
    position: relative;
    display: flex;
    flex-direction: column;
}

.contact-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 5rem 2rem 5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
    width: 100%;
}

.contact-phone {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.phone-icon {
    width: 36px;
    height: 36px;
    color: #617392;
}

.phone-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.6rem;
    font-weight: 300;
    color: #F5F5F0;
    letter-spacing: 2px;
}

.contact-details h4 {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    color: #F5F5F0;
}

.contact-details p {
    font-size: 0.8rem;
    font-weight: 300;
    color: #E1D9C8;
    margin-bottom: 0.6rem;
    line-height: 1.6;
}

/* ---------- CONTACT FORM ---------- */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #F5F5F0;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.82rem;
    border-radius: 3px;
    outline: none;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #B58F58;
    background: rgba(255, 255, 255, 0.08);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #617392;
    font-weight: 400;
}

.contact-form textarea {
    resize: none;
    min-height: 100px;
}

.form-submit {
    align-self: flex-start;
    background: #B58F58;
    color: #F5F5F0;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 0.75rem 2.2rem;
    border: none;
    cursor: pointer;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.form-submit:hover {
    background: #C9A56C;
    transform: translateY(-1px);
}

/* ---------- FOOTER ---------- */
.footer {
    width: 100%;
    background: rgba(8, 18, 41, 0.6);
    padding: 1.5rem 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer p {
    font-size: 0.68rem;
    color: #617392;
    letter-spacing: 0.5px;
}

/* ---------- SCROLL REVEAL ANIMATIONS ---------- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(8, 18, 41, 0.98);
        flex-direction: column;
        align-items: center;
        padding: 1.5rem 0;
        gap: 1rem;
        backdrop-filter: blur(10px);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        padding-top: 100px;
        min-height: auto;
        padding-bottom: 3rem;
    }

    .hero-container {
        flex-direction: column;
        padding: 0 1.5rem;
    }

    .hero-image-wrapper {
        flex: none;
        max-width: 65%;
        margin-bottom: 2rem;
    }

    .hero-content {
        flex: none;
        max-width: 100%;
        align-items: center;
        padding-left: 0;
        text-align: center;
    }

    .hero-title {
        font-size: 1.8rem;
        text-align: center;
    }

    .hero-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .hero-services {
        max-width: 100%;
    }

    .hero-services li {
        justify-content: center;
    }

    .hero-cta {
        width: 100%;
        max-width: 320px;
    }

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

    .about-content-box {
        padding: 2rem 1.5rem;
    }

    .about-grid,
    .contact-container {
        grid-template-columns: 1fr;
    }

    .about-col-right {
        padding-top: 0;
    }

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

@media (max-width: 480px) {
    .nav-logo {
        font-size: 1.6rem;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-services li {
        font-size: 0.9rem;
    }

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