/* =============================================
   RESTAURA PHONE BRASIL — style.css v2
   Mobile corrigido
   ============================================= */

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --black: #0a0a0a;
    --white: #ffffff;
    --gray-50: #f9f9f9;
    --gray-100: #f3f3f3;
    --gray-200: #e8e8e8;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-700: #374151;
    --green: #16a34a;
    --green-wpp: #25d366;
    --radius: 14px;
    --radius-sm: 8px;
    --shadow: 0 2px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.14);
    --transition: 0.2s ease;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    max-width: 100%;
}

body {
    font-family: var(--font);
    color: var(--black);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

/* ---- HEADER ---- */
#main-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s, box-shadow 0.3s;
    width: 100%;
}

#main-header.scrolled {
    border-color: var(--gray-200);
    box-shadow: 0 1px 20px rgba(0,0,0,0.08);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    min-width: 0;
    flex-shrink: 1;
}

.logo-img { width: 36px; height: 36px; object-fit: contain; flex-shrink: 0; }
.logo-text { display: flex; flex-direction: column; min-width: 0; }
.logo-name { font-weight: 800; font-size: 14px; line-height: 1.2; color: var(--black); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.logo-sub { font-size: 11px; color: var(--gray-500); line-height: 1; }

.header-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.nav-link {
    padding: 7px 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-700);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: background var(--transition), color var(--transition);
    white-space: nowrap;
}
.nav-link:hover { background: var(--gray-100); color: var(--black); }

.nav-insta {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--black);
    text-decoration: none;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    white-space: nowrap;
}
.nav-insta:hover { background: var(--black); color: var(--white); border-color: var(--black); }
.nav-insta span { display: none; }

@media (min-width: 640px) { .nav-insta span { display: inline; } }
@media (max-width: 640px) { .nav-link { display: none; } }

/* ---- HERO ---- */
.hero-section {
    position: relative;
    padding: 72px 16px 64px;
    background: var(--black);
    overflow: hidden;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.hero-bg-pattern {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.04) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.03) 0%, transparent 40%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    max-width: 680px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.85);
    font-size: 13px;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 100px;
    border: 1px solid rgba(255,255,255,0.15);
    margin-bottom: 24px;
}

.hero-badge-dot {
    width: 7px; height: 7px;
    background: #4ade80;
    border-radius: 50%;
    animation: pulse 2s infinite;
    flex-shrink: 0;
}

@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.4} }

.hero-title {
    font-size: clamp(30px, 6vw, 60px);
    font-weight: 900;
    color: var(--white);
    line-height: 1.1;
    letter-spacing: -1px;
    margin-bottom: 16px;
}

.hero-title-accent {
    background: linear-gradient(135deg, #d4d4d4, #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 16px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 32px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    margin-bottom: 40px;
    width: 100%;
}

.btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--white);
    color: var(--black);
    font-weight: 700;
    font-size: 15px;
    padding: 14px 28px;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: 0 4px 20px rgba(255,255,255,0.2);
    width: 100%;
    max-width: 320px;
    box-sizing: border-box;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 30px rgba(255,255,255,0.25); }

.btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: transparent;
    color: var(--white);
    font-weight: 600;
    font-size: 15px;
    padding: 14px 28px;
    border-radius: 100px;
    border: 1.5px solid rgba(255,255,255,0.3);
    cursor: pointer;
    transition: all var(--transition);
    width: 100%;
    max-width: 320px;
    box-sizing: border-box;
}
.btn-secondary:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.5); }

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 18px;
    padding: 14px 20px;
    flex-wrap: wrap;
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
    box-sizing: border-box;
}

.hero-stat { text-align: center; }
.hero-stat strong { display: block; color: var(--white); font-size: 15px; font-weight: 700; }
.hero-stat span { font-size: 11px; color: rgba(255,255,255,0.5); }
.hero-stat-divider { width: 1px; height: 28px; background: rgba(255,255,255,0.15); flex-shrink: 0; }

