/* ============================================================
   SERVICE DETAIL PAGE — clean, card-focused, responsive
   ============================================================ */

/* ---------- HERO ---------- */
.sd-hero {
    position: relative;
    min-height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

.sd-hero-bg {
    position: absolute;
    inset: 0;
}

.sd-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sd-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.25) 60%, rgba(0, 0, 0, 0.15) 100%);
}

.sd-hero-content {
    position: relative;
    z-index: 2;
    padding: 2rem 1.5rem;
    max-width: 800px;
    animation: sdFadeUp 0.7s ease-out;
}

.sd-breadcrumb {
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
    opacity: 0.9;
}

.sd-breadcrumb a {
    color: #fff;
    text-decoration: none;
}

.sd-breadcrumb a:hover { opacity: 0.7; }
.sd-breadcrumb span { margin: 0 0.4rem; opacity: 0.7; }
.sd-breadcrumb .current { color: #D4A574; opacity: 1; }

.sd-hero-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.2rem, 6vw, 4rem);
    font-weight: 700;
    margin: 0 0 0.75rem;
    line-height: 1.15;
    color: #FFFFFF;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

.sd-hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    margin: 0;
    color: #FFFFFF;
    opacity: 0.95;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
}

/* ---------- OFFERINGS ---------- */
.sd-offerings {
    padding: clamp(3rem, 8vh, 6rem) 0;
    background: #F5F1ED;
}

.sd-section-head {
    text-align: center;
    margin-bottom: clamp(2.5rem, 5vh, 4rem);
}

.sd-section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.8rem, 5vw, 3rem);
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 0.5rem;
}

.sd-accent-line svg {
    width: 200px;
    max-width: 60%;
    height: auto;
}

.sd-section-subtitle {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    color: #6B7280;
    margin: 0.5rem 0 0;
}

/* Cards sliding carousel: arrow | viewport | arrow */
.sd-carousel {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sd-viewport {
    flex: 1 1 auto;
    min-width: 0;          /* CRITICAL: lets the flex item shrink so it scrolls internally */
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    cursor: grab;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.sd-viewport::-webkit-scrollbar { display: none; }
.sd-viewport.is-dragging { cursor: grabbing; scroll-behavior: auto; }

.sd-track {
    display: flex;
    gap: clamp(1.25rem, 3vw, 2rem);
    flex-wrap: nowrap;
}

.sd-card {
    flex: 0 0 calc((100% - 2 * clamp(1.25rem, 3vw, 2rem)) / 3);  /* 3 visible on desktop */
    min-width: calc((100% - 2 * clamp(1.25rem, 3vw, 2rem)) / 3);
    scroll-snap-align: start;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(15, 47, 115, 0.08);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    display: flex;
    flex-direction: column;
}

/* Arrow buttons */
.sd-arrow {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid #C9A961;
    background: #fff;
    color: #C9A961;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.sd-arrow:hover {
    background: #C9A961;
    color: #fff;
    transform: scale(1.05);
}

.sd-arrow.is-disabled {
    opacity: 0.35;
    cursor: default;
    transform: none;
    background: #fff;
    color: #C9A961;
}

.sd-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 22px 50px rgba(15, 47, 115, 0.16);
}

.sd-card-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #ECEFF4;
}

.sd-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.sd-card:hover .sd-card-img img { transform: scale(1.07); }

.sd-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #CBD5E1;
}

.sd-card-body {
    padding: 1.4rem 1.5rem 1.6rem;
    flex: 1;
}

.sd-card-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.45rem;
    font-weight: 600;
    color: #0F2F73;
    margin: 0 0 0.5rem;
}

.sd-card-desc {
    font-size: 0.92rem;
    line-height: 1.7;
    color: #4B5563;
    margin: 0 0 1rem;
}

.sd-card-points {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sd-card-points li {
    position: relative;
    padding: 0.4rem 0 0.4rem 1.6rem;
    font-size: 0.88rem;
    line-height: 1.5;
    color: #374151;
    border-bottom: 1px solid #F1F3F7;
}

.sd-card-points li:last-child {
    border-bottom: none;
}

.sd-card-points li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    top: 0.45rem;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #C9A961, #D4A574);
    color: #fff;
    border-radius: 50%;
    font-size: 0.62rem;
    font-weight: 700;
}

/* Empty state */
.sd-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: #9CA3AF;
}

.sd-empty i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.sd-empty p {
    margin: 0 0 1.5rem;
    font-size: 1.05rem;
}

/* ---------- CTA ---------- */
.sd-cta {
    padding: clamp(3rem, 8vh, 5rem) 0;
    background: linear-gradient(135deg, #04112D 0%, #0D2D73 100%);
    text-align: center;
    color: #fff;
}

.sd-cta-inner {
    max-width: 640px;
    margin: 0 auto;
}

.sd-cta h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 700;
    margin: 0 0 0.75rem;
}

.sd-cta p {
    font-size: clamp(1rem, 2vw, 1.1rem);
    opacity: 0.9;
    margin: 0 0 1.75rem;
}

/* ---------- BUTTONS ---------- */
.sd-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 2.2rem;
    background: #6A3E3F;
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.sd-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(106, 62, 63, 0.4);
    color: #FFFFFF;
}

.sd-btn-light {
    background: #6A3E3F;
    color: #FFFFFF;
}

/* ---------- ANIMATION ---------- */
@keyframes sdFadeUp {
    from { opacity: 0; transform: translateY(25px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---------- RESPONSIVE ---------- */
/* Tablet: 2 cards visible */
@media (max-width: 1023px) {
    .sd-card {
        flex: 0 0 calc((100% - clamp(1.25rem, 3vw, 2rem)) / 2);
        min-width: calc((100% - clamp(1.25rem, 3vw, 2rem)) / 2);
    }
}

/* Mobile: ~1.1 cards (peek next), hide arrows, swipe to slide */
@media (max-width: 600px) {
    .sd-hero { min-height: 280px; }
    .sd-arrow { display: none; }
    .sd-track { gap: 1rem; }
    .sd-card {
        flex: 0 0 88%;
        min-width: 88%;
    }
    .sd-card-img { aspect-ratio: 16 / 10; }
}
