/* ================================================================
   SERVICES PAGES — services.css
   Used by: services_list.html  +  service_detail.html
   ================================================================ */


/* ----------------------------------------------------------------
   SHARED: BREADCRUMB
---------------------------------------------------------------- */
.services-breadcrumb {
    margin: 0;
}

.services-breadcrumb .breadcrumb-item a {
    color: rgba(242, 231, 213, 0.65);
    text-decoration: none;
    font-size: 0.85rem;
    transition: var(--transition);
}

.services-breadcrumb .breadcrumb-item a:hover {
    color: var(--gold);
}

.services-breadcrumb .breadcrumb-item.active {
    color: var(--parchment);
    font-size: 0.85rem;
}

.services-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(212, 162, 75, 0.45);
    content: "›";
    font-size: 1rem;
}


/* ================================================================
   SERVICES LIST PAGE
   ================================================================ */

/* ----------------------------------------------------------------
   HERO / HEADER
---------------------------------------------------------------- */
.services-hero {
    position: relative;
    padding: 8rem 0 6rem;
    overflow: hidden;
    min-height: 420px;
    display: flex;
    align-items: center;
}

.services-hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        var(--mahogany)  0%,
        #3a1a08          40%,
        var(--olive)     75%,
        #1e1b0e          100%
    );
}

.services-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(43, 22, 8, 0.35);
}

/* Geometric diamond pattern */
.services-hero-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.06;
    background-image:
        repeating-linear-gradient(
            45deg,
            var(--gold) 0px,
            var(--gold) 1px,
            transparent 1px,
            transparent 20px
        ),
        repeating-linear-gradient(
            -45deg,
            var(--gold) 0px,
            var(--gold) 1px,
            transparent 1px,
            transparent 20px
        );
}

.services-hero-content {
    position: relative;
    z-index: 2;
}

.services-hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 4rem);
    color: var(--parchment);
    margin-bottom: 0.5rem;
    line-height: 1.1;
}

.services-hero-divider {
    width: 70px;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--orange));
    margin: 1rem auto 1.5rem;
    border-radius: 2px;
}

.services-hero-subtitle {
    color: rgba(242, 231, 213, 0.78);
    font-size: 1.05rem;
    line-height: 1.75;
    max-width: 580px;
    margin: 0 auto 1.5rem;
}

/* Diagonal bottom cut */
.services-hero-cut {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 70px;
    background: var(--parchment);
    clip-path: polygon(0 100%, 100% 0, 100% 100%);
    z-index: 2;
}


/* ----------------------------------------------------------------
   CATEGORY QUICK-LINKS (sticky jump nav)
---------------------------------------------------------------- */
.services-nav-strip {
    background: var(--white);
    border-bottom: 1px solid rgba(212, 162, 75, 0.15);
    padding: 0.75rem 0;
    position: sticky;
    top: 70px;
    z-index: 99;
    box-shadow: 0 2px 12px rgba(43, 22, 8, 0.07);
}

.services-nav-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.services-nav-label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    flex-shrink: 0;
    white-space: nowrap;
}

.services-nav-links {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.services-nav-link {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--olive);
    text-decoration: none;
    padding: 0.3rem 0.9rem;
    border: 1.5px solid rgba(212, 162, 75, 0.25);
    border-radius: 20px;
    transition: var(--transition);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.services-nav-link i {
    font-size: 0.75rem;
    color: var(--gold);
}

.services-nav-link:hover,
.services-nav-link.active-section {
    background: var(--mahogany);
    border-color: var(--mahogany);
    color: var(--gold);
}


/* ----------------------------------------------------------------
   MAIN SECTION
---------------------------------------------------------------- */
.services-main-section {
    background: var(--parchment);
    padding: 4rem 0 6rem;
}


/* ----------------------------------------------------------------
   CATEGORY BLOCK
---------------------------------------------------------------- */
.category-block {
    margin-bottom: 5rem;
    scroll-margin-top: 130px; /* offset for sticky nav + navbar */
}

.category-block:last-child {
    margin-bottom: 0;
}

.category-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1.25rem;
    border-bottom: 2px solid rgba(212, 162, 75, 0.18);
    position: relative;
}

/* Gold accent line under header */
.category-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), var(--orange));
}

.category-header-left {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
}

