/* =========================================================
   Casadim — Landing & Auth Stylesheet
   Paleta extraída da logo: marrom luxo -> bege claro
   ========================================================= */

:root {
    --c-blue: #5C4A3A;        /* marrom escuro (antigo "blue" slot, mantido p/ compatibilidade) */
    --c-blue-dark: #453629;
    --c-purple: #C9BAA9;      /* bege claro (antigo "purple" slot) */
    --c-purple-light: #DCD1C4;
    --c-navy: #0A0A0A;
    --c-navy-soft: #5A5650;
    --c-bg-soft: #FAF8F5;
    --c-bg-card: #FFFFFF;
    --c-border: #ECE7E0;
    --gradient-brand: linear-gradient(135deg, var(--c-blue) 0%, var(--c-purple) 100%);
    --gradient-brand-soft: linear-gradient(135deg, rgba(92,74,58,0.08) 0%, rgba(201,186,169,0.14) 100%);
    --shadow-soft: 0 20px 45px rgba(10, 10, 10, 0.08);
    --shadow-card: 0 10px 30px rgba(10, 10, 10, 0.06);
}

body.cd-body {
    font-family: 'Montserrat', sans-serif;
    color: var(--c-navy);
    background-color: var(--c-bg-soft);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.cd-body h1, .cd-body h2, .cd-body h3, .cd-body h4 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    color: var(--c-navy);
}

.cd-gradient-text {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ---------- Navbar ---------- */
.cd-navbar {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--c-border);
}

.cd-navbar .navbar-brand img {
    height: 34px;
}

.cd-navbar .nav-link {
    color: var(--c-navy-soft);
    font-weight: 600;
    font-size: 0.95rem;
    margin: 0 10px;
}

.cd-navbar .nav-link:hover {
    color: var(--c-blue);
}

.cd-btn-outline {
    border: 2px solid var(--c-border);
    color: var(--c-navy);
    font-weight: 700;
    border-radius: 50px;
    padding: 9px 24px;
    transition: all .2s ease;
    background: transparent;
}
.cd-btn-outline:hover {
    border-color: var(--c-blue);
    color: var(--c-blue);
}

.cd-btn-gradient {
    background: var(--gradient-brand);
    color: #fff !important;
    font-weight: 700;
    border-radius: 50px;
    padding: 11px 28px;
    border: none;
    box-shadow: 0 10px 25px rgba(90, 60, 220, 0.30);
    transition: transform .2s ease, box-shadow .2s ease;
}
.cd-btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(90, 60, 220, 0.40);
    color: #fff !important;
}
.cd-btn-gradient.cd-btn-lg { padding: 15px 36px; font-size: 1.05rem; }

/* ---------- Hero ---------- */
.cd-hero {
    padding: 90px 0 60px;
    position: relative;
    overflow: hidden;
}

.cd-hero::before {
    content: '';
    position: absolute;
    top: -180px;
    right: -180px;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: var(--gradient-brand-soft);
    z-index: 0;
}

.cd-hero .container { position: relative; z-index: 1; }

.cd-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid var(--c-border);
    color: var(--c-blue);
    font-weight: 700;
    font-size: 0.8rem;
    padding: 8px 16px;
    border-radius: 50px;
    box-shadow: var(--shadow-card);
    margin-bottom: 22px;
}
.cd-badge-pill .dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--gradient-brand);
    display: inline-block;
}

.cd-hero h1 {
    font-size: 3.2rem;
    line-height: 1.15;
    margin-bottom: 20px;
}

.cd-hero p.lead {
    font-family: 'Montserrat', sans-serif;
    color: var(--c-navy-soft);
    font-size: 1.15rem;
    max-width: 520px;
    margin-bottom: 32px;
}

.cd-hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 36px; }

.cd-trust-row {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--c-navy-soft);
    font-size: 0.9rem;
    font-weight: 600;
}
.cd-trust-row i { color: var(--c-purple); }

/* Hero photo */
.cd-hero-photo-wrap {
    position: relative;
    padding: 20px;
}
.cd-hero-photo {
    width: 100%;
    border-radius: 28px;
    box-shadow: var(--shadow-soft);
    object-fit: cover;
    aspect-ratio: 4/5;
    border: 6px solid #fff;
}
.cd-float-card {
    position: absolute;
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--c-navy);
    z-index: 2;
}
.cd-float-card .cd-icon-circle {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--gradient-brand);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.cd-float-card small { display: block; font-weight: 500; color: var(--c-navy-soft); font-size: 0.72rem; }
.cd-float-card-1 { top: 10%; left: -30px; }
.cd-float-card-2 { bottom: 8%; right: -20px; }

/* ---------- Stats strip ---------- */
.cd-stats {
    background: var(--gradient-brand);
    padding: 34px 0;
}
.cd-stats .stat-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.4rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0;
}
.cd-stats .stat-label {
    color: rgba(255,255,255,0.85);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: .3px;
}

/* ---------- Section headers ---------- */
.cd-section { padding: 90px 0; }
.cd-section-tag {
    color: var(--c-blue);
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-size: 0.8rem;
    margin-bottom: 12px;
    display: inline-block;
}
.cd-section-title { font-size: 2.4rem; margin-bottom: 16px; }
.cd-section-sub { color: var(--c-navy-soft); font-size: 1.05rem; max-width: 620px; }

