/**
 * Cloudice — estilos compartilhados (marketing / páginas de serviço)
 * Cor principal: #3c8dbc (painel)
 */
:root {
    --brand: #3c8dbc;
    --brand-hover: #4aa3d4;
    --brand-dark: #2a6f94;
    --brand-dim: rgba(60, 141, 188, 0.22);
    --brand-soft: rgba(60, 141, 188, 0.12);

    /* Compatibilidade com regras antigas */
    --primary-color: #3c8dbc;
    --secondary-color: #2a6f94;
    --accent-color: #4aa3d4;
    --success-color: #22c55e;
    --warning-color: #eab308;
    --danger-color: #ef4444;

    --page-bg: #0f1114;
    --dark-bg: #0f1114;
    --surface: #1a1d23;
    --dark-card: #22262e;
    --border: rgba(255, 255, 255, 0.08);
    --dark-border: rgba(255, 255, 255, 0.1);
    --text: #f0f2f5;
    --dark-text: #f0f2f5;
    --text-muted: rgba(240, 242, 245, 0.55);
    --dark-text-muted: rgba(240, 242, 245, 0.55);
    --text-light: rgba(240, 242, 245, 0.55);
    --light-color: #f8fafc;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--page-bg);
    margin: 0;
    overflow-x: hidden;
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 1rem;
    z-index: 2000;
    padding: 0.5rem 1rem;
    background: var(--brand);
    color: #fff;
    border-radius: 0.35rem;
    font-weight: 600;
    text-decoration: none;
    transition: top 0.2s;
}
.skip-link:focus {
    top: 1rem;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

section {
    padding: clamp(3rem, 6vw, 4.5rem) 0;
    position: relative;
}

.section-eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--brand);
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
    margin-bottom: 0.5rem;
}

.section-lead {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
}

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

/* Navbar */
.navbar {
    background: rgba(15, 17, 20, 0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    transition: background 0.25s ease, box-shadow 0.25s ease;
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
}

.navbar.scrolled {
    background: rgba(15, 17, 20, 0.94);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.35rem;
    color: #fff !important;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.navbar-brand i {
    color: var(--brand);
}

.nav-link {
    font-weight: 500;
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.78) !important;
    padding: 0.5rem 0.85rem !important;
    border-radius: 0.4rem;
    transition: color 0.2s, background 0.2s;
}

.nav-link:hover,
.nav-link:focus {
    color: #fff !important;
    background: var(--brand-soft);
}

.nav-link.active {
    color: #fff !important;
    background: rgba(60, 141, 188, 0.2);
}

