/* ============================================================
   SERVICE PAGE STYLES — Unique from Homepage
   Los Concrete Contractors — Concrete Earth Theme
   ============================================================ */

/* --- Variables --- */
:root {
    --sp-primary: #B07328;
    --sp-primary-dark: #8E5B1C;
    --sp-primary-light: rgba(176, 115, 40, 0.08);
    --sp-accent: #1C2434;
    --sp-text: #2C3038;
    --sp-text-light: #5F6770;
    --sp-bg: #ffffff;
    --sp-bg-alt: #F7F4F0;
    --sp-bg-warm: #FAF7F3;
    --sp-border: #DDD6CC;
    --sp-green: #3A6B5E;
    --sp-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --sp-shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --sp-shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.10);
    --sp-radius: 10px;
    --sp-radius-lg: 16px;
    --sp-container: 1140px;
    --sp-font-heading: 'Outfit', sans-serif;
    --sp-font-body: 'Plus Jakarta Sans', sans-serif;
    --sp-font-accent: 'Roboto Slab', serif;
}

/* --- Service Page Body Override --- */
.service-page {
    background: var(--sp-bg);
    color: var(--sp-text);
    font-family: var(--sp-font-body);
    font-size: 16px;
    line-height: 1.7;
}

.sp-container {
    max-width: var(--sp-container);
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================================
   SERVICE HERO
   ============================================================ */
.sp-hero {
    background: linear-gradient(135deg, #1C2434 0%, #131a28 60%, #0b1118 100%);
    padding: 130px 0 60px;
    position: relative;
    overflow: hidden;
}

.sp-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0L60 30L30 60L0 30Z' fill='none' stroke='rgba(255,255,255,0.02)' stroke-width='1'/%3E%3C/svg%3E");
    pointer-events: none;
}

.sp-hero::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to bottom, transparent, var(--sp-bg));
    z-index: 1;
}

.sp-hero .sp-container {
    position: relative;
    z-index: 2;
}

/* Breadcrumbs */
.sp-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    font-size: 14px;
    font-weight: 500;
}

.sp-breadcrumbs a {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    transition: color 0.2s;
}

.sp-breadcrumbs a:hover {
    color: #fff;
}

.sp-breadcrumbs .sep {
    color: rgba(255, 255, 255, 0.25);
    font-size: 11px;
}

.sp-breadcrumbs .current {
    color: var(--sp-primary);
    font-weight: 600;
}

.sp-hero h1 {
    font-family: var(--sp-font-heading);
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    margin: 0 0 18px;
    max-width: 720px;
}

.sp-hero h1 span {
    color: var(--sp-primary);
}

.sp-hero-desc {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.65);
    max-width: 600px;
    margin: 0 0 28px;
    line-height: 1.7;
}

.sp-hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.sp-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--sp-font-heading);
    font-weight: 600;
    font-size: 15px;
    padding: 13px 28px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    letter-spacing: 0.02em;
}

.sp-btn-primary {
    background: var(--sp-primary);
    color: #fff;
    box-shadow: 0 4px 14px rgba(176, 115, 40, 0.25);
}

.sp-btn-primary:hover {
    background: var(--sp-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(176, 115, 40, 0.35);
}

.sp-btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.25);
}

.sp-btn-outline:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.45);
}

.sp-btn-outline-dark {
    background: transparent;
    color: var(--sp-primary);
    border: 2px solid var(--sp-primary);
}

.sp-btn-outline-dark:hover {
    background: var(--sp-primary);
    color: #fff;
}

.sp-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* ============================================================
   SECTIONS
   ============================================================ */
.sp-section {
    padding: 80px 0;
}

.sp-section.sp-alt {
    background: var(--sp-bg-alt);
}

.sp-section.sp-warm {
    background: var(--sp-bg-warm);
}

.sp-section.sp-dark {
    background: var(--sp-accent);
    color: #fff;
}

.sp-section-header {
    margin-bottom: 48px;
    max-width: 700px;
}

.sp-section-header.sp-center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.sp-section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--sp-font-heading);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--sp-primary);
    margin-bottom: 12px;
    padding: 5px 14px;
    background: var(--sp-primary-light);
    border-radius: 50px;
    border: 1px solid rgba(176, 115, 40, 0.12);
}

