/* ========================================
   ILLYRIAN CAMPER — Service Detail Styles
   Extends main style.css variables & patterns
   ======================================== */

/* Variables are inherited from style.css via the page's <link> tags.
   This file assumes style.css is loaded first. */

/* ============ BREADCRUMB ============ */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: rgba(255, 255, 255, .45);
    letter-spacing: .3px;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: rgba(255, 255, 255, .45);
    text-decoration: none;
    transition: var(--tr);
}

.breadcrumb a:hover {
    color: var(--accent);
}

.breadcrumb-sep {
    color: rgba(255, 255, 255, .2);
    font-size: 11px;
}

.breadcrumb-current {
    color: var(--accent);
    font-weight: 600;
}

/* ============ SERVICE HERO ============ */
.srv-hero {
    position: relative;
    background: var(--primary);
    padding: 120px 0 72px;
    overflow: hidden;
    text-align: center;
}

.srv-hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(232, 168, 56, .08), transparent 65%);
    transform: translate(-50%, -50%);
    border-radius: 50%;
    pointer-events: none;
}

.srv-hero-breadcrumb {
    display: flex;
    justify-content: center;
    margin-bottom: 28px;
    position: relative;
    z-index: 2;
}

.srv-hero-content {
    position: relative;
    z-index: 2;
    max-width: 760px;
    margin: 0 auto;
    padding: 0 24px;
}

.srv-hero-icon {
    width: 72px;
    height: 72px;
    background: var(--accent-glow);
    border: 1px solid rgba(232, 168, 56, .25);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: var(--accent);
    backdrop-filter: blur(8px);
}

.srv-hero-icon svg {
    width: 36px;
    height: 36px;
}

.srv-hero-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(34px, 5vw, 60px);
    color: #fff;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 18px;
}

.srv-hero-title span {
    color: var(--accent);
    font-style: italic;
}

.srv-hero-subtitle {
    color: rgba(255, 255, 255, .6);
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 36px;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
}

.srv-hero-buttons {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============ SERVICE BADGE ============ */
.srv-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(232, 168, 56, .1);
    border: 1px solid rgba(232, 168, 56, .25);
    color: var(--accent);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    padding: 7px 18px;
    border-radius: 100px;
    margin-bottom: 20px;
    backdrop-filter: blur(8px);
}

.srv-badge svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* ============ GENERIC SECTION ============ */
.srv-section {
    padding: 80px 0;
}

.srv-section-alt {
    padding: 80px 0;
    background: var(--bg-alt);
}

.srv-section-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(26px, 3.5vw, 40px);
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
    margin-bottom: 12px;
}

.srv-section-title span {
    color: var(--accent);
}

.srv-section-tag {
    display: inline-block;
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.srv-section-desc {
    color: var(--text-light);
    font-size: 16px;
    max-width: 540px;
    line-height: 1.7;
}

.srv-section-header {
    margin-bottom: 48px;
}

.srv-section-header.center {
    text-align: center;
}

.srv-section-header.center .srv-section-desc {
    margin: 0 auto;
}

/* ============ DESCRIPTION — two column ============ */
.srv-description {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.srv-description-text .srv-section-title {
    margin-bottom: 16px;
}

.srv-description-text p {
    color: var(--text-light);
    font-size: 15.5px;
    line-height: 1.8;
    margin-bottom: 16px;
}

.srv-description-text p:last-of-type {
    margin-bottom: 28px;
}

.srv-description-image {
    position: relative;
}

.srv-description-image .img-placeholder,
.srv-description-image img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--r-lg);
    display: block;
}

.srv-description-image .img-placeholder {
    background: linear-gradient(135deg, var(--primary-mid), var(--primary));
    display: flex;
    align-items: center;
    justify-content: center;
}

.srv-desc-badge {
    position: absolute;
    bottom: -18px;
    left: 24px;
    background: var(--accent);
    color: var(--primary);
    padding: 14px 20px;
    border-radius: var(--r);
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 8px 28px rgba(232, 168, 56, .35);
    white-space: nowrap;
}

/* ============ FEATURES GRID ============ */
.srv-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* ============ FEATURE CARD ============ */
.srv-feature-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 28px 24px;
    transition: var(--tr);
    position: relative;
    overflow: hidden;
}

.srv-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent);
    transform: scaleX(0);
    transition: var(--tr);
    transform-origin: left;
}

.srv-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(212, 149, 46, .3);
}

.srv-feature-card:hover::before {
    transform: scaleX(1);
}

.srv-feature-card-icon {
    width: 44px;
    height: 44px;
    background: var(--accent-glow);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    margin-bottom: 16px;
    transition: var(--tr);
}

.srv-feature-card:hover .srv-feature-card-icon {
    background: var(--accent);
    color: var(--primary);
}

.srv-feature-card-icon svg {
    width: 22px;
    height: 22px;
}

.srv-feature-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.srv-feature-card p {
    font-size: 13.5px;
    color: var(--text-light);
    line-height: 1.65;
}

