/* ===== Zilda Ribeiro Advocacia - Design System ===== */
/* Elegant chocolate brown theme inspired by business card */

:root {
    /* Color Palette - Chocolate Brown Theme */
    --brown-900: #1a0f0a;
    --brown-800: #2d1810;
    --brown-700: #3d2314;
    --brown-600: #4a2c1a;
    --brown-500: #5d3a24;
    --brown-400: #7a5642;
    --brown-300: #a68b7a;
    --brown-200: #d4c4b8;
    --brown-100: #f5f0eb;
    --cream: #faf8f5;
    --white: #ffffff;
    --gold: #c9a87c;
    --gold-light: #ddc9a8;

    /* Typography */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;

    /* Spacing */
    --section-padding: 6rem;
    --container-max: 1200px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(45, 24, 16, 0.08);
    --shadow-md: 0 8px 24px rgba(45, 24, 16, 0.12);
    --shadow-lg: 0 16px 48px rgba(45, 24, 16, 0.16);

    /* Transitions */
    --transition: 0.3s ease;
}

/* === Reset & Base === */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--brown-800);
    background: var(--cream);
    -webkit-font-smoothing: antialiased;
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    padding: 0.75rem 1.5rem;
    background: var(--brown-700);
    color: var(--white);
    border-radius: 0 0 0.5rem 0.5rem;
    z-index: 9999;
    font-weight: 500;
}

.skip-link:focus {
    top: 0;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* === Typography === */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.25;
    color: var(--brown-900);
}

h1 {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

.highlight {
    color: var(--brown-600);
    display: block;
}

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: 50px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
}

.btn svg {
    flex-shrink: 0;
}

.btn-primary {
    background: var(--brown-700);
    color: var(--white);
    border-color: var(--brown-700);
}

.btn-primary:hover {
    background: var(--brown-600);
    border-color: var(--brown-600);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--brown-700);
    border-color: var(--brown-700);
}

.btn-outline:hover {
    background: var(--brown-700);
    color: var(--white);
}

.btn-light {
    background: var(--white);
    color: var(--brown-700);
    border-color: var(--white);
}

.btn-light:hover {
    background: var(--cream);
    border-color: var(--cream);
}

.btn-outline-light {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-outline-light:hover {
    background: var(--white);
    color: var(--brown-700);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
}

/* === Section Styles === */
.section-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--brown-100);
    color: var(--brown-600);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: 50px;
    margin-bottom: 1rem;
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 4rem;
}

.section-title {
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--brown-500);
    font-size: 1.125rem;
}

/* === Header === */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    background: rgba(250, 248, 245, 0.95);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.header.scrolled {
    padding: 0.75rem 0;
    box-shadow: var(--shadow-sm);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    width: 44px;
    height: 44px;
    color: var(--brown-700);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-name {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--brown-900);
    line-height: 1.2;
}

.logo-title {
    font-size: 0.75rem;
    color: var(--brown-400);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.nav-list {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--brown-700);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.header-cta {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--brown-700);
    transition: var(--transition);
}

/* === Hero === */
.hero {
    padding: 10rem 0 6rem;
    background: linear-gradient(135deg, var(--cream) 0%, var(--brown-100) 100%);
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--white);
    color: var(--brown-600);
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 50px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
}

.hero-badge svg {
    color: var(--gold);
}

.hero-title {
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--brown-500);
    margin-bottom: 2rem;
    max-width: 480px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero-image-wrapper {
    position: relative;
}

.hero-image-wrapper img {
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
}

.hero-image-wrapper::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    background: var(--gold-light);
    border-radius: 1rem;
    z-index: -1;
    opacity: 0.5;
}

/* === About === */
.about {
    padding: var(--section-padding) 0;
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-badge {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: var(--brown-700);
    color: var(--white);
    border-radius: 0.75rem;
    box-shadow: var(--shadow-md);
}

.about-badge svg {
    color: var(--gold);
    flex-shrink: 0;
}

.about-badge span {
    font-size: 0.8125rem;
    line-height: 1.4;
}

.about-content p {
    color: var(--brown-500);
    margin-bottom: 1rem;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-top: 2rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--brown-700);
}

.feature svg {
    color: var(--gold);
    flex-shrink: 0;
}

/* === Carousel === */
.carousel {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.carousel-inner {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-slide {
    min-width: 100%;
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.5s ease;
}

.carousel-slide.active {
    opacity: 1;
    position: relative;
}

.carousel-slide img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    color: var(--brown-700);
    z-index: 10;
}

.carousel-btn:hover {
    background: var(--white);
    transform: translateY(-50%) scale(1.05);
}

.carousel-prev {
    left: 1rem;
}

.carousel-next {
    right: 1rem;
}

.carousel-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.carousel-dot.active {
    background: var(--white);
    transform: scale(1.2);
}

/* === Areas === */
.areas {
    padding: var(--section-padding) 0;
    background: var(--cream);
}

.areas-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.area-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid transparent;
}