.category-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--mahogany), var(--olive));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--gold);
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.category-title {
    font-family: var(--font-heading);
    font-size: clamp(1.4rem, 3vw, 2rem);
    color: var(--mahogany);
    margin-bottom: 0.35rem;
    line-height: 1.2;
}

.category-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
    max-width: 520px;
    line-height: 1.65;
}

.category-count {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    background: rgba(212, 162, 75, 0.1);
    border: 1px solid rgba(212, 162, 75, 0.2);
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
    align-self: flex-start;
}


/* ----------------------------------------------------------------
   SERVICE CARD (list page)
---------------------------------------------------------------- */
.srv-reveal {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.55s ease, transform 0.55s ease;
    transition-delay: calc(var(--srv-delay, 0) * 0.08s);
}

.srv-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.srv-card-link {
    text-decoration: none;
    display: block;
    height: 100%;
}

.srv-card-link:hover { text-decoration: none; }

.srv-card {
    background: var(--white);
    border: 1px solid rgba(212, 162, 75, 0.12);
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.srv-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-7px);
    border-color: rgba(212, 162, 75, 0.3);
}

/* Top area — image or icon background */
.srv-card-top {
    position: relative;
    height: 200px;
    overflow: hidden;
    flex-shrink: 0;
}

.srv-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s ease;
}

.srv-card:hover .srv-card-img {
    transform: scale(1.08);
}

.srv-card-icon-wrap {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--mahogany) 0%, var(--olive) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: rgba(212, 162, 75, 0.45);
    transition: var(--transition);
}

.srv-card:hover .srv-card-icon-wrap {
    color: rgba(212, 162, 75, 0.75);
}

/* Gradient overlay on image */
.srv-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        transparent 40%,
        rgba(43, 22, 8, 0.55) 100%
    );
    opacity: 0;
    transition: opacity 0.35s ease;
}

.srv-card:hover .srv-card-overlay {
    opacity: 1;
}

/* Category pill floating on image */
.srv-card-category-pill {
    position: absolute;
    top: 0.85rem;
    left: 0.85rem;
    background: rgba(43, 22, 8, 0.82);
    backdrop-filter: blur(4px);
    color: var(--gold);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.25rem 0.65rem;
    border-radius: 4px;
    border: 1px solid rgba(212, 162, 75, 0.3);
}

/* Card body */
.srv-card-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.srv-card-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--mahogany);
    margin-bottom: 0.6rem;
    line-height: 1.3;
    transition: var(--transition);
}

.srv-card:hover .srv-card-title {
    color: var(--olive);
}

.srv-card-excerpt {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.65;
    flex-grow: 1;
    margin-bottom: 1.25rem;
}

.srv-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(212, 162, 75, 0.1);
    margin-top: auto;
}

.srv-card-cta {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--gold);
    transition: var(--transition);
}

.srv-card-cta i {
    transition: transform 0.3s ease;
}

.srv-card:hover .srv-card-cta {
    color: var(--orange);
}

.srv-card:hover .srv-card-cta i {
    transform: translateX(4px);
}

.srv-featured-badge {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--mahogany);
    background: linear-gradient(135deg, var(--gold), var(--orange));
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    letter-spacing: 0.04em;
    white-space: nowrap;
}


/* ----------------------------------------------------------------
   EMPTY STATES
---------------------------------------------------------------- */
.srv-empty {
    padding: 3rem;
    text-align: center;
    color: var(--text-muted);
    background: rgba(212, 162, 75, 0.04);
    border: 1px dashed rgba(212, 162, 75, 0.2);
    border-radius: 8px;
}

.srv-empty i {
    font-size: 2rem;
    color: rgba(212, 162, 75, 0.3);
    margin-bottom: 0.75rem;
    display: block;
}

.srv-global-empty {
    text-align: center;
    padding: 5rem 2rem;
    max-width: 480px;
    margin: 0 auto;
}

.srv-global-empty-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(212, 162, 75, 0.1), rgba(230, 126, 34, 0.07));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: var(--gold);
    margin: 0 auto 1.5rem;
}

.srv-global-empty h3 {
    font-family: var(--font-heading);
    color: var(--mahogany);
    margin-bottom: 0.75rem;
}

.srv-global-empty p {
    color: var(--text-muted);
    font-size: 0.95rem;
}


/* ----------------------------------------------------------------
   BOTTOM CTA
---------------------------------------------------------------- */
.services-cta {
    position: relative;
    overflow: hidden;
}

.services-cta-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--olive) 0%, var(--mahogany) 100%);
}

