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

:root {
    --primary-color: #1976d2;
    --primary-dark: #0d47a1;
    --secondary-color: #ff9800;
    --text-color: #333;
    --text-light: #666;
    --bg-light: #f5f5f5;
    --white: #ffffff;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-hover: 0 4px 16px rgba(0,0,0,0.15);

    /* Bootstrap overrides */
    --bs-primary: #1976d2;
    --bs-primary-rgb: 25, 118, 210;
    --bs-link-color: #1976d2;
    --bs-link-hover-color: #0d47a1;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Bootstrap Color Overrides */
.btn-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
}

.btn-outline-primary {
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: white !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.badge.bg-primary {
    background-color: var(--primary-color) !important;
}

a {
    color: var(--primary-color);
}

a:hover {
    color: var(--primary-dark);
}

/* Loading Spinner */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading.hidden {
    display: none;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--bg-light);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 32px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
}

.btn-large {
    padding: 16px 48px;
    font-size: 16px;
}

/* Header */
.header {
    z-index: 1000;
}

.navbar {
    padding: 0.75rem 0;
}

.navbar-brand {
    padding: 0;
    margin: 0;
}

.logo img {
    height: 60px;
    width: auto;
    display: block;
}

.logo h1 {
    font-size: 24px;
    color: var(--primary-color);
    margin: 0;
}

/* Navbar items */
.navbar-nav {
    gap: 0;
}

.navbar-nav .nav-item {
    list-style: none;
}

.navbar-nav .nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color);
}

/* Hamburger button customization */
.navbar-toggler {
    border: 2px solid var(--primary-color);
    padding: 0.5rem 0.75rem;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(25, 118, 210, 0.25);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(25, 118, 210, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Header buttons in mobile */
@media (max-width: 991.98px) {
    .navbar-nav .nav-item {
        text-align: center;
        padding: 0.25rem 0;
    }

    .navbar-collapse .btn {
        width: 100%;
        text-align: center;
    }

    .logo img {
        height: 50px;
    }
}

@media (min-width: 992px) {
    .navbar-nav {
        gap: 1rem;
    }
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 600px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding: 80px 20px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 24px;
    margin-bottom: 40px;
    font-weight: 300;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

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

/* Sections */
section h2 {
    font-size: 2.25rem;
    font-weight: 600;
    color: var(--text-color);
}

/* Testimonials - Bootstrap handles most styling now */
.testimonial-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

/* Association Section */
.association-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

.association-section h2 {
    color: var(--white);
}

.association-description {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.125rem;
    line-height: 1.8;
}

.benefit {
    backdrop-filter: blur(10px);
}

/* Services - Bootstrap handles layout */

/* News - Bootstrap handles layout */

/* About */
.about-summary {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Footer - Bootstrap handles most styling */

/* Forms - Estilos para formulários (Vibrações, Contato, etc) */
.form-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

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

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-color);
}

.form-group label .required {
    color: #d32f2f;
    margin-left: 4px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    font-family: 'Roboto', sans-serif;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: var(--white);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.1);
}

.form-control::placeholder {
    color: #bdbdbd;
}

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

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-check input[type="checkbox"],
.form-check input[type="radio"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.form-check label {
    margin-bottom: 0;
    cursor: pointer;
}

.form-help-text {
    font-size: 14px;
    color: var(--text-light);
    margin-top: 4px;
}

.form-error {
    font-size: 14px;
    color: #d32f2f;
    margin-top: 4px;
    display: none;
}

.form-control.error {
    border-color: #d32f2f;
}

.form-control.error ~ .form-error {
    display: block;
}

.form-submit {
    text-align: center;
    margin-top: 32px;
}

.form-submit .btn {
    min-width: 200px;
}

.form-success {
    padding: 16px 24px;
    background: #4caf50;
    color: var(--white);
    border-radius: 4px;
    text-align: center;
    margin-bottom: 24px;
    display: none;
}

.form-success.show {
    display: block;
}

/* Formulário em 2 colunas (para forms maiores) */
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

/* Estilo alternativo: Formulário com fundo colorido */
.form-container.form-colored {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
}

.form-container.form-colored label {
    color: var(--white);
}

.form-container.form-colored .form-control {
    background: rgba(255, 255, 255, 0.9);
}

.form-container.form-colored .form-control:focus {
    background: var(--white);
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.social-icons a {
    transition: all 0.3s ease;
    opacity: 0.9;
}

.social-icons a:hover {
    opacity: 1;
    transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 16px;
    }

    .main-nav {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .hero-ctas {
        flex-direction: column;
    }

    section h2 {
        font-size: 28px;
    }

    .btn-large {
        width: 100%;
        text-align: center;
    }
}
