/* style.css — Algar Fibra Óptica (Uberlândia)
   Reset + variáveis + componentes mobile-first. Carregado antes do mobile.css. */

:root {
    --primary: #28BEA4;
    --primary-dark: #1FA88F;
    --secondary: #FFD22D;
    --bg: #f9fafb;
    --text: #232323;
    --muted: #676D7D;
    --gray-1: #E9EBF2;
    --gray-2: #CBD5E1;
    --white: #fff;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
    --radius: 14px;
    --radius-lg: 20px;
    --container: 1200px;
    --header-h: 64px;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0 0 0.5em; line-height: 1.2; }
p { margin: 0 0 1em; }
ul { margin: 0; padding-left: 1.25em; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; }
input { font: inherit; }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 16px;
}

/* ====== BOTÕES ====== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    border-radius: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s;
    min-height: 48px;
    text-align: center;
    border: 2px solid transparent;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); text-decoration: none; }
.btn-secondary { background: var(--secondary); color: var(--text); }
.btn-secondary:hover { filter: brightness(0.92); text-decoration: none; }
.btn-block { width: 100%; }
.btn-large { padding: 18px 32px; font-size: 1.1rem; }

/* ====== HEADER ====== */
.site-header {
    position: sticky;
    top: 0;
    background: var(--primary);
    color: #fff;
    height: var(--header-h);
    z-index: 100;
    box-shadow: var(--shadow-sm);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: 16px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-weight: 800;
    font-size: 1.25rem;
}
.logo:hover { text-decoration: none; }
.logo-mark {
    background: #fff;
    color: var(--primary);
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 900;
}
.logo-text small {
    display: block;
    font-size: 0.7rem;
    font-weight: 500;
    opacity: 0.9;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.header-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}
.header-nav a {
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
}
.header-nav a:hover { background: rgba(255,255,255,0.1); text-decoration: none; }
.city-btn {
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
}
.city-btn:hover { background: rgba(255,255,255,0.1); }

@media (max-width: 720px) {
    .header-nav a { display: none; }
    .header-nav a:last-of-type { display: inline-flex; }
}

