/* =============================================
   RECIFE SEGUROS — Premium Design v2
   ============================================= */

:root {
    --bg: #f5f5f0;
    --bg-card: #ffffff;
    --bg-dark: #1a2e35;
    --bg-dark-alt: #1f353d;
    --text: #1a1a1a;
    --text-secondary: #6b6b6b;
    --text-on-dark: #e8e5dd;
    --text-muted-dark: rgba(232, 229, 221, 0.55);
    --accent: #2a9d8f;
    --accent-hover: #238b7e;
    --accent-soft: rgba(42, 157, 143, 0.08);
    --border: rgba(0,0,0,0.06);
    --border-dark: rgba(255,255,255,0.08);
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 20px;
    --shadow: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.08);
    --transition: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --container: 1100px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent); color: white; }

img { max-width: 100%; height: auto; display: block; }

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

/* ============ NAV ============ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: transparent;
    transition: var(--transition);
}

.nav.scrolled {
    background: rgba(245, 245, 240, 0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

.nav.scrolled .nav-name { color: var(--text); }
.nav.scrolled .nav-mark { background: var(--bg-dark); }
.nav.scrolled .nav-link { color: var(--text-secondary); }
.nav.scrolled .nav-link:hover { color: var(--text); background: rgba(0,0,0,0.04); }

.nav-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.nav-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.15);
    color: white;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.9rem;
    backdrop-filter: blur(4px);
    transition: var(--transition);
}

.nav-name { font-size: 1.05rem; font-weight: 500; color: white; transition: var(--transition); }
.nav-name em { font-style: normal; font-weight: 700; color: var(--accent); }

.nav-links { display: flex; align-items: center; gap: 4px; }

.nav-link {
    text-decoration: none;
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav-link:hover { color: white; background: rgba(255,255,255,0.08); }

.nav-cta {
    text-decoration: none;
    background: var(--accent);
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: var(--radius-sm);
    margin-left: 8px;
    transition: var(--transition);
}

.nav-cta:hover { background: var(--accent-hover); transform: translateY(-1px); }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span { width: 22px; height: 2px; background: white; border-radius: 2px; transition: var(--transition); }

/* ============ BUTTONS ============ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
}

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

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(42,157,143,0.3);
}

.btn-primary:active { transform: scale(0.98); }

.btn-ghost {
    background: transparent;
    color: var(--text);
    border: 1.5px solid var(--border);
}

.btn-ghost:hover { border-color: rgba(0,0,0,0.15); background: rgba(0,0,0,0.03); }

.btn-secondary {
    background: var(--bg-dark);
    color: var(--text-on-dark);
}

.btn-secondary:hover { background: var(--bg-dark-alt); transform: translateY(-1px); }

.btn-sm { padding: 8px 20px; font-size: 0.85rem; }
.btn-lg { padding: 14px 36px; font-size: 1rem; }

/* ============ SECTIONS ============ */
.section { padding: 100px 0; }

.section-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    margin-bottom: 12px;
    font-family: var(--font-mono);
}

.section-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.025em;
    margin-bottom: 36px;
    max-width: 600px;
}

.section-dark {
    background: var(--bg-dark);
}

.section-dark .section-label { color: var(--text-muted-dark); }
.section-dark .section-title { color: var(--text-on-dark); }

/* ============ HERO ============ */
.hero {
    min-height: 100dvh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 64px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(26, 46, 53, 0.85) 0%,
        rgba(26, 46, 53, 0.60) 50%,
        rgba(26, 46, 53, 0.40) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: var(--container);
    margin: 0 auto;
    padding: 60px 28px;
    width: 100%;
}

.hero-badge {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--accent);
    background: rgba(42, 157, 143, 0.12);
    padding: 6px 18px;
    border-radius: 100px;
    margin-bottom: 24px;
    letter-spacing: 0.01em;
    backdrop-filter: blur(4px);
}

.hero-title {
    font-size: clamp(2.6rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.04em;
    color: white;
    max-width: 700px;
    margin-bottom: 24px;
}

.hero-accent {
    color: var(--accent);
    font-weight: 700;
}

.hero-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 32px;
}

.hero-list li {
    color: rgba(255,255,255,0.85);
    font-size: 1rem;
    padding-left: 24px;
    position: relative;
}

.hero-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.6;
}

.hero-actions { margin-bottom: 20px; }

.hero-footnote {
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
}

.hero .hero-actions .btn-primary {
    font-size: 1.05rem;
    padding: 14px 40px;
}

/* ============ SOBRE ============ */
.sobre-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.sobre-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 36px;
}

.sobre-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.sobre-stat { display: flex; flex-direction: column; gap: 2px; }

.sobre-stat-num {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent);
    font-family: var(--font-mono);
}

.sobre-stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.sobre-visual { position: relative; }

.sobre-photo {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.sobre-photo img {
    width: 100%;
    height: 420px;
    object-fit: cover;
}

.sobre-card-mini {
    position: absolute;
    bottom: -16px;
    left: -16px;
    background: white;
    border-radius: var(--radius);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-lg);
}

.mini-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-soft);
    border-radius: var(--radius-sm);
    color: var(--accent);
}

.sobre-card-mini strong {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text);
}

.sobre-card-mini span {
    font-size: 0.78rem;
    color: var(--text-secondary);
}

