/* ============================================================
   QuickBooking Template — Style
   Design: ROVA branded, wine palette, mobile-first
   ============================================================ */

/* ---- Variables ---- */
:root {
    --qb-primary: #921D4C;
    --qb-primary-dark: #4B0F27;
    --qb-primary-light: #F4EDF0;
    --qb-text: #4B0F27;
    --qb-text-muted: #57636C;
    --qb-bg: #FAFAFA;
    --qb-surface: #FFFFFF;
    --qb-border: #E0E3E7;
    --qb-radius: 12px;
    --qb-radius-sm: 8px;
    --qb-shadow: 0 4px 24px rgba(146, 29, 76, 0.08);
    --qb-shadow-md: 0 8px 32px rgba(146, 29, 76, 0.14);
    --qb-font-body: 'Inter', 'Poppins', sans-serif;
    --qb-font-display: 'Poppins', 'Inter', sans-serif;
    --qb-transition: 0.2s ease;
}

/* ---- Header — ascunde nav-ul central (Acasă / Despre / Prețuri / FAQ / Contact) în contextul QuickBooking ---- */
.qb-body .hidden.md\:flex {
    display: none !important;
}

/* ---- Reset / Base — scoped pe elementele QuickBooking, nu global (evită conflicte cu Tailwind header/footer) ---- */
.qb-hero, .qb-hero *,
.qb-description, .qb-description *,
.qb-info, .qb-info *,
.qb-map, .qb-map *,
.qb-services, .qb-services *,
.qb-events, .qb-events *,
.qb-team, .qb-team *,
.qb-cta-bottom, .qb-cta-bottom *,
.qb-back-top {
    box-sizing: border-box;
}

.qb-body {
    font-family: var(--qb-font-body);
    background: var(--qb-bg);
    color: var(--qb-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ---- Layout helpers ---- */
.qb-container {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 20px;
}

.qb-section-title {
    font-family: var(--qb-font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--qb-primary-dark);
    margin-bottom: 1.5rem;
    text-align: center;
}

/* ---- Buttons ---- */
.qb-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 999px;
    font-family: var(--qb-font-body);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: none;
    border: none;
    transition: transform var(--qb-transition), box-shadow var(--qb-transition), background var(--qb-transition);
}

.qb-btn--primary {
    background: var(--qb-primary);
    color: #fff;
    box-shadow: 0 4px 16px rgba(146, 29, 76, 0.25);
}

.qb-btn--primary:hover {
    background: var(--qb-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(146, 29, 76, 0.35);
    color: #fff;
    text-decoration: none;
}

.qb-btn--hero {
    background: var(--qb-primary);
    color: #fff;
    font-size: 0.95rem;
    padding: 12px 28px;
    box-shadow: 0 4px 16px rgba(146, 29, 76, 0.25);
}

.qb-btn--hero:hover {
    background: var(--qb-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(146, 29, 76, 0.35);
    color: #fff;
    text-decoration: none;
}

/* ---- Hero ---- */
@keyframes qb-float-1 {
    0%, 100% { transform: translateY(0) translateX(0); }
    33%       { transform: translateY(-18px) translateX(8px); }
    66%       { transform: translateY(-8px) translateX(-12px); }
}
@keyframes qb-float-2 {
    0%, 100% { transform: translateY(0) translateX(0); }
    40%       { transform: translateY(14px) translateX(-10px); }
    70%       { transform: translateY(-12px) translateX(6px); }
}
@keyframes qb-float-3 {
    0%, 100% { transform: translateY(0) translateX(0); }
    50%       { transform: translateY(-20px) translateX(14px); }
}

.qb-hero {
    background: var(--qb-primary-light);
    padding: 64px 20px 56px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Cercuri floating decorative */
.qb-hero::before,
.qb-hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: var(--qb-primary);
    opacity: 0.06;
    pointer-events: none;
}
.qb-hero::before {
    width: 180px;
    height: 180px;
    top: -40px;
    left: -50px;
    animation: qb-float-1 7s ease-in-out infinite;
}
.qb-hero::after {
    width: 120px;
    height: 120px;
    bottom: -30px;
    right: -30px;
    animation: qb-float-2 9s ease-in-out infinite;
}

/* Cercuri suplimentare via spans injectate din JS sau clase utilitare */
.qb-hero__bubble {
    position: absolute;
    border-radius: 50%;
    background: var(--qb-primary);
    pointer-events: none;
}
.qb-hero__bubble--1 {
    width: 60px;
    height: 60px;
    top: 20%;
    right: 8%;
    opacity: 0.05;
    animation: qb-float-3 6s ease-in-out infinite;
}
.qb-hero__bubble--2 {
    width: 36px;
    height: 36px;
    bottom: 15%;
    left: 10%;
    opacity: 0.07;
    animation: qb-float-1 8s ease-in-out infinite reverse;
}
.qb-hero__bubble--3 {
    width: 20px;
    height: 20px;
    top: 35%;
    left: 5%;
    opacity: 0.06;
    animation: qb-float-2 5s ease-in-out infinite;
}

.qb-hero__inner {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    position: relative;
    z-index: 1;
}

.qb-hero__inner .qb-hero__rating {
    margin-top: -10px;
}

/* Poza rotundă business */
.qb-hero__photo-wrap {
    margin-bottom: 0;
}

.qb-hero__photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--qb-primary-light);
    box-shadow: 0 4px 20px rgba(146, 29, 76, 0.12);
}

.qb-hero__photo-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--qb-primary-light);
    color: var(--qb-primary);
    font-family: var(--qb-font-display);
    font-size: 2.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--qb-primary-light);
    box-shadow: 0 4px 20px rgba(146, 29, 76, 0.10);
}

