/* ========================================
   Services Page - Additional Styles
   Page-specific styling only - shared header/hero in pages-shared.css
   ======================================== */

/* Services page uses base .page-hero from pages-shared.css */

/* Overview Cards */
.overview-grid {
    display: grid;
    gap: var(--space-lg);
}

.overview-card {
    display: flex;
    flex-direction: column;
    background-color: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    text-align: left;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    border: 3px solid transparent;
    overflow: hidden;
    height: 100%;
}

.overview-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-slate);
}

.overview-card--green:hover {
    border-color: var(--color-green-dark);
}

/* Featured card styling for combined services */
.overview-card--featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .overview-card--featured {
        grid-template-columns: 1fr 1.2fr;
    }
    
    .overview-card--featured .overview-card__image-wrapper {
        aspect-ratio: 4/3;
    }
}

.overview-card--featured:hover {
    border-color: var(--color-green-dark);
}

.overview-card--featured .overview-card__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.overview-card--featured p {
    font-size: 1.05rem;
}

.overview-card__image-wrapper {
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
    position: relative;
}

.overview-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.overview-card:hover .overview-card__image {
    transform: scale(1.05);
}

.overview-card__content {
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.overview-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background-color: var(--color-grey-100);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
    color: var(--color-slate);
}

.overview-card__text {
    flex-grow: 1;
}

.overview-card h3 {
    margin-bottom: var(--space-sm);
    font-size: var(--text-lg);
}

.overview-card p {
    color: var(--color-grey-600);
    margin-bottom: var(--space-md);
    line-height: 1.5;
}

.overview-card__link {
    display: inline-block;
    font-weight: 600;
    color: var(--color-accent);
    margin-top: auto;
}

.overview-card--green .overview-card__icon {
    background-color: rgba(104, 211, 145, 0.15);
    color: var(--color-green-dark);
}

.overview-card h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-charcoal);
    margin-bottom: var(--space-sm);
}

.overview-card p {
    font-size: 1rem;
    color: var(--color-slate);
    margin-bottom: var(--space-md);
}

.overview-card__link {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-green-dark);
}

/* Services Category Labels */
.services-category-label {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-slate-light);
    margin-top: var(--space-2xl);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--color-grey-200);
}

/* Service Row - Alternating image/text layout */
.service-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-bottom: var(--space-xl);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    border: 3px solid transparent;
}

.service-row:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-green-dark);
}

.service-row__image {
    aspect-ratio: 16/10;
    overflow: hidden;
}

.service-row__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-row:hover .service-row__image img {
    transform: scale(1.05);
}

.service-row__content {
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.service-row__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background-color: rgba(104, 211, 145, 0.15);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
    color: var(--color-green-dark);
}

.service-row h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-charcoal);
    margin-bottom: var(--space-sm);
}

.service-row p {
    font-size: 1.05rem;
    color: var(--color-slate);
    line-height: 1.6;
    margin-bottom: var(--space-md);
}

.service-row__link {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-green-dark);
    margin-top: auto;
}

@media (min-width: 768px) {
    .service-row {
        grid-template-columns: 1fr 1fr;
        align-items: stretch;
    }
    
    .service-row__image {
        aspect-ratio: auto;
        min-height: 300px;
        position: relative;
    }
    
    .service-row__image img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .service-row__content {
        padding: var(--space-2xl);
    }
    
    .service-row h3 {
        font-size: 1.75rem;
    }
    
    /* Reverse layout - image on right */
    .service-row--reverse {
        direction: rtl;
    }
    
    .service-row--reverse > * {
        direction: ltr;
    }
}

/* 3-column grid override */
.overview-grid--3 {
    grid-template-columns: 1fr;
}

/* Single wide card grid */
.overview-grid--1 {
    grid-template-columns: 1fr;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.overview-card--wide {
    display: grid;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .overview-card--wide {
        grid-template-columns: 1.2fr 1fr;
    }
    
    .overview-card--wide .overview-card__image-wrapper {
        aspect-ratio: 4/3;
    }
    
    .overview-card--wide .overview-card__content {
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: var(--space-2xl);
    }
    
    .overview-card--wide h3 {
        font-size: 1.6rem;
    }
    
    .overview-card--wide p {
        font-size: 1.1rem;
    }
}

@media (min-width: 600px) {
    .overview-grid--3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 960px) {
    .overview-grid--3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Difference Section */
.difference-grid {
    display: grid;
    gap: var(--space-xl);
}

.difference-item {
    position: relative;
    padding-left: var(--space-3xl);
}

.difference-item__number {
    position: absolute;
    left: 0;
    top: 0;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-green-dark);
}

.difference-item h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-charcoal);
    margin-bottom: var(--space-sm);
}

