/* ==========================================================================
   services.css — Astrology / Numerology / Vastu / Reports pages
   (was duplicated inline in all four templates)
   ========================================================================== */

.services-hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.services-hero-title {
    margin-bottom: 14px;
}

.services-hero-subtitle {
    max-width: 680px;
    margin: 0 auto;
    color: rgba(255, 244, 230, .9);
    font-family: var(--font-display);
    font-size: clamp(18px, 2.4vw, 23px);
    font-style: italic;
    line-height: 1.45;
}

/* ---------- Intro + grid ---------- */
.services-section {
    padding: var(--section-y) var(--gutter);
    background: var(--bg);
}

.services-intro {
    max-width: 780px;
    margin: 0 auto clamp(40px, 6vw, 64px);
    text-align: center;
}

.services-intro::before {
    content: 'What we offer';
    display: block;
    margin-bottom: 12px;
    color: var(--gold-600);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .24em;
    text-transform: uppercase;
}

.services-intro-title {
    margin-bottom: 16px;
    color: var(--ink);
    font-size: clamp(32px, 4.4vw, 50px);
    font-weight: 500;
}

.services-intro-text {
    color: var(--muted);
    font-size: clamp(15px, 1.6vw, 17px);
    line-height: 1.8;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
    gap: clamp(20px, 2.6vw, 32px);
    max-width: var(--container);
    margin: 0 auto;
}

.services-grid > p {
    grid-column: 1 / -1;
    padding: 48px 20px;
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius-lg);
    background: #fff;
    text-align: center;
    color: var(--muted) !important;
}

.service-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: #fff;
    color: inherit;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t) ease;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2;
    height: 3px;
    background: var(--grad-brand);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .45s var(--ease);
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: var(--gold-soft);
    box-shadow: var(--shadow);
    color: inherit;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--bg-alt);
}

.service-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .7s var(--ease);
}

.service-card:hover .service-image {
    transform: scale(1.05);
}

.service-image-placeholder {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: var(--grad-hero);
}

.service-image-placeholder::before {
    content: '';
    position: absolute;
    inset: -64px;
    background-image: var(--star-pattern);
    animation: drift 40s linear infinite;
}

@keyframes drift {
    from { transform: translate(0, 0); }
    to { transform: translate(64px, 64px); }
}

.service-placeholder-icon {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 88px;
    height: 88px;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    font-size: 40px;
    line-height: 1;
}

.service-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: clamp(22px, 2.6vw, 30px);
}

.service-title {
    margin-bottom: 10px;
    color: var(--ink);
    font-size: clamp(22px, 2.2vw, 26px);
    font-weight: 600;
}

.service-description {
    flex: 1;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.75;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---------- Image slider ---------- */
.image-slider-section {
    position: relative;
    overflow: hidden;
    padding: var(--section-y) 0;
    background: var(--bg-alt);
}

.slider-intro {
    max-width: 780px;
    margin: 0 auto clamp(32px, 5vw, 56px);
    padding: 0 var(--gutter);
    text-align: center;
}

.slider-title {
    margin-bottom: 12px;
    color: var(--ink);
    font-size: clamp(32px, 4.4vw, 50px);
    font-weight: 500;
}

.slider-subtitle {
    color: var(--gold-600);
    font-family: var(--font-display);
    font-size: clamp(18px, 2vw, 21px);
    font-style: italic;
    line-height: 1.5;
}

.slider-container {
    position: relative;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.slider-wrapper {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: #fff;
    box-shadow: var(--shadow-lg);
}

.slider-track {
    display: flex;
    transition: transform .6s var(--ease);
}

.slider-slide {
    position: relative;
    min-width: 100%;
    aspect-ratio: 16 / 9;
}

.slider-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-placeholder {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: var(--grad-hero);
}

.slider-placeholder::before {
    content: '';
    position: absolute;
    inset: -64px;
    background-image: var(--star-pattern);
    animation: drift 40s linear infinite;
}

.slider-placeholder-icon {
    position: relative;
    z-index: 1;
    font-size: clamp(56px, 9vw, 96px);
}

.slider-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: clamp(40px, 6vw, 80px) clamp(20px, 3vw, 36px) clamp(18px, 2.4vw, 28px);
    background: linear-gradient(to top, rgba(20, 14, 10, .82) 0%, rgba(20, 14, 10, 0) 100%);
    color: #fff;
    font-family: var(--font-display);
    font-size: clamp(20px, 2.4vw, 28px);
    font-weight: 500;
    text-align: left;
}

.slider-btn {
    position: absolute;
    top: 50%;
    z-index: 10;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    padding-bottom: 3px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .95);
    color: var(--ink);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    box-shadow: var(--shadow);
    transform: translateY(-50%);
    transition: background-color var(--t-fast) ease, color var(--t-fast) ease, transform var(--t) var(--ease);
}

