/* =====================================================
   CSS RESPONSIVO - CFC BOM CONSELHO
   VERSÃO 1.0 - MOBILE FIRST E RESPONSIVO
   ===================================================== */

/* Reset e Base */
* {
    box-sizing: border-box;
}

body {
    overflow-x: hidden;
}

/* Container Responsivo */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Responsivo */
.header-info {
    transition: all 0.3s ease;
}

.main-header {
    transition: all 0.3s ease;
}

/* Navegação Responsiva */
.nav-menu {
    transition: all 0.3s ease;
}

.nav-menu a {
    transition: all 0.3s ease;
    white-space: nowrap;
}

/* Hero Section Responsiva */
.hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 0;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-buttons .btn {
    min-width: 200px;
    padding: 15px 30px;
    font-size: 16px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

/* Seções Responsivas */
.section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
    font-weight: 700;
}

/* Cards Responsivos */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    text-align: center;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* Galeria Responsiva */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    aspect-ratio: 4/3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Formulários Responsivos */
.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1a365d;
    box-shadow: 0 0 0 3px rgba(26, 54, 93, 0.1);
}

/* Botões Responsivos */
.btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 16px;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-primary {
    background: linear-gradient(135deg, #1a365d, #2d3748);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2d3748, #1a365d);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(26, 54, 93, 0.3);
}

.btn-secondary {
    background: linear-gradient(135deg, #FFFC03, #FCCE1C);
    color: white;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #FCCE1C, #FFFC03);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(247, 183, 49, 0.3);
}

.btn-success {
    background: linear-gradient(135deg, #38a169, #2f855a);
    color: white;
}

.btn-success:hover {
    background: linear-gradient(135deg, #2f855a, #38a169);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(56, 161, 105, 0.3);
}

/* Floating Button WhatsApp */
.floating-buttons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    transition: all 0.3s ease;
}

/* Esconder botão flutuante no hero em mobile */
.floating-buttons.hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateX(100%);
}

.floating-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    font-size: 28px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    background: #25d366;
    border: none;
    position: relative;
    overflow: hidden;
}

.floating-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    background: #20c05a;
}

.floating-btn:active {
    transform: translateY(0);
}


.floating-btn.whatsapp {
    background: #25d366;
}

.floating-btn.whatsapp:hover {
    background: #20c05a;
}

/* =====================================================
   BREAKPOINTS RESPONSIVOS
   ===================================================== */

/* Extra Large Devices (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
        padding: 0 30px;
    }
    
    .hero {
        min-height: 70vh;
        padding: 80px 0;
    }
    
    .section {
        padding: 80px 0;
    }
    
    .section-title {
        font-size: 3rem;
    }
    
    .card-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 40px;
    }
}

/* Large Devices (1200px and up) */
@media (min-width: 1200px) and (max-width: 1399px) {
    .container {
        max-width: 1140px;
        padding: 0 25px;
    }
    
    .hero {
        min-height: 65vh;
        padding: 70px 0;
    }
    
    .section {
        padding: 70px 0;
    }
    
    .section-title {
        font-size: 2.75rem;
    }
}

/* Medium Devices (992px and up) */
@media (min-width: 992px) and (max-width: 1199px) {
    .container {
        max-width: 960px;
        padding: 0 20px;
    }
    
    .hero {
        min-height: 60vh;
        padding: 60px 0;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .card-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }
}

/* Small Devices (768px and up) */
@media (min-width: 768px) and (max-width: 991px) {
    .container {
        max-width: 720px;
        padding: 0 15px;
    }
    
    .hero {
        min-height: 55vh;
        padding: 50px 0;
    }
    
    .section {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 2.25rem;
    }
    
    .card-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .floating-buttons {
        bottom: 15px;
        right: 15px;
    }
    
    .floating-btn {
        width: 56px;
        height: 56px;
        font-size: 28px;
    }
}

/* Extra Small Devices (576px and up) */
@media (min-width: 576px) and (max-width: 767px) {
    .container {
        max-width: 540px;
        padding: 0 15px;
    }
    
    .hero {
        min-height: 50vh;
        padding: 40px 0;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .form-container {
        padding: 30px 20px;
        margin: 0 15px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
        padding: 12px 25px;
        font-size: 15px;
    }
    
    .floating-buttons {
        bottom: 15px;
        right: 15px;
    }
    
    .floating-btn {
        width: 56px;
        height: 56px;
        font-size: 28px;
    }
}

/* Mobile Devices (up to 575px) */
@media (max-width: 575px) {
    .container {
        padding: 0 10px;
    }
    
    .hero {
        min-height: 45vh;
        padding: 30px 0;
    }
    
    .section {
        padding: 30px 0;
    }
    
    .section-title {
        font-size: 1.75rem;
        margin-bottom: 30px;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .card {
        padding: 20px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 10px;
    }
    
    .form-container {
        padding: 25px 15px;
        margin: 0 10px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px;
        font-size: 16px; /* Previne zoom no iOS */
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 250px;
        padding: 12px 20px;
        font-size: 14px;
        min-height: 45px;
    }
    
    .floating-buttons {
        bottom: 10px;
        right: 10px;
        gap: 10px;
    }
    
    .floating-btn {
        width: 56px;
        height: 56px;
        font-size: 28px;
    }
}

/* Extra Small Mobile (up to 360px) */
@media (max-width: 360px) {
    .container {
        padding: 0 8px;
    }
    
    .hero {
        padding: 25px 0;
    }
    
    .section {
        padding: 25px 0;
    }
    
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 25px;
    }
    
    .card {
        padding: 15px;
    }
    
    .form-container {
        padding: 20px 12px;
        margin: 0 8px;
    }
    
    .hero-buttons .btn {
        max-width: 220px;
        padding: 10px 18px;
        font-size: 13px;
        min-height: 42px;
    }
    
    .floating-btn {
        width: 56px;
        height: 56px;
        font-size: 28px;
    }
}

/* =====================================================
   UTILITÁRIOS RESPONSIVOS
   ===================================================== */

/* Texto Responsivo */
.text-responsive {
    font-size: clamp(14px, 4vw, 18px);
}

.title-responsive {
    font-size: clamp(1.5rem, 5vw, 3rem);
}

.subtitle-responsive {
    font-size: clamp(1rem, 3vw, 1.5rem);
}

/* Espaçamento Responsivo */
.p-responsive {
    padding: clamp(15px, 4vw, 40px);
}

.m-responsive {
    margin: clamp(10px, 3vw, 30px);
}

/* Grid Responsivo */
.grid-responsive {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: clamp(15px, 4vw, 30px);
}

/* Flex Responsivo */
.flex-responsive {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(10px, 3vw, 20px);
}

/* =====================================================
   ACESSIBILIDADE E UX
   ===================================================== */

/* Touch Targets */
@media (pointer: coarse) {
    .btn,
    .nav-menu a,
    .floating-btn {
        min-height: 44px;
        min-width: 44px;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High Contrast */
@media (prefers-contrast: high) {
    .btn {
        border: 2px solid currentColor;
    }
    
    .card {
        border: 2px solid #000;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .card {
        background: #2d3748;
        color: white;
    }
    
    .form-container {
        background: #2d3748;
        color: white;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        background: #4a5568;
        color: white;
        border-color: #718096;
    }
}

/* Print Styles */
@media print {
    .floating-buttons,
    .hero-buttons {
        display: none;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .section {
        padding: 20px 0;
    }
}