/* ---- SECTION HEADERS ---- */
.section-header { text-align: center; margin-bottom: 40px; padding: 0 16px; }
.section-title { font-size: clamp(24px, 4vw, 34px); font-weight: 800; letter-spacing: -0.5px; }
.section-subtitle { font-size: 15px; color: var(--gray-500); margin-top: 8px; }

/* ---- CELULARES ---- */
.section-celulares { padding: 60px 0; background: var(--white); }

.card-celular {
    background: var(--white);
    border-radius: var(--radius);
    border: 1.5px solid var(--gray-200);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    position: relative;
    height: 100%;
}
.card-celular:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #ccc; }

.card-badge-destaque {
    position: absolute; top: 10px; left: 10px; z-index: 2;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white; font-size: 11px; font-weight: 700;
    padding: 3px 10px; border-radius: 100px;
}

.card-foto { aspect-ratio: 1; background: var(--gray-100); overflow: hidden; }
.card-foto img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.card-celular:hover .card-foto img { transform: scale(1.05); }

.card-info { padding: 14px; }
.card-nome { font-weight: 700; font-size: 15px; line-height: 1.3; }
.card-specs { font-size: 12px; color: var(--gray-500); margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.card-preco { font-weight: 800; font-size: 17px; color: var(--black); }
.card-cta { font-size: 12px; font-weight: 600; color: var(--gray-500); }

.sem-aparelhos { text-align: center; padding: 60px 20px; color: var(--gray-400); border: 2px dashed var(--gray-200); border-radius: var(--radius); }

.swiper-celulares, .swiper-depoimentos { padding-bottom: 40px !important; }
.swiper-wrapper { align-items: stretch; }
.swiper-slide { height: auto; }
.swiper-pagination-bullet { background: var(--gray-400) !important; opacity: 0.5; }
.swiper-pagination-bullet-active { background: var(--black) !important; opacity: 1; }

/* ---- SERVIÇOS ---- */
.section-servicos { padding: 60px 0; background: var(--gray-50); }

.servicos-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; }

.servico-card {
    background: var(--white); border-radius: var(--radius);
    border: 1.5px solid var(--gray-200); padding: 26px 22px;
    transition: box-shadow 0.25s, transform 0.25s;
}
.servico-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.servico-icon {
    width: 50px; height: 50px;
    background: var(--black); color: var(--white);
    border-radius: 12px; display: flex; align-items: center; justify-content: center;
    margin-bottom: 14px;
}

.servico-card h3 { font-weight: 700; font-size: 16px; margin-bottom: 8px; }
.servico-card p { font-size: 13px; color: var(--gray-500); line-height: 1.6; margin-bottom: 12px; }
.servico-tag { display: inline-block; font-size: 11px; font-weight: 600; color: var(--black); background: var(--gray-100); padding: 4px 10px; border-radius: 100px; border: 1px solid var(--gray-200); }

/* ---- DEPOIMENTOS ---- */
.section-depoimentos { padding: 60px 0; background: var(--white); }

.depoimento-slide { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/5; background: var(--gray-100); }
.depoimento-slide img { width: 100%; height: 100%; object-fit: cover; }

/* ---- INSTAGRAM ---- */
.section-instagram { padding: 60px 20px; background: var(--black); box-sizing: border-box; }

.insta-content {
    max-width: 900px; margin: 0 auto;
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 40px; align-items: center;
}

.insta-text h2 { font-size: 28px; font-weight: 800; color: var(--white); margin-bottom: 12px; letter-spacing: -0.5px; }
.insta-text p { color: rgba(255,255,255,0.55); font-size: 15px; margin-bottom: 24px; line-height: 1.7; }

.btn-insta {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--white); color: var(--black);
    font-weight: 700; font-size: 14px; padding: 12px 22px;
    border-radius: 100px; text-decoration: none; transition: all var(--transition);
}
.btn-insta:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(255,255,255,0.2); }

.insta-preview { border-radius: var(--radius); overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,0.4); }
.insta-preview img { width: 100%; display: block; }

/* ---- UNIDADES ---- */
.section-unidades { padding: 60px 0; background: var(--gray-50); }

.unidades-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; max-width: 900px; margin: 0 auto; }

