/* ═══════════════════════════════════════════════════════════════
   Service Pages — Roof Repair Bradenton FL
   Uses design tokens from styles.css
   ═══════════════════════════════════════════════════════════════ */

/* ─── ADDITIONAL TOKENS ─── */
:root {
    --accent-soft: rgba(14, 165, 233, 0.08);
    --shadow-xs: 0 1px 3px rgba(0,0,0,0.04);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
    --shadow-xl: 0 16px 48px rgba(0,0,0,0.16);
    --card: #ffffff;
    --card-border: rgba(0,0,0,0.06);
}

/* ─── SERVICE HERO ─── */
.svc-hero {
    position: relative;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--primary-dark) 50%, var(--primary) 100%);
    padding: 120px 0 80px;
    overflow: hidden;
    color: #fff;
}

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

.svc-hero-glow-1 {
    width: 500px;
    height: 500px;
    background: var(--accent);
    top: -150px;
    right: -100px;
}

.svc-hero-glow-2 {
    width: 400px;
    height: 400px;
    background: var(--cta);
    bottom: -100px;
    left: -100px;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

.svc-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.svc-hero-text {
    max-width: 600px;
}

/* Breadcrumb */
.svc-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
    opacity: 0.85;
}

.svc-breadcrumb a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.2s;
}

.svc-breadcrumb a:hover {
    color: #fff;
}

.svc-breadcrumb svg {
    width: 14px;
    height: 14px;
    stroke: rgba(255,255,255,0.4);
}

/* Hero Badge */
.svc-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 9999px;
    padding: 0.4rem 1rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
    backdrop-filter: blur(8px);
}

.pulse {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    display: inline-block;
    animation: pulse-glow 2s ease-in-out infinite;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    50% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
}

.svc-hero h1 {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    letter-spacing: -0.025em;
}

.svc-hero h1 mark {
    background: none;
    color: var(--accent-light);
}

.svc-hero-desc {
    font-size: clamp(0.95rem, 1.5vw, 1.08rem);
    color: rgba(255,255,255,0.78);
    line-height: 1.75;
    margin-bottom: 2rem;
    max-width: 540px;
}

/* Hero CTA */
.svc-hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Hero Visual */
.svc-hero-visual {
    position: relative;
}

.svc-hero-img-wrap {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(255,255,255,0.1);
}

.svc-hero-img-wrap .img-placeholder {
    min-height: 380px;
    border-radius: 0;
}

/* Floating Badges on Hero Image */
.float-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    border-radius: var(--radius);
    padding: 0.65rem 0.85rem;
    box-shadow: var(--shadow-md);
    animation: float-drift 6s ease-in-out infinite;
    z-index: 3;
    border: 1px solid rgba(0,0,0,0.06);
}

.float-badge-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    flex-shrink: 0;
}

.float-badge-icon.bg-primary { background: var(--primary); }
.float-badge-icon.bg-success { background: var(--success); }
.float-badge-icon.bg-cta { background: var(--cta); }

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

.float-badge-text span {
    font-size: 0.68rem;
    font-weight: 500;
    color: var(--text-muted);
}

.fb-1 { top: 12%; left: -24px; animation-delay: 0s; }
.fb-2 { bottom: 28%; right: -28px; animation-delay: 2s; }
.fb-3 { bottom: 8%; left: 8%; animation-delay: 4s; }

@keyframes float-drift {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* ─── SERVICE SECTIONS ─── */
.svc-section {
    padding: 80px 0;
}

.svc-section-alt {
    padding: 80px 0;
    background: var(--bg-alt);
}

/* Section Header */
.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: var(--accent-soft);
    border: 1px solid rgba(14, 165, 233, 0.15);
    border-radius: 9999px;
    color: var(--accent-dark);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

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

.svc-section-title {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

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

.svc-section-desc {
    color: var(--text-muted);
    font-size: clamp(0.9rem, 1.5vw, 1.05rem);
    line-height: 1.75;
    max-width: 680px;
    margin: 0 auto;
}

/* ─── WARNING SIGNS GRID ─── */
.sign-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

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

.sign-card {
    display: flex;
    gap: 1.25rem;
    padding: 1.5rem;
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    transition: all 0.35s;
    box-shadow: var(--shadow-xs);
    position: relative;
    overflow: hidden;
}

.sign-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--sign-accent, var(--accent));
    border-radius: var(--radius) var(--radius) 0 0;
}

.sign-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: color-mix(in srgb, var(--accent) 25%, transparent);
}

.sign-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(14, 165, 233, 0.1);
    color: var(--accent);
    border-radius: 50%;
    flex-shrink: 0;
}

.sign-icon svg {
    width: 20px;
    height: 20px;
}

.sign-icon.icon-warning {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.sign-icon.icon-alert {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.sign-card h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.35rem;
    font-family: var(--font-body);
}

.sign-card p {
    color: var(--text-muted);
    font-size: 0.84rem;
    line-height: 1.65;
}

/* ─── CHECKLIST STRIP ─── */
.check-strip {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 768px) {
    .check-strip {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.check-card {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-xs);
    transition: all 0.3s;
}

.check-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.check-card-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border-radius: 50%;
    flex-shrink: 0;
    font-weight: 800;
    font-size: 0.85rem;
}

.check-card h4 {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.3rem;
    font-family: var(--font-body);
}

.check-card p {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ─── PROBLEM GRID ─── */
.problem-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

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

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

.problem-card {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 1.75rem;
    box-shadow: var(--shadow-xs);
    transition: all 0.35s;
}

.problem-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.problem-card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-soft);
    color: var(--accent);
    border-radius: var(--radius-sm);
    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.88rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 0.85rem;
}

.symptoms {
    list-style: none;
    padding: 0;
}

