/* SAC.com.br - CSS Funcional Versão 1 Restaurado */

/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* Container principal */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
.header {
    background: #007bff;
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    color: white;
}

.nav-menu {
    display: flex;
    gap: 1rem;
    list-style: none;
    margin: 0;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.nav-menu a:hover {
    background-color: rgba(255,255,255,0.1);
}

.nav-menu a.active {
    background-color: rgba(255,255,255,0.2);
}

/* Hero Section */
.hero {
    background: #f8f9fa;
    padding: 4rem 0;
    text-align: center;
}

.hero-section {
    padding: 4rem 0;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #333;
    font-weight: 300;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #666;
}

/* Search Form - Estilo Google */
.search-form {
    position: relative;
    max-width: 600px;
    margin: 0 auto 2rem;
    display: flex;
    background: white;
    border: 1px solid #dfe1e5;
    border-radius: 24px;
    box-shadow: 0 2px 5px 1px rgba(64,60,67,.16);
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.search-form:hover,
.search-form:focus-within {
    box-shadow: 0 2px 8px 1px rgba(64,60,67,.24);
}

.search-input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    font-size: 16px;
    outline: none;
    background: transparent;
}

.search-input::placeholder {
    color: #9aa0a6;
}

.search-btn {
    background: #f8f9fa;
    border: none;
    padding: 12px 20px;
    font-size: 14px;
    color: #3c4043;
    cursor: pointer;
    transition: background-color 0.3s;
    border-left: 1px solid #f0f0f0;
}

.search-btn:hover {
    background: #f1f3f4;
}

/* Suggestions */
.suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #dfe1e5;
    border-top: none;
    border-radius: 0 0 24px 24px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 4px 6px rgba(32,33,36,.28);
}

.suggestion-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
}

.suggestion-item:hover {
    background-color: #f8f9fa;
}

.suggestion-item:last-child {
    border-bottom: none;
}

/* Cards */
.card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
    overflow: hidden;
}

.card-header {
    background: #007bff;
    color: white;
    padding: 1rem;
    border-bottom: 1px solid #e0e0e0;
}

.card-body {
    padding: 1rem;
}

.card-title {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    font-weight: 500;
}

.card-text {
    margin-bottom: 1rem;
    color: #666;
}

/* Company Logo */
.company-logo {
    max-height: 30px;
    max-width: 100px;
    object-fit: contain;
}

/* Contact Items */
.contact-item {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
}

.contact-type {
    font-weight: 600;
    color: #007bff;
    margin-bottom: 0.25rem;
}

.contact-value {
    font-family: monospace;
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 0.25rem;
}

.contact-description {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.25rem;
}

.contact-hours {
    font-size: 0.85rem;
    color: #888;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 400;
    text-align: center;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.btn-primary:hover {
    background: #0056b3;
    border-color: #0056b3;
}

.btn-outline-primary {
    color: #007bff;
    border-color: #007bff;
    background: transparent;
}

.btn-outline-primary:hover {
    background: #007bff;
    color: white;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
}

/* Copy button */
.copy-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    margin-left: 0.5rem;
}

.copy-btn:hover {
    background: #218838;
}

/* Footer */
.footer {
    background: #343a40;
    color: white;
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: #fff;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #adb5bd;
    text-decoration: none;
}

.footer-section ul li a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #495057;
    padding-top: 1rem;
    text-align: center;
    color: #adb5bd;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .search-form {
        margin: 0 1rem 2rem;
    }
    
    .search-input {
        font-size: 16px; /* Evita zoom no iOS */
    }
    
    .search-btn {
        padding: 12px 16px;
    }
    
    .search-btn .me-1 {
        display: none;
    }
    
    .card-header {
        padding: 0.75rem;
    }
    
    .card-body {
        padding: 0.75rem;
    }
    
    .contact-item {
        padding: 0.5rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 2rem 0;
    }
    
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .search-form {
        border-radius: 8px;
    }
    
    .suggestions {
        border-radius: 0 0 8px 8px;
    }
    
    .nav-menu {
        font-size: 0.9rem;
    }
    
    .nav-menu a {
        padding: 0.4rem 0.8rem;
    }
}

/* Utilities */
.text-center { text-align: center; }
.text-muted { color: #6c757d !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.me-1 { margin-right: 0.25rem !important; }
.me-2 { margin-right: 0.5rem !important; }
.ms-1 { margin-left: 0.25rem !important; }
.d-flex { display: flex !important; }
.align-items-center { align-items: center !important; }
.justify-content-center { justify-content: center !important; }
.fw-bold { font-weight: bold !important; }
.small { font-size: 0.875rem !important; }

/* Grid System Simples */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col-lg-6, .col-md-4, .col-sm-6 {
    padding: 0 15px;
}

.col-lg-6 {
    flex: 0 0 50%;
    max-width: 50%;
}

@media (max-width: 992px) {
    .col-lg-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

.col-md-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
}

@media (max-width: 768px) {
    .col-md-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

.col-sm-6 {
    flex: 0 0 50%;
    max-width: 50%;
}

@media (max-width: 576px) {
    .col-sm-6, .col-md-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Seções */
.py-4 { padding: 1.5rem 0; }
.py-5 { padding: 3rem 0; }
.bg-warning { background-color: #ffc107 !important; }
.text-dark { color: #212529 !important; }
.bg-light { background-color: #f8f9fa !important; }
.bg-primary { background-color: #007bff !important; }
.text-white { color: white !important; }

/* Cards com altura igual */
.h-100 { height: 100% !important; }
.shadow-sm { box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important; }
.border-primary { border-color: #007bff !important; }

/* Imagens responsivas */
.img-fluid {
    max-width: 100%;
    height: auto;
}