.qb-hero__name {
    font-family: var(--qb-font-display);
    font-size: clamp(1.6rem, 5vw, 2.4rem);
    font-weight: 700;
    color: var(--qb-primary);
    line-height: 1.2;
}

.qb-hero__location {
    font-size: 0.95rem;
    color: var(--qb-text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.qb-hero__location i {
    color: var(--qb-primary);
}

/* Rating row */
.qb-hero__rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-family: var(--qb-font-body);
}

.qb-hero__rating-star {
    color: #F59E0B;
    font-size: 1rem;
}

.qb-hero__rating-score {
    font-weight: 500;
    font-size: 1rem;
    color: var(--qb-text);
}

.qb-hero__rating-count {
    font-size: 0.9rem;
    color: var(--qb-text-muted);
}

/* ---- Descriere ---- */
@keyframes qb-fade-in-up {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.qb-description {
    padding: 56px 0;
    background: linear-gradient(180deg, var(--qb-primary-light) 0%, var(--qb-surface) 100%);
    position: relative;
    overflow: hidden;
}

.qb-description__inner {
    max-width: 640px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    animation: qb-fade-in-up 0.7s ease both;
}

.qb-description__quote-icon {
    color: var(--qb-primary);
    opacity: 0.3;
    font-size: 2.2rem;
    line-height: 1;
    margin-bottom: -4px;
}

.qb-description__text {
    font-size: 1.05rem;
    color: var(--qb-primary-dark);
    line-height: 1.8;
    font-weight: 500;
    padding-left: 20px;
    border-left: 3px solid var(--qb-primary);
    margin: 0;
}

/* ---- Info / Contact ---- */
.qb-info {
    padding: 56px 0;
    background: var(--qb-bg);
}

.qb-info__grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.qb-info__item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 20px;
    background: var(--qb-surface);
    border-radius: var(--qb-radius);
    border: 1px solid var(--qb-border);
}

.qb-info__icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--qb-primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--qb-primary);
    font-size: 1rem;
    flex-shrink: 0;
}

.qb-info__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.qb-info__label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--qb-text-muted);
}

.qb-info__value {
    font-size: 0.95rem;
    color: var(--qb-text);
    font-weight: 500;
}

.qb-info__value--link {
    color: var(--qb-primary);
    text-decoration: none;
}

.qb-info__value--link:hover {
    text-decoration: underline;
}

/* ---- Map ---- */
.qb-map {
    padding: 56px 0;
    background: var(--qb-surface);
}

.qb-map__embed {
    border-radius: var(--qb-radius);
    overflow: hidden;
    border: 1px solid var(--qb-border);
    box-shadow: var(--qb-shadow);
}

.qb-map__embed iframe {
    display: block;
}

/* ---- Services ---- */
.qb-services {
    padding: 56px 0;
    background: var(--qb-bg);
}

.qb-service-card {
    transition: box-shadow var(--qb-transition), border-color var(--qb-transition);
}

.qb-services__group {
    margin-bottom: 36px;
}

.qb-services__group-title {
    font-family: var(--qb-font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--qb-primary);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--qb-primary-light);
}

.qb-services__list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.qb-service-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px 16px;
    background: var(--qb-surface);
    border: 1px solid var(--qb-border);
    border-radius: var(--qb-radius-sm);
    transition: box-shadow var(--qb-transition), border-color var(--qb-transition);
}

