/* NichoAds — mobile-first, profissional */
:root {
    --color-bg: #f4f6f9;
    --color-surface: #ffffff;
    --color-text: #1a202c;
    --color-muted: #64748b;
    --color-primary: #0b4f8a;
    --color-primary-dark: #083a66;
    --color-accent: #2563eb;
    --color-border: #e2e8f0;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --max-width: 680px;
    --header-h: 56px;
}

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.65;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: var(--color-accent);
    text-decoration: none;
}

a:hover {
    color: var(--color-primary);
}

.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* —— Header —— */
.site-header {
    background: var(--color-primary);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--header-h);
    gap: 0.75rem;
}

.logo {
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: -0.02em;
    text-decoration: none;
    line-height: 1.2;
    max-width: 55vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.header-cta {
    display: none;
    flex-shrink: 0;
    background: #fff;
    color: var(--color-primary);
    font-weight: 700;
    font-size: 0.82rem;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.header-cta:hover {
    color: var(--color-primary-dark);
    background: #f8fafc;
}

@media (min-width: 480px) {
    .header-cta {
        display: inline-flex;
        align-items: center;
    }
}

@media (min-width: 768px) {
    .header-cta {
        order: 3;
        margin-left: auto;
        margin-right: 0.5rem;
    }
}

.nav-toggle {
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.12);
    border: 0;
    color: #fff;
    font-size: 1.35rem;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav a {
    display: block;
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.65rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.main-nav a.active {
    color: #fff;
    font-weight: 600;
}

.main-nav a:hover {
    color: #fff;
}

@media (max-width: 767px) {
    .header-inner {
        flex-wrap: wrap;
        padding: 0.5rem 0;
    }

    .main-nav {
        display: none;
        width: 100%;
        padding-bottom: 0.5rem;
    }

    .main-nav.is-open {
        display: block;
    }

    .main-nav li:last-child a {
        border-bottom: 0;
    }
}

@media (min-width: 768px) {
    .nav-toggle {
        display: none;
    }

    .main-nav {
        display: block !important;
    }

    .header-inner {
        flex-wrap: nowrap;
    }

    .main-nav ul {
        display: flex;
        gap: 0.25rem;
    }

    .main-nav a {
        padding: 0.5rem 0.85rem;
        border: 0;
        border-radius: 999px;
        font-size: 0.9rem;
    }

    .main-nav a.active,
    .main-nav a:hover {
        background: rgba(255, 255, 255, 0.15);
    }
}

/* —— Layout —— */
.content-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1rem 0 2.5rem;
}

@media (min-width: 900px) {
    .content-grid {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 280px;
        gap: 2rem;
        padding: 1.5rem 0 3rem;
    }
}

.main-content {
    min-width: 0;
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.15rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
}

@media (min-width: 768px) {
    .main-content {
        padding: 1.75rem 2rem;
    }
}

.main-content > h1 {
    font-size: 1.5rem;
    line-height: 1.25;
    margin: 0 0 1rem;
    letter-spacing: -0.02em;
    color: var(--color-primary-dark);
}

@media (min-width: 768px) {
    .main-content > h1 {
        font-size: 1.85rem;
    }
}

/* —— Breadcrumbs —— */
.breadcrumbs {
    padding: 0.85rem 0 0.25rem;
    font-size: 0.78rem;
    color: var(--color-muted);
    line-height: 1.4;
}

.breadcrumbs a {
    color: var(--color-muted);
    text-decoration: none;
}

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

.breadcrumbs span {
    color: var(--color-text);
    font-weight: 500;
}

/* —— Hero & imagens —— */
.hero {
    margin: 0 0 1.25rem;
}

.hero img,
.main-content img,
.hub-card img {
    border-radius: var(--radius-md);
}

.hero img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    box-shadow: var(--shadow-sm);
}

.lead {
    font-size: 1.05rem;
    color: var(--color-muted);
    margin: 0 0 1.25rem;
    line-height: 1.6;
}

/* —— Conteúdo HTML (artigos) —— */
.main-content h2,
.main-content h3,
.main-content h4 {
    color: var(--color-primary-dark);
    line-height: 1.3;
    margin: 1.75rem 0 0.65rem;
    letter-spacing: -0.01em;
}

.main-content h2 { font-size: 1.25rem; }
.main-content h3 { font-size: 1.1rem; }

.main-content p {
    margin: 0 0 1rem;
}

.main-content ul,
.main-content ol {
    margin: 0 0 1rem;
    padding-left: 1.2rem;
}

.main-content li {
    margin-bottom: 0.4rem;
}

.main-content a {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 500;
}

.main-content a:hover {
    color: var(--color-primary);
}

.main-content img {
    width: 100%;
    margin: 1.25rem 0;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.main-content blockquote {
    margin: 1.25rem 0;
    padding: 1rem 1.15rem;
    background: #f1f5f9;
    border-left: 4px solid var(--color-accent);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.main-content table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    margin: 1rem 0;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.main-content th,
.main-content td,
.content-table th,
.content-table td {
    border: 1px solid var(--color-border);
    padding: 0.55rem 0.65rem;
    text-align: left;
}

.content-table {
    overflow-x: auto;
    margin: 1.25rem 0;
}

/* —— Hub grid (artigos, serviços) —— */
.hub-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 1.5rem 0 0.5rem;
}

@media (min-width: 540px) {
    .hub-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .hub-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.15rem;
    }
}

.hub-card {
    display: flex;
    flex-direction: column;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s, transform 0.2s;
}

.hub-card:active {
    transform: scale(0.99);
}

@media (hover: hover) {
    .hub-card:hover {
        box-shadow: var(--shadow-md);
        border-color: #cbd5e1;
    }
}

.hub-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 0;
}

