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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
    overflow-x: hidden;
}

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

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

a {
    text-decoration: none;
    transition: 0.3s;
}

ul {
    list-style: none;
}

/* Header / Navbar */
header {
    background-color: #0d2d5c;
    color: #fff;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

header .logo h1 {
    font-size: 1.5rem;
    color: #d4af37;
    white-space: nowrap;
}

header .logo span {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
}

header nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

header nav ul li {
    margin-left: 0;
}

header nav ul li a {
    color: #fff;
    font-weight: 400;
    font-size: 0.95rem;
}

header nav ul li a:hover {
    color: #d4af37;
}

.btn-whatsapp-nav {
    background-color: #25d366;
    color: #fff;
    padding: 10px 15px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 0.9rem;
    white-space: nowrap;
}

.btn-whatsapp-nav:hover {
    background-color: #128c7e;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('assets/law_hero.jpg');
    background-size: cover;
    background-position: center;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    padding: 20px;
    min-height: 400px;
}

.hero-content h2 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: #d4af37;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
    line-height: 1.4;
}

.btn-cta {
    display: inline-block;
    background-color: #d4af37;
    color: #0d2d5c;
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 5px;
    text-transform: uppercase;
    cursor: pointer;
    border: none;
}

.btn-cta:hover {
    background-color: #b8952d;
    transform: translateY(-3px);
}

/* Intro Section (Summary Boxes) */
.intro {
    padding: 60px 20px;
    background-color: #fff;
}

.intro-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.intro-text {
    padding: 30px;
    background-color: #f9f9f9;
    border-left: 4px solid #d4af37;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.intro-text h3 {
    margin-bottom: 15px;
    color: #0d2d5c;
    font-size: 1.3rem;
}

