﻿/*
Theme Name: Brazil Legal Group Theme
Theme URI: https://brazillegalgroup.com
Author: Brazil Legal Group
Description: Custom WordPress theme converted from static HTML/CSS template
Version: 1.0.0
Text Domain: brazillegalgroup
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
    /* Color Palette */
    --primary-navy: #0B1B3D;
    --secondary-navy: #12264D;
    --accent-gold: #F1BE14;
    --light-gold: #F6DE55;
    --text-dark: #1A1A1A;
    --text-gray: #5A6270;
    --text-light: #FDFDFE;
    --bg-light: #FDFDFE;
    --bg-gray: #F4F5F7;
    --bg-dark: #060E21;

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --section-padding: 5rem 0;
    --container-width: 1200px;

    /* Transitions */
    --transition-fast: 0.3s ease;
    --transition-slow: 0.5s ease;
}

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

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

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

/* Layout Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: var(--section-padding);
}

.section-bg-gray {
    background-color: var(--bg-gray);
}

.section-bg-dark {
    background-color: var(--primary-navy);
    color: var(--text-light);
}

/* Typography Utilities */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-navy);
    margin-bottom: 1rem;
    text-align: center;
}

.section-bg-dark .section-title {
    color: var(--text-light);
}

.section-subtitle {
    text-align: center;
    color: var(--text-gray);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 3rem auto;
}

.section-bg-dark .section-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

.gold-text {
    color: var(--accent-gold);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-weight: 500;
    font-family: var(--font-body);
    border-radius: 4px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--accent-gold);
    color: var(--primary-navy);
    font-weight: 600;
}

.btn-primary:hover {
    background-color: var(--light-gold);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(241, 190, 20, 0.3);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

.btn-outline:hover {
    background-color: var(--accent-gold);
    color: var(--primary-navy);
}

.btn-white {
    background-color: var(--text-light);
    color: var(--primary-navy);
}

.btn-white:hover {
    background-color: var(--bg-gray);
    transform: translateY(-2px);
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent;
    padding: 1.5rem 0;
    transition: var(--transition-fast);
}

.site-header.scrolled {
    background-color: rgba(11, 27, 61, 0.95);
    padding: 1.5rem 0;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

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

/* Logo transitions and size handling */
.logo-container img {
    height: 60px;
    width: auto;
    max-width: 250px;
    object-fit: contain;
    transform: scale(1.4);
    transform-origin: left center;
    margin-left: 15px;
    transition: var(--transition-fast);
}

.main-nav ul {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.main-nav a {
    color: var(--text-light);
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-gold);
    transition: width var(--transition-fast);
}

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

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown > a {
    white-space: nowrap;
}

.dropdown > a::after {
    content: '\f0d7';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-left: 8px;
    font-size: 0.8rem;
    display: inline-block;
    vertical-align: middle;
    position: static !important;
    width: auto !important;
    height: auto !important;
    background-color: transparent !important;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--primary-navy);
    min-width: 250px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-fast);
    border-radius: 4px;
    padding: 0.5rem 0;
    z-index: 100;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu a {
    display: block;
    padding: 0.8rem 1.5rem;
    font-size: 0.95rem;
    color: var(--text-light);
    white-space: nowrap;
}

.dropdown-menu a::after {
    display: none;
}

.dropdown-menu a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--accent-gold);
}

.mobile-menu-toggle {
    display: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    color: var(--text-light);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 0;
    opacity: 0;
    animation: heroFade 40s infinite;
}

.hero-bg:nth-child(1) { animation-delay: 0s; }
.hero-bg:nth-child(2) { animation-delay: 8s; }
.hero-bg:nth-child(3) { animation-delay: 16s; }
.hero-bg:nth-child(4) { animation-delay: 24s; }
.hero-bg:nth-child(5) { animation-delay: 32s; }

@keyframes heroFade {
    0% { opacity: 0; transform: scale(1); }
    5% { opacity: 1; }
    20% { opacity: 1; transform: scale(1.05); }
    25% { opacity: 0; transform: scale(1.05); }
    100% { opacity: 0; transform: scale(1); }
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(11, 27, 61, 0.9) 0%, rgba(11, 27, 61, 0.6) 100%);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
    padding-top: 5rem;
}

.hero h1 {
    font-size: 4rem;
    max-width: 800px;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

/* Services Grid (Cards) */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background-color: var(--bg-light);
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all var(--transition-fast);
    border-bottom: 3px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border-bottom-color: var(--accent-gold);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
}

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

.service-card p {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
}

.service-link {
    color: var(--primary-navy);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.service-link i {
    transition: transform var(--transition-fast);
}

.service-card:hover .service-link i {
    transform: translateX(5px);
    color: var(--accent-gold);
}

/* Two Column Layout (Text + Image) */
.two-col-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.content-col h2 {
    font-size: 2.5rem;
    color: var(--primary-navy);
    margin-bottom: 1.5rem;
}

.content-col p {
    margin-bottom: 1.5rem;
    color: var(--text-gray);
    font-size: 1.1rem;
}

.image-col img {
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(11, 27, 61, 0.15);
}

.image-wrapper {
    position: relative;
}

.image-wrapper::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--accent-gold);
    border-radius: 8px;
    z-index: -1;
}