/* ============ MATERIALS TABLE ============ */
.srv-materials {
    width: 100%;
    border-collapse: collapse;
    border-radius: var(--r);
    overflow: hidden;
    box-shadow: var(--shadow);
    font-size: 14.5px;
}

.srv-materials thead tr {
    background: var(--primary);
    color: #fff;
}

.srv-materials thead th {
    padding: 14px 20px;
    text-align: left;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .75);
}

.srv-materials thead th:first-child {
    color: var(--accent);
}

.srv-materials tbody tr {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    transition: var(--tr);
}

.srv-materials tbody tr:nth-child(even) {
    background: var(--bg-alt);
}

.srv-materials tbody tr:last-child {
    border-bottom: none;
}

.srv-materials tbody tr:hover {
    background: var(--accent-glow2);
}

.srv-materials td {
    padding: 13px 20px;
    color: var(--text);
    vertical-align: middle;
}

.srv-materials td:first-child {
    font-weight: 600;
    color: var(--primary);
}

.srv-materials-wrap {
    border-radius: var(--r);
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* ============ PROCESS TIMELINE ============ */
.srv-process {
    position: relative;
    padding-left: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* ============ PROCESS STEP ============ */
.srv-process-step {
    display: flex;
    gap: 28px;
    position: relative;
    padding-bottom: 40px;
}

.srv-process-step:last-child {
    padding-bottom: 0;
}

.srv-process-step-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

.srv-process-step-num {
    width: 48px;
    height: 48px;
    background: var(--accent);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    font-weight: 900;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    box-shadow: 0 0 0 6px var(--accent-glow);
    transition: var(--tr);
}

.srv-process-step:hover .srv-process-step-num {
    box-shadow: 0 0 0 8px var(--accent-glow), 0 6px 20px rgba(232, 168, 56, .35);
    transform: scale(1.08);
}

.srv-process-step-line {
    flex: 1;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent), var(--border));
    margin-top: 6px;
    min-height: 32px;
}

.srv-process-step:last-child .srv-process-step-line {
    display: none;
}

.srv-process-step-body {
    flex: 1;
    padding-top: 10px;
}

.srv-process-step-body h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.srv-process-step-body p {
    font-size: 14.5px;
    color: var(--text-light);
    line-height: 1.7;
}

/* ============ SERVICE GALLERY ============ */
.srv-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.srv-gallery-item {
    position: relative;
    border-radius: var(--r);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4 / 3;
    background: var(--primary-mid);
    transition: var(--tr);
}

.srv-gallery-item:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

.srv-gallery-item.featured {
    grid-column: span 2;
    aspect-ratio: 2 / 1;
}

.srv-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.srv-gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(12, 12, 29, .85) 0%, transparent 55%);
    opacity: 0;
    transition: var(--tr);
    display: flex;
    align-items: center;
    justify-content: center;
}

.srv-gallery-item:hover .srv-gallery-item-overlay {
    opacity: 1;
}

.srv-gallery-zoom {
    width: 48px;
    height: 48px;
    background: rgba(232, 168, 56, .9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 22px;
    font-weight: 700;
    transition: var(--tr);
    transform: scale(.8);
}

.srv-gallery-item:hover .srv-gallery-zoom {
    transform: scale(1);
}

.srv-gallery-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-mid), var(--primary));
    color: rgba(255, 255, 255, .1);
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 3px;
}

/* ============ FAQ ACCORDION ============ */
.srv-faq {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 800px;
    margin: 0 auto;
}

/* ============ FAQ ITEM ============ */
.srv-faq-item {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--r);
    overflow: hidden;
    transition: border-color var(--tr), box-shadow var(--tr);
}

.srv-faq-item.active {
    border-color: rgba(212, 149, 46, .4);
    box-shadow: 0 4px 20px var(--accent-glow);
}

/* ============ FAQ QUESTION ============ */
.srv-faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    user-select: none;
    transition: color var(--tr), background var(--tr);
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    font-family: inherit;
}

.srv-faq-question:hover {
    color: var(--accent);
    background: var(--accent-glow2);
}

.srv-faq-item.active .srv-faq-question {
    color: var(--accent);
}

.srv-faq-question-text {
    flex: 1;
}

.srv-faq-icon {
    width: 28px;
    height: 28px;
    background: var(--bg-alt);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--text-light);
    font-size: 18px;
    font-weight: 400;
    line-height: 1;
    transition: transform var(--tr), background var(--tr), color var(--tr);
}

/* The + rotates 45deg to become an x when active */
.srv-faq-item.active .srv-faq-icon {
    transform: rotate(45deg);
    background: var(--accent);
    color: var(--primary);
}

/* ============ FAQ ANSWER ============ */
.srv-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s cubic-bezier(.4, 0, .2, 1), padding .35s ease;
    padding: 0 22px;
}

.srv-faq-item.active .srv-faq-answer {
    max-height: 600px;
    padding: 0 22px 20px;
}

.srv-faq-answer p {
    font-size: 14.5px;
    color: var(--text-light);
    line-height: 1.75;
    padding-top: 4px;
    border-top: 1px solid var(--border);
    padding-top: 16px;
}