.intro-text p {
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Services Section */
.services {
    padding: 60px 20px;
    background-color: #0d2d5c;
    color: #fff;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #d4af37;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background-color: #1a4d7a;
    padding: 40px;
    text-align: center;
    border: 1px solid #0a1f3d;
    transition: 0.3s;
}

.service-card:hover {
    border-color: #d4af37;
    transform: translateY(-10px);
}

.service-card i {
    font-size: 3rem;
    color: #d4af37;
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.service-card p {
    font-size: 0.95rem;
    line-height: 1.5;
}

/* WhatsApp Big Link Section */
.whatsapp-section {
    padding: 60px 20px;
    background-color: #fff;
    text-align: center;
}

.whatsapp-box {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    background-color: #f9f9f9;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.whatsapp-box h3 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.whatsapp-box p {
    margin-bottom: 30px;
    font-size: 1.1rem;
    color: #666;
}

.big-whatsapp-link {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #25d366;
    color: #fff;
    padding: 20px 30px;
    border-radius: 50px;
    text-decoration: none;
    transition: 0.3s;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
    flex-wrap: wrap;
    gap: 15px;
}

.big-whatsapp-link:hover {
    background-color: #128c7e;
    transform: scale(1.05);
}

.big-whatsapp-link img {
    width: 60px;
    height: 60px;
}

.big-whatsapp-link span {
    font-size: 1.4rem;
    text-align: center;
    line-height: 1.2;
}

/* Footer */
footer {
    background-color: #0d2d5c;
    color: #ccc;
    padding: 60px 20px 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-info h3, .footer-map h3 {
    color: #fff;
    margin-bottom: 20px;
}

.footer-info p {
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.footer-info i {
    color: #d4af37;
    margin-right: 10px;
}

.footer-bottom {
    border-top: 1px solid #0a1f3d;
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
}

/* Floating WhatsApp */
.float-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    z-index: 2000;
}

.float-whatsapp:hover {
    background-color: #128c7e;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablets (768px to 992px) */
@media (max-width: 992px) {
    .intro-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-content h2 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    header .container {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    header nav ul {
        justify-content: center;
        gap: 10px;
    }
    
    header nav ul li a {
        font-size: 0.85rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .whatsapp-box {
        padding: 30px 15px;
    }
    
    .big-whatsapp-link {
        flex-direction: column;
        padding: 15px 20px;
    }
    
    .big-whatsapp-link img {
        width: 50px;
        height: 50px;
    }
    
    .big-whatsapp-link span {
        font-size: 1.2rem;
    }
}

/* Celulares pequenos (480px to 768px) */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .intro-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .hero {
        height: auto;
        min-height: 350px;
        padding: 30px 15px;
    }
    
    .hero-content h2 {
        font-size: 2rem;
        margin-bottom: 15px;
    }
    
    .hero-content p {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }
    
    .btn-cta {
        padding: 12px 30px;
        font-size: 1rem;
    }
    
    .intro {
        padding: 40px 15px;
    }
    
    .intro-text {
        padding: 20px;
    }
    
    .intro-text h3 {
        font-size: 1.1rem;
    }
    
    .intro-text p {
        font-size: 0.9rem;
    }
    
    .services {
        padding: 40px 15px;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    
    .service-card {
        padding: 25px 15px;
    }
    
    .service-card i {
        font-size: 2.5rem;
    }
    
    .service-card h3 {
        font-size: 1.1rem;
    }
    
    .service-card p {
        font-size: 0.9rem;
    }
    
    .whatsapp-section {
        padding: 40px 15px;
    }
    
    .whatsapp-box {
        padding: 25px 15px;
    }
    
    .whatsapp-box h3 {
        font-size: 1.5rem;
    }
    
    .whatsapp-box p {
        font-size: 0.95rem;
    }
    
    .big-whatsapp-link {
        flex-direction: column;
        padding: 15px;
        gap: 10px;
    }
    
    .big-whatsapp-link img {
        width: 45px;
        height: 45px;
    }
    
    .big-whatsapp-link span {
        font-size: 1rem;
    }
    
    footer {
        padding: 40px 15px 15px;
    }
    
    .footer-grid {
        gap: 25px;
    }
    
    .footer-info h3, .footer-map h3 {
        font-size: 1.1rem;
    }
    
    .footer-info p {
        font-size: 0.9rem;
    }
    
    header .logo h1 {
        font-size: 1.2rem;
    }
    
    header .logo span {
        font-size: 0.7rem;
    }
    
    header nav ul {
        gap: 8px;
    }
    
    header nav ul li a {
        font-size: 0.8rem;
    }
    
    .btn-whatsapp-nav {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    
    .float-whatsapp {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
        font-size: 25px;
    }
}

/* Celulares muito pequenos (até 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
    
    header .container {
        gap: 10px;
    }
    
    header .logo h1 {
        font-size: 1rem;
    }
    
    header .logo span {
        font-size: 0.65rem;
        letter-spacing: 1px;
    }
    
    header nav ul {
        gap: 5px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    header nav ul li a {
        font-size: 0.75rem;
    }
    
    .btn-whatsapp-nav {
        padding: 6px 10px;
        font-size: 0.75rem;
    }
    
    .hero {
        min-height: 300px;
        padding: 20px 12px;
    }
    
    .hero-content h2 {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }
    
    .hero-content p {
        font-size: 0.85rem;
        margin-bottom: 15px;
    }
    
    .btn-cta {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .intro {
        padding: 30px 12px;
    }
    
    .intro-text {
        padding: 15px;
    }
    
    .intro-text h3 {
        font-size: 1rem;
        margin-bottom: 10px;
    }
    
    .intro-text p {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    
    .services {
        padding: 30px 12px;
    }
    
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
    
    .service-card {
        padding: 20px 12px;
    }
    
    .service-card i {
        font-size: 2rem;
        margin-bottom: 15px;
    }
    
    .service-card h3 {
        font-size: 1rem;
        margin-bottom: 10px;
    }
    
    .service-card p {
        font-size: 0.85rem;
    }
    
    .whatsapp-section {
        padding: 30px 12px;
    }
    
    .whatsapp-box {
        padding: 20px 12px;
        border-radius: 10px;
    }
    
    .whatsapp-box h3 {
        font-size: 1.3rem;
        margin-bottom: 8px;
    }
    
    .whatsapp-box p {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }
    
    .big-whatsapp-link {
        padding: 12px;
        border-radius: 40px;
        gap: 8px;
    }
    
    .big-whatsapp-link img {
        width: 40px;
        height: 40px;
    }
    
    .big-whatsapp-link span {
        font-size: 0.9rem;
    }
    
    footer {
        padding: 30px 12px 12px;
    }
    
    .footer-grid {
        gap: 20px;
    }
    
    .footer-info h3, .footer-map h3 {
        font-size: 1rem;
        margin-bottom: 15px;
    }
    
    .footer-info p {
        font-size: 0.85rem;
        margin-bottom: 8px;
    }
    
    .float-whatsapp {
        bottom: 15px;
        right: 15px;
        width: 50px;
        height: 50px;
        font-size: 22px;
    }
}

/* Modo paisagem em celulares pequenos */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: 250px;
    }
    
    .hero-content h2 {
        font-size: 1.5rem;
    }
    
    .hero-content p {
        font-size: 0.8rem;
    }
}