.qb-service-card:hover {
    box-shadow: var(--qb-shadow);
    border-color: var(--qb-primary-light);
}

/* Rândul de sus: icon+nume la stânga, avatare la dreapta */
.qb-service-card__top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

/* Rândul cu icon + nume */
.qb-service-card__title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

/* Iconița serviciului — flex-shrink 0 deja pe title-row */
.qb-service-card__icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--qb-primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--qb-primary);
    font-size: 0.75rem;
    flex-shrink: 0;
}

.qb-service-card__info {
    display: contents;
}

.qb-service-card__name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--qb-text);
}

.qb-service-card__desc {
    font-size: 0.82rem;
    color: var(--qb-text-muted);
    line-height: 1.5;
}

/* Descriere trunchiată la 2 rânduri */
.qb-service-card__desc--truncated {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Link toggle "vezi mai mult" */
.qb-service-desc-toggle {
    font-size: 0.78rem;
    color: var(--qb-primary);
    cursor: pointer;
    font-weight: 600;
    margin-top: 2px;
    display: inline-block;
    transition: color var(--qb-transition);
}

.qb-service-desc-toggle:hover {
    color: var(--qb-primary-dark);
    text-decoration: underline;
}

.qb-service-card__price {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--qb-primary);
    white-space: nowrap;
    align-self: flex-end;
}

/* Specialiști per serviciu — în top-row, la dreapta */
.qb-service-card__providers {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.qb-provider-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid var(--qb-surface);
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}

.qb-provider-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.qb-provider-avatar--initials {
    background: var(--qb-primary-light);
    color: var(--qb-primary);
    font-size: 0.6rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--qb-font-display);
}

.qb-provider-avatar--more {
    background: var(--qb-border);
    color: var(--qb-text-muted);
    font-size: 0.6rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qb-service-card__providers-label {
    font-size: 0.75rem;
    color: var(--qb-text-muted);
    margin-left: 2px;
}

.qb-services__cta {
    text-align: center;
    margin-top: 36px;
}

/* ---- Events ---- */
.qb-events {
    padding: 56px 0;
    background: var(--qb-surface);
    color: var(--qb-text);
}

.qb-events__group {
    margin-bottom: 36px;
}

/* Forțează vizibilitate pe event cards (override animații .qb-service-card) */
.qb-events .qb-services__list {
    opacity: 1 !important;
    transform: none !important;
}

.qb-events .qb-service-card {
    opacity: 1 !important;
    transform: none !important;
}

/* Event card — override Tailwind anchor reset */
a.qb-event-card,
a.qb-event-card:visited,
a.qb-event-card:hover,
a.qb-event-card:active {
    text-decoration: none !important;
    color: var(--qb-text) !important;
    cursor: pointer;
    border-left: 3px solid var(--qb-primary);
    background-color: var(--qb-surface) !important;
}

a.qb-event-card:hover {
    box-shadow: var(--qb-shadow-md);
    border-color: var(--qb-primary);
}

/* Forțează culori pe TOATE elementele copil (override Tailwind inherit) */
a.qb-event-card * {
    color: inherit !important;
}

/* Excepții — elemente cu culori proprii */
a.qb-event-card .qb-service-card__icon {
    color: var(--qb-primary) !important;
    background: var(--qb-primary-light) !important;
}

a.qb-event-card .qb-service-card__price {
    color: var(--qb-primary) !important;
}

a.qb-event-card .qb-event-card__desc {
    font-size: 0.82rem;
    color: var(--qb-text-muted) !important;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

a.qb-event-card .qb-event-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

a.qb-event-card .qb-event-card__dates {
    font-size: 0.8rem;
    color: var(--qb-text-muted) !important;
    display: flex;
    align-items: center;
    gap: 5px;
}

a.qb-event-card .qb-event-card__dates i {
    color: var(--qb-primary) !important;
    font-size: 0.75rem;
}

a.qb-event-card .qb-event-card__dates--sold-out,
a.qb-event-card .qb-event-card__dates--sold-out i {
    color: #DC2626 !important;
}

/* ---- Team ---- */
.qb-team {
    padding: 56px 0;
    background: var(--qb-surface);
}

.qb-team__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    justify-content: center;
}

/* Un singur specialist — card centrat */
.qb-team__grid--single {
    display: flex;
    justify-content: center;
}

.qb-team__grid--single .qb-team-card {
    max-width: 240px;
    width: 100%;
}

.qb-team-card {
    text-align: center;
    padding: 24px 16px;
    background: var(--qb-bg);
    border-radius: var(--qb-radius);
    border: 1px solid var(--qb-border);
    transition: opacity 0.4s ease, transform 0.4s ease, box-shadow var(--qb-transition);
}

.qb-team-card:hover {
    box-shadow: var(--qb-shadow-md);
    transform: translateY(-4px);
}

.qb-team-card__photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 14px;
    border: 3px solid var(--qb-primary-light);
}

