/* ═══════════════════════════════════════════════════════════════════════
   SERVICE PAGE CSS — Roof Leak Repair Pasadena TX
   Matches homepage theme: --primary #0c2340, --cta #ea580c, --accent #0ea5e9
   ═══════════════════════════════════════════════════════════════════════ */

/* ── HERO ── */
.svc-hero {
    position: relative;
    overflow: hidden;
    background-color: #061324;
    background-image:
        radial-gradient(circle at 15% 5%, rgba(56, 189, 248, .15), transparent 32rem),
        radial-gradient(circle at 88% 88%, rgba(234, 88, 12, .13), transparent 25rem),
        linear-gradient(135deg, var(--primary), #061324 68%);
    padding: 8.5rem 0 4.5rem;
}

@media (max-width: 767px) {
    .svc-hero { padding: 7.5rem 0 3rem; }
}

.svc-hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: center;
    position: relative;
    z-index: 2;
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}

/* No two-column layout — image removed, text centered */

.svc-hero-text { position: relative; z-index: 10; }

.hero-bg-grid,
.svc-hero .hero-grid {
    position: absolute;
    inset: 0;
    opacity: 0.03;
    pointer-events: none;
    background-image: linear-gradient(#ffffff 1px, transparent 1px), linear-gradient(90deg, #ffffff 1px, transparent 1px);
    background-size: 50px 50px;
}

.svc-hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    z-index: 1;
}

.svc-hero-glow-1 {
    width: 450px; height: 450px;
    top: -15%; left: 5%;
    background: radial-gradient(circle, rgba(37,99,235,.18), transparent 70%);
    animation: glowPulse 8s ease-in-out infinite;
}

.svc-hero-glow-2 {
    width: 380px; height: 380px;
    bottom: -10%; right: 5%;
    background: radial-gradient(circle, rgba(249,115,22,.12), transparent 70%);
    animation: glowPulse 10s ease-in-out 3s infinite;
}

/* Breadcrumb */
.svc-breadcrumb {
    display: flex; align-items: center; gap: 0.5rem;
    margin-bottom: 1.25rem; font-size: 0.82rem;
    color: rgba(255,255,255,.5);
    justify-content: center;
}
.svc-breadcrumb a { color: rgba(255,255,255,.7); transition: color 0.2s; text-decoration: none; font-weight: 500; }
.svc-breadcrumb a:hover { color: #fff; text-decoration: underline; }
.svc-breadcrumb svg { width: 12px; height: 12px; opacity: 0.6; }

/* Badge */
.svc-hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 14px;
    background: rgba(37,99,235,.15);
    border: 1px solid rgba(37,99,235,.35);
    backdrop-filter: blur(10px);
    border-radius: 9999px;
    color: #93c5fd;
    font-size: 0.8rem; font-weight: 700;
    letter-spacing: 0.04em;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
}
.svc-hero-badge .pulse {
    width: 8px; height: 8px; border-radius: 50%;
    background: #22c55e; box-shadow: 0 0 10px #22c55e;
    animation: badgePulse 2s ease-in-out infinite;
}

/* Hero H1 */
.svc-hero h1 {
    color: #fff;
    font-family: var(--font-heading, 'Outfit', sans-serif);
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    font-weight: 800; line-height: 1.15;
    letter-spacing: -0.025em;
    margin-bottom: 1.25rem;
}
.svc-hero h1 mark {
    background: linear-gradient(135deg, #60a5fa 0%, #38bdf8 100%);
    -webkit-text-fill-color: transparent;
    background-clip: text; -webkit-background-clip: text;
    background-color: transparent;
}

.svc-hero-desc {
    color: #cbd5e1;
    font-size: 1.05rem;
    line-height: 1.7; margin-bottom: 1.75rem;
    max-width: 660px;
    margin-left: auto;
    margin-right: auto;
}

.svc-hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: center; }

@media (max-width: 767px) {
    .svc-hero-cta { flex-direction: column; align-items: stretch; }
    .svc-hero-cta .btn { justify-content: center; }
}

/* Hero 4-Stat Metric Bar */
.svc-hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 2rem;
    padding-top: 1.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

@media (min-width: 540px) {
    .svc-hero-stats {
        grid-template-columns: repeat(4, 1fr);
    }
}

.hero-stat-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 12px 14px;
    text-align: center;
}

.hero-stat-num {
    display: block;
    font-family: var(--font-heading, 'Outfit', sans-serif);
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--cta, #f97316);
    line-height: 1.1;
}

