:root {
    --cfc-yellow: #f1c40f;
    --cfc-yellow-2: #ffd73d;
    --cfc-green: #008d34;
    --cfc-green-dark: #006d28;
    --cfc-blue: #003b89;
    --cfc-dark: #1b1b1b;
    --cfc-soft: #fff8d7;
    --cfc-muted: #667085;
    --cfc-border: #e9e2c9;
}

html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: #ffffff;
    color: var(--cfc-dark);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
a { color: var(--cfc-green); }
a:hover { color: var(--cfc-green-dark); }
.shadow-soft { box-shadow: 0 18px 55px rgba(15,23,42,.10); }
.text-cfc-dark { color: var(--cfc-dark); }
.bg-soft { background: var(--cfc-soft); }

/* Topo igual site institucional */
.top-contact-bar {
    background: #e7b708;
    min-height: 50px;
    color: #fff;
    font-weight: 700;
    font-size: .95rem;
    display: flex;
    align-items: center;
}
.top-contact-bar a,
.top-contact-bar span { color: #fff; text-decoration: none; }
.top-contact-bar i { font-size: 1rem; }

.main-navbar {
    background: #fff !important;
    min-height: 52px;
    position: relative;
    z-index: 1040;
    box-shadow: 0 1px 0 rgba(0,0,0,.06);
}
.main-navbar .container { position: relative; }
.navbar-brand { z-index: 4; }
.navbar-brand img { max-height: 74px; width: auto; }
.brand-fallback {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 38% 28%, #fff59f, #f1c40f 58%, #078536 60%);
    color: #073e1c;
    font-weight: 950;
    border: 3px solid rgba(0,141,52,.22);
    box-shadow: 0 6px 18px rgba(0,0,0,.14);
}
.main-navbar .nav-link {
    color: var(--cfc-green);
    font-weight: 900;
    letter-spacing: .01em;
    padding-left: 1.2rem !important;
    padding-right: 1.2rem !important;
}
.main-navbar .nav-link:hover,
.main-navbar .nav-link:focus { color: #005d23; }

.btn-primary {
    background: linear-gradient(135deg, #073884, #003b89);
    border: 0;
    color: #fff;
    font-weight: 900;
    box-shadow: 0 12px 26px rgba(0,59,137,.26);
}
.btn-primary:hover,
.btn-primary:focus { color:#fff; filter: brightness(.97); }
.btn-success {
    background: var(--cfc-green);
    border-color: var(--cfc-green);
    font-weight: 900;
}
.btn-success:hover { background: var(--cfc-green-dark); border-color: var(--cfc-green-dark); }
.btn-warning { background: var(--cfc-yellow); border-color: var(--cfc-yellow); color:#111; font-weight:900; }
.btn-outline-primary { color: var(--cfc-blue); border-color: var(--cfc-blue); }
.btn-outline-primary:hover { background: var(--cfc-blue); border-color: var(--cfc-blue); color:#fff; }

/* Hero premium estilo referencia */
.institutional-hero {
    position: relative;
    overflow: hidden;
    min-height: 435px;
    background:
        linear-gradient(90deg, rgba(239,190,0,.98), rgba(245,200,10,.96)),
        var(--hero-bg);
    background-size: cover;
    background-position: center;
}
.institutional-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,.20) 1px, transparent 1px);
    background-size: 16px 16px;
    opacity: .45;
    pointer-events: none;
}
.institutional-hero::after {
    content: "";
    position: absolute;
    left: -8%;
    bottom: -118px;
    width: 118%;
    height: 150px;
    background: #fff;
    transform: rotate(-2deg);
    transform-origin: left center;
    z-index: 2;
}
.hero-wide { position: relative; z-index: 3; }
.hero-vehicle-col { min-height: 435px; position: relative; }
.hero-vehicle {
    position: absolute;
    left: -70px;
    bottom: 18px;
    width: min(820px, 64vw);
    max-height: 390px;
    object-fit: contain;
    filter: drop-shadow(0 24px 18px rgba(0,0,0,.22));
}
.hero-text-col {
    min-height: 435px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 5vw 70px 24px;
}
.hero-content-card { width: min(100%, 520px); text-align: center; }
.hero-title {
    margin: 0;
    color: #fff;
    font-size: clamp(3rem, 4.7vw, 5.1rem);
    line-height: .98;
    font-weight: 950;
    letter-spacing: .09em;
    text-transform: uppercase;
    text-shadow: 0 8px 28px rgba(0,0,0,.13);
}
.hero-divider {
    border: 0;
    border-top: 2px dotted rgba(0,141,52,.80);
    opacity: 1;
    margin: 22px auto 16px;
    max-width: 460px;
}
.hero-subtitle {
    color: #fff;
    font-size: clamp(1.08rem, 1.15vw, 1.52rem);
    letter-spacing: .03em;
    text-shadow: 0 4px 16px rgba(0,0,0,.10);
}
.hero-subtitle strong { color: var(--cfc-blue); font-weight: 950; }
.hero-action { min-width: 360px; letter-spacing: .10em; border-radius: 4px !important; }

.section-eyebrow {
    color: var(--cfc-green);
    text-transform: uppercase;
    font-weight: 950;
    letter-spacing: .12em;
    font-size: .86rem;
}
.section-title {
    font-size: clamp(2rem, 3vw, 3rem);
    font-weight: 950;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #202020;
}
.section-title::after {
    content: "";
    display: block;
    width: min(92%, 990px);
    height: 1px;
    margin: 14px auto 0;
    border-top: 2px dotted rgba(231,183,8,.45);
}
.section-lead { color: var(--cfc-muted); font-size: 1.08rem; }

/* Sobre nós */
.about-card {
    border: 0;
    border-radius: 0;
    background: #fff;
    overflow: hidden;
}
.about-media img { width: 100%; display:block; object-fit: contain; }
.about-copy h3 { font-weight: 900; line-height: 1.22; }
.about-copy p { color: #4b5563; line-height: 1.75; }
.stat-mini {
    border-left: 4px solid var(--cfc-green);
    padding: 10px 14px;
    background: #f8fff9;
}

/* Serviços parecidos com a referencia */
.services-section { background: #fff; }
.service-card {
    height: 100%;
    border: 2px solid var(--cfc-green);
    border-radius: 2px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(0,0,0,.10);
    padding: 34px 30px;
    display: flex;
    flex-direction: column;
    min-height: 320px;
    transition: transform .2s ease, box-shadow .2s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 18px 45px rgba(0,0,0,.14); }
.service-card .service-icon {
    color: var(--cfc-green);
    font-size: 2.5rem;
    line-height: 1;
    margin-bottom: 26px;
}
.service-card h3 {
    font-weight: 950;
    font-size: clamp(1.6rem, 2vw, 2.15rem);
    letter-spacing: .03em;
    line-height: 1.08;
}
.service-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 22px;
    margin: 24px 0 30px;
    color: #333;
}
.service-items span::before { content: "— "; color: #333; }
.service-card .btn { margin-top: auto; border-radius: 2px; }

/* CTA amarelo com fundo */
.enroll-cta {
    position: relative;
    overflow: hidden;
    min-height: 360px;
    display: flex;
    align-items: center;
    background:
        linear-gradient(rgba(231,183,8,.86), rgba(231,183,8,.86)),
        var(--cta-bg, linear-gradient(135deg, #f1c40f, #e7b708));
    background-size: cover;
    background-position: center;
    color: #fff;
}
.enroll-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(255,255,255,.20), transparent 32%);
}
.enroll-cta::after {
    content: "";
    position: absolute;
    left: 0;
    top: -1px;
    width: 100%;
    height: 14px;
    background: linear-gradient(135deg, transparent 8px, #fff 0) 0 0/18px 14px repeat-x;
}
.enroll-cta .container { position: relative; z-index: 2; }
.enroll-cta h2 {
    font-size: clamp(2.3rem, 4vw, 4.3rem);
    font-weight: 950;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.enroll-cta p { font-size: 1.25rem; font-weight: 700; letter-spacing:.04em; }
.enroll-cta .btn { min-width: 300px; border-radius: 2px; }

/* Links e informações */
.link-card,
.more-card,
.contact-card,
.category-card,
.info-card {
    border: 1px solid var(--cfc-border);
    background: #fff;
    box-shadow: 0 14px 38px rgba(15,23,42,.08);
}
.link-card { border-radius: 3px; padding: 30px; text-align:center; height:100%; }
.link-card h3 { font-weight: 900; }
.more-card { border-radius: 18px; padding: 24px; height:100%; }
.more-card h3 { color: var(--cfc-green); font-weight:900; }
.more-card ul { margin-bottom:0; padding-left: 1.1rem; color:#4b5563; }
.category-card { border-radius: 18px; padding: 26px; height:100%; text-align:center; }
.category-badge {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: inline-flex;
    align-items:center;
    justify-content:center;
    background:#111;
    color: var(--cfc-yellow);
    font-weight: 950;
    font-size: 1.5rem;
    border: 4px solid var(--cfc-yellow);
}
.contact-card { border-radius: 22px; }
.feature-icon {
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items:center;
    justify-content:center;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffe86b, var(--cfc-yellow));
    color:#111;
    font-weight:900;
    box-shadow:0 12px 25px rgba(242,196,0,.22);
}
.text-muted, .service-card p, .category-card p, .info-card p { color: var(--cfc-muted)!important; }

/* Calendario e area do aluno */
.calendar-day { min-height: 150px; background: #fff; border: 1px solid #f0ebd7; border-radius: 18px; padding: 12px; }
.calendar-day.today { border-color: var(--cfc-yellow); box-shadow: 0 10px 24px rgba(242,196,0,.14); }
.slot-pill { display:block; width:100%; border:0; border-radius:12px; padding:8px 10px; font-size:.86rem; text-align:left; margin-bottom:8px; }
.slot-free { background:#e8f7ee; color:#116034; }
.slot-busy { background:#eef2f7; color:#64748b; }
.slot-mine { background:#fff2a3; color:#6b5200; }

/* Admin */
.admin-sidebar { background: linear-gradient(180deg, #111111 0%, #202020 100%); min-height: calc(100vh - 104px); border:1px solid rgba(242,196,0,.18); }
.admin-sidebar a { color: rgba(255,255,255,.84); text-decoration:none; display:block; padding:12px 14px; border-radius:12px; margin-bottom:6px; }
.admin-sidebar a:hover, .admin-sidebar a.active { background:rgba(242,196,0,.14); color:#ffe76b; }
.install-bg { min-height:100vh; background: radial-gradient(circle at top, #fff0a5, #fffaf0 48%, #fff); }
.table-responsive { border-radius:18px; }
.form-control, .form-select { border-radius:14px; border-color:#e8dec2; }
.form-control:focus, .form-select:focus { border-color: rgba(242,196,0,.75); box-shadow: 0 0 0 .25rem rgba(242,196,0,.18); }

.floating-whatsapp {
    position:fixed;
    right:18px;
    bottom:18px;
    z-index:1080;
    display:inline-flex;
    align-items:center;
    gap:10px;
    text-decoration:none;
    color:#fff;
    background:linear-gradient(135deg,#25D366,#18a84c);
    border-radius:999px;
    padding:12px 18px 12px 14px;
    box-shadow:0 16px 40px rgba(37,211,102,.35);
    transition:transform .2s ease, box-shadow .2s ease;
}
.floating-whatsapp:hover { color:#fff; transform:translateY(-2px); box-shadow:0 20px 44px rgba(37,211,102,.45); }
.floating-whatsapp i { font-size:1.45rem; line-height:1; }
.floating-whatsapp-label { font-weight:800; font-size:.95rem; }
.floating-whatsapp::before { content:""; position:absolute; inset:-6px; border-radius:inherit; border:1px solid rgba(37,211,102,.20); animation:pulseWhats 2.2s infinite; }
@keyframes pulseWhats { 0%{transform:scale(.96);opacity:.85} 70%{transform:scale(1.08);opacity:0} 100%{transform:scale(1.08);opacity:0} }

@media (min-width: 992px) {
    .main-navbar .navbar-brand {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        margin: 0 !important;
    }
    .main-navbar .navbar-collapse { width: 100%; }
}
@media (max-width: 1199px) {
    .hero-vehicle { left: -120px; width: 680px; }
}
@media (max-width: 991px) {
    .top-contact-bar .address-item { display:none!important; }
    .main-navbar { min-height: 70px; }
    .navbar-brand img { max-height:54px; }
    .institutional-hero { min-height: auto; }
    .hero-vehicle-col { min-height: 260px; order: 2; }
    .hero-text-col { min-height: auto; order: 1; padding: 45px 22px 16px; }
    .hero-vehicle { position:relative; left:auto; bottom:auto; width: 100%; max-height: 310px; margin: 0 auto 42px; display:block; }
    .hero-action { min-width: auto; width: 100%; }
    .admin-sidebar { min-height:auto; }
}
@media (max-width: 767px) {
    .top-contact-bar { font-size:.82rem; min-height: auto; }
    .top-contact-bar .phone-item { display:none!important; }
    .hero-title { letter-spacing:.04em; font-size: 2.65rem; }
    .section-title { letter-spacing:.04em; }
    .calendar-day { min-height:auto; }
    .service-card { min-height: auto; }
    .floating-whatsapp { right:14px; bottom:14px; padding:13px; }
    .floating-whatsapp-label { display:none!important; }
}

.rating-stars {
    color: #f1c40f;
    font-size: 1.05rem;
    letter-spacing: .06em;
    text-shadow: 0 1px 0 rgba(0,0,0,.10);
}
.rating-form textarea,
.rating-form select {
    min-width: 220px;
}
.admin-sidebar .bi-star-fill { color: #f1c40f; }

.pwa-install-button {
    position: fixed;
    left: 18px;
    bottom: 18px;
    z-index: 1080;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 0;
    border-radius: 999px;
    padding: 12px 18px;
    background: linear-gradient(135deg, #111111, #2a2a2a);
    color: #fff;
    font-weight: 900;
    box-shadow: 0 16px 40px rgba(0,0,0,.28);
}
.pwa-install-button i { color: var(--cfc-yellow); font-size: 1.25rem; }
.pwa-install-button:hover { transform: translateY(-2px); }

@media (max-width: 767px) {
    .pwa-install-button {
        left: 14px;
        bottom: 14px;
        padding: 13px;
    }
    .pwa-install-button span { display: none; }
}