.sp-section-title {
    font-family: var(--sp-font-heading);
    font-size: clamp(1.6rem, 3.5vw, 2.3rem);
    font-weight: 800;
    color: var(--sp-accent);
    line-height: 1.2;
    margin-bottom: 14px;
    letter-spacing: -0.01em;
}

.sp-dark .sp-section-title {
    color: #fff;
}

.sp-section-subtitle {
    font-size: 1rem;
    color: var(--sp-text-light);
    line-height: 1.75;
    max-width: 640px;
}

.sp-dark .sp-section-subtitle {
    color: rgba(255, 255, 255, 0.6);
}

/* ============================================================
   CARDS GRID
   ============================================================ */
.sp-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.sp-card {
    background: var(--sp-bg);
    border: 1px solid var(--sp-border);
    border-radius: var(--sp-radius-lg);
    padding: 32px 26px;
    transition: all 0.3s ease;
    position: relative;
}

.sp-card:hover {
    border-color: rgba(176, 115, 40, 0.25);
    box-shadow: var(--sp-shadow-md);
    transform: translateY(-4px);
}

.sp-dark .sp-card {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
}

.sp-dark .sp-card:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(176, 115, 40, 0.25);
}

.sp-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.sp-card-icon {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--sp-primary-light);
    border-radius: 10px;
}

.sp-card-icon svg {
    width: 22px;
    height: 22px;
    fill: var(--sp-primary);
}

.sp-dark .sp-card-icon {
    background: rgba(176, 115, 40, 0.12);
}

.sp-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sp-card-num {
    font-family: var(--sp-font-heading);
    font-weight: 800;
    font-size: 1.4rem;
    color: rgba(176, 115, 40, 0.18);
}

.sp-card-badge {
    font-family: var(--sp-font-heading);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--sp-primary);
    background: var(--sp-primary-light);
    padding: 3px 10px;
    border-radius: 50px;
}

.sp-card-title {
    font-family: var(--sp-font-heading);
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--sp-accent);
    margin-bottom: 10px;
    line-height: 1.3;
}

.sp-dark .sp-card-title {
    color: #fff;
}

.sp-card-desc {
    font-size: 0.9rem;
    color: var(--sp-text-light);
    line-height: 1.7;
}

.sp-dark .sp-card-desc {
    color: rgba(255, 255, 255, 0.55);
}

/* ============================================================
   TWO-COLUMN CONTENT
   ============================================================ */
.sp-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: start;
}

.sp-two-col.sp-reverse {
    direction: rtl;
}

.sp-two-col.sp-reverse > * {
    direction: ltr;
}

.sp-content-block h2 {
    font-family: var(--sp-font-heading);
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    font-weight: 800;
    color: var(--sp-accent);
    margin-bottom: 16px;
    line-height: 1.25;
}

.sp-content-block h3 {
    font-family: var(--sp-font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--sp-accent);
    margin-bottom: 8px;
    margin-top: 22px;
}

.sp-content-block p {
    font-size: 0.95rem;
    color: var(--sp-text-light);
    line-height: 1.75;
}

.sp-content-block ul {
    margin: 14px 0;
}

.sp-content-block ul li {
    position: relative;
    padding: 5px 0 5px 22px;
    font-size: 0.92rem;
    color: var(--sp-text);
    line-height: 1.7;
}

.sp-content-block ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 13px;
    width: 8px;
    height: 8px;
    background: var(--sp-primary);
    border-radius: 50%;
}

/* Image placeholder for service pages */
.sp-content-img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 12px;
}

.sp-img-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, #EDE8E2 0%, #F7F4F0 100%);
    border: 2px dashed var(--sp-border);
    border-radius: var(--sp-radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #8B949E;
    font-size: 0.85rem;
    font-style: italic;
    padding: 24px;
    text-align: center;
    gap: 10px;
}

/* Keep the single visual immediately after the hero; suppress repeated placeholders. */
.sp-img-placeholder {
    display: none;
}

.sp-hero + .sp-section .sp-img-placeholder {
    display: flex;
}

/* Do not leave an empty column where a repeated placeholder was hidden. */
.sp-two-col:has(.sp-img-placeholder) {
    grid-template-columns: 1fr;
}

.sp-two-col:has(.sp-img-placeholder) > div:last-child {
    display: none;
}

.sp-hero + .sp-section .sp-two-col:has(.sp-img-placeholder) {
    grid-template-columns: 1fr 1fr;
}

.sp-hero + .sp-section .sp-two-col:has(.sp-img-placeholder) > div:last-child {
    display: block;
}