/* ============ PLANOS ============ */
.planos { background: linear-gradient(180deg, var(--bg) 0%, #ebeae4 100%); }

.planos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.plano-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    position: relative;
}

.plano-card:hover {
    border-color: rgba(0,0,0,0.1);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.plano-card-featured { border-color: var(--accent); background: white; }

.plano-highlight {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 14px;
    border-radius: 100px;
    white-space: nowrap;
    letter-spacing: 0.02em;
    font-family: var(--font-mono);
}

.plano-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-soft);
    border-radius: var(--radius-sm);
    color: var(--accent);
    margin-bottom: 16px;
}

.plano-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.plano-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.plano-features {
    list-style: none;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.plano-features li {
    font-size: 0.82rem;
    color: var(--text-secondary);
    padding-left: 18px;
    position: relative;
    line-height: 1.4;
}

.plano-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.4;
}

.plano-card .btn { align-self: flex-start; }

/* ============ STEPS ============ */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    align-items: start;
}

.step-item { padding: 32px 24px 32px 0; }

.step-num {
    font-family: var(--font-mono);
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    opacity: 0.5;
    display: block;
    margin-bottom: 16px;
}

.step-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.step-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 260px;
}

.step-line {
    height: 1px;
    background: linear-gradient(90deg, var(--accent), transparent);
    margin-top: 60px;
    opacity: 0.3;
}

/* ============ CTA ============ */
.cta { padding: 80px 0; }

.cta-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 56px 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

.cta-title {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 12px;
}

.cta-desc {
    color: var(--text-secondary);
    line-height: 1.6;
}

.cta-actions { display: flex; gap: 12px; flex-shrink: 0; }

.cta .section-label { margin-bottom: 8px; }

/* ============ FAQ ============ */
.faq-list { max-width: 700px; margin: 0 auto; }

.faq-item { border-bottom: 1px solid var(--border-dark); }

.faq-q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 0;
    background: none;
    border: none;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-on-dark);
    cursor: pointer;
    text-align: left;
    transition: var(--transition);
}

.faq-q:hover { color: var(--accent); }

.faq-chevron {
    flex-shrink: 0;
    transition: transform 0.3s ease;
    color: var(--text-muted-dark);
}

.faq-item.open .faq-chevron { transform: rotate(180deg); }

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-item.open .faq-a {
    max-height: 300px;
    padding-bottom: 22px;
}

.faq-a p {
    color: var(--text-muted-dark);
    line-height: 1.7;
    font-size: 0.9rem;
}

/* ============ FOOTER ============ */
.footer {
    background: var(--bg-dark);
    color: var(--text-on-dark);
    padding: 64px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border-dark);
}

.footer-brand .nav-name { color: var(--text-on-dark); margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }

.footer-brand p {
    color: var(--text-muted-dark);
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 280px;
    margin-top: 16px;
}

.footer-col h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-on-dark);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-col a, .footer-col p {
    display: block;
    color: var(--text-muted-dark);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 12px;
    transition: var(--transition);
}

.footer-col a:hover { color: var(--accent); }

.footer-bottom { padding: 24px 0; text-align: center; }

.footer-bottom p {
    color: var(--text-muted-dark);
    font-size: 0.82rem;
    margin-bottom: 6px;
}

.footer-legal { font-style: italic; font-size: 0.75rem; opacity: 0.6; }

.footer .nav-mark {
    background: rgba(255,255,255,0.1);
    color: var(--text-on-dark);
    display: inline-flex;
    backdrop-filter: none;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
    .hero-overlay { background: linear-gradient(180deg, rgba(26,46,53,0.80) 0%, rgba(26,46,53,0.60) 100%); }
    .sobre-grid { grid-template-columns: 1fr; gap: 40px; }
    .sobre-visual { order: -1; }
    .planos-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        background: rgba(245,245,240,0.98);
        flex-direction: column;
        padding: 16px;
        gap: 4px;
        backdrop-filter: blur(16px);
    }
    .nav-links.open { display: flex; }
    .nav-toggle { display: flex; }
    .nav-cta { margin-left: 0; text-align: center; }
    .nav-link, .nav-cta { width: 100%; text-align: center; padding: 12px; }
    .nav-links .nav-link { color: var(--text-secondary); }
    .nav-links .nav-link:hover { color: var(--text); }

    .hero { min-height: 80dvh; }
    .hero-title { font-size: 2.2rem; }
    .hero-content { padding: 40px 24px; }

    .planos-grid { grid-template-columns: 1fr; }

    .steps-grid { grid-template-columns: 1fr; }
    .step-line { display: none; }
    .step-desc { max-width: 100%; }
    .step-item { padding: 24px 0; }

    .cta-card { flex-direction: column; text-align: center; padding: 32px 24px; }
    .cta-actions { width: 100%; flex-direction: column; }
    .cta-actions .btn { width: 100%; }

    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }

    .section { padding: 60px 0; }
    .section-title { margin-bottom: 24px; }

    .sobre-photo img { height: 280px; }
    .sobre-card-mini { left: 12px; bottom: -12px; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 1.8rem; }
    .hero-list li { font-size: 0.9rem; }
    .sobre-stats { grid-template-columns: 1fr; gap: 16px; }
    .footer-grid { grid-template-columns: 1fr; }
}