.hub-card-placeholder {
    width: 100%;
    height: 120px;
    background: linear-gradient(135deg, #e2e8f0 0%, #f1f5f9 100%);
}

@media (min-width: 768px) {
    .hub-card img {
        height: 140px;
    }
}

.hub-card h2 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0.85rem 1rem 0.35rem;
    line-height: 1.35;
    color: var(--color-text);
}

.hub-card p {
    margin: 0 1rem 0.5rem;
    font-size: 0.88rem;
    color: var(--color-muted);
    line-height: 1.5;
    flex: 1;
}

.hub-link {
    display: block;
    margin: 0 1rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-accent);
}

/* —— Sidebar —— */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sidebar-nav {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1rem 1.1rem;
    box-shadow: var(--shadow-sm);
}

.sidebar-nav h3 {
    margin: 0 0 0.75rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-muted);
}

.sidebar-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-nav li {
    margin-bottom: 0.35rem;
}

.sidebar-nav a {
    display: block;
    padding: 0.45rem 0;
    color: var(--color-text);
    text-decoration: none;
    font-size: 0.92rem;
    line-height: 1.35;
    border-bottom: 1px solid #f1f5f9;
}

.sidebar-nav li:last-child a {
    border-bottom: 0;
}

.sidebar-nav a:hover {
    color: var(--color-accent);
}

.sidebar-more {
    margin: 0.75rem 0 0;
    font-size: 0.85rem;
}

.sidebar-more a {
    color: var(--color-accent);
    font-weight: 600;
}

.sidebar-form {
    background: var(--color-surface);
    padding: 0;
    border: 0;
    box-shadow: none;
}

.quote-form h2,
.quote-form h3 {
    margin: 0 0 0.5rem;
    font-size: 1.05rem;
    color: var(--color-primary-dark);
}

.quote-form--page h2 {
    font-size: 1.35rem;
}

.quote-form__intro {
    margin: 0 0 1rem;
    font-size: 0.9rem;
    color: var(--color-muted);
    line-height: 1.5;
}

.quote-form label {
    display: block;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-muted);
}

.quote-form .optional {
    font-weight: 400;
    font-size: 0.8rem;
}

.quote-form input,
.quote-form textarea {
    width: 100%;
    padding: 0.65rem 0.75rem;
    margin-top: 0.3rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 16px;
    background: #fff;
}

.quote-form button {
    width: 100%;
    padding: 0.9rem;
    background: var(--color-accent);
    color: #fff;
    border: 0;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    margin-top: 0.25rem;
}

