/* Services Page Specific Styles */

/* Hero Section (Apple Style - Background Image) */
.services-hero {
    position: relative;
    height: 85vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('assets/services_hero_realistic.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    text-align: center;
    padding: 0;
    color: white;
    overflow: hidden;
}

/* Gradient Overlay for Contrast */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.6) 60%, rgba(0, 0, 0, 0.8) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 5;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-eyebrow {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-laser);
    /* Gold stands out well on dark */
    margin-bottom: 2rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.services-hero h1 {
    font-size: clamp(3rem, 7vw, 5.5rem);
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 2rem;
    color: white;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.text-gradient {
    /* Subtle gradient suitable for dark backgrounds */
    background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    /* Fallback for legibility if gradient fails to contrast */
    text-shadow: none;
}

.services-hero p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.5rem;
    line-height: 1.5;
    font-weight: 500;
    max-width: 750px;
    margin: 0 auto;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
    .services-hero {
        height: auto;
        padding: 8rem 0;
    }

    .services-hero h1 {
        font-size: 2.8rem;
    }

    .services-hero p {
        font-size: 1.1rem;
    }
}

/* Service Detail Sections */
.service-detail-section {
    padding: 6rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.service-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

/* Alternate order for even sections */
.service-detail-section:nth-child(even) .service-row {
    direction: rtl;
    /* simple trick to swap columns, but better to use grid areas or order */
}

/* Reset text direction for content inside flipped rows */
.service-detail-section:nth-child(even) .service-row>* {
    direction: ltr;
}

.service-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--color-woodsmoke);
    position: relative;
    display: inline-block;
}

.service-content h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--color-laser);
    border-radius: 2px;
}

.service-content .description {
    margin-top: 2rem;
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 3rem;
}

.service-list-items {
    list-style: none;
    padding: 0;
    display: grid;
    gap: 2rem;
}

.service-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.service-item-icon {
    width: 40px;
    height: 40px;
    background-color: var(--color-soft-blue);
    color: var(--color-accent-blue);
    border-radius: 50%;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.service-item-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--color-woodsmoke);
}

.service-item-content p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
}

/* Visuals */
.service-visual {
    position: relative;
    height: 500px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.service-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.service-visual:hover img {
    transform: scale(1.05);
}

/* Responsive */
@media (max-width: 992px) {
    .service-row {
        grid-template-columns: 1fr;
        gap: 3rem;
        direction: ltr !important;
        /* Force normal order on mobile */
    }

    .service-detail-section:nth-child(even) .service-row {
        direction: ltr;
    }

    .service-visual {
        height: 350px;
        order: -1;
        /* Image first on mobile */
    }

    .services-hero h1 {
        font-size: clamp(2rem, 6vw, 2.5rem);
    }

    .services-hero {
        padding: 6rem 0 4rem;
    }

    .service-detail-section {
        padding: 4rem 0;
    }
}

/* Quilt Layout - Content Aware */
.quilt-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1250px;
    margin: 0 auto;
    position: relative;
    padding-bottom: 0;
    /* Removed bottom padding */
    margin-top: 2rem;
    /* Ensure space for the top floating icon */
}

.quilt-card-left {
    background-color: var(--color-laser);
    /* Brand Gold */
    border-radius: 32px;
    padding: clamp(3rem, 5vw, 4.5rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    color: var(--color-woodsmoke);
    box-shadow: 0 20px 40px rgba(200, 181, 104, 0.2);
}

/* Texture Pattern */
.quilt-card-left::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 10% 10%, rgba(255, 255, 255, 0.2) 1px, transparent 1px),
        radial-gradient(circle at 90% 90%, rgba(255, 255, 255, 0.2) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.6;
    pointer-events: none;
}

.quilt-header-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    position: relative;
    z-index: 2;
}

.quilt-headline {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
    letter-spacing: -0.02em;
}

.quilt-description {
    font-size: 1.15rem;
    font-weight: 500;
    opacity: 0.9;
    margin-bottom: 2.5rem;
    max-width: 90%;
    position: relative;
    z-index: 2;
    line-height: 1.5;
}

/* Styled List for Quilt Layout */
.quilt-service-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
}

.quilt-service-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.15);
    /* Glassy background */
    backdrop-filter: blur(5px);
    padding: 1rem 1.25rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.2s ease, background 0.2s ease;
}

.quilt-service-item:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateX(5px);
}

.quilt-item-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: white;
    color: var(--color-woodsmoke);
    border-radius: 50%;
    display: grid;
    place-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.quilt-item-icon i {
    width: 16px;
    height: 16px;
}

.quilt-item-content h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--color-woodsmoke);
}

.quilt-item-content p {
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.4;
    opacity: 0.85;
    color: var(--color-woodsmoke);
}

/* Pill Button */
.btn-quilt {
    background-color: var(--color-woodsmoke);
    /* Dark button on Gold */
    color: white;
    padding: 1rem 2rem;
    border-radius: 100px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    align-self: flex-start;
    position: relative;
    z-index: 2;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.btn-quilt:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    background-color: black;
    color: white;
}

/* Right Card */
.quilt-card-right {
    position: relative;
    border-radius: 32px;
    overflow: hidden;
    height: 100%;
    min-height: 600px;
    /* Match left height */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.quilt-card-right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.quilt-card-right:hover img {
    transform: scale(1.05);
}

/* Connector */
/* Connector - Moved to Top & Big */
.quilt-connector {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    display: grid;
    place-items: center;
    z-index: 20;
    color: var(--color-laser);
    border: 8px solid var(--bg-primary);
}

.quilt-connector i {
    width: 48px;
    height: 48px;
}

/* Responsive */
@media (max-width: 992px) {
    .quilt-container {
        grid-template-columns: 1fr;
        padding-bottom: 0;
        gap: 2rem;
    }

    .quilt-card-left {
        /* Even smaller padding specific for mobile overrides if needed */
        padding: 2.5rem 2rem;
        min-height: auto;
    }

    .quilt-card-right {
        min-height: 350px;
        order: -1;
        /* Image on top usually looks better on mobile, but can swap if needed */
    }

    .quilt-connector {
        display: none;
    }
}

/* Reverse Layout for Quilt (Image Left, Content Right) */
.quilt-container.reverse .quilt-card-left {
    order: 2;
}

.quilt-container.reverse .quilt-card-right {
    order: 1;
}

/* Dark Theme for Quilt Card */
.quilt-card-dark {
    background-color: var(--color-chambray);
    /* Strong Blue/Grey */
    color: white;
}

.quilt-card-dark::before {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
}

.quilt-card-dark .quilt-headline,
.quilt-card-dark .quilt-description,
.quilt-card-dark .quilt-item-content h3,
.quilt-card-dark .quilt-item-content p {
    color: white;
}

.quilt-card-dark .quilt-service-item {
    background: rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.05);
}

.quilt-card-dark .quilt-service-item:hover {
    background: rgba(0, 0, 0, 0.3);
}

.quilt-card-dark .quilt-item-icon {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-laser);
    /* Gold icons on dark */
}

/* Adjust connector for dark theme content */
.quilt-container.reverse .quilt-connector {
    color: var(--color-chambray);
}