/* ================================================
   SERVICE PAGES STYLES — service-pages.css
   Shared by construction.html, plumbing.html, water-storage.html
   Aligned with World-Class Home Page Design System
   ================================================ */

/* ── Hero ── */
.sp-hero {
    height: 80vh;
    min-height: 480px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-end;
    position: relative;
    margin-top: 100px;
    overflow: hidden;
}

.sp-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.4) 60%, rgba(0,0,0,0.15) 100%);
}

.sp-hero-glow {
    position: absolute;
    bottom: 20%;
    left: 10%;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(245, 166, 35, 0.25) 0%, rgba(245, 166, 35, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    filter: blur(40px);
    animation: heroPulse 6s ease-in-out infinite alternate;
}

.sp-hero-content {
    position: relative;
    z-index: 1;
    color: #fff;
    padding-bottom: 60px;
    padding-top: 20px;
}

.sp-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] .sp-breadcrumb {
    background: rgba(245, 166, 35, 0.12);
    border-color: rgba(245, 166, 35, 0.3);
    color: #F5A623;
}

.sp-breadcrumb a {
    color: #FFFFFF;
    text-decoration: none;
    transition: color 0.2s;
}

.sp-breadcrumb a:hover {
    color: #F5A623;
}

.sp-hero-content h1 {
    font-size: 56px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 14px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    animation: rise 0.8s ease-out;
}

.sp-hero-content p {
    font-size: 20px;
    color: rgba(255,255,255,0.92);
    margin-bottom: 28px;
    max-width: 560px;
    line-height: 1.45;
}

.sp-hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #F5A623;
    color: #fff;
    padding: 14px 32px;
    font-weight: bold;
    font-size: 15px;
    letter-spacing: 1px;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 6px 20px rgba(245, 166, 35, 0.3);
}

.sp-hero-btn:hover {
    background: #e69500;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(245, 166, 35, 0.45);
}

@media (max-width: 768px) {
    .sp-hero {
        height: 70vh;
        align-items: center;
        text-align: center;
        margin-top: 70px;
    }

    .sp-hero-content {
        padding-bottom: 30px;
    }

    .sp-hero-content h1 {
        font-size: 36px;
    }

    .sp-hero-content p {
        font-size: 16px;
        margin: 0 auto 24px;
    }
}

@media (max-width: 480px) {
    .sp-hero-content h1 {
        font-size: 28px;
    }
}

/* ── JoJo Banner (water storage page) ── */
.sp-jojo-banner {
    background: #F5A623;
    padding: 16px 0;
    box-shadow: var(--shadow-sm);
}

.sp-jojo-inner {
    display: flex;
    align-items: center;
    gap: 16px;
}

.sp-jojo-inner img {
    width: 54px;
    height: 54px;
    object-fit: contain;
    flex-shrink: 0;
}

.sp-jojo-inner div {
    display: flex;
    flex-direction: column;
}

.sp-jojo-inner strong {
    font-size: 16px;
    color: #1A1D20;
    font-weight: 800;
}

.sp-jojo-inner span {
    font-size: 14px;
    color: #1A1D20;
    opacity: 0.9;
}

@media (max-width: 480px) {
    .sp-jojo-inner {
        flex-direction: column;
        text-align: center;
    }
}

/* ── Intro Section ── */
.sp-intro {
    padding: 80px 0;
    background: var(--bg-primary);
}

.sp-intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.sp-intro-text h2 {
    font-size: 34px;
    font-weight: 800;
    margin-bottom: 18px;
    color: var(--text-primary);
    line-height: 1.25;
}

.sp-intro-text h2 span {
    color: var(--accent-color);
}

.sp-intro-text p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
}

.sp-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.sp-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.sp-badge:hover {
    transform: translateY(-2px);
    border-color: rgba(245, 166, 35, 0.4);
    box-shadow: 0 6px 16px rgba(245, 166, 35, 0.15);
}

.sp-badge-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sp-badge-icon svg {
    width: 16px;
    height: 16px;
    stroke: var(--accent-color);
}

.sp-badge-img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.sp-intro-img {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.sp-intro-img img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
    border-radius: 12px;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.sp-intro-img:hover img {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .sp-intro-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .sp-intro-text h2 {
        font-size: 26px;
    }

    .sp-intro-img img {
        height: 280px;
    }

    .sp-badges {
        gap: 8px;
    }
}

/* ── Services Grid Section ── */
.sp-services {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.sp-services .container > h2 {
    font-size: 36px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 10px;
    color: var(--text-primary);
    position: relative;
}

.sp-services .container > h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
    margin: 12px auto 0;
    box-shadow: 0 0 12px rgba(245, 166, 35, 0.5);
}

.sp-section-sub {
    text-align: center;
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 50px;
}

.sp-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.sp-service-item {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 30px 24px;
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sp-service-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-6px);
    border-color: rgba(245, 166, 35, 0.35);
}

.sp-service-icon-wrap {
    width: 54px;
    height: 54px;
    background: var(--accent-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(245, 166, 35, 0.15);
    transition: transform 0.3s ease;
}

.sp-service-item:hover .sp-service-icon-wrap {
    transform: scale(1.08);
}

.sp-service-icon-wrap svg {
    width: 26px;
    height: 26px;
    stroke: var(--accent-color);
    flex-shrink: 0;
}

.sp-service-item h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.sp-service-item p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 768px) {
    .sp-services .container > h2 {
        font-size: 28px;
    }

    .sp-services-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .sp-service-item {
        padding: 20px 16px;
    }
}

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