.hero-stat-lbl {
    display: block;
    font-size: 0.74rem;
    font-weight: 600;
    color: #94a3b8;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* Hero Visual — hidden for centered text-only hero */
.svc-hero-visual { display: none !important; }
.svc-hero-img-wrap {
    display: none;
}

/* Float Badges */
.float-badge {
    position: absolute;
    display: flex; align-items: center; gap: 0.625rem;
    padding: 0.5rem 0.875rem;
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(12px);
    border-radius: var(--radius, 12px);
    box-shadow: 0 4px 20px rgba(0,0,0,.15);
    font-size: 0.75rem; font-weight: 700;
    color: var(--text);
    z-index: 5;
    animation: floatBadge 4s ease-in-out infinite;
}
.fb-1 { top: 12%; left: -8%; animation-delay: 0s; }
.fb-2 { bottom: 20%; right: -6%; animation-delay: 1.5s; }
.fb-3 { bottom: 5%; left: 5%; animation-delay: 3s; }

@media (max-width: 1023px) {
    .fb-1 { left: 3%; top: 8%; }
    .fb-2 { right: 3%; }
    .fb-3 { left: 3%; }
}

.float-badge-icon {
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 8px; color: #fff; flex-shrink: 0;
}
.float-badge-icon.bg-primary { background: var(--primary); }
.float-badge-icon.bg-success { background: #10b981; }
.float-badge-icon.bg-cta { background: var(--cta); }

.float-badge-text { display: flex; flex-direction: column; line-height: 1.3; }
.float-badge-text span { font-size: 0.65rem; font-weight: 500; color: var(--text-muted); }


/* ── SECTION LAYOUTS ── */
.svc-section { padding: 5rem 0; }
.svc-section-alt { padding: 5rem 0; background: var(--bg-alt, #f8fafc); }
.svc-section-dark { padding: 5rem 0; background: linear-gradient(155deg, var(--primary) 0%, #081a30 100%); color: #fff; }

@media (max-width: 767px) {
    .svc-section, .svc-section-alt, .svc-section-dark { padding: 3.5rem 0; }
}

.svc-section-header { text-align: center; max-width: 720px; margin: 0 auto 3rem; }

.section-eyebrow {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 0.75rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--accent-dark, #0284c7);
    margin-bottom: 0.75rem;
}

.svc-section-title {
    font-family: var(--font-display, 'Outfit', sans-serif);
    font-size: clamp(1.5rem, 3.5vw, 2.25rem);
    font-weight: 800; line-height: 1.2;
    color: var(--primary);
    margin-bottom: 1rem;
}
.svc-section-dark .svc-section-title { color: #fff; }

.gradient-text {
    background: linear-gradient(135deg, var(--accent) 0%, #38BDF8 100%);
    -webkit-text-fill-color: transparent;
    background-clip: text; -webkit-background-clip: text;
}

.svc-section-desc {
    font-size: 1rem; line-height: 1.75;
    color: var(--text-muted, #64748b);
    max-width: 640px; margin: 0 auto;
}

/* Two related destinations should read as one centered choice, not leave an
   empty third card column on wide screens. */
.service-crosslinks-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    max-width: 50rem;
    margin-inline: auto;
}

@media (max-width: 767px) {
    .service-crosslinks-grid { grid-template-columns: 1fr !important; }
}


/* ── SIGNS GRID & 2-COLUMN GRID (2x2 Layout: 2 Cards per Row) ── */
.sign-grid,
.grid-2,
.grid.grid-2 {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 1.5rem !important;
}
@media (max-width: 767px) {
    .sign-grid,
    .grid-2,
    .grid.grid-2 {
        grid-template-columns: 1fr !important;
    }
}

/* ── 5-STEP PROCESS GRID (City Pages & Hubs) ── */
.process-grid {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 16px !important;
}
@media (max-width: 1023px) {
    .process-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
    .process-grid > .process-card:last-child:nth-child(odd) {
        grid-column: span 2;
    }
}
@media (max-width: 639px) {
    .process-grid {
        grid-template-columns: 1fr !important;
    }
    .process-grid > .process-card:last-child:nth-child(odd) {
        grid-column: auto;
    }
}
.sign-card {
    display: flex; gap: 1rem;
    padding: 1.5rem;
    background: #fff;
    border: 1px solid var(--card-border, #e2e8f0);
    border-radius: 14px;
    transition: all 0.25s ease;
}
.sign-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(12,35,64,.08);
    border-color: var(--accent);
}
.sign-icon {
    width: 42px; height: 42px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    border-radius: 10px;
    background: var(--accent-soft, rgba(14,165,233,.08));
    color: var(--accent-dark, #0284c7);
}
.sign-card h3 { font-size: 0.95rem; font-weight: 700; color: var(--primary); margin-bottom: 0.5rem; }
.sign-card p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.65; }


/* ── CHECK STRIP ── */
.check-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.25rem;
}
.check-card {
    display: flex; gap: 1rem; align-items: flex-start;
    padding: 1.25rem;
    background: #fff;
    border: 1px solid var(--card-border, #e2e8f0);
    border-radius: 12px;
}
.check-card-icon {
    width: 36px; height: 36px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: rgba(16,185,129,.1);
    color: #10b981;
    font-weight: 800; font-size: 0.85rem;
}
.check-card h4 { font-size: 0.9rem; font-weight: 700; color: var(--primary); margin-bottom: 0.35rem; }
.check-card p { font-size: 0.8rem; color: var(--text-muted); line-height: 1.6; }


/* ── PROBLEM GRID ── */
.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}
.problem-card {
    padding: 1.75rem;
    background: #fff;
    border: 1px solid var(--card-border, #e2e8f0);
    border-radius: 14px;
    transition: all 0.25s ease;
}
.problem-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(12,35,64,.08);
}
.problem-card-icon {
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 12px;
    background: var(--accent-soft, rgba(14,165,233,.08));
    color: var(--accent-dark, #0284c7);
    margin-bottom: 1rem;
}
.problem-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--primary); margin-bottom: 0.6rem; }
.problem-card p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 1rem; }
.symptoms { list-style: none; padding: 0; }
.symptoms li {
    display: flex; align-items: center; gap: 8px;
    font-size: 0.8rem; color: var(--text);
    padding: 5px 0;
}
.symptoms li::before {
    content: ''; width: 6px; height: 6px;
    border-radius: 50%; flex-shrink: 0;
    background: var(--cta);
}


/* ── IMAGE + TEXT ── */
.svc-image-text {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: center;
}
@media (min-width: 768px) {
    .svc-image-text { grid-template-columns: 0.45fr 0.55fr; }
}
.svc-content-img img {
    border-radius: var(--radius-lg, 16px);
    box-shadow: 0 12px 40px rgba(12,35,64,.1);
}
.svc-content-text h2 {
    font-size: clamp(1.35rem, 3vw, 1.85rem);
    font-weight: 800; color: var(--primary);
    margin-bottom: 1.25rem; line-height: 1.2;
}
.svc-content-text p {
    font-size: 0.95rem; color: var(--text-muted);
    line-height: 1.75; margin-bottom: 1rem;
}
.svc-content-text a.homepage-link {
    color: var(--accent-dark, #0284c7);
    font-weight: 600; text-decoration: underline;
    text-underline-offset: 3px;
}
.svc-content-text a.homepage-link:hover { color: var(--accent); }


/* ── DIAGNOSTIC TIMELINE ── */
.diag-timeline {
    max-width: 680px; margin: 0 auto;
    position: relative;
    padding-left: 2rem;
}
.diag-timeline::before {
    content: ''; position: absolute;
    left: 18px; top: 0; bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent), var(--cta));
    border-radius: 2px;
}
.diag-step {
    position: relative;
    padding: 0 0 2.5rem 2rem;
}
.diag-step:last-child { padding-bottom: 0; }
.diag-dot {
    position: absolute;
    left: -2rem; top: 0;
    width: 38px; height: 38px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-weight: 800; font-size: 0.85rem;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 0 4px var(--bg-alt, #f8fafc);
    z-index: 2;
}
.diag-step h3 { font-size: 1.05rem; font-weight: 700; color: var(--primary); margin-bottom: 0.5rem; }
.diag-step p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; }


/* ── REPAIR OPTIONS ── */
.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}
.repair-option {
    padding: 1.75rem;
    background: #fff;
    border: 1px solid var(--card-border, #e2e8f0);
    border-radius: 14px;
    transition: all 0.25s ease;
}
.repair-option:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(12,35,64,.08);
}
.repair-option-tag {
    display: inline-block;
    font-size: 0.7rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.06em;
    padding: 4px 10px; border-radius: 6px;
    margin-bottom: 0.75rem;
}
.tag-common { background: rgba(14,165,233,.1); color: var(--accent-dark, #0284c7); }
.tag-moderate { background: rgba(249,115,22,.1); color: var(--cta-dark, #c2410c); }
.tag-major { background: rgba(239,68,68,.08); color: #dc2626; }
.repair-option h3 { font-size: 1.05rem; font-weight: 700; color: var(--primary); margin-bottom: 0.6rem; }
.repair-option p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.7; }


/* ── FAQ ── */
.svc-faq-list { max-width: 760px; margin: 0 auto; }
.svc-faq-item {
    border: 1px solid var(--card-border, #e2e8f0);
    border-radius: 12px;
    margin-bottom: 0.75rem;
    overflow: hidden;
    transition: border-color 0.25s;
}
.svc-faq-item.active { border-color: var(--accent); }
.svc-faq-question {
    width: 100%;
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.125rem 1.25rem;
    background: none; border: none;
    font-family: inherit;
    font-size: 0.95rem; font-weight: 700;
    color: var(--primary);
    cursor: pointer;
    text-align: left;
    gap: 1rem;
    transition: color 0.2s;
}
.svc-faq-question:hover { color: var(--accent-dark); }
.svc-faq-chevron {
    flex-shrink: 0;
    width: 20px; height: 20px;
    color: var(--text-muted);
    transition: transform 0.3s cubic-bezier(0.16,1,0.3,1);
}
.svc-faq-chevron svg { width: 100%; height: 100%; }
.svc-faq-item.active .svc-faq-chevron { transform: rotate(180deg); color: var(--accent); }
.svc-faq-answer {
    max-height: 0; overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.16,1,0.3,1);
}
.svc-faq-item.active .svc-faq-answer { max-height: 400px; }
.svc-faq-answer-inner { padding: 0 1.25rem 1.25rem; }
.svc-faq-answer-inner p {
    font-size: 0.9rem; color: var(--text-muted);
    line-height: 1.75;
}


/* ── RELATED SERVICES ── */
.internal-links-bar {
    display: flex; flex-wrap: wrap;
    gap: 1rem; justify-content: center;
}
.internal-link-pill {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 0.75rem 1.25rem;
    background: #fff;
    border: 1px solid var(--card-border, #e2e8f0);
    border-radius: 12px;
    font-size: 0.875rem; font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    transition: all 0.25s ease;
}
.internal-link-pill svg { width: 18px; height: 18px; color: var(--accent); }
.internal-link-pill:hover {
    border-color: var(--accent);
    color: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(14,165,233,.1);
}


/* ── CTA BLOCK ── */
.svc-cta-block {
    position: relative;
    padding: 3.5rem 2.5rem;
    background: linear-gradient(155deg, var(--primary) 0%, #081a30 100%);
    border-radius: 20px;
    text-align: center;
    overflow: hidden;
}

/* Match every service and about-page final CTA to the site CTA standard. */
.svc-cta-block {
    isolation: isolate;
    width: 100vw;
    max-width: none;
    margin-right: calc(50% - 50vw) !important;
    margin-left: calc(50% - 50vw) !important;
    border-radius: 0 !important;
    background: linear-gradient(135deg, #0d2949 0%, #071a31 100%) !important;
}

.svc-cta-block::after {
    content: '';
    position: absolute;
    z-index: -1;
    top: -13rem;
    right: -8rem;
    width: 23rem;
    height: 23rem;
    border-radius: 50%;
    background: rgba(37, 99, 235, .09);
}

.svc-cta-block h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.7rem, 3vw, 2.25rem);
    font-weight: 800;
    letter-spacing: -.03em;
}

/* Place the full-width final CTA directly against the footer. */
.svc-section:has(.svc-cta-block),
.svc-section-alt:has(.svc-cta-block) {
    padding-bottom: 0;
}

.cta-glow {
    position: absolute;
    width: 300px; height: 300px;
    top: -30%; right: -10%;
    background: radial-gradient(circle, rgba(14,165,233,.2), transparent 70%);
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
}
.svc-cta-block h2 {
    color: #fff;
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 800; line-height: 1.25;
    margin-bottom: 1rem;
}
.svc-cta-block p {
    color: rgba(255,255,255,.7);
    font-size: 0.95rem; line-height: 1.7;
    max-width: 560px; margin: 0 auto 2rem;
}
.svc-cta-buttons { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

@media (max-width: 767px) {
    .svc-cta-block { padding: 2.5rem 1.5rem; }
    .svc-cta-buttons { flex-direction: column; align-items: stretch; }
    .svc-cta-buttons .btn { justify-content: center; }
}


/* ── CLIMATE SECTION ── */
.climate-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
    margin-top: 2rem;
}
.climate-stat {
    padding: 1.5rem;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 14px;
    text-align: center;
}
.climate-stat-val {
    display: block;
    font-size: 2rem; font-weight: 800;
    background: linear-gradient(135deg, #38BDF8, var(--accent));
    -webkit-text-fill-color: transparent;
    background-clip: text; -webkit-background-clip: text;
    margin-bottom: 0.25rem;
}
.climate-stat-label { font-size: 0.8rem; color: rgba(255,255,255,.6); font-weight: 500; }

.climate-list { list-style: none; padding: 0; margin-top: 2rem; }
.climate-list li {
    display: flex; gap: 12px; align-items: flex-start;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255,255,255,.06);
    font-size: 0.9rem; color: rgba(255,255,255,.75);
    line-height: 1.6;
}
.climate-list li:last-child { border-bottom: none; }
.climate-dot {
    width: 8px; height: 8px; flex-shrink: 0;
    border-radius: 50%;
    background: var(--cta);
    margin-top: 7px;
}


/* ── KEYFRAMES ── */
@keyframes glowPulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.08); }
}
@keyframes badgePulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}
@keyframes floatBadge {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* ── PRINT ── */
@media print {
    .svc-hero, .float-badge { display: none; }
}