.symptoms li {
    font-size: 0.82rem;
    color: var(--text-muted);
    padding: 0.3rem 0;
    padding-left: 1.2rem;
    position: relative;
}

.symptoms li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.65rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

/* ─── IMAGE + TEXT ─── */
.svc-image-text {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.svc-content-img {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.svc-content-img .img-placeholder {
    min-height: 340px;
    border-radius: 0;
}

.svc-content-text h2 {
    font-size: clamp(1.4rem, 2.5vw, 1.85rem);
    margin-bottom: 1.25rem;
    color: var(--primary);
    line-height: 1.25;
}

.svc-content-text p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.75;
    margin-bottom: 1rem;
}

.svc-content-text p:last-child {
    margin-bottom: 0;
}

.homepage-link {
    color: var(--accent-dark);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(14, 165, 233, 0.3);
    text-underline-offset: 3px;
    transition: all 0.25s;
}

.homepage-link:hover {
    color: var(--accent);
    text-decoration-color: var(--accent);
}

/* ─── DIAGNOSTIC TIMELINE ─── */
.diag-timeline {
    max-width: 720px;
    margin: 0 auto;
    position: relative;
    padding-left: 3rem;
}

.diag-timeline::before {
    content: '';
    position: absolute;
    left: 17px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent) 0%, var(--accent-dark) 100%);
    border-radius: 2px;
}

.diag-step {
    position: relative;
    padding-bottom: 2.5rem;
}

.diag-step:last-child {
    padding-bottom: 0;
}

.diag-dot {
    position: absolute;
    left: -3rem;
    top: 0;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.15);
    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: 1fr;
    gap: 1.5rem;
}

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

.repair-option {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    box-shadow: var(--shadow-xs);
    transition: all 0.35s;
    position: relative;
}

.repair-option:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.repair-option-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.3rem 0.75rem;
    border-radius: 9999px;
    margin-bottom: 1rem;
}

.tag-common {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.tag-moderate {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

.tag-major {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.repair-option h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.65rem;
}

.repair-option p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ─── FAQ ACCORDION ─── */
.svc-faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.svc-faq-item {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s;
}

.svc-faq-item:hover {
    border-color: rgba(14, 165, 233, 0.2);
}

.svc-faq-item.active {
    border-color: rgba(14, 165, 233, 0.3);
    box-shadow: var(--shadow-sm);
}

.svc-faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.15rem 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    text-align: left;
    line-height: 1.45;
    transition: color 0.25s;
}

.svc-faq-question:hover {
    color: var(--accent-dark);
}

.svc-faq-chevron {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.svc-faq-chevron svg {
    width: 18px;
    height: 18px;
    stroke: var(--text-muted);
}

.svc-faq-item.active .svc-faq-chevron {
    transform: rotate(180deg);
}

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

.svc-faq-item.active .svc-faq-answer {
    max-height: 500px;
}

.svc-faq-answer-inner {
    padding: 0 1.5rem 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: 0.75rem;
    justify-content: center;
}

.internal-link-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: var(--shadow-xs);
}

.internal-link-pill svg {
    width: 18px;
    height: 18px;
    stroke: var(--accent);
}

.internal-link-pill:hover {
    border-color: var(--accent);
    color: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

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

.cta-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--accent);
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.12;
    top: -80px;
    right: -60px;
    pointer-events: none;
}

.svc-cta-block h2 {
    font-size: clamp(1.3rem, 2.5vw, 1.75rem);
    color: #fff;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.svc-cta-block p {
    color: rgba(255,255,255,0.78);
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto 2rem;
}

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

/* ─── IMAGE PLACEHOLDER (matches homepage) ─── */
.img-placeholder {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 50%, #94a3b8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 500;
    padding: 1rem;
    min-height: 200px;
    border-radius: var(--radius);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
    .svc-hero-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .svc-hero-visual {
        max-width: 560px;
        margin: 0 auto;
    }

    .svc-image-text {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

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

    .svc-section, .svc-section-alt {
        padding: 60px 0;
    }

    .svc-section-header {
        margin-bottom: 2rem;
    }

    .sign-card {
        padding: 1.25rem;
    }

    .problem-card {
        padding: 1.25rem;
    }

    .diag-timeline {
        padding-left: 2.5rem;
    }

    .diag-dot {
        left: -2.5rem;
        width: 30px;
        height: 30px;
        font-size: 0.75rem;
    }

    .diag-timeline::before {
        left: 13px;
    }

    .svc-cta-block {
        padding: 2.5rem 1.5rem;
    }

    .float-badge {
        display: none;
    }
}

@media (max-width: 560px) {
    .sign-card {
        padding: 1rem;
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .check-card {
        padding: 1rem;
    }

    .svc-hero-cta {
        flex-direction: column;
    }

    .svc-hero-cta .btn {
        width: 100%;
        justify-content: center;
    }

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

    .svc-cta-buttons .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ─── SERVICE MOBILE OVERFLOW FIXES ─── */
@media (max-width: 960px) {
    .float-badge {
        display: none !important;
    }
    .svc-hero-visual {
        max-width: 100%;
    }
    .svc-image-text {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 640px) {
    .svc-hero {
        padding: 90px 0 50px;
    }
    .svc-section, .svc-section-alt {
        padding: 50px 0;
    }
    .sign-grid, .problem-grid, .check-strip, .options-grid {
        grid-template-columns: 1fr !important;
    }
    .diag-timeline {
        padding-left: 2.25rem;
    }
    .diag-dot {
        left: -2.25rem;
        width: 30px;
        height: 30px;
        font-size: 0.78rem;
    }
    .diag-timeline::before {
        left: 14px;
    }
    .svc-cta-block {
        padding: 2.25rem 1.25rem;
    }
}