/* ---------- Feature cards ---------- */
.cd-feature-card {
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: 20px;
    padding: 32px 28px;
    height: 100%;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.cd-feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-soft);
    border-color: transparent;
}
.cd-feature-icon {
    width: 58px; height: 58px;
    border-radius: 16px;
    background: var(--gradient-brand-soft);
    color: var(--c-blue);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 20px;
}
.cd-feature-card h4 { font-size: 1.25rem; margin-bottom: 10px; }
.cd-feature-card p { color: var(--c-navy-soft); font-size: 0.95rem; margin-bottom: 0; }

/* ---------- How it works ---------- */
.cd-step {
    text-align: center;
    padding: 0 16px;
    position: relative;
}
.cd-step-num {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: var(--gradient-brand);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0 auto 20px;
    box-shadow: 0 10px 20px rgba(90,60,220,.25);
}
.cd-step h4 { font-size: 1.15rem; }
.cd-step p { color: var(--c-navy-soft); font-size: 0.92rem; }

/* ---------- Themes strip ---------- */
.cd-theme-swatch {
    height: 90px;
    border-radius: 14px;
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
    margin-bottom: 10px;
}
.cd-theme-swatch span {
    position: absolute; bottom: 8px; left: 12px;
    color: #fff; font-weight: 700; font-size: 0.8rem;
    text-shadow: 0 2px 6px rgba(0,0,0,.35);
}

/* ---------- CTA banner ---------- */
.cd-cta-banner {
    background: var(--gradient-brand);
    border-radius: 32px;
    padding: 70px 50px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cd-cta-banner h2 { color: #fff; font-size: 2.3rem; }
.cd-cta-banner p { color: rgba(255,255,255,0.9); font-size: 1.05rem; max-width: 560px; margin: 0 auto 30px; }
.cd-cta-banner .btn-white {
    background: #fff;
    color: var(--c-blue);
    font-weight: 700;
    border-radius: 50px;
    padding: 14px 34px;
    border: none;
    transition: transform .2s ease;
}
.cd-cta-banner .btn-white:hover { transform: translateY(-2px); color: var(--c-blue-dark); }

/* ---------- Footer ---------- */
.cd-footer {
    background: var(--c-navy);
    color: rgba(255,255,255,0.65);
    padding: 50px 0 24px;
}
.cd-footer .navbar-brand img { height: 30px; filter: brightness(0) invert(1); }
.cd-footer a { color: rgba(255,255,255,0.65); text-decoration: none; font-size: 0.9rem; }
.cd-footer a:hover { color: #fff; }
.cd-footer hr { border-color: rgba(255,255,255,0.1); margin: 30px 0 20px; }

/* =========================================================
   Auth pages (login / register)
   ========================================================= */
.cd-auth-wrap {
    min-height: 100vh;
    display: flex;
}
.cd-auth-brand {
    flex: 1;
    background: var(--gradient-brand);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 50px 60px;
    position: relative;
    overflow: hidden;
}
.cd-auth-brand::before {
    content: '';
    position: absolute;
    width: 420px; height: 420px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    top: -120px; left: -120px;
}
.cd-auth-brand::after {
    content: '';
    position: absolute;
    width: 320px; height: 320px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    bottom: -100px; right: -80px;
}
.cd-auth-brand .navbar-brand img { height: 32px; filter: brightness(0) invert(1); }
.cd-auth-brand-content { position: relative; z-index: 1; max-width: 420px; }
.cd-auth-brand-content h2 { color: #fff; font-size: 2.2rem; margin-bottom: 18px; }
.cd-auth-brand-content p { color: rgba(255,255,255,0.85); font-size: 1rem; }
.cd-auth-benefit {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-top: 22px;
}
.cd-auth-benefit .cd-icon-circle {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.cd-auth-benefit div strong { display: block; font-size: 0.95rem; color: #fff; }
.cd-auth-benefit div span { font-size: 0.85rem; color: rgba(255,255,255,0.8); }
.cd-auth-photo {
    position: relative;
    z-index: 1;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
    border: 4px solid rgba(255,255,255,0.25);
}
.cd-auth-photo img { width: 100%; display: block; height: 220px; object-fit: cover; }

.cd-auth-form-side {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: #fff;
}
.cd-auth-form-card { width: 100%; max-width: 400px; }
.cd-auth-form-card .form-label { font-weight: 600; color: var(--c-navy); font-size: 0.9rem; }
.cd-auth-form-card .form-control {
    border-radius: 12px;
    border: 1.5px solid var(--c-border);
    padding: 12px 14px;
    font-size: 0.95rem;
}
.cd-auth-form-card .form-control:focus {
    border-color: var(--c-purple);
    box-shadow: 0 0 0 4px rgba(138,95,241,0.12);
}
.cd-auth-mobile-logo { display: none; }

@media (max-width: 991px) {
    .cd-auth-brand { display: none; }
    .cd-auth-mobile-logo { display: block; text-align: center; margin-bottom: 28px; }
    .cd-auth-mobile-logo img { height: 34px; }
}

@media (max-width: 767px) {
    .cd-hero h1 { font-size: 2.2rem; }
    .cd-hero { padding: 50px 0 30px; }
    .cd-float-card { display: none; }
    .cd-section { padding: 60px 0; }
    .cd-section-title { font-size: 1.8rem; }
    .cd-cta-banner { padding: 50px 24px; border-radius: 20px; }
    .cd-cta-banner h2 { font-size: 1.7rem; }
}