.btn-brand {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
    border: none;
    color: #fff !important;
    font-weight: 600;
    padding: 0.5rem 1.15rem;
    border-radius: 999px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-brand:hover {
    background: linear-gradient(135deg, var(--brand-hover) 0%, var(--brand) 100%);
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px var(--brand-dim);
}

.btn-brand-outline {
    border: 1px solid rgba(60, 141, 188, 0.45);
    color: var(--brand-hover) !important;
    background: transparent;
    font-weight: 600;
    padding: 0.5rem 1.15rem;
    border-radius: 999px;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.btn-brand-outline:hover {
    background: var(--brand-soft);
    border-color: var(--brand);
    color: #fff !important;
}

/* Hero interno (páginas de serviço) */
.page-hero {
    position: relative;
    padding-top: 6.5rem;
    padding-bottom: clamp(2.5rem, 5vw, 4rem);
    overflow: hidden;
    background: #0c0e12;
    background-image:
        radial-gradient(ellipse 100% 70% at 50% -30%, var(--brand-dim), transparent 50%),
        radial-gradient(ellipse 60% 50% at 100% 20%, rgba(60, 141, 188, 0.08), transparent 45%),
        linear-gradient(165deg, #0e1118 0%, #12151c 45%, #0a0c10 100%);
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cpath d='M48 0H0v48' fill='none' stroke='rgba(60,141,188,0.07)' stroke-width='1'/%3E%3C/svg%3E");
    pointer-events: none;
}

.page-hero-inner {
    position: relative;
    z-index: 2;
}

.page-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #a8d8ef;
    background: var(--brand-soft);
    border: 1px solid rgba(60, 141, 188, 0.25);
    margin-bottom: 1rem;
}

.page-hero h1 {
    font-size: clamp(1.85rem, 4vw, 2.75rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: #fff;
    margin-bottom: 1rem;
}

.page-hero h1 .accent {
    color: #7ec8e8;
}

.page-hero-lead {
    font-size: clamp(1rem, 2vw, 1.12rem);
    color: var(--text-muted);
    max-width: 36rem;
    margin-bottom: 1.5rem;
}

.page-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.btn-hero-solid {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.4rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
    color: #fff;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-hero-solid:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 36px var(--brand-dim);
}

.btn-hero-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.4rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s;
}

.btn-hero-ghost:hover {
    background: rgba(60, 141, 188, 0.15);
    border-color: rgba(60, 141, 188, 0.45);
    color: #fff;
}

.page-hero-visual {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    color: rgba(60, 141, 188, 0.35);
    font-size: clamp(6rem, 18vw, 11rem);
}

/* Bloco de conteúdo após hero */
.content-strip {
    background: var(--page-bg);
}

/* CTA final */
.cta-brand-band {
    background: linear-gradient(135deg, rgba(60, 141, 188, 0.18) 0%, rgba(42, 111, 148, 0.35) 100%);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    color: #fff;
    padding: clamp(2.5rem, 5vw, 3.5rem) 0;
}

.cta-brand-band .btn-cta-light {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 999px;
    background: #fff;
    color: var(--brand-dark) !important;
    border: none;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.cta-brand-band .btn-cta-light:hover {
    color: var(--brand-dark) !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Features (seções comuns) */
.features-section {
    padding: clamp(3rem, 6vw, 4.5rem) 0;
    background: var(--page-bg);
}

.feature-card {
    background: var(--surface);
    border-radius: 1rem;
    padding: 1.75rem;
    height: 100%;
    border: 1px solid var(--border);
    transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(60, 141, 188, 0.28);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

.feature-card h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

.feature-card p {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin: 0;
}

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1.1rem;
}

.feature-icon.primary {
    background: var(--brand-soft);
    color: var(--brand-hover);
}

.feature-icon.success {
    background: rgba(34, 197, 94, 0.12);
    color: var(--success-color);
}

.feature-icon.warning {
    background: rgba(234, 179, 8, 0.12);
    color: var(--warning-color);
}

.feature-icon.danger {
    background: rgba(239, 68, 68, 0.12);
    color: var(--danger-color);
}

/* Rodapé */
.footer-site {
    background: #0a0c0f;
    color: var(--text-muted);
    padding: 3rem 0 1.25rem;
    border-top: 1px solid var(--border);
}

.footer-site h5 {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--brand-hover);
    margin-bottom: 1rem;
}

.footer-site .brand-block h5 {
    font-size: 1.05rem;
    text-transform: none;
    letter-spacing: normal;
    color: #fff;
}

.footer-site .brand-block h5 i {
    color: var(--brand);
}

.footer-site a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-site a:hover {
    color: var(--brand-hover);
}

.footer-contact-phone {
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
}

.footer-br-flag {
    width: 16px;
    height: 11px;
    display: block;
    flex-shrink: 0;
    border-radius: 1px;
}

.footer-contact-phone:hover {
    color: var(--brand-hover);
}

.footer-support-highlight {
    border: 1px solid rgba(60, 141, 188, 0.45);
    border-radius: 0.75rem;
    padding: 1rem 1.1rem;
    margin-bottom: 1rem;
    background: rgba(60, 141, 188, 0.14);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2);
}

.footer-ajuda-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1rem;
    color: #fff !important;
    line-height: 1.3;
}

.footer-ajuda-link:hover {
    color: var(--brand-hover) !important;
}

.footer-ajuda-hint {
    margin-top: 0.55rem;
    color: rgba(255, 255, 255, 0.58) !important;
    line-height: 1.45;
}

/* Bootstrap .text-muted no rodapé escuro */
.footer-site .text-muted,
.footer-site a.text-muted {
    color: rgba(255, 255, 255, 0.75) !important;
}

.footer-site ul li {
    margin-bottom: 0.45rem;
}

.footer-social a {
    display: inline-flex;
    width: 2.25rem;
    height: 2.25rem;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted) !important;
}

.footer-social a:hover {
    background: var(--brand-soft);
    color: var(--brand-hover) !important;
}

.footer-site-bottom {
    border-top: 1px solid var(--border);
    padding-top: 1.25rem;
    margin-top: 2rem;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.35);
}

/* Bootstrap: botões primários alinhados à marca */
.btn-primary {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
    border-color: var(--brand-dark);
    font-weight: 600;
    border-radius: 0.5rem;
}

.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(135deg, var(--brand-hover) 0%, var(--brand) 100%);
    border-color: var(--brand);
}

.btn-outline-primary {
    color: var(--brand-hover) !important;
    border-color: rgba(60, 141, 188, 0.5);
    font-weight: 600;
    border-radius: 0.5rem;
}

.btn-outline-primary:hover {
    background: var(--brand-soft);
    border-color: var(--brand);
    color: #fff !important;
}

@media (max-width: 576px) {
    .page-hero-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .btn-hero-solid,
    .btn-hero-ghost {
        justify-content: center;
    }
}