.sp-img-placeholder svg {
    width: 40px;
    height: 40px;
    fill: #8B949E;
    opacity: 0.4;
}

/* ============================================================
   CHECKLIST / PROCESS STEPS
   ============================================================ */
.sp-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.sp-step {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--sp-radius-lg);
    padding: 28px 22px;
    transition: all 0.3s;
    text-align: center;
}

.sp-step:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(176, 115, 40, 0.2);
    transform: translateY(-3px);
}

.sp-step-num {
    font-family: var(--sp-font-heading);
    font-size: 2.2rem;
    font-weight: 900;
    color: rgba(176, 115, 40, 0.2);
    line-height: 1;
    margin-bottom: 14px;
}

.sp-step h3 {
    font-family: var(--sp-font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.sp-step p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.65;
}

/* ============================================================
   FAQ
   ============================================================ */
.sp-faq-list {
    max-width: 780px;
    margin: 0 auto;
}

.sp-faq-item {
    border: 1px solid var(--sp-border);
    border-radius: var(--sp-radius);
    margin-bottom: 12px;
    overflow: hidden;
    transition: border-color 0.2s;
}

.sp-faq-item.active {
    border-color: var(--sp-primary);
}

.sp-faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--sp-font-heading);
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--sp-accent);
    text-align: left;
    transition: color 0.2s;
    gap: 14px;
}

.sp-faq-question:hover {
    color: var(--sp-primary);
}

.sp-faq-question svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    flex-shrink: 0;
    transition: transform 0.3s;
}

.sp-faq-item.active .sp-faq-question svg {
    transform: rotate(180deg);
}

.sp-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.sp-faq-answer-inner {
    padding: 0 22px 18px;
    font-size: 0.9rem;
    color: var(--sp-text-light);
    line-height: 1.75;
}

/* ============================================================
   RELATED SERVICES
   ============================================================ */
.sp-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.sp-related-card {
    display: block;
    text-decoration: none;
    background: var(--sp-bg);
    border: 1px solid var(--sp-border);
    border-radius: var(--sp-radius);
    padding: 28px 24px;
    transition: all 0.3s;
}

.sp-related-card:hover {
    border-color: var(--sp-primary);
    box-shadow: var(--sp-shadow-md);
    transform: translateY(-3px);
}

.sp-related-card h3 {
    font-family: var(--sp-font-heading);
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--sp-accent);
    margin-bottom: 8px;
    transition: color 0.2s;
}

.sp-related-card:hover h3 {
    color: var(--sp-primary);
}

.sp-related-card p {
    font-size: 0.85rem;
    color: var(--sp-text-light);
    line-height: 1.65;
    margin-bottom: 14px;
}

.sp-related-link {
    font-family: var(--sp-font-heading);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--sp-primary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.sp-related-link svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ============================================================
   SERVICE CTA
   ============================================================ */
.sp-cta {
    padding: 70px 0;
    background: linear-gradient(135deg, #1C2434 0%, #0f1620 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.sp-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(176, 115, 40, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.sp-cta .sp-container {
    position: relative;
    z-index: 2;
}

.sp-cta h2 {
    font-family: var(--sp-font-heading);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 14px;
}

.sp-cta p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    max-width: 560px;
    margin: 0 auto 28px;
    line-height: 1.75;
}

.sp-cta-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .sp-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sp-steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .sp-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .sp-hero {
        padding: 100px 0 50px;
    }

    .sp-hero h1 {
        font-size: clamp(1.6rem, 6vw, 2.2rem);
    }

    .sp-hero-actions {
        flex-direction: column;
    }

    .sp-hero-actions .sp-btn {
        width: 100%;
        justify-content: center;
    }

    .sp-section {
        padding: 60px 0;
    }

    .sp-cards-grid {
        grid-template-columns: 1fr;
    }

    .sp-two-col {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .sp-two-col.sp-reverse {
        direction: ltr;
    }

    .sp-steps {
        grid-template-columns: 1fr 1fr;
    }

    .sp-related-grid {
        grid-template-columns: 1fr;
    }

    .sp-cta-actions {
        flex-direction: column;
        align-items: center;
    }

    .sp-cta-actions .sp-btn {
        width: 100%;
        justify-content: center;
        max-width: 320px;
    }
}

@media (max-width: 480px) {
    .sp-steps {
        grid-template-columns: 1fr;
    }
}