.qb-team-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.qb-team-card__photo-placeholder {
    width: 100%;
    height: 100%;
    background: var(--qb-primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--qb-primary);
    font-size: 1.8rem;
}

.qb-team-card__name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--qb-text);
    margin-bottom: 4px;
}

.qb-team-card__title {
    font-size: 0.8rem;
    color: var(--qb-text-muted);
}

/* ---- CTA Bottom ---- */
.qb-cta-bottom {
    padding: 64px 20px;
    background: var(--qb-primary-light);
    text-align: center;
    border-top: 1px solid rgba(146, 29, 76, 0.10);
}

.qb-cta-bottom__title {
    font-family: var(--qb-font-display);
    font-size: clamp(1.3rem, 4vw, 1.9rem);
    font-weight: 700;
    color: var(--qb-primary);
    margin-bottom: 10px;
}

.qb-cta-bottom__subtitle {
    font-size: 1rem;
    color: var(--qb-text-muted);
    margin-bottom: 28px;
}

.qb-cta-bottom .qb-btn--hero {
    background: var(--qb-primary);
    color: #fff;
    box-shadow: 0 8px 32px rgba(146, 29, 76, 0.25);
}

.qb-cta-bottom .qb-btn--hero:hover {
    background: var(--qb-primary-dark);
    color: #fff;
    transform: translateY(-3px);
}

.qb-info__item {
    transition: box-shadow var(--qb-transition);
}

.qb-map__embed {
    transition: border-color var(--qb-transition);
}

/* ---- Back to Top ---- */
.qb-back-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--qb-primary);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--qb-shadow-md);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s;
    z-index: 50;
}

.qb-back-top.visible {
    opacity: 1;
    pointer-events: auto;
}

.qb-back-top:hover {
    background: var(--qb-primary-dark);
    transform: translateY(-2px);
}

/* ---- Responsive ---- */
@media (min-width: 600px) {
    .qb-info__grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .qb-hero {
        padding: 48px 16px 40px;
    }

    .qb-hero__photo,
    .qb-hero__photo-placeholder {
        width: 96px;
        height: 96px;
    }

    .qb-service-card__top-row {
        flex-wrap: nowrap;
    }

    .qb-team__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .qb-team__grid--single {
        display: flex;
    }
}

/* ============================================================
   Mobile App Banner — descarcă / deschide aplicația ROVA
   ============================================================ */
.qb-app-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: var(--qb-primary);
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px 10px 8px;
    font-family: var(--qb-font-body);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
    animation: qb-banner-slide-down 0.3s ease;
}

@keyframes qb-banner-slide-down {
    from { transform: translateY(-100%); }
    to   { transform: translateY(0); }
}

.qb-app-banner__text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.qb-app-banner__title {
    font-weight: 600;
    font-size: 0.85rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.qb-app-banner__subtitle {
    font-size: 0.72rem;
    opacity: 0.85;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.qb-app-banner__btn {
    flex-shrink: 0;
    background: #fff;
    color: var(--qb-primary);
    font-weight: 700;
    font-size: 0.8rem;
    padding: 6px 14px;
    border-radius: 999px;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity 0.2s;
}
.qb-app-banner__btn:hover {
    opacity: 0.9;
    text-decoration: none;
    color: var(--qb-primary);
}

/* Împinge conținutul în jos când banner-ul e vizibil */
body.qb-has-app-banner {
    padding-top: 62px;
}

/* ===== ENTRANCE ANIMATIONS ===== */
.qb-anim-fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 500ms cubic-bezier(0.16, 1, 0.3, 1),
                transform 500ms cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: calc(var(--stagger, 0) * 120ms);
}

.qb-anim-fade-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== PREFERS REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    .qb-anim-fade-up {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .qb-back-top,
    .qb-header,
    .qb-btn,
    .qb-hero__bubble,
    .qb-service-card,
    .qb-team-card,
    .qb-service-card__desc {
        transition: none;
        animation: none;
    }
}