.services-cta-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 4rem 0;
    flex-wrap: wrap;
}

.services-cta-icon {
    font-size: 3rem;
    color: rgba(212, 162, 75, 0.3);
    flex-shrink: 0;
}

.services-cta-text {
    flex: 1;
    min-width: 240px;
}

.services-cta-text h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.services-cta-text p {
    color: rgba(242, 231, 213, 0.75);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.7;
}


/* ================================================================
   SERVICE DETAIL PAGE
   ================================================================ */

/* ----------------------------------------------------------------
   DETAIL HERO
---------------------------------------------------------------- */
.srv-detail-hero {
    position: relative;
    min-height: 480px;
    display: flex;
    align-items: flex-end;
    padding-bottom: 5rem;
    overflow: hidden;
}

.srv-detail-hero-bg {
    position: absolute;
    inset: 0;
}

.srv-detail-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.srv-detail-hero-gradient {
    background: linear-gradient(
        135deg,
        var(--mahogany) 0%,
        var(--olive)    100%
    );
}

.srv-detail-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(43, 22, 8, 0.5)  0%,
        rgba(43, 22, 8, 0.85) 100%
    );
}

.srv-detail-hero-content {
    position: relative;
    z-index: 2;
    padding-top: 6rem;
}

.srv-detail-category {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(212, 162, 75, 0.15);
    border: 1px solid rgba(212, 162, 75, 0.35);
    color: var(--gold);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.3rem 0.85rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    backdrop-filter: blur(4px);
}

.srv-detail-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.2rem);
    color: var(--parchment);
    line-height: 1.15;
    margin-bottom: 1rem;
}

.srv-detail-subtitle {
    color: rgba(242, 231, 213, 0.8);
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 580px;
    margin-bottom: 2rem;
}

.srv-detail-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.srv-detail-call-btn {
    border-color: rgba(242, 231, 213, 0.4) !important;
    color: var(--parchment) !important;
}

.srv-detail-call-btn:hover {
    background: rgba(242, 231, 213, 0.1) !important;
    border-color: var(--parchment) !important;
}

/* Diagonal bottom cut */
.srv-detail-hero-cut {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 70px;
    background: var(--parchment);
    clip-path: polygon(0 100%, 100% 0, 100% 100%);
    z-index: 3;
}


/* ----------------------------------------------------------------
   DETAIL BODY
---------------------------------------------------------------- */
.srv-detail-body {
    background: var(--parchment);
    padding: 4rem 0 6rem;
}

/* Rich text content card */
.srv-detail-content-card {
    background: var(--white);
    border: 1px solid rgba(212, 162, 75, 0.12);
    border-radius: 8px;
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
}

/* CKEditor rendered content styles */
.srv-detail-rich-text {
    font-size: 0.975rem;
    color: var(--text-dark);
    line-height: 1.85;
}

.srv-detail-rich-text h2,
.srv-detail-rich-text h3,
.srv-detail-rich-text h4 {
    font-family: var(--font-heading);
    color: var(--mahogany);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.srv-detail-rich-text h2 { font-size: 1.5rem; }
.srv-detail-rich-text h3 { font-size: 1.25rem; }
.srv-detail-rich-text h4 { font-size: 1.05rem; }

.srv-detail-rich-text p {
    margin-bottom: 1.1rem;
    color: var(--text-muted);
}

.srv-detail-rich-text ul,
.srv-detail-rich-text ol {
    padding-left: 1.5rem;
    margin-bottom: 1.25rem;
}

.srv-detail-rich-text li {
    margin-bottom: 0.4rem;
    color: var(--text-muted);
}

.srv-detail-rich-text ul li::marker {
    color: var(--gold);
}

.srv-detail-rich-text strong {
    color: var(--mahogany);
    font-weight: 700;
}

.srv-detail-rich-text a {
    color: var(--gold);
    text-decoration: underline;
}

.srv-detail-rich-text a:hover {
    color: var(--orange);
}

.srv-detail-rich-text blockquote {
    border-left: 4px solid var(--gold);
    background: rgba(212, 162, 75, 0.06);
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    border-radius: 0 4px 4px 0;
    font-style: italic;
    color: var(--olive);
}

.srv-detail-rich-text img {
    max-width: 100%;
    border-radius: 6px;
    margin: 1rem 0;
    box-shadow: var(--shadow-sm);
}

/* Back link */
.srv-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
    letter-spacing: 0.04em;
}