.difference-item p {
    font-size: 0.95rem;
    color: var(--color-slate);
    line-height: 1.7;
}

/* Service Category Headers */
.service-category-section {
    background-color: var(--color-grey-100);
    padding: var(--space-3xl) 0;
}

.service-category-section--dark {
    background-color: var(--color-charcoal);
}

.category-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.category-label {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-green-dark);
    margin-bottom: var(--space-sm);
    padding: var(--space-xs) var(--space-md);
    background-color: rgba(104, 211, 145, 0.15);
    border-radius: var(--radius-md);
}

.category-label--light {
    background-color: rgba(104, 211, 145, 0.2);
    color: var(--color-green);
}

.category-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-charcoal);
    margin-bottom: var(--space-md);
}

.service-category-section--dark .category-title {
    color: var(--color-white);
}

.category-intro {
    font-size: 1.1rem;
    color: var(--color-slate);
    line-height: 1.7;
}

.service-category-section--dark .category-intro {
    color: var(--color-grey-300);
}

/* Service Detail Sections */
.service-detail {
    padding: var(--space-3xl) 0;
    border-bottom: 1px solid var(--color-grey-200);
}

.service-detail--alt {
    background-color: var(--color-grey-100);
}

.service-detail__wrapper {
    display: grid;
    gap: var(--space-2xl);
    align-items: start;
}

.service-detail__tag {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-white);
    background-color: var(--color-orange);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-md);
}

.service-detail__title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--color-charcoal);
    margin-bottom: var(--space-md);
    line-height: 1.2;
}

.service-detail__lead {
    font-size: 1.15rem;
    color: var(--color-charcoal);
    font-weight: 500;
    margin-bottom: var(--space-lg);
    line-height: 1.6;
}

.service-detail__content p {
    font-size: 1rem;
    color: var(--color-slate);
    line-height: 1.8;
    margin-bottom: var(--space-md);
}

.service-detail__content h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-charcoal);
    margin-top: var(--space-xl);
    margin-bottom: var(--space-md);
}

.service-detail__list {
    display: grid;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
}

.service-detail__list li {
    position: relative;
    padding-left: var(--space-xl);
    font-size: 0.95rem;
    color: var(--color-slate);
}

.service-detail__list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-green-dark);
    font-weight: 700;
}

.service-detail__cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-lg);
    margin-top: var(--space-xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--color-grey-300);
}

.service-detail__timeline {
    font-size: 0.9rem;
    color: var(--color-slate-light);
}

.service-detail__image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.service-detail__image img {
    width: 100%;
    height: auto;
    display: block;
}

.image-caption {
    padding: var(--space-md);
    background-color: var(--color-grey-100);
    font-size: 0.85rem;
    color: var(--color-slate);
    text-align: center;
    margin: 0;
}

/* Transformation Section */
.transformation__slider {
    max-width: 900px;
    margin: 0 auto;
}

.before-after-slider--large {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.before-after-slider--large img {
    width: 100%;
    height: auto;
    display: block;
}

/* CTA Section styles now in pages-shared.css */

/* ========================================
   Responsive - Tablet
   ======================================== */
@media (min-width: 768px) {
    /* Keep hero spacing consistent with shared rules */
    .page-hero {
        padding: calc(var(--header-height) + var(--space-2xl)) 0 var(--space-2xl);
    }
    
    .page-hero__title {
        font-size: 3rem;
    }
    
    .overview-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .difference-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .service-detail__wrapper {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-3xl);
    }
    
    .service-detail__wrapper--reverse {
        direction: rtl;
    }
    
    .service-detail__wrapper--reverse > * {
        direction: ltr;
    }
    
    .service-detail__title {
        font-size: 2rem;
    }
    
    .category-title {
        font-size: 2.5rem;
    }
}

/* ========================================
   Responsive - Desktop
   ======================================== */
@media (min-width: 1024px) {
    .page-hero__title {
        font-size: 3.5rem;
    }
    
    .difference-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .service-detail__list {
        grid-template-columns: repeat(2, 1fr);
    }
}