/* Footer */
.site-footer {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 4rem 0 2rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    font-family: var(--font-body);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
}

.footer-col p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
}

.footer-logo {
    height: 70px;
    width: auto;
    max-width: 300px;
    object-fit: contain;
    transform: scale(1.5);
    transform-origin: left center;
    margin-bottom: 2rem;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links a:hover {
    color: var(--accent-gold);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.footer-offices {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2.5rem;
    margin-top: 1rem;
    margin-bottom: 2.5rem;
}

.footer-offices h4 {
    font-family: var(--font-body);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
}

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

.office-col h5 {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-body);
    font-weight: 600;
}

.office-col p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    line-height: 1.5;
}

.office-col p i {
    color: var(--accent-gold);
    margin-right: 5px;
}

@media (max-width: 992px) {
    .offices-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

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

/* Page Header (Inner pages) */
.page-header {
    padding: 10rem 0 4rem 0;
    background-color: var(--primary-navy);
    color: var(--text-light);
    text-align: center;
    position: relative;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background-color: var(--accent-gold);
}

.page-header h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.8);
}

/* Contact Page Specifics */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info-card {
    background-color: var(--bg-gray);
    padding: 3rem;
    border-radius: 8px;
    height: 100%;
    min-width: 0;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--accent-gold);
    background: var(--primary-navy);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.info-item h4 {
    margin-bottom: 0.3rem;
    color: var(--primary-navy);
}

.info-item p, .info-item a {
    color: var(--text-gray);
    word-break: break-word;
    overflow-wrap: anywhere;
}

.whatsapp-box {
    margin-top: 3rem;
    padding: 2rem;
    background: var(--primary-navy);
    border-radius: 8px;
    color: white;
}

.whatsapp-box h4 {
    color: var(--accent-gold);
    margin-bottom: 1rem;
}

.whatsapp-box p {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    color: rgba(255,255,255,0.8);
    overflow-wrap: anywhere;
}

.contact-form {
    background-color: var(--bg-light);
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    min-width: 0;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--primary-navy);
}

.form-control {
    width: 100%;
    min-width: 0;
    padding: 1rem;
    border: 1px solid #E2E8F0;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(241, 190, 20, 0.1);
}

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

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Service Detail Card */
.service-detail-card {
    background: #fff;
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
    border-left: 4px solid var(--accent-gold);
}

.service-detail-card h3 {
    color: var(--primary-navy);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.service-detail-card ul {
    margin-top: 1.5rem;
}

.service-detail-card li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--text-gray);
}

.service-detail-card li::before {
    content: '\f0da';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent-gold);
}

/* Responsive Design */
@media (max-width: 992px) {
    .two-col-grid, .contact-grid, .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .footer-grid {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.25rem;
    }

    .logo-container img {
        transform: scale(1) !important;
        margin-left: 0 !important;
        max-width: 100% !important;
        width: auto !important;
        height: 45px !important;
    }

    .footer-logo {
        transform: scale(1) !important;
        margin-bottom: 1.5rem !important;
        max-width: 100% !important;
        width: auto !important;
        height: 45px !important;
    }

    .footer-col p, .footer-links li {
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .contact-info-card, .contact-form, .service-detail-card {
        padding: 2rem;
    }

    .whatsapp-box {
        padding: 1.5rem;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background-color: var(--primary-navy);
        z-index: 1001;
        transition: var(--transition-fast);
        padding: 6rem 2rem 2rem 2rem;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
        overflow-y: auto;
    }
    
    .main-nav.active {
        right: 0;
    }
    
    .main-nav ul {
        flex-direction: column;
        align-items: flex-start;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background-color: transparent;
        display: none;
        margin-top: 0.5rem;
        padding-left: 1rem;
        border-left: 2px solid var(--accent-gold);
    }
    
    .dropdown > a {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }
    
    .dropdown.open .dropdown-menu {
        display: block;
    }
    
    .mobile-menu-toggle {
        display: block;
        z-index: 1002;
    }
    
    .site-header {
        background-color: var(--primary-navy);
        padding: 1rem 0;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

@media (max-width: 576px) {
    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.8rem;
        width: 100%;
        text-align: center;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
        text-align: center;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-info-card, .contact-form, .service-detail-card {
        padding: 1.25rem;
    }

    .whatsapp-box {
        padding: 1.25rem;
        margin-top: 2rem;
    }

    .whatsapp-box h4 {
        font-size: 1.2rem;
        word-break: break-word;
    }
    
    .service-detail-card h3 {
        font-size: 1.5rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .page-header h1 {
        font-size: 2.2rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.whatsapp-float i {
    margin: 0;
}

.whatsapp-float:hover {
    background-color: #20ba5a;
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    color: #FFF;
}

/* Pulse animation for the WhatsApp float */
.whatsapp-float::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 2px solid #25d366;
    border-radius: 50%;
    animation: waPulse 2s infinite;
    opacity: 0;
    z-index: -1;
}

@keyframes waPulse {
    0% {
        transform: scale(0.9);
        opacity: 1;
    }
    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

/* Adjust position on small screens */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
        font-size: 26px;
    }
}