.srv-back-link:hover {
    color: var(--gold);
    gap: 0.6rem;
}


/* ----------------------------------------------------------------
   SIDEBAR CARDS
---------------------------------------------------------------- */
.srv-sidebar-card {
    background: var(--white);
    border: 1px solid rgba(212, 162, 75, 0.12);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.srv-sidebar-card:last-child {
    margin-bottom: 0;
}

.srv-sidebar-card-header {
    background: linear-gradient(135deg, var(--mahogany) 0%, var(--olive) 100%);
    color: var(--gold);
    font-family: var(--font-heading);
    font-size: 1rem;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.srv-sidebar-card-body {
    padding: 1.5rem;
}

/* Enquiry card */
.srv-enquiry-card .srv-sidebar-card-body p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 1.25rem;
}

.srv-sidebar-divider {
    text-align: center;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    position: relative;
    margin: 1rem 0;
}

.srv-sidebar-divider::before,
.srv-sidebar-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30%;
    height: 1px;
    background: rgba(212, 162, 75, 0.2);
}

.srv-sidebar-divider::before { left: 0; }
.srv-sidebar-divider::after  { right: 0; }

.srv-phone-link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 0.85rem;
    border: 1px solid rgba(212, 162, 75, 0.2);
    border-radius: var(--radius);
    color: var(--mahogany);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0.6rem;
    transition: var(--transition);
}

.srv-phone-link i {
    color: var(--gold);
    font-size: 0.85rem;
}

.srv-phone-link:hover {
    background: var(--mahogany);
    border-color: var(--mahogany);
    color: var(--gold);
}

/* Details card */
.srv-detail-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.srv-detail-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.65rem 0;
    border-bottom: 1px solid rgba(212, 162, 75, 0.1);
    font-size: 0.875rem;
    gap: 0.5rem;
}

.srv-detail-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.srv-detail-list-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-weight: 700;
    flex-shrink: 0;
}

.srv-detail-list-label i {
    color: var(--gold);
    width: 14px;
    font-size: 0.8rem;
}

.srv-detail-list li > span:last-child {
    color: var(--mahogany);
    font-weight: 700;
    text-align: right;
}

/* Related services list */
.srv-related-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.srv-related-link {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem 1.25rem;
    text-decoration: none;
    border-bottom: 1px solid rgba(212, 162, 75, 0.08);
    transition: var(--transition);
}

.srv-related-list li:last-child .srv-related-link {
    border-bottom: none;
}

.srv-related-link:hover {
    background: rgba(212, 162, 75, 0.05);
    text-decoration: none;
}

.srv-related-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, rgba(212, 162, 75, 0.12), rgba(230, 126, 34, 0.08));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 0.95rem;
    flex-shrink: 0;
}

.srv-related-text {
    flex: 1;
    min-width: 0;
}

.srv-related-text strong {
    display: block;
    font-size: 0.875rem;
    color: var(--mahogany);
    margin-bottom: 0.15rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: var(--transition);
}

.srv-related-link:hover .srv-related-text strong {
    color: var(--gold);
}

.srv-related-text span {
    font-size: 0.78rem;
    color: var(--text-muted);
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.srv-related-arrow {
    color: rgba(212, 162, 75, 0.4);
    font-size: 0.75rem;
    transition: var(--transition);
    flex-shrink: 0;
}

.srv-related-link:hover .srv-related-arrow {
    color: var(--gold);
    transform: translateX(3px);
}


/* ----------------------------------------------------------------
   RESPONSIVE
---------------------------------------------------------------- */
@media (max-width: 991.98px) {
    .services-hero      { padding: 6rem 0 5rem; }
    .srv-detail-hero    { min-height: 380px; padding-bottom: 4rem; }
    .services-nav-strip { top: 60px; }
}

@media (max-width: 767.98px) {
    .category-header    { flex-direction: column; gap: 0.75rem; }
    .category-count     { align-self: flex-start; }
    .srv-detail-actions { flex-direction: column; align-items: flex-start; }
    .services-cta-inner { flex-direction: column; text-align: center; }
    .services-cta-icon  { display: none; }
    .srv-detail-content-card { padding: 1.5rem; }
}

@media (max-width: 575.98px) {
    .services-nav-inner { flex-direction: column; align-items: flex-start; }
    .category-header-left { flex-direction: column; gap: 0.75rem; }
}