.area-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: var(--gold-light);
}

.area-icon {
    width: 56px;
    height: 56px;
    background: var(--brown-100);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.area-icon svg {
    width: 28px;
    height: 28px;
    color: var(--brown-600);
}

.area-title {
    margin-bottom: 0.75rem;
    font-size: 1.125rem;
}

.area-description {
    color: var(--brown-500);
    font-size: 0.9375rem;
    margin-bottom: 1rem;
}

.area-list {
    font-size: 0.875rem;
    color: var(--brown-500);
}

.area-list li {
    padding: 0.375rem 0;
    padding-left: 1.25rem;
    position: relative;
}

.area-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 6px;
    height: 6px;
    background: var(--gold);
    border-radius: 50%;
    transform: translateY(-50%);
}

/* === CTA Section === */
.cta-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--brown-700) 0%, var(--brown-800) 100%);
    text-align: center;
}

.cta-content {
    max-width: 640px;
    margin: 0 auto;
}

.cta-title {
    color: var(--white);
    margin-bottom: 1rem;
}

.cta-text {
    color: var(--brown-200);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* === Location / Map === */
.location {
    padding: var(--section-padding) 0;
    background: var(--cream);
}

.location-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.location-map {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.location-map iframe {
    width: 100%;
    height: 400px;
    display: block;
}

.location-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.location-detail {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.location-icon {
    width: 56px;
    height: 56px;
    background: var(--brown-700);
    color: var(--white);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.location-detail h3 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.location-detail p {
    color: var(--brown-500);
    font-size: 0.9375rem;
    line-height: 1.7;
}

.location-description {
    padding: 1.25rem;
    background: var(--white);
    border-radius: 0.75rem;
    border-left: 4px solid var(--gold);
}

.location-description p {
    color: var(--brown-500);
    font-size: 0.9375rem;
    margin-bottom: 0.75rem;
}

.location-description p:last-child {
    margin-bottom: 0;
}

/* === Contact === */
.contact {
    padding: var(--section-padding) 0;
    background: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-card {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--cream);
    border-radius: 0.75rem;
    transition: var(--transition);
}

.contact-card:hover {
    background: var(--brown-100);
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: var(--brown-700);
    color: var(--white);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-details h3 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.contact-details p,
.contact-details a {
    color: var(--brown-500);
    font-size: 0.9375rem;
}

.contact-details a:hover {
    color: var(--brown-700);
}

.contact-address-link {
    display: block;
    color: var(--brown-500);
    font-size: 0.9375rem;
    line-height: 1.7;
    transition: var(--transition);
}

.contact-address-link:hover {
    color: var(--brown-700);
}

/* === Contact Form === */
.contact-form {
    background: var(--cream);
    padding: 2.5rem;
    border-radius: 1rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--brown-700);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    color: var(--brown-800);
    background: var(--white);
    border: 1px solid var(--brown-200);
    border-radius: 0.5rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201, 168, 124, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* === Footer === */
.footer {
    padding: 4rem 0 2rem;
    background: var(--brown-900);
    color: var(--brown-200);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand .logo {
    margin-bottom: 1rem;
}

.footer-brand .logo-icon {
    color: var(--gold);
}

.footer-brand .logo-name {
    color: var(--white);
}

.footer-brand p {
    font-size: 0.9375rem;
    line-height: 1.7;
}

.footer h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 1.25rem;
}

.footer-links ul li,
.footer-contact ul li {
    margin-bottom: 0.75rem;
}

.footer-links a,
.footer-contact a {
    font-size: 0.9375rem;
    color: var(--brown-300);
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--gold);
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
}

.footer-contact svg {
    color: var(--gold);
    flex-shrink: 0;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--brown-700);
    text-align: center;
    font-size: 0.875rem;
    color: var(--brown-400);
}

/* === WhatsApp Float === */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: var(--transition);
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
}

/* === Responsive === */
@media (max-width: 1024px) {
    .areas-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 4rem;
    }

    .nav,
    .header-cta {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .hero {
        padding: 8rem 0 4rem;
    }

    .hero-container,
    .about-grid,
    .contact-grid,
    .location-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .hero-image {
        order: -1;
    }

    .hero-image-wrapper::before {
        display: none;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    .areas-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-contact li {
        justify-content: center;
    }

    .cta-buttons {
        flex-direction: column;
    }
}

/* === Mobile Nav (when active) === */
.nav.active {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--cream);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.nav.active .nav-list {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
}

.nav.active .nav-link {
    font-size: 1.5rem;
}