/* ============================================
   SERVICE DETAIL PAGE STYLES
   A reusable format for all dynamic service pages
   ============================================ */

.detail-main {
    background: transparent;
    min-height: 100vh;
}

/* Hero Section */
.detail-hero {
    position: relative;
    padding: 30px 16px 60px;
    background: transparent;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

@media (max-width: 768px) {
    .detail-hero {
        padding: 20px 16px 30px;
    }
}

@media (min-width: 769px) {
    .detail-hero {
        padding: 40px 40px 80px;
    }
}

.detail-hero-content {
    max-width: 900px;
    position: relative;
    z-index: 2;
}

.detail-category-tag {
    display: inline-block;
    padding: 8px 18px;
    background: transparent;
    color: var(--primary-blue);
    border: 1px solid rgba(0, 58, 125, 0.2);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.detail-title {
    font-size: clamp(40px, 8vw, 72px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    background: linear-gradient(90deg, #003a7d 0%, #2d7a3f 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    padding: 0.1em 0;
}

/* Title row with back arrow */
.detail-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 16px;
    width: 100%;
}

.detail-title-row .detail-title {
    margin-bottom: 0;
}

.detail-back-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-top: 12px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    color: #4b5563;
    text-decoration: none;
    transition: background 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
    flex-shrink: 0;
}

.detail-back-arrow:hover {
    background: #f9fafb;
    color: var(--primary-blue);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transform: translateX(-2px);
}

.detail-back-arrow svg {
    width: 24px;
    height: 24px;
}

.detail-subtitle {
    font-size: clamp(18px, 3vw, 24px);
    color: var(--text-medium, #444);
    line-height: 1.5;
    max-width: 700px;
    margin: 0 auto;
}

/* Content Layout */
.detail-content-section {
    max-width: 1600px;
    margin: 0 auto;
    padding: 30px 16px 60px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

/* Responsive threshold increased to 1025px to prevent squashing in 'Desktop Mode' on mobile */
@media (max-width: 1024px) {
    .detail-content-section {
        padding: 16px 16px 60px;
        gap: 24px;
    }

    .detail-text {
        padding: 0;
    }

    .detail-back-top {
        margin-bottom: 0;
    }
}

@media (min-width: 1025px) {
    .detail-content-section {
        grid-template-columns: 1fr 1fr;
        align-items: start;
        padding: 40px 40px 100px;
        gap: 60px;
    }

    .detail-back-top {
        grid-column: 1 / -1;
        margin-bottom: 16px;
    }
}

/* Image Showcase */
.detail-visual {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: 0;
    overflow: hidden;
    background: #f5f5f5;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

@media (max-width: 768px) {
    .detail-visual {
        border-radius: 0;
        box-shadow: none;
    }
}

@media (min-width: 769px) {
    .detail-visual {
        border-radius: 0;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    }
}

.detail-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.detail-visual:hover img {
    transform: scale(1.05);
}

/* Text Content */
.detail-text {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.detail-description {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-dark, #222);
}

.detail-description p {
    margin-bottom: 20px;
}

.detail-features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 600px) {
    .detail-features-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.feature-item {
    padding: 24px;
    background: #f8fafc;
    border-radius: 0;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-item h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--primary-blue);
}

.feature-item p {
    font-size: 15px;
    color: var(--text-medium, #444);
    line-height: 1.6;
}

/* Actions */
.detail-actions {
    margin-top: 40px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.detail-actions .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--primary-gradient);
    color: #ffffff;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: filter 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 58, 125, 0.25);
}

.detail-actions .btn-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 58, 125, 0.35);
}

.detail-actions .btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 58, 125, 0.2);
}

.detail-actions .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    background: transparent;
    color: #4b5563;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease,
        border-color 0.3s ease,
        color 0.3s ease;
}

.detail-actions .btn-secondary:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
    color: #1f2937;
}

.detail-actions .btn-secondary:active {
    background: #e5e7eb;
}

/* Breadcrumbs / Back button */
.detail-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    font-size: 0.875rem;
    font-weight: 500;
    color: #4b5563;
    text-decoration: none;
    margin-bottom: 24px;
    padding: 10px 16px;
    background: #ffffff;
    border-radius: 6px;
    border: 1px solid #000000;
    transition: background 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease;
}

/* Back button at top of content section */
.detail-back-top {
    grid-column: 1 / -1;
    justify-self: start;
}

.detail-back:hover,
.detail-back:focus {
    background: #f9fafb;
    color: var(--primary-blue);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.detail-back:focus-visible {
    outline: 2px solid var(--primary-blue);
    outline-offset: 4px;
    border-radius: 6px;
}

.detail-back svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.detail-back:hover svg,
.detail-back:focus svg {
    transform: translateX(-4px);
}