:root {
    --bg: #0b1220;
    /* azul bem profundo */
    --surface: #111b2e;
    /* cards */
    --text: #e8edf7;
    /* texto claro */
    --muted: #b8c2d8;
    --brand: #c8a96a;
    /* dourado suave */
    --brand-2: #7aa2ff;
    /* azul de realce */
    --line: rgba(255, 255, 255, .10);
    --radius: 18px;
    --shadow: 0 18px 60px rgba(0, 0, 0, .35);
    --nav-h: 96px;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    overflow-x: clip;
}

section[id] {
    padding-top: 0;
}

body {
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    background: radial-gradient(1200px 600px at 10% 0%, rgba(122, 162, 255, .18), transparent 55%),
        radial-gradient(900px 500px at 90% 20%, rgba(200, 169, 106, .12), transparent 55%),
        var(--bg);
    color: var(--text);
    padding-top: var(--nav-h);
}

h1,
h2,
h3,
.display-font {
    font-family: "Playfair Display", serif;
}

section[id] {
    scroll-margin-top: calc(var(--nav-h) + 16px);
}

.container {
    max-width: 1100px;
}

@media (max-width: 576px) {

    .img-fluid {
        padding-right: 0 !important;
        padding-bottom: 3rem !important;
    }
}

/* Navbar */
.navbar {
    padding-top: 1.6rem;
    padding-bottom: 1.3rem;
    background: rgba(11, 18, 32, .72);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
    z-index: 1030;
}

.navbar .nav-link {
    color: var(--muted);
    position: relative;
    padding-inline: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.navbar .nav-link.active {
    color: var(--text);
}

.navbar .nav-link:hover {
    color: #e5c07b;
}

.navbar-brand {
    position: absolute;
    margin-right: 0px;
    display: flex;
    align-items: center;
    gap: .6rem;
}

.brand-logo {
    height: 64px;
    width: auto;
    padding: 0.2rem 0.6rem;
    background-color: transparent;
    transform: translateY(0px);
}

/* ===== NAVBAR - AJUSTES MOBILE ===== */
@media (max-width: 991.98px) {

    .navbar-collapse {
        backdrop-filter: blur(14px);
        padding: 0.75rem 1rem 1rem;
        margin-top: 0.75rem;
    }

    .navbar-nav .nav-link {
        padding-block: 0.5rem;
    }

    .navbar-brand {
        position: relative;
        z-index: 11;
    }
}

/* Sections */
section {
    padding: 5rem 0;
}

section#sobre .container {
    padding-top: 5rem;
}

.section-title {
    margin-bottom: 18px;
}

.section-subtitle {
    color: var(--muted);
    max-width: 780px;
}

/* Hero */
.hero {
    padding-top: 40px;
}

@media (max-width: 576px) {
    .hero {
        padding-top: 60px;
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .45rem .75rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    background: rgba(255, 255, 255, .04);
}

.hero-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .03));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 15px;
}

.btn-brand {
    --bs-btn-bg: var(--brand);
    --bs-btn-border-color: var(--brand);
    --bs-btn-hover-bg: #b89654;
    --bs-btn-hover-border-color: #b89654;
    --bs-btn-color: #0b1220;
    font-weight: 700;
    border-radius: 14px;
    padding: .9rem 1.1rem;
}

.btn-ghost {
    border: 1px solid var(--line);
    color: var(--text);
    background: rgba(255, 255, 255, .04);
    border-radius: 14px;
    padding: .9rem 1.1rem;
    font-weight: 600;
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, .07);
}

/* Cards */
.cardx {
    /* background: rgba(255, 255, 255, .04); */
    /* border: 1px solid var(--line); */
    /* border-radius: var(--radius); */
    padding: 0;
    height: 100%;
    font-size: 0.95rem;
}

.icon-pill {
    display: grid;
    place-items: center;
    color: var(--brand);
    font-size: 40px;
    font-weight: 800;
}

.muted {
    color: var(--muted);
}

/* Book */
.book-cover {
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .05);
    min-height: 280px;
    display: grid;
    place-items: center;
    color: var(--muted);
}