.unidade-card {
    background: var(--white); border-radius: var(--radius);
    border: 1.5px solid var(--gray-200); padding: 26px;
    transition: box-shadow 0.25s;
}
.unidade-card:hover { box-shadow: var(--shadow-lg); }

.unidade-header { margin-bottom: 18px; }
.unidade-header h3 { font-size: 19px; font-weight: 800; }
.unidade-rating { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.stars { color: #f59e0b; font-size: 14px; }
.unidade-rating strong { font-size: 14px; }
.rating-count { font-size: 12px; color: var(--gray-500); }

.unidade-info { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.info-item { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--gray-700); }
.info-item svg { flex-shrink: 0; margin-top: 1px; color: var(--gray-400); }
.status-aberto { color: var(--green); font-weight: 600; }

.unidade-actions { display: flex; gap: 10px; }

.btn-wpp {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
    background: var(--black); color: var(--white);
    font-weight: 700; font-size: 14px; padding: 12px 16px;
    border-radius: var(--radius-sm); border: none; cursor: pointer; text-decoration: none;
    transition: all var(--transition);
}
.btn-wpp:hover { background: #222; transform: translateY(-1px); }

.btn-mapa {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
    background: var(--white); color: var(--black);
    font-weight: 600; font-size: 14px; padding: 12px 16px;
    border-radius: var(--radius-sm); border: 1.5px solid var(--gray-200);
    text-decoration: none; transition: all var(--transition);
}
.btn-mapa:hover { background: var(--gray-100); }

/* ---- FOOTER ---- */
.site-footer { background: var(--black); color: rgba(255,255,255,0.7); }

.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px,1fr)); gap: 36px; padding: 56px 20px 36px; max-width: 1200px; margin: 0 auto; box-sizing: border-box; }

.footer-brand img { width: 48px; margin-bottom: 10px; }
.footer-brand p { color: var(--white); font-weight: 700; font-size: 14px; }
.footer-brand span { font-size: 12px; color: rgba(255,255,255,0.4); }

.footer-grid h5 { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 14px; }
.footer-grid ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-grid ul a { color: rgba(255,255,255,0.6); text-decoration: none; font-size: 14px; transition: color var(--transition); }
.footer-grid ul a:hover { color: var(--white); }

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 20px; text-align: center; font-size: 12px; color: rgba(255,255,255,0.3); }

/* ---- BOTÃO WHATSAPP FLUTUANTE ---- */
.wpp-float {
    position: fixed; bottom: 22px; right: 20px; z-index: 99;
    width: 54px; height: 54px; background: var(--green-wpp); color: var(--white);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    text-decoration: none; box-shadow: 0 4px 20px rgba(37,211,102,0.4);
    transition: all var(--transition);
}
.wpp-float:hover { transform: scale(1.1); box-shadow: 0 8px 30px rgba(37,211,102,0.5); }

/* ---- MODAIS ---- */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.65);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 0.28s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    overflow: hidden;
}
.modal-overlay.active { opacity: 1; }

.modal-box {
    background: var(--white);
    border-radius: 20px;
    padding: 28px 24px;
    width: 100%;
    max-width: 400px;
    min-width: 0;
    position: relative;
    transform: translateY(18px);
    transition: transform 0.28s ease;
    max-height: 90vh;
    overflow-y: auto;
    box-sizing: border-box;
    margin: 0 auto;
}
.modal-overlay.active .modal-box { transform: translateY(0); }

.modal-close {
    position: absolute; top: 14px; right: 14px;
    width: 30px; height: 30px; border: none;
    background: var(--gray-100); color: var(--gray-500);
    font-size: 14px; border-radius: 50%; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all var(--transition); z-index: 1;
}
.modal-close:hover { background: var(--gray-200); color: var(--black); }

.modal-box h3 { font-size: 19px; font-weight: 800; margin-bottom: 6px; padding-right: 30px; }
.modal-box > p { font-size: 14px; color: var(--gray-500); }