.quote-form button:active {
    background: var(--color-primary);
}

.quote-form--sidebar {
    background: var(--color-surface);
    padding: 1.15rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}

.quote-form__success {
    background: #ecfdf5;
    border: 1px solid #6ee7b7;
    color: #065f46;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.92rem;
    margin-bottom: 0.75rem;
}

.quote-form__success[hidden] {
    display: none !important;
}

.quote-section {
    margin-top: 2rem;
    padding: 1.25rem;
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}

.quote-cta {
    margin-top: 2rem;
    padding: 1.25rem 1.35rem;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    border-radius: var(--radius-lg);
    color: #fff;
}

.quote-cta h2 {
    margin: 0 0 0.35rem;
    font-size: 1.2rem;
    color: #fff;
}

.quote-cta p {
    margin: 0;
    font-size: 0.92rem;
    opacity: 0.92;
}

.quote-cta__inner {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 640px) {
    .quote-cta__inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.quote-cta__btn {
    display: inline-block;
    background: #fff;
    color: var(--color-primary);
    font-weight: 700;
    padding: 0.75rem 1.25rem;
    border-radius: 999px;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
}

.quote-cta__btn:hover {
    color: var(--color-primary-dark);
    background: #f8fafc;
}

.quote-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1rem;
    padding-bottom: max(0.85rem, env(safe-area-inset-bottom));
    background: var(--color-accent);
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    box-shadow: 0 -4px 20px rgba(37, 99, 235, 0.35);
}

.quote-bar:hover {
    color: #fff;
    background: var(--color-primary);
}

@media (min-width: 900px) {
    .quote-bar {
        display: none;
    }
}

.footer-lead {
    margin-top: 0.75rem !important;
}

.disclaimer {
    margin: 0.75rem 0 0;
    font-size: 0.75rem;
    color: var(--color-muted);
    line-height: 1.4;
}

.sidebar-form h3 {
    display: none;
}

/* —— FAQ & depoimentos —— */
.testimonials h2,
.faq h2 {
    font-size: 1.15rem;
    margin: 2rem 0 1rem;
    color: var(--color-primary-dark);
}

.testimonials blockquote {
    background: #f8fafc;
    padding: 1rem 1.1rem;
    margin: 0 0 0.85rem;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--color-accent);
}

.testimonials cite {
    font-size: 0.85rem;
    color: var(--color-muted);
    font-style: normal;
}

.faq details {
    margin-bottom: 0.65rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 0.85rem 1rem;
    background: #fafbfc;
}

.faq summary {
    font-weight: 600;
    cursor: pointer;
    font-size: 0.95rem;
}

.faq details p {
    margin: 0.65rem 0 0;
    color: var(--color-muted);
    font-size: 0.92rem;
}

.osm-map {
    height: 220px;
    background: #e2e8f0;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-top: 1rem;
}

@media (min-width: 768px) {
    .osm-map {
        height: 300px;
    }
}

/* —— Footer —— */
.site-footer {
    background: #1e293b;
    color: #e2e8f0;
    padding: 2rem 0 0;
    margin-top: 0;
}

.site-footer a {
    color: #93c5fd;
    text-decoration: none;
}

.site-footer a:hover {
    color: #bfdbfe;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding-bottom: 1.5rem;
}

@media (min-width: 540px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .footer-grid {
        grid-template-columns: 1.4fr repeat(3, 1fr);
        gap: 2rem;
    }
}

.footer-brand strong {
    font-size: 1.05rem;
    display: block;
    margin-bottom: 0.35rem;
}

.footer-brand p {
    margin: 0.25rem 0;
    font-size: 0.88rem;
    color: #94a3b8;
}

.footer-col h4 {
    margin: 0 0 0.65rem;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #cbd5e1;
}

.footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-col li {
    margin-bottom: 0.4rem;
    font-size: 0.88rem;
}

.footer-copy {
    border-top: 1px solid #334155;
    padding: 1rem 0;
    font-size: 0.8rem;
    color: #64748b;
    text-align: center;
}

main.container {
    padding-bottom: 4.5rem;
}

@media (min-width: 900px) {
    main.container {
        padding-bottom: 2.5rem;
    }
}
