:root {
    --bg: #0f172a;
    --card-bg: rgba(30, 41, 59, 0.7);
    --mango: #f6b84b;
    --mango-glow: rgba(246, 184, 75, 0.3);
    --ink: #f8fafc;
    --ink-light: #94a3b8;
    --border: rgba(255, 255, 255, 0.1);
    --blue-clinic: #60a5fa;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
/* body bg vem de /main-styles.css — mantido aqui só pra compat */

h1, h3, .brand { font-family: 'Georgia', serif; }

.hub-wrapper { max-width: 1200px; margin: 0 auto; padding: 4rem 2rem; }

/* HEADER & LOGO */
.hub-header { text-align: center; margin-bottom: 4rem; }
.brand { margin-bottom: 2rem; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.logo-text { font-family: 'Georgia', serif; font-size: 2.2rem; font-weight: 800; letter-spacing: -1.5px; color: #fff; display: flex; align-items: baseline; position: relative; }
.logo-text .name-extra { max-width: 0; opacity: 0; overflow: hidden; transition: 1.2s cubic-bezier(0.23, 1, 0.32, 1); display: inline-block; white-space: nowrap; color: var(--blue-clinic); letter-spacing: 2px; }
.brand:hover .name-extra { max-width: 150px; opacity: 1; margin-right: 0.3rem; }
.logo-text span.gold { background: linear-gradient(135deg, #f6b84b, #d97706); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-left: 0.1rem; }

.suite-title {
    font-size: 3.5rem; color: #fff; letter-spacing: -1.5px;
    margin-bottom: 0.5rem;
    font-family: 'Georgia', serif; font-weight: 700;
    cursor: default;
}
.suite-accent {
    font-family: 'Georgia', serif;
    font-weight: 800;
    letter-spacing: -2px;
    background: linear-gradient(135deg, #f6b84b, #d97706);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
.ortolan-wrap {
    position: relative;
    display: inline-block;
}
.dr-prefix {
    position: absolute;
    right: 100%; top: 0;
    color: #fff;
    font-family: 'Georgia', serif;
    font-weight: 700;
    letter-spacing: -1.5px;
    line-height: inherit;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.6s ease, transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    pointer-events: none;
}
.suite-title:hover .dr-prefix,
.suite-title:focus-within .dr-prefix {
    opacity: 1;
    transform: translateX(0);
}
@media (prefers-reduced-motion: reduce) {
    .dr-prefix { transition: none; }
    .suite-title:hover .dr-prefix { max-width: 200px; opacity: 1; }
}
.suite-intro { color: var(--ink-light); font-size: 1.1rem; opacity: 0.8; }

/* FILTERS (RESTORED) */
.hub-nav { display: flex; justify-content: center; gap: 1rem; margin: 3rem 0 4rem 0; flex-wrap: wrap; }
.nav-btn { 
    background: var(--card-bg); border: 1px solid var(--border); color: var(--ink-light); padding: 0.8rem 1.8rem; border-radius: 50px; 
    cursor: pointer; font-weight: 600; font-size: 0.9rem; transition: 0.3s;
}
.nav-btn:hover {
    color: #fff; border-color: var(--mango);
    box-shadow: 0 0 16px 2px rgba(255, 255, 255, 0.22), 0 0 6px rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
}
.nav-btn.active { background: var(--mango); color: #fff; border-color: var(--mango); box-shadow: 0 5px 15px var(--mango-glow); }

/* HUB GRID */
.hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 1.5rem; }

.hub-card { 
    background: var(--card-bg); border: 1px solid var(--border); padding: 2.5rem 2rem; border-radius: 30px; 
    text-decoration: none; color: inherit; display: flex; align-items: center; gap: 1.5rem;
    backdrop-filter: blur(10px); transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative; overflow: hidden;
}
.hub-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255,255,255,0.35);
    box-shadow: 0 0 18px 3px rgba(255, 255, 255, 0.16), 0 0 8px 1px rgba(255, 255, 255, 0.08), 0 20px 40px rgba(0,0,0,0.4);
}

/* FLOATING BRAND LOGO */
.card-brand {
    position: absolute; top: 1.5rem; right: 1.5rem;
    font-family: 'Georgia', serif; font-weight: 800; font-size: 0.95rem;
    letter-spacing: -0.5px;
    opacity: 0.7; transition: opacity 0.3s, transform 0.3s;
}
.hub-card:hover .card-brand { opacity: 1; }

.brand-dr { color: #fff; }
.brand-dr .gold {
    background: linear-gradient(135deg, #f6b84b, #d97706);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
    margin-left: 1px;
}

/* Image-based brand logos (Ortolan + Sossego) */
.card-brand-logo {
    position: absolute; top: 1.2rem; right: 1.5rem;
    height: 40px; width: auto; opacity: 0.95;
    transition: opacity 0.3s, transform 0.3s;
    filter:
        drop-shadow( 1px  0 0 #fff)
        drop-shadow(-1px  0 0 #fff)
        drop-shadow( 0  1px 0 #fff)
        drop-shadow( 0 -1px 0 #fff);
}
.hub-card:hover .card-brand-logo { opacity: 1; }

.card-brand-logo-sossego {
    height: 30px;
    filter: none;
}

/* Ortolan logo pill — white box with official PNG, replaces blurry CSS wordmark */
.card-brand-pill {
    position: absolute; top: 1rem; right: 1rem;
    display: inline-flex; align-items: center; justify-content: center;
    background: #fff;
    padding: 0.2rem 0.5rem;
    border-radius: 8px;
    line-height: 0;
    opacity: 0.95;
    transition: opacity 0.3s, transform 0.3s;
}
.card-brand-pill img { display: block; height: 24px; width: auto; }
.hub-card:hover .card-brand-pill { opacity: 1; transform: translateY(-1px); }

/* CARD CONTENT */
.card-icon { font-size: 2.5rem; min-width: 60px; height: 60px; background: rgba(255,255,255,0.03); border-radius: 18px; display: flex; align-items: center; justify-content: center; }
.card-info { padding-right: 90px; min-width: 0; }
.card-info h3 { font-size: 1.3rem; color: #fff; margin-bottom: 0.3rem; }
.card-info p { color: var(--ink-light); font-size: 0.9rem; line-height: 1.5; }
@media (max-width: 640px) {
    .card-brand-pill { top: 0.7rem; right: 0.7rem; padding: 0.15rem 0.4rem; }
    .card-brand-pill img { height: 18px; }
    .card-brand, .card-brand-logo { font-size: 0.8rem !important; top: 0.9rem !important; right: 0.9rem !important; }
    .card-brand-logo { height: 24px !important; }
    .card-info { padding-right: 70px; }
    .card-info h3 { font-size: 1.1rem; }
    .hub-card { padding: 1.5rem 1.2rem; gap: 1rem; }
}

/* FOOTER */
.hub-footer { margin-top: 8rem; text-align: center; border-top: 1px solid var(--border); padding: 4rem 0; }
.hub-footer p { font-size: 0.85rem; color: var(--ink-light); margin-bottom: 1rem; }
.disclaimer { font-size: 0.75rem; color: #64748b; font-style: italic; margin-bottom: 1rem; }
.sossego-inline { font-weight: 800; }
.sossego-inline .dot { color: var(--mango); }

.error-alert { opacity: 0.6; font-size: 0.8rem; }
.error-alert a { color: #fff; text-decoration: underline; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .hub-grid { grid-template-columns: 1fr; }
    .suite-title { font-size: 2.5rem; }
}