.modal-btns { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.modal-btn {
    width: 100%; padding: 14px 16px;
    background: var(--black); color: var(--white);
    font-weight: 600; font-size: 15px;
    border: none; border-radius: 12px; cursor: pointer;
    transition: all var(--transition); text-align: left;
    box-sizing: border-box;
}
.modal-btn:hover { background: #222; transform: translateX(3px); }

/* Modal celular */
.modal-celular { max-width: 420px; padding: 0; overflow: hidden; }
.modal-celular-foto { aspect-ratio: 1; background: var(--gray-100); overflow: hidden; max-height: 40vh; }
.modal-celular-foto img { width: 100%; height: 100%; object-fit: cover; }
.modal-celular-info { padding: 22px 20px; }
.modal-celular-info h3 { font-size: 20px; font-weight: 800; margin-bottom: 8px; padding-right: 0; }
.modal-specs { font-size: 13px; color: var(--gray-500); line-height: 1.6; margin-bottom: 10px; }
.modal-preco { font-size: 24px; font-weight: 900; color: var(--black); margin-bottom: 18px; }

.btn-wpp-modal {
    width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px;
    background: var(--green-wpp); color: var(--white);
    font-weight: 700; font-size: 15px; padding: 15px;
    border-radius: 12px; border: none; cursor: pointer;
    transition: all var(--transition); box-sizing: border-box;
}
.btn-wpp-modal:hover { background: #1db954; transform: translateY(-1px); }

/* Formulário de captura */
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--gray-700); margin-bottom: 6px; }
.form-group input {
    width: 100%; padding: 12px 14px; border: 1.5px solid var(--gray-200);
    border-radius: 10px; font-size: 15px; font-family: var(--font);
    transition: border-color var(--transition); outline: none; box-sizing: border-box;
}
.form-group input:focus { border-color: var(--black); }

.btn-form-submit {
    width: 100%; background: var(--black); color: var(--white);
    font-weight: 700; font-size: 15px; padding: 14px;
    border-radius: 12px; border: none; cursor: pointer;
    margin-top: 6px; transition: all var(--transition); box-sizing: border-box;
}
.btn-form-submit:hover { background: #222; }
.btn-form-submit:disabled { opacity: 0.6; cursor: not-allowed; }

/* ---- PROVA SOCIAL ---- */
#notification-container {
    position: fixed;
    bottom: 86px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 150;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: calc(100% - 32px);
    max-width: 300px;
    pointer-events: none;
}

.social-proof-box {
    background: var(--white);
    border-radius: 12px;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-lg);
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    border-left: 3px solid var(--black);
    width: 100%;
    box-sizing: border-box;
    pointer-events: auto;
}
.social-proof-box.sp-show { opacity: 1; transform: translateY(0); }

.sp-icon { font-size: 20px; flex-shrink: 0; }
.social-proof-box strong { display: block; font-size: 13px; font-weight: 700; }
.social-proof-box span { font-size: 12px; color: var(--gray-500); line-height: 1.4; }
.social-proof-box em { font-style: normal; color: var(--gray-400); }

/* ---- RESPONSIVO MOBILE ---- */
@media (max-width: 768px) {
    .hero-section { padding: 52px 16px 48px; }
    .hero-title { letter-spacing: -0.5px; }
    .hero-desc { font-size: 15px; }
    .hero-actions { gap: 10px; }
    .hero-stat-divider { display: none; }
    .hero-stats { gap: 10px 20px; }

    .section-celulares, .section-servicos,
    .section-depoimentos, .section-unidades { padding: 44px 0; }

    .insta-content { grid-template-columns: 1fr; gap: 28px; text-align: center; }
    .insta-text h2 { font-size: 24px; }

    .unidade-actions { flex-direction: column; }

    .modal-overlay { padding: 12px; }
    .modal-box { padding: 22px 18px; border-radius: 16px; }
    .modal-btn { font-size: 14px; padding: 13px 14px; }
    .modal-celular-info { padding: 18px 16px; }
}

@media (max-width: 400px) {
    .logo-name { font-size: 12px; }
    .logo-sub { display: none; }
    .hero-title { font-size: 28px; }
    .btn-primary, .btn-secondary { font-size: 14px; padding: 13px 20px; }
    .modal-box { padding: 18px 14px; }
    .modal-box h3 { font-size: 17px; }
}