.slider-btn:hover {
    background: var(--brand);
    color: #fff;
    transform: translateY(-50%) scale(1.06);
}

.slider-btn-prev {
    left: calc(var(--gutter) + 18px);
}

.slider-btn-next {
    right: calc(var(--gutter) + 18px);
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 26px;
}

.slider-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: var(--radius-pill);
    background: var(--line-strong);
    cursor: pointer;
    transition: width var(--t) var(--ease), background-color var(--t-fast) ease;
}

.slider-dot:hover {
    background: var(--gold);
}

.slider-dot.active {
    width: 30px;
    background: var(--brand);
}

/* ---------- CTA ---------- */
.cta-section {
    padding: var(--section-y) var(--gutter);
    background: var(--bg);
}

.cta-content {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: var(--container);
    margin: 0 auto;
    padding: clamp(40px, 6vw, 72px) clamp(22px, 5vw, 72px);
    border-radius: var(--radius-xl);
    background: var(--grad-hero);
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.cta-content::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: var(--star-pattern);
}

.cta-title {
    max-width: 720px;
    margin-bottom: 14px;
    color: #fff;
    font-size: clamp(30px, 4.2vw, 48px);
    font-weight: 500;
}

.cta-text {
    max-width: 640px;
    margin-bottom: 30px;
    color: rgba(255, 244, 230, .88);
    font-size: clamp(15px, 1.6vw, 17px);
    line-height: 1.75;
}

.book-btn,
.book-btnn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 14px 32px;
    border: 0;
    border-radius: var(--radius-pill);
    background: #fff;
    color: var(--brand-700);
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .04em;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .45);
    transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), background-color var(--t-fast) ease;
}

.book-btn span:first-child,
.book-btnn span:first-child {
    color: var(--brand);
    font-size: 11px;
}

.book-btn:hover,
.book-btnn:hover {
    background: var(--cream);
    color: var(--brand-700);
    transform: translateY(-2px);
}

/* ---------- Floating "Book now" ---------- */
.floating-book-btn {
    position: fixed;
    right: 0;
    top: 50%;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px 12px;
    border-radius: 14px 0 0 14px;
    background: var(--grad-brand);
    color: #fff;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .18em;
    text-decoration: none;
    white-space: nowrap;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    box-shadow: -6px 10px 26px -10px rgba(196, 84, 31, .7);
    transform: translateY(-50%);
    transition: padding var(--t) var(--ease), box-shadow var(--t) ease;
}

.floating-book-btn:hover {
    padding-right: 16px;
    color: #fff;
    box-shadow: -8px 12px 30px -10px rgba(196, 84, 31, .85);
}

.floating-book-btn .btn-icon {
    writing-mode: horizontal-tb;
    font-size: 11px;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .slider-slide {
        aspect-ratio: 4 / 3;
    }

    .slider-btn {
        width: 42px;
        height: 42px;
        font-size: 24px;
    }

    .slider-btn-prev {
        left: calc(var(--gutter) + 10px);
    }

    .slider-btn-next {
        right: calc(var(--gutter) + 10px);
    }

    .slider-caption {
        font-size: 19px;
    }

    /* floating button becomes a bottom pill on phones */
    .floating-book-btn {
        top: auto;
        right: 16px;
        bottom: max(16px, env(safe-area-inset-bottom));
        padding: 13px 20px;
        border-radius: var(--radius-pill);
        writing-mode: horizontal-tb;
        letter-spacing: .12em;
        transform: none;
        box-shadow: 0 12px 28px -10px rgba(196, 84, 31, .8);
    }

    .floating-book-btn:hover {
        padding-right: 20px;
    }
}

@media (max-width: 420px) {
    .book-btn,
    .book-btnn {
        width: 100%;
    }
}