/* ============ RELATED SERVICES ============ */
.srv-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* ============ RELATED CARD ============ */
.srv-related-card {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--r);
    padding: 28px 24px;
    text-decoration: none;
    color: var(--text);
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: var(--tr);
    position: relative;
    overflow: hidden;
}

.srv-related-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent);
    transform: scaleX(0);
    transition: var(--tr);
    transform-origin: left;
}

.srv-related-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(212, 149, 46, .3);
}

.srv-related-card:hover::after {
    transform: scaleX(1);
}

.srv-related-card-icon {
    width: 44px;
    height: 44px;
    background: var(--accent-glow);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    transition: var(--tr);
}

.srv-related-card:hover .srv-related-card-icon {
    background: var(--accent);
    color: var(--primary);
}

.srv-related-card-icon svg {
    width: 22px;
    height: 22px;
}

.srv-related-card h3 {
    font-size: 15.5px;
    font-weight: 700;
    color: var(--text);
    flex: 1;
}

.srv-related-card-link {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    margin-top: auto;
    transition: gap var(--tr);
}

.srv-related-card:hover .srv-related-card-link {
    gap: 10px;
}

.srv-related-card-link svg {
    width: 16px;
    height: 16px;
}

/* ============ SERVICE CTA ============ */
.srv-cta {
    background: var(--primary);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.srv-cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(232, 168, 56, .1), transparent 65%);
    transform: translate(-50%, -50%);
    border-radius: 50%;
    pointer-events: none;
}

.srv-cta-inner {
    text-align: center;
    max-width: 620px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.srv-cta-inner h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(28px, 4.5vw, 46px);
    color: #fff;
    line-height: 1.15;
    margin-bottom: 14px;
}

.srv-cta-inner h2 span {
    color: var(--accent);
    font-style: italic;
}

.srv-cta-inner p {
    color: rgba(255, 255, 255, .55);
    font-size: 16.5px;
    line-height: 1.75;
    margin-bottom: 32px;
}

.srv-cta-buttons {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============ REVEAL ANIMATION (mirrors main site) ============ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .6s ease, transform .6s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity .6s ease, transform .6s ease;
}

.reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity .6s ease, transform .6s ease;
}

.reveal-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

/* ============ RESPONSIVE — 768px ============ */
@media (max-width: 768px) {
    /* Hero */
    .srv-hero {
        padding: 100px 0 56px;
    }

    .srv-hero-title {
        font-size: clamp(28px, 7vw, 40px);
    }

    .srv-hero-subtitle {
        font-size: 15px;
    }

    /* Section spacing */
    .srv-section,
    .srv-section-alt {
        padding: 60px 0;
    }

    /* Description */
    .srv-description {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .srv-description-image {
        order: -1;
    }

    .srv-desc-badge {
        bottom: auto;
        top: -16px;
        left: 50%;
        transform: translateX(-50%);
        white-space: nowrap;
    }

    /* Features */
    .srv-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Gallery */
    .srv-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .srv-gallery-item.featured {
        grid-column: span 2;
    }

    /* Related */
    .srv-related-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin: 0 auto;
    }

    /* FAQ */
    .srv-faq {
        max-width: 100%;
    }

    /* Process */
    .srv-process-step {
        gap: 20px;
    }

    .srv-process-step-num {
        width: 40px;
        height: 40px;
        font-size: 15px;
    }

    /* Materials table scroll */
    .srv-materials-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .srv-materials {
        min-width: 480px;
    }
}

/* ============ RESPONSIVE — 480px ============ */
@media (max-width: 480px) {
    /* Hero */
    .srv-hero {
        padding: 90px 0 48px;
    }

    .srv-hero-icon {
        width: 60px;
        height: 60px;
    }

    .srv-hero-icon svg {
        width: 28px;
        height: 28px;
    }

    .srv-hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    /* Section spacing */
    .srv-section,
    .srv-section-alt {
        padding: 48px 0;
    }

    /* Features */
    .srv-features-grid {
        grid-template-columns: 1fr;
    }

    /* Gallery */
    .srv-gallery-grid {
        grid-template-columns: 1fr;
    }

    .srv-gallery-item.featured {
        grid-column: span 1;
        aspect-ratio: 4 / 3;
    }

    /* Related */
    .srv-related-grid {
        max-width: 100%;
    }

    /* CTA */
    .srv-cta {
        padding: 56px 0;
    }

    .srv-cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    /* Process */
    .srv-process-step {
        gap: 16px;
    }

    /* FAQ */
    .srv-faq-question {
        font-size: 14px;
        padding: 15px 16px;
    }

    .srv-faq-answer {
        padding: 0 16px;
    }

    .srv-faq-item.active .srv-faq-answer {
        padding: 0 16px 16px;
    }

    /* Badge */
    .srv-badge {
        font-size: 10.5px;
        letter-spacing: 2px;
        padding: 6px 14px;
    }

    /* Section title */
    .srv-section-title {
        font-size: clamp(22px, 6vw, 32px);
    }
}
