/* ===================================
   GEDILSON PONTES Advocacia
   Custom Styles - Complementar ao Tailwind CSS
   =================================== */

/* ===== CSS Variables ===== */
:root {
    --navy: #0e1634;
    --gold: #e4b762;
    --light-gray: #dedddd;
    --white: #ffffff;
    --black: #000000;
    --transition: all 0.3s ease;
}

/* ===== Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--navy);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

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

/* ===== Color Utilities ===== */
.text-navy { color: var(--navy); }
.text-gold { color: var(--gold); }
.text-light-gray { color: var(--light-gray); }
.bg-navy { background-color: var(--navy); }
.bg-gold { background-color: var(--gold); }
.bg-light-gray { background-color: var(--light-gray); }

/* ===== Navigation ===== */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(14, 22, 52, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 0;
    position: relative;
    transition: var(--transition);
}

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

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

#mobile-menu {
    background: rgba(14, 22, 52, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 8px;
    margin-top: 8px;
    border: 1px solid rgba(228, 183, 98, 0.15);
}

.mobile-nav-link {
    display: block;
    color: white;
    text-decoration: none;
    padding: 12px 16px;
    border-radius: 8px;
    transition: var(--transition);
    background: transparent;
}

.mobile-nav-link:hover {
    background: rgba(228, 183, 98, 0.2);
    transform: translateX(5px);
}

/* ===== Hero Section ===== */
.hero-section {
    background: linear-gradient(135deg, var(--navy) 0%, #1a2347 100%);
    position: relative;
}

.hero-pattern {
    background-image: 
        linear-gradient(30deg, rgba(228, 183, 98, 0.05) 12%, transparent 12.5%, transparent 87%, rgba(228, 183, 98, 0.05) 87.5%, rgba(228, 183, 98, 0.05)),
        linear-gradient(150deg, rgba(228, 183, 98, 0.05) 12%, transparent 12.5%, transparent 87%, rgba(228, 183, 98, 0.05) 87.5%, rgba(228, 183, 98, 0.05)),
        linear-gradient(30deg, rgba(228, 183, 98, 0.05) 12%, transparent 12.5%, transparent 87%, rgba(228, 183, 98, 0.05) 87.5%, rgba(228, 183, 98, 0.05)),
        linear-gradient(150deg, rgba(228, 183, 98, 0.05) 12%, transparent 12.5%, transparent 87%, rgba(228, 183, 98, 0.05) 87.5%, rgba(228, 183, 98, 0.05));
    background-size: 80px 140px;
}

.hero-image-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.hero-image-container img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.hero-image-placeholder {
    width: 100%;
    height: 500px;
    background: linear-gradient(135deg, rgba(14, 22, 52, 0.8) 0%, rgba(14, 22, 52, 0.95) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px dashed rgba(228, 183, 98, 0.3);
    border-radius: 20px;
}

/* ===== Buttons ===== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gold) 0%, #d4a752 100%);
    color: var(--navy);
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(228, 183, 98, 0.3);
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(228, 183, 98, 0.5);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: white;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: 2px solid var(--gold);
}

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

/* ===== Section Elements ===== */
.section-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--gold) 0%, #d4a752 100%);
    color: var(--navy);
    padding: 8px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 16px;
    line-height: 1.2;
}

.divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--gold) 0%, transparent 100%);
    margin-bottom: 24px;
}

/* ===== About Section ===== */
.about-image-container {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.about-image-container img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.about-image-placeholder {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, var(--light-gray) 0%, #f5f5f5 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px dashed rgba(14, 22, 52, 0.2);
    border-radius: 20px;
}

.stat-card {
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* ===== Area Cards ===== */
.area-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    border: 1px solid rgba(228, 183, 98, 0.1);
    height: 100%;
}

.area-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border-color: var(--gold);
}

.area-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--gold) 0%, #d4a752 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    box-shadow: 0 10px 30px rgba(228, 183, 98, 0.3);
}

.area-icon i {
    font-size: 2rem;
    color: white;
}

/* ===== Team Section ===== */
.team-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.team-photo-container {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.team-photo-container img {
    width: 100%;
    height: 360px;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.team-photo-placeholder {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, var(--light-gray) 0%, #f5f5f5 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed rgba(14, 22, 52, 0.2);
}

/* ===== Contact Section ===== */
.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--gold) 0%, #d4a752 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 1.5rem;
    color: var(--navy);
}

/* ===== Form Styles ===== */
.form-label {
    display: block;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 8px;
    font-size: 14px;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
}

.form-input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(228, 183, 98, 0.1);
}

/* ===== Animations ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in {
    animation: fadeIn 1s ease-out;
}

.fade-in-delay {
    animation: fadeIn 1s ease-out 0.3s backwards;
}

.slide-in-left {
    animation: slideInLeft 0.8s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.8s ease-out;
}

/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }

    /* Hero: compensa navbar fixo e evita corte da imagem */
    .hero-section {
        align-items: flex-start;
        padding-top: 8rem;
        padding-bottom: 3rem;
    }

    .hero-image-container img {
        height: 280px;
    }

    .about-image-container img {
        height: 340px;
    }

    .team-photo-container img {
        height: 280px;
    }

    .hero-image-placeholder {
        height: 280px;
    }

    .about-image-placeholder {
        height: 300px;
    }

    .team-photo-placeholder {
        height: 250px;
    }

    .area-card {
        padding: 30px;
    }
}

/* ===== Alert Messages ===== */
.alert {
    padding: 16px 20px;
    border-radius: 10px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert i {
    font-size: 1.2rem;
}

/* ===== Loading State ===== */
.btn-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spinner 0.6s linear infinite;
}

@keyframes spinner {
    to { transform: rotate(360deg); }
}
