/* ============================================
   TRILLO ABOGADOS — Custom Styles
   Classic & Elegant Legal Website
   ============================================ */

/* ---- Reset & Base ---- */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 0;
}

body {
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ---- Sidebar Navigation ---- */
.sidebar {
    background: linear-gradient(180deg, #0f2b20 0%, #1B4332 50%, #0f2b20 100%);
    border-right: 1px solid rgba(201, 162, 39, 0.15);
}

.sidebar-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.sidebar-logo {
    border-bottom: 1px solid rgba(201, 162, 39, 0.15);
}

.sidebar-footer {
    border-top: 1px solid rgba(201, 162, 39, 0.15);
}

.gold-line {
    height: 1px;
    background: linear-gradient(90deg, transparent, #C9A227, transparent);
    width: 100%;
}

.sidebar-nav-label {
    font-size: 10px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(201, 162, 39, 0.7);
    font-weight: 500;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 0.05em;
    color: rgba(249, 247, 240, 0.65);
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: rgba(249, 247, 240, 0.95);
    background: rgba(249, 247, 240, 0.05);
}

.nav-link.active {
    color: #C9A227;
    background: rgba(201, 162, 39, 0.1);
}

.nav-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(201, 162, 39, 0.3);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.nav-link.active .nav-dot {
    background: #C9A227;
    box-shadow: 0 0 8px rgba(201, 162, 39, 0.5);
}

.nav-link:hover .nav-dot {
    background: rgba(201, 162, 39, 0.7);
}

/* ---- Mobile Menu ---- */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 50;
}

.mobile-menu-bg {
    position: absolute;
    inset: 0;
    background: rgba(15, 43, 32, 0.97);
    backdrop-filter: blur(10px);
}

.mobile-menu-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    max-width: 85vw;
    height: 100%;
    background: #0f2b20;
    border-left: 1px solid rgba(201, 162, 39, 0.2);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-overlay.open .mobile-menu-content {
    transform: translateX(0);
}

.mobile-nav-link {
    display: block;
    padding: 14px 0;
    font-size: 15px;
    letter-spacing: 0.05em;
    color: rgba(249, 247, 240, 0.75);
    text-decoration: none;
    border-bottom: 1px solid rgba(249, 247, 240, 0.05);
    transition: color 0.3s ease;
}

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

.menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---- Hero Section ---- */
.hero-section {
    position: relative;
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
    from { transform: scale(1.05); }
    to { transform: scale(1.12); }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(15, 43, 32, 0.92) 0%,
        rgba(27, 67, 50, 0.85) 50%,
        rgba(15, 43, 32, 0.88) 100%
    );
}

.hero-content {
    max-width: 768px;
}

.hero-badge {
    display: flex;
    align-items: center;
    gap: 12px;
}

.badge-line {
    width: 40px;
    height: 1px;
    background: #C9A227;
    flex-shrink: 0;
}

.hero-stats {
    border-top: 1px solid rgba(249, 247, 240, 0.1);
}

/* Scroll Indicator */
.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.scroll-line {
    width: 1px;
    height: 48px;
    background: rgba(249, 247, 240, 0.15);
    position: relative;
    overflow: hidden;
}

.scroll-dot {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 8px;
    border-radius: 2px;
    background: #C9A227;
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { top: -8px; opacity: 1; }
    50% { top: 40px; opacity: 0.4; }
}

/* ---- Buttons ---- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: #C9A227;
    color: #0f2b20;
    font-family: 'Lato', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 4px;
    border: 2px solid #C9A227;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary:hover {
    background: #D4AF37;
    border-color: #D4AF37;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(201, 162, 39, 0.3);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: transparent;
    color: rgba(249, 247, 240, 0.85);
    font-family: 'Lato', sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 4px;
    border: 1px solid rgba(249, 247, 240, 0.25);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    border-color: rgba(249, 247, 240, 0.5);
    color: #fff;
    transform: translateY(-2px);
}

/* ---- Section Layout ---- */
.section-padding {
    padding: 80px 24px;
}

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

.section-header {
    text-align: left;
}

.section-header.text-center {
    text-align: center;
}

.section-label {
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-header.text-center .section-label {
    justify-content: center;
}

.label-line {
    width: 32px;
    height: 1px;
    background: #C9A227;
    flex-shrink: 0;
}

/* ---- About Section ---- */
.about-image-wrapper {
    position: relative;
    max-width: 480px;
}

.about-image-main {
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(27, 67, 50, 0.2);
}

.about-image-main img {
    display: block;
    width: 100%;
    height: auto;
}

.about-image-accent {
    position: absolute;
    bottom: -30px;
    right: -20px;
    width: 55%;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    border: 4px solid #F9F7F0;
}

.about-experience-badge {
    position: absolute;
    top: -20px;
    left: -20px;
    background: #1B4332;
    padding: 16px 20px;
    border-radius: 4px;
    text-align: center;
    border: 1px solid rgba(201, 162, 39, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.about-feature {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.about-feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(201, 162, 39, 0.1);
    border: 1px solid rgba(201, 162, 39, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}

/* ---- Practice Area Cards ---- */
.area-card {
    perspective: 1000px;
}

.area-card-inner {
    background: rgba(249, 247, 240, 0.04);
    border: 1px solid rgba(249, 247, 240, 0.08);
    border-radius: 8px;
    padding: 28px 24px;
    height: 100%;
    transition: all 0.4s ease;
    backdrop-filter: blur(5px);
}

.area-card:hover .area-card-inner {
    background: rgba(249, 247, 240, 0.07);
    border-color: rgba(201, 162, 39, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.area-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: rgba(201, 162, 39, 0.1);
    border: 1px solid rgba(201, 162, 39, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.area-divider {
    height: 1px;
    background: linear-gradient(90deg, rgba(201, 162, 39, 0.3), transparent);
    margin-top: 16px;
}

/* ---- Process Steps ---- */
.process-step {
    position: relative;
}

.process-step-content {
    background: rgba(27, 67, 50, 0.05);
    border: 1px solid rgba(27, 67, 50, 0.1);
    border-radius: 8px;
    padding: 24px;
    transition: all 0.3s ease;
}

.process-step:hover .process-step-content {
    border-color: rgba(201, 162, 39, 0.3);
    box-shadow: 0 10px 30px rgba(27, 67, 50, 0.1);
}

/* ---- Commitment Section ---- */
.commitment-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.commitment-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(27, 67, 50, 0.08);
    border: 1px solid rgba(27, 67, 50, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.commitment-image-wrapper {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(27, 67, 50, 0.15);
}

.commitment-image-wrapper img {
    display: block;
    width: 100%;
    height: auto;
}

.commitment-quote {
    position: absolute;
    bottom: 20px;
    left: 20px;
    opacity: 0.6;
}

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

.contact-info-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(201, 162, 39, 0.1);
    border: 1px solid rgba(201, 162, 39, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.map-container {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(249, 247, 240, 0.1);
}

/* ---- Contact Form ---- */
.contact-form-wrapper {
    background: rgba(249, 247, 240, 0.04);
    border: 1px solid rgba(249, 247, 240, 0.08);
    border-radius: 12px;
    padding: 32px;
    backdrop-filter: blur(5px);
}

.contact-form-header {
    border-bottom: 1px solid rgba(249, 247, 240, 0.08);
    padding-bottom: 20px;
}

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

.form-label {
    font-family: 'Lato', sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(249, 247, 240, 0.6);
    margin-bottom: 8px;
}

.form-input {
    background: rgba(249, 247, 240, 0.06);
    border: 1px solid rgba(249, 247, 240, 0.12);
    border-radius: 6px;
    padding: 12px 16px;
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    color: rgba(249, 247, 240, 0.9);
    transition: all 0.3s ease;
    outline: none;
    width: 100%;
}

.form-input::placeholder {
    color: rgba(249, 247, 240, 0.3);
}

.form-input:focus {
    border-color: rgba(201, 162, 39, 0.5);
    background: rgba(249, 247, 240, 0.08);
    box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.1);
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23C9A227' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    cursor: pointer;
}

.form-select option {
    background: #1B4332;
    color: #F9F7F0;
}

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

/* Checkbox */
.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.form-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border: 1px solid rgba(201, 162, 39, 0.4);
    border-radius: 4px;
    background: rgba(249, 247, 240, 0.05);
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 1px;
    appearance: none;
    -webkit-appearance: none;
    transition: all 0.2s ease;
    position: relative;
}

.form-checkbox input[type="checkbox"]:checked {
    background: #C9A227;
    border-color: #C9A227;
}

.form-checkbox input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 5px;
    width: 4px;
    height: 8px;
    border: solid #0f2b20;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-text {
    font-family: 'Lato', sans-serif;
    font-size: 12px;
    color: rgba(249, 247, 240, 0.55);
    line-height: 1.5;
}

/* Submit Button */
.btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: #C9A227;
    color: #0f2b20;
    font-family: 'Lato', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    justify-content: center;
}

.btn-submit:hover {
    background: #D4AF37;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(201, 162, 39, 0.3);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Success Message */
.form-success {
    text-align: center;
    padding: 40px 20px;
    animation: fadeInUp 0.5s ease;
}

.form-success-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(27, 67, 50, 0.15);
    border: 2px solid rgba(27, 67, 50, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

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

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---- Responsive ---- */
@media (max-width: 1023px) {
    .section-padding {
        padding: 60px 20px;
    }
    
    .about-image-wrapper {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .about-image-accent {
        right: -10px;
        bottom: -20px;
    }
    
    .about-experience-badge {
        left: -10px;
        top: -15px;
    }
}

@media (max-width: 640px) {
    .section-padding {
        padding: 50px 16px;
    }
    
    .section-header h2,
    .section-header .font-serif.text-4xl {
        font-size: 2rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .contact-form-wrapper {
        padding: 20px;
    }
    
    .about-image-wrapper {
        max-width: 100%;
    }
    
    .about-image-accent {
        position: relative;
        width: 100%;
        bottom: 0;
        right: 0;
        margin-top: 12px;
        border: none;
        box-shadow: none;
    }
    
    .about-experience-badge {
        position: relative;
        top: 0;
        left: 0;
        display: inline-block;
        margin-bottom: 12px;
    }
}