/* ── Featured Projects Section ── */
.sp-projects {
    padding: 80px 0;
    background: var(--bg-primary);
}

.sp-projects .container > h2 {
    font-size: 36px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 10px;
    color: var(--text-primary);
    position: relative;
}

.sp-projects .container > h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
    margin: 12px auto 0;
    box-shadow: 0 0 12px rgba(245, 166, 35, 0.5);
}

.sp-projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.sp-project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

.sp-project-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-6px);
    border-color: rgba(245, 166, 35, 0.35);
}

.sp-project-card img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
    cursor: pointer;
}

.sp-project-card:hover img {
    transform: scale(1.06);
}

.sp-project-card p {
    padding: 14px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
}

.sp-view-projects-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.sp-view-projects-btn:hover {
    background: var(--accent-color);
    color: #FFFFFF;
    box-shadow: 0 6px 20px rgba(245, 166, 35, 0.35);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .sp-projects .container > h2 {
        font-size: 28px;
    }

    .sp-projects-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
}

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

/* ── CTA Section ── */
.sp-cta {
    padding: 95px 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    text-align: center;
}

.sp-cta-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.68);
}

.sp-cta-content {
    position: relative;
    z-index: 1;
    color: #fff;
}

.sp-cta-content h2 {
    font-size: 42px;
    font-weight: 900;
    margin-bottom: 16px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.sp-cta-content p {
    font-size: 18px;
    color: rgba(255,255,255,0.92);
    max-width: 560px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

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

.sp-cta-btn-primary {
    display: inline-block;
    background: #F5A623;
    color: #fff;
    padding: 15px 36px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 15px;
    letter-spacing: 0.8px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 6px 20px rgba(245, 166, 35, 0.35);
}

.sp-cta-btn-primary:hover {
    background: #e69500;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(245, 166, 35, 0.45);
}

.sp-cta-btn-secondary {
    display: inline-block;
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.8);
    padding: 13px 32px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.sp-cta-btn-secondary:hover {
    background: rgba(255,255,255,0.15);
    border-color: #fff;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .sp-cta-content h2 {
        font-size: 28px;
    }

    .sp-cta-content p {
        font-size: 15px;
    }

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

    .sp-cta-btn-primary,
    .sp-cta-btn-secondary {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
}

/* ================================================
   TABLET & IPAD RESPONSIVE MEDIA QUERIES (768px - 1024px)
   ================================================ */
@media screen and (min-width: 768px) and (max-width: 1024px) {
    .sp-hero-content h1 {
        font-size: 44px;
    }

    .sp-intro-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .sp-intro-img img {
        height: 340px;
    }

    .sp-services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .sp-projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* Dark mode button contrast */
[data-theme="dark"] button:not(.theme-toggle-btn):not(.whatsapp-toggle),
[data-theme="dark"] .sp-hero-btn,
[data-theme="dark"] .sp-cta-btn-primary {
    color: #1A1D20;
}

[data-theme="dark"] .sp-view-projects-btn {
    color: var(--accent-color);
    border-color: var(--accent-color);
}

[data-theme="dark"] .sp-view-projects-btn:hover {
    background: var(--accent-color);
    color: #1A1D20 !important;
}

[data-theme="dark"] .sp-cta-btn-secondary {
    color: #FFFFFF;
    border-color: rgba(255, 255, 255, 0.8);
}

[data-theme="dark"] .sp-cta-btn-secondary:hover {
    background: #FFFFFF;
    color: #1A1D20 !important;
}

/* ================================================
   LOCATION PAGES EXTENSIONS
   ================================================ */
.sp-faq-section {
    padding: 70px 0;
    background: var(--bg-primary);
}

.sp-faq-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 860px;
    margin: 40px auto 0;
}

.sp-faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 22px 26px;
    transition: box-shadow 0.3s, border-color 0.3s;
}

.sp-faq-item:hover {
    border-color: var(--accent-color);
    box-shadow: var(--shadow-sm);
}

.sp-faq-item h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sp-faq-item h3::before {
    content: "Q.";
    color: var(--accent-color);
    font-weight: 900;
}

.sp-faq-item p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.65;
    margin: 0;
}

.sp-locations-grid-section {
    padding: 70px 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.sp-locations-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
    max-width: 1040px;
    margin: 30px auto 0;
}

.sp-location-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 12px 22px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
}

.sp-location-tag::before {
    content: "📍";
    font-size: 14px;
    transition: transform 0.3s ease;
}

.sp-location-tag:hover {
    background: var(--accent-color);
    color: #ffffff !important;
    border-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(245, 166, 35, 0.35);
}

.sp-location-tag:hover::before {
    transform: scale(1.2) rotate(-10deg);
}

.sp-location-tag.active {
    background: var(--accent-color);
    color: #ffffff !important;
    border-color: var(--accent-color);
    box-shadow: 0 4px 14px rgba(245, 166, 35, 0.4);
    font-weight: 700;
}

[data-theme="dark"] .sp-location-tag {
    background: #22262B;
    border-color: rgba(255, 255, 255, 0.1);
    color: #E8ECEF;
}

[data-theme="dark"] .sp-location-tag:hover,
[data-theme="dark"] .sp-location-tag.active {
    background: #F5A623;
    color: #1A1D20 !important;
    border-color: #F5A623;
}


.sp-suburb-highlight-card {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent-color);
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 35px;
}

.sp-suburb-highlight-card h3 {
    font-size: 20px;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-weight: 800;
}

.sp-suburb-highlight-card p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}