/* ====== HERO ====== */
.hero {
    background: linear-gradient(135deg, #E0F7F2 0%, #fff 60%);
    padding: 60px 0 40px;
}
.hero-inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    gap: 40px;
}
.hero h1 {
    font-size: clamp(1.8rem, 4.5vw, 2.8rem);
    color: var(--text);
    font-weight: 800;
}
.hero h1 .accent { color: var(--primary); }
.hero h1 .price {
    display: inline-block;
    color: var(--primary);
    background: rgba(40, 190, 164, 0.12);
    padding: 2px 14px;
    border-radius: 10px;
}
.hero-sub {
    font-size: 1.15rem;
    color: var(--muted);
    margin-bottom: 28px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-illust svg { width: 100%; height: auto; }

@media (max-width: 720px) {
    .hero { padding: 40px 0 24px; }
    .hero-inner { grid-template-columns: 1fr; }
    .hero-illust { order: -1; max-width: 360px; margin: 0 auto; }
    .hero-cta .btn { flex: 1 1 100%; }
}

/* ====== SEÇÕES ====== */
section { padding: 60px 0; }
.section-title {
    text-align: center;
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    color: var(--text);
    margin-bottom: 8px;
}
.section-sub {
    text-align: center;
    color: var(--muted);
    margin-bottom: 40px;
    font-size: 1.05rem;
}

/* ====== CARDS DE PLANO ====== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}
.card {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-badge {
    position: absolute;
    top: 12px;
    right: -32px;
    background: var(--secondary);
    color: var(--text);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 40px;
    transform: rotate(45deg);
    text-transform: uppercase;
}
.card-header {
    background: var(--primary);
    color: #fff;
    padding: 28px 24px 24px;
    text-align: center;
}
.card-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    background: rgba(255,255,255,0.15);
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 8px;
}
.card-speed {
    font-size: 3.4rem;
    font-weight: 900;
    margin: 6px 0 0;
    line-height: 1;
}
.card-speed span { font-size: 1.4rem; font-weight: 700; opacity: 0.9; }
.card-desc { font-size: 0.95rem; opacity: 0.95; margin: 6px 0 0; }
.card-body { padding: 22px 24px; flex: 1; }
.card-benefits-title, .card-apps-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--muted);
    margin: 0 0 8px;
    letter-spacing: 1px;
}
.card-benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.card-benefits li { font-size: 0.95rem; }
.card-apps { display: flex; flex-wrap: wrap; gap: 8px; }
.app-chip {
    background: var(--gray-1);
    color: var(--text);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}
.card-footer {
    border-top: 1px solid var(--gray-1);
    padding: 20px 24px 24px;
    text-align: center;
}
.card-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
    margin-bottom: 16px;
    color: var(--primary);
}
.card-price .currency { font-size: 1.1rem; font-weight: 700; }
.card-price .amount { font-size: 2.4rem; font-weight: 900; line-height: 1; }
.card-price .cents { font-size: 1.4rem; font-weight: 700; }
.card-price small {
    font-size: 0.9rem;
    color: var(--muted);
    margin-left: 4px;
    font-weight: 500;
}

/* ====== CTA ENDEREÇO ====== */
.cta-address {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    padding: 50px 0;
    text-align: center;
}
.cta-address-inner h2 {
    font-size: clamp(1.5rem, 3.5vw, 2.2rem);
    font-weight: 300;
    text-transform: uppercase;
    margin-bottom: 24px;
}
.cta-address-inner h2 strong { font-weight: 800; }
.cta-address-inner h2 span { font-size: 0.85em; opacity: 0.9; }

/* ====== BENEFÍCIOS ====== */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}
.benefit {
    text-align: center;
    padding: 24px 16px;
}
.benefit-icon { margin-bottom: 16px; display: flex; justify-content: center; }
.benefit h3 { font-size: 1.1rem; margin-bottom: 8px; }
.benefit p { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* ====== FAQ ====== */
.faq {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
details {
    background: #fff;
    border-radius: var(--radius);
    padding: 16px 20px;
    box-shadow: var(--shadow-sm);
}
details[open] { box-shadow: var(--shadow-md); }
summary {
    font-weight: 600;
    cursor: pointer;
    color: var(--text);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
summary::-webkit-details-marker { display: none; }
summary::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: 300;
    flex-shrink: 0;
    transition: transform 0.2s;
}
details[open] summary::after { content: '−'; }
details p {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ====== JÁ É CLIENTE ====== */
.cliente {
    background: var(--gray-1);
}
.cliente-inner { max-width: 600px; margin: 0 auto; text-align: center; }
.cliente h2 { color: var(--primary); margin-bottom: 20px; }
.cliente ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 10px;
    text-align: left;
}
.cliente li {
    background: #fff;
    padding: 12px 16px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    color: var(--text);
    font-size: 0.95rem;
}
.cliente li::before { content: '✓ '; color: var(--primary); font-weight: 800; }

/* ====== FOOTER ====== */
.site-footer {
    background: #fff;
    border-top: 1px solid var(--gray-1);
    padding: 40px 0 24px;
    text-align: center;
    color: var(--muted);
    font-size: 0.9rem;
}
.site-footer p { margin: 4px 0; }
.site-footer strong { color: var(--text); }
.footer-links a { margin: 0 8px; }
.footer-note {
    margin-top: 16px;
    font-size: 0.8rem;
    font-style: italic;
    opacity: 0.8;
}

/* ====== MODAL ====== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 16px;
}
.modal-overlay[hidden] { display: none; }
.modal {
    background: #fff;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 28px 24px 24px;
    position: relative;
    box-shadow: var(--shadow-lg);
}
.modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 1.8rem;
    color: var(--muted);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-close:hover { background: var(--gray-1); }
.modal-header { margin-bottom: 20px; text-align: center; }
.modal-header h2 { font-size: 1.4rem; color: var(--primary); margin-bottom: 6px; }
.modal-header p { color: var(--muted); margin: 0; font-size: 0.95rem; }
.modal-form { display: flex; flex-direction: column; gap: 14px; }
.modal-form label { display: flex; flex-direction: column; gap: 6px; }
.modal-form label span { font-size: 0.85rem; font-weight: 600; color: var(--text); }
.modal-form input {
    padding: 14px;
    border: 1.5px solid var(--gray-2);
    border-radius: 10px;
    font-size: 16px;
    background: #fff;
    transition: border-color 0.2s;
}
.modal-form input:focus {
    outline: none;
    border-color: var(--primary);
}
.modal-note {
    font-size: 0.8rem;
    color: var(--muted);
    text-align: center;
    margin: 0;
}
.modal-success { text-align: center; padding: 20px 0; }
.modal-success[hidden] { display: none; }
.modal-success h3 { color: var(--primary); margin: 16px 0 8px; }
.modal-success p { color: var(--muted); margin-bottom: 20px; }
.success-icon { display: flex; justify-content: center; }

/* ====== COOKIE BANNER ====== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--text);
    color: #fff;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    z-index: 999;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; font-size: 0.9rem; flex: 1; }
.cookie-banner a { color: var(--secondary); }
.cookie-banner .btn { padding: 8px 18px; min-height: 36px; }

@media (max-width: 600px) {
    .cookie-banner { flex-direction: column; align-items: stretch; text-align: center; }
}
