/* ==========================================================================
   RoasTronix V2 - Services Page Styles
   ========================================================================== */

.services-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 60px;
}

/* Hero */
.services-page-hero {
    padding: 80px 0 60px;
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.95) 0%, rgba(160, 28, 46, 0.15) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.services-page-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(160, 28, 46, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

/* Hero with background image */
.services-page-hero--has-image {
    padding: 0;
    height: 400px;
    background: none;
}

.services-page-hero--has-image::before {
    display: none;
}

.services-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.services-page-hero--has-image .services-hero-content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(to top, rgba(10, 10, 10, 0.85) 0%, rgba(10, 10, 10, 0.6) 50%, rgba(10, 10, 10, 0.4) 100%);
    padding: 80px 60px 50px;
}

.services-page-hero .section-label {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(160, 28, 46, 0.1);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-gold);
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.services-page-hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.services-hero-desc {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Overview Grid */
.services-page-overview {
    padding: 80px 0;
}

.services-overview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.services-overview-card {
    background: var(--bg-dark-card);
    border: 1px solid var(--border-dark);
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.services-overview-card:hover {
    border-color: var(--primary-gold);
    transform: translateY(-5px);
}

.services-overview-icon {
    width: 60px;
    height: 60px;
    background: rgba(160, 28, 46, 0.15);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    font-size: 1.6rem;
}

.services-overview-card h3 {
    font-size: 1rem;
    margin-bottom: 10px;
}

.services-overview-card p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Detail Sections */
.services-page-detail {
    padding: 60px 0;
}

.services-detail-alt {
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.5) 0%, rgba(160, 28, 46, 0.05) 100%);
}

.services-detail-icon {
    display: none;
    font-size: 1.4rem;
    margin-bottom: 20px;
}

.services-page-detail h2 {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 700;
    margin-bottom: 18px;
    letter-spacing: -0.5px;
}

.services-page-detail p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 800px;
}

.services-detail-features {
    list-style: none;
    padding: 0;
    margin: 25px 0 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.services-detail-features li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding-left: 22px;
    position: relative;
}

.services-detail-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 7px;
    width: 8px;
    height: 8px;
    background: var(--primary-gold);
    border-radius: 50%;
}

.services-detail-cta {
    margin-top: 35px;
}

/* Two-column layout (text + image) */
.services-detail-grid--two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.services-detail-image {
    position: sticky;
    top: 100px;
}

.services-detail-image img {
    width: 100%;
    border-radius: 20px;
    object-fit: cover;
}

/* CTA */
.services-page-cta {
    padding: 80px 0;
    text-align: center;
}

.services-page-cta h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 15px;
}

.services-page-cta > .services-container > p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.services-cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 1024px) {
    .services-container { padding: 0 40px; }
    .services-overview-grid { grid-template-columns: repeat(2, 1fr); }
    .services-detail-features { grid-template-columns: 1fr; }
    .services-detail-grid--two-col { gap: 40px; }
}

@media (max-width: 768px) {
    .services-page-hero { padding: 60px 0 40px; }
    .services-page-hero--has-image { height: 300px; }
    .services-container { padding: 0 25px; }
    .services-overview-grid { grid-template-columns: 1fr; }
    .services-detail-grid--two-col { grid-template-columns: 1fr; }
    .services-detail-image { position: static; }
    .services-page-overview,
    .services-page-detail,
    .services-page-cta { padding: 50px 0; }
    .services-cta-buttons { flex-direction: column; }
    .services-cta-buttons .btn-primary,
    .services-cta-buttons .btn-secondary { width: 100%; text-align: center; }
}

/* Card Link */
.services-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary-gold);
    font-weight: 600;
    font-size: 0.85rem;
    margin-top: 12px;
    transition: gap 0.3s;
}

.services-overview-card:hover .services-card-link {
    gap: 12px;
}

/* Detail page description */
.services-detail-desc {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.services-detail-icon {
    width: 70px;
    height: 70px;
    background: rgba(160, 28, 46, 0.15);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 25px;
}