/* Reveal animation */
.reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: .6s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* WhatsApp floating */
.wa-float {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 999;
    border-radius: 999px;
    padding: 12px 14px;
    display: flex;
    gap: 10px;
    align-items: center;
    text-decoration: none;
    background: rgba(37, 211, 102, .14);
    border: 1px solid rgba(37, 211, 102, .30);
    color: #d6ffe6;
    backdrop-filter: blur(10px);
}

.wa-float:hover {
    background: rgba(37, 211, 102, .20);
}

.wa-badge {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: rgba(37, 211, 102, .22);
    border: 1px solid rgba(37, 211, 102, .35);
    font-weight: 900;
}

footer {
    border-top: 1px solid var(--line);
    padding: 30px 0;
    color: var(--muted);
    font-size: 0.8rem;
}

.form-control,
.form-select {
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--line);
    color: var(--text);
    border-radius: 14px;
    padding: .85rem .9rem;
}

/* Placeholder mais suave */
.form-control::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

/* Foco */
.form-control:focus,
.form-select:focus {
    background-color: rgba(255, 255, 255, 0.06) !important;
    color: var(--text) !important;
    border-color: var(--brand) !important;
    box-shadow: none !important;
}

.form-select {
    background-color: rgba(255, 255, 255, 0.04) !important;
    color: var(--text) !important;
}

.form-select option {
    background-color: #111b2e;
    /* fundo escuro */
    color: #ffffff;
}

/* Remove fundo branco do autofill */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
select:-webkit-autofill {
    -webkit-box-shadow: 0 0 0px 1000px rgba(255, 255, 255, 0.04) inset !important;
    -webkit-text-fill-color: var(--text) !important;
    caret-color: var(--text);
    transition: background-color 5000s ease-in-out 0s;
}

/* ===== Depoimentos (Carousel) ===== */
.testimonials {
    padding: 0px;
    position: relative;
    overflow: hidden;
}

.testimonials::before {
    content: "";
    position: absolute;
    /* inset: -2px; */
    /* background: radial-gradient(650px 220px at 15% 10%, rgba(200, 169, 106, .10), transparent 60%),
        radial-gradient(650px 220px at 85% 30%, rgba(122, 162, 255, .10), transparent 60%); */
    background: transparent;
    pointer-events: none;
    filter: blur(0px);
}

.testimonials>* {
    position: relative;
}

.testimonials-title {
    font-family: "Playfair Display", serif;
    font-size: 1.35rem;
}

.t-card {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .03);
    border-radius: calc(var(--radius) - 2px);
    padding: 18px 18px 14px;
}

.t-quote {
    margin: 0;
    line-height: 1.55;
    font-size: 1.02rem;
    color: var(--text);
}

.t-quote::before {
    content: "“";
    color: var(--brand);
    font-weight: 800;
    font-size: 2rem;
    line-height: 0;
    position: relative;
    top: 10px;
    margin-right: 2px;
}

.t-quote::after {
    content: "”";
    color: var(--brand);
    font-weight: 800;
    font-size: 2rem;
    line-height: 0;
    position: relative;
    top: 10px;
    margin-left: 0px;
}

.t-author {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

.t-name {
    font-weight: 700;
    color: #e5c07b;
    /* pequeno realce dourado */
}

.t-meta {
    font-size: .9rem;
}

/* indicadores no fim, sem “invadir” o conteúdo */
.t-indicators {
    position: static;
    margin-top: 14px;
    margin-bottom: 0;
    gap: 8px;
}

.t-indicators [data-bs-target] {
    width: 26px;
    height: 4px;
    border-radius: 999px;
    border: 0;
    opacity: .35;
}

.t-indicators .active {
    opacity: 1;
}

/* Botões pequenos nos controles (usa Bootstrap utilitário) */
.btn.btn-sm {
    padding: .45rem .65rem;
    border-radius: 12px;
}

/* Mobile: melhora leitura */
@media (max-width: 576px) {
    .t-quote {
        font-size: 1rem;
    }

    .testimonials {
        padding: 18px 0px;
    }
}