/* Base styles extracted from templates/base.html.twig */

/* Layout helpers */
html, body { height: 100%; }
body { display: flex; flex-direction: column; min-height: 100vh; }
main.site-content { flex: 1 0 auto; }
.bookit-footer { flex-shrink: 0; }

/* Header / nav */
#mainNav {
    font-family: 'Inter', sans-serif;
}
.bookit-brand {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #111827 !important;
    transition: opacity 0.15s;
}
.bookit-brand:hover { opacity: 0.8; }
.bookit-brand .brand-icon { color: #7c3aed; }

.bookit-nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: #374151 !important;
    padding: 0.25rem 0 !important;
    margin: 0 0.1rem;
    position: relative;
    text-decoration: none !important;
    transition: color 0.2s;
}
.bookit-nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #7c3aed;
    border-radius: 2px;
    transition: width 0.2s ease;
}
.bookit-nav-link:hover { color: #111827 !important; }
.bookit-nav-link:hover::after { width: 100%; }

.bookit-login {
    font-size: 0.9rem;
    font-weight: 500;
    color: #374151 !important;
    text-decoration: none !important;
    padding: 0.45rem 0.85rem;
    border-radius: 6px;
    transition: background 0.15s, color 0.15s;
}
.bookit-login:hover {
    background: #f3f4f6;
    color: #111827 !important;
}

.bookit-cta {
    font-size: 0.875rem;
    font-weight: 600;
    background: #7c3aed;
    color: #fff !important;
    border: none;
    border-radius: 8px;
    padding: 0.5rem 1.1rem;
    text-decoration: none !important;
    transition: background 0.2s, transform 0.15s;
    display: inline-flex;
    align-items: center;
}
.bookit-cta:hover {
    background: #6d28d9;
    transform: translateY(-1px);
    color: #fff !important;
}

.bookit-avatar {
    width: 36px;
    height: 36px;
    background: #7c3aed;
    border-radius: 50%;
    color: #fff;
    font-weight: 600;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: box-shadow 0.2s;
}
.bookit-avatar:hover {
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2);
}

.bookit-header {
    border-bottom: 1px solid #e5e7eb !important;
    box-shadow: none !important;
}

/* Remove default Bootstrap nav-link padding for our custom links */
#mainNav .navbar-nav .nav-link {
    padding-left: 0;
    padding-right: 0;
}

/* Footer */
.bookit-footer {
    font-family: 'Inter', sans-serif;
    color: #374151;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 48px 0;
}
.bookit-footer a { color: #374151; text-decoration: none; }
.bookit-footer a:hover { color: #111827; text-decoration: none; }
.bookit-footer .brand-icon { color: #7c3aed; font-size: 1.15rem; }
.bookit-footer .footer-cta {
    background: #7c3aed; color: #fff; border-radius: 8px; padding: 0.5rem 0.9rem; font-weight:600;
}
.bookit-footer .muted { color: #6b7280; font-size: 0.9rem; }
@media (max-width: 767px) {
    .bookit-footer { padding: 32px 0; }
}

/* Keep the subscribe button on one line and allow input to shrink */
.bookit-footer form.d-flex { flex-wrap: nowrap; }
.bookit-footer .footer-cta { white-space: nowrap; }

/* ─── SERVICES SECTION ─── */
.services-section {
    background: #ffffff;
    padding: 96px 0 80px;
}

.services-shell {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.services-header {
    text-align: center;
    max-width: 560px;
    margin: 0 auto 56px;
}

.services-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(124, 58, 237, 0.08);
    border: 1px solid rgba(124, 58, 237, 0.18);
    border-radius: 999px;
    color: #7c3aed;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.services-title {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #111827;
    margin: 0 0 14px;
    line-height: 1.1;
}

.services-subtitle {
    color: #6b7280;
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
}

.services-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.carousel-arrow {
    position: absolute;
    z-index: 10;
    width: 44px;
    height: 44px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #374151;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: all 0.2s;
}

.carousel-arrow:hover {
    background: #f9fafb;
    color: #7c3aed;
    border-color: #d1d5db;
    transform: scale(1.05);
}

.carousel-arrow.prev { left: -22px; }
.carousel-arrow.next { right: -22px; }

.services-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 24px; /* Space for scrollbar or shadow */
    -ms-overflow-style: none; /* IE/Edge */
    scrollbar-width: none; /* Firefox */
    width: 100%;
    user-select: none;
    -webkit-user-select: none;
}

.services-grid::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.services-grid.dragging {
    scroll-snap-type: none;
    cursor: grab;
}

.services-grid.dragging .service-card {
    pointer-events: none;
}

.service-card {
    flex: 0 0 300px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: #faf9f7;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 24px;
    transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.service-card:hover {
    box-shadow: 0 12px 36px rgba(124, 58, 237, 0.10);
    transform: translateY(-3px);
    border-color: rgba(124, 58, 237, 0.25);
}

.service-card-icon {
    width: 44px;
    height: 44px;
    background: rgba(124, 58, 237, 0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7c3aed;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.service-card-body {
    flex: 1;
}

.service-card-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 6px;
}

.service-card-desc {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.55;
    margin: 0;
}

.service-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid #e5e7eb;
    gap: 8px;
}

.service-card-duration {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.82rem;
    color: #6b7280;
    font-weight: 500;
}

.service-card-duration i {
    color: #7c3aed;
    font-size: 0.85rem;
}

.service-card-price {
    font-size: 1.05rem;
    font-weight: 800;
    color: #7c3aed;
    letter-spacing: -0.02em;
}

.services-empty {
    text-align: center;
    color: #9ca3af;
    font-size: 0.95rem;
    padding: 40px 0;
}

.services-cta {
    display: flex;
    justify-content: center;
    margin-top: 48px;
}

@media (max-width: 767px) {
    .services-section { padding: 64px 0 56px; }
    .services-grid { grid-template-columns: 1fr; }
}
