/**
 * Single Service Page – Premium Styles
 * Brand: --color-primary (gold), --color-accent (teal), --color-dark (dark navy/brown)
 *
 * Class prefix: sv-
 *
 * @package qawafel_alkhair
 */

/* ═══════════════════════════════════════════════
   GLOBAL & RESET OVERRIDES
   ═══════════════════════════════════════════════ */
.sv-hero,
.sv-page,
.sv-gallery {
    font-family: 'Tajawal', 'Inter', sans-serif !important;
}

/* ═══════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════ */

.sv-hero {
    position: relative;
    min-height: 380px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: linear-gradient(135deg,
            var(--color-dark, #2c1e10) 0%,
            #3d2b12 50%,
            var(--color-primary, #c8a055) 100%);
    padding-top: 90px;
    /* header clearance */
}

/* background image layer */
.sv-hero[style*="--sv-hero-bg"]::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--sv-hero-bg);
    background-size: cover;
    background-position: center;
    opacity: 0.18;
}

/* dark gradient overlay */
.sv-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            color-mix(in srgb, var(--color-primary, #2c1e10), #2c1e10 85%) 0%,
            color-mix(in srgb, var(--color-primary, #2c1e10), #2c1e10 70%) 100%);
    opacity: 0.92;
}

/* repeating subtle pattern */
.sv-hero__pattern {
    position: absolute;
    inset: 0;
    background-size: 280px auto;
    background-repeat: no-repeat;
    background-size: cover;
    opacity: 0.06;
    mix-blend-mode: luminosity;
}

/* colored radials */
.sv-hero__radials {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 15% 50%, color-mix(in srgb, var(--color-primary, #c8a055), transparent 78%) 0%, transparent 55%),
        radial-gradient(circle at 85% 15%, color-mix(in srgb, var(--color-accent, #2b9b9b), transparent 86%) 0%, transparent 50%);
    pointer-events: none;
}

/* fade at the bottom */
.sv-hero__fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to bottom, transparent, #f4f6f9);
    pointer-events: none;
}

body[data-theme="dark"] .sv-hero__fade {
    background: linear-gradient(to bottom, transparent, #0f172a);
}

/* bottom accent bar */
.sv-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg,
            var(--color-primary, #c8a055) 0%,
            var(--color-accent, #00aabf) 50%,
            var(--color-primary, #c8a055) 100%);
}

.sv-hero__body {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 52px 0 72px;
}

/* ── Breadcrumb ── */
.sv-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.60);
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.sv-breadcrumb a {
    color: rgba(255, 255, 255, 0.60);
    text-decoration: none;
    transition: color 0.2s;
}

.sv-breadcrumb a:hover {
    color: var(--color-primary, #c8a055);
}

.sv-breadcrumb__sep {
    opacity: 0.35;
}

.sv-breadcrumb__current {
    color: rgba(255, 255, 255, 0.92);
    font-weight: 500;
}

/* ── Title ── */
.sv-hero__title {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    text-shadow: 0 3px 24px rgba(0, 0, 0, 0.35);
    margin-bottom: 0;
}

.sv-hero__subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.72);
    margin-top: 12px;
    font-weight: 400;
    line-height: 1.7;
}

/* gold accent underline */
.sv-hero__accent {
    display: inline-block;
    width: 70px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary, #c8a055), var(--color-accent, #00aabf));
    border-radius: 2px;
    margin-top: 20px;
}

/* ═══════════════════════════════════════════════
   PAGE WRAPPER
═══════════════════════════════════════════════ */

.sv-page {
    background: #f4f6f9;
    padding: 60px 0 80px;
    position: relative;
    overflow: hidden;
}

body[data-theme="dark"] .sv-page {
    background: #0f172a;
}

/* subtle watermark */
.sv-page::before {
    content: '';
    position: absolute;
    top: 0;
    inset-inline-end: 0;
    width: 500px;
    height: 500px;
    background-image: var(--sv-pattern-url, none);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: top right;
    opacity: 0.04;
    pointer-events: none;
}

/* ── 2-column grid ── */
.sv-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    align-items: start;
}

@media (max-width: 960px) {
    .sv-layout {
        grid-template-columns: 1fr;
    }
}

/* ═══════════════════════════════════════════════
   SIDEBAR
═══════════════════════════════════════════════ */

.sv-sidebar {
    position: sticky;
    /* top: 100px; */
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@media (max-width: 960px) {
    .sv-sidebar {
        position: static;
        order: 2;
    }
}

/* ── Contact card ── */
.sv-contact-card {
    background: var(--color-dark, #2c1e10);
    border-radius: 20px;
    padding: 36px 28px;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(44, 30, 16, 0.35);
}


.sv-contact-card__icon {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: rgb(255, 255, 255);
    border: 2px solid rgba(200, 160, 85, 0.30);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    overflow: hidden;
}

.sv-contact-card__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
}

.sv-contact-card__icon svg {
    width: 44px;
    height: 44px;
    color: var(--color-primary, #c8a055);
}

.sv-contact-card__heading {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.4;
    margin-bottom: 10px;
}

.sv-contact-card__sub {
    font-size: 0.86rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.65;
    margin-bottom: 22px;
}

/* phone / email buttons */
.sv-contact-card__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px 18px;
    border-radius: 13px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.sv-contact-card__btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.sv-contact-card__btn--phone {
    direction: ltr;
    background: rgba(200, 160, 85, 0.15);
    border: 1.5px solid rgba(200, 160, 85, 0.35);
    color: #fff;
}

.sv-contact-card__btn--phone:hover {
    background: var(--color-primary, #c8a055);
    border-color: var(--color-primary, #c8a055);
    color: #1a1006;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(200, 160, 85, 0.45);
}

.sv-contact-card__btn--email {
    direction: ltr;
    background: rgba(255, 255, 255, 0.07);
    border: 1.5px solid rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.80);
}

.sv-contact-card__btn--email:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.25);
    color: #fff;
    transform: translateY(-2px);
}

/* Back link */
.sv-contact-card__back {
    display: block;
    margin-top: 14px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
    transition: color 0.2s;
}

.sv-contact-card__back:hover {
    color: var(--color-primary, #c8a055);
}

/* ── Other services panel ── */
.sv-other-services {
    background: #fff;
    border-radius: 18px;
    padding: 24px 22px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

body[data-theme="dark"] .sv-other-services {
    background: #1e293b;
    border-color: #334155;
}

.sv-other-services__heading {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-dark, #2c1e10);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(200, 160, 85, 0.18);
}

body[data-theme="dark"] .sv-other-services__heading {
    color: #f1f5f9;
}

.sv-other-services__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sv-other-services__list li {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

body[data-theme="dark"] .sv-other-services__list li {
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

.sv-other-services__list li:last-child {
    border-bottom: none;
}

.sv-other-services__list a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 0;
    font-size: 0.9rem;
    color: #4b5563;
    text-decoration: none;
    transition: color 0.2s, gap 0.2s;
}

body[data-theme="dark"] .sv-other-services__list a {
    color: #94a3b8;
}

.sv-other-services__list a:hover {
    color: var(--color-primary, #c8a055);
    padding-inline-start: 12px;
}

.sv-other-services__list a svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    opacity: 0.5;
    transition: opacity 0.2s;
    transform: scaleX(-1);
    /* Flip for RTL if it's a right arrow */
}

.sv-other-services__list a:hover svg {
    opacity: 1;
}

/* ═══════════════════════════════════════════════
   MAIN CONTENT
═══════════════════════════════════════════════ */

.sv-main {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

/* ── Section label (shared) ── */
.sv-section-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-dark, #2c1e10);
    margin-bottom: 22px;
}

body[data-theme="dark"] .sv-section-label {
    color: #f1f5f9;
}

.sv-section-label__bar {
    display: inline-block;
    width: 5px;
    height: 24px;
    background: linear-gradient(180deg, var(--color-primary, #c8a055), var(--color-accent, #00aabf));
    border-radius: 3px;
    flex-shrink: 0;
}

/* ── Description card ── */
.sv-desc-card {
    background: #fff;
    border-radius: 20px;
    padding: 40px 44px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-top: 4px solid var(--color-primary, #c8a055);
}

body[data-theme="dark"] .sv-desc-card {
    background: #1e293b;
    border-color: #334155;
    border-top-color: var(--color-primary, #c8a055);
}

@media (max-width: 640px) {
    .sv-desc-card {
        padding: 26px 20px;
    }
}

.sv-desc-card__body {
    font-size: 1.05rem;
    line-height: 1.9;
    color: #4b5563;
    text-align: right;
    direction: rtl;
}

body[data-theme="dark"] .sv-desc-card__body {
    color: #cbd5e1;
}

.sv-desc-card__body p {
    margin-bottom: 1.25em;
}

.sv-desc-card__body p:last-child {
    margin-bottom: 0;
}

.sv-desc-card__empty {
    text-align: center;
    padding: 40px 0;
    color: #9ca3af;
}

.sv-desc-card__empty svg {
    width: 52px;
    height: 52px;
    margin: 0 auto 14px;
    opacity: 0.4;
    display: block;
}

/* ═══════════════════════════════════════════════
   FEATURES GRID
═══════════════════════════════════════════════ */

.sv-features {
    background: #fff;
    border-radius: 20px;
    padding: 36px 40px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

body[data-theme="dark"] .sv-features {
    background: #1e293b;
    border-color: #334155;
}

@media (max-width: 640px) {
    .sv-features {
        padding: 24px 18px;
    }
}

.sv-features__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

@media (min-width: 1200px) {
    .sv-features__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 520px) {
    .sv-features__grid {
        grid-template-columns: 1fr;
    }
}

/* ── Feature card ── */
.sv-feat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 28px 20px;
    background: #f8f9fc;
    border-radius: 16px;
    border: 1px solid rgba(200, 160, 85, 0.10);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    cursor: default;
    position: relative;
}

.sv-feat-card__link-overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
    cursor: pointer;
}

body[data-theme="dark"] .sv-feat-card {
    background: #0f172a;
    border-color: rgba(200, 160, 85, 0.12);
}

.sv-feat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 36px rgba(200, 160, 85, 0.18);
    border-color: rgba(200, 160, 85, 0.30);
}

.sv-feat-card:has(.sv-feat-card__link-overlay):hover {
    border-color: var(--color-primary, #c8a055);
}

.sv-feat-card__icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(200, 160, 85, 0.10);
    border: 1.5px solid rgba(200, 160, 85, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    transition: background 0.3s, border-color 0.3s;
}

.sv-feat-card:hover .sv-feat-card__icon {
    background: rgba(200, 160, 85, 0.18);
    border-color: rgba(200, 160, 85, 0.40);
}

.sv-feat-card__icon svg {
    width: 30px;
    height: 30px;
    color: var(--color-primary, #c8a055);
}

.sv-feat-card__icon img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.sv-feat-card__title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-dark, #2c1e10);
    margin-bottom: 6px;
    line-height: 1.4;
}

body[data-theme="dark"] .sv-feat-card__title {
    color: #f1f5f9;
}

.sv-feat-card__desc {
    font-size: 0.83rem;
    color: #6b7280;
    line-height: 1.65;
    margin: 0;
}

body[data-theme="dark"] .sv-feat-card__desc {
    color: #94a3b8;
}

/* ═══════════════════════════════════════════════
   GALLERY STRIP
═══════════════════════════════════════════════ */

.sv-gallery {
    padding: 0 0 72px;
    background: #f4f6f9;
    position: relative;
}

body[data-theme="dark"] .sv-gallery {
    background: #0f172a;
}

.sv-gallery .sv-section-label {
    margin-bottom: 24px;
}

.sv-gallery__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

@media (max-width: 768px) {
    .sv-gallery__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .sv-gallery__grid {
        grid-template-columns: 1fr;
    }
}

.sv-gallery__item {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    aspect-ratio: 4 / 3;
    display: block;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.10);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.sv-gallery__item:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}

.sv-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.sv-gallery__item:hover img {
    transform: scale(1.07);
}

.sv-gallery__item-overlay {
    position: absolute;
    inset: 0;
    background: rgba(44, 30, 16, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sv-gallery__item:hover .sv-gallery__item-overlay {
    opacity: 1;
}

.sv-gallery__item-overlay svg {
    width: 40px;
    height: 40px;
    color: #fff;
}

/* ═══════════════════════════════════════════════
   RESPONSIVE  OVERRIDES
═══════════════════════════════════════════════ */

@media (max-width: 960px) {
    .sv-hero {
        min-height: 300px;
    }

    .sv-hero__body {
        padding: 40px 0 60px;
    }

    .sv-page {
        padding: 40px 0 60px;
    }

    .sv-main {
        order: 1;
    }
}

@media (max-width: 640px) {
    .sv-contact-card {
        padding: 28px 20px;
    }

    .sv-features__grid {
        gap: 14px;
    }
}