/* ═══════════════════════════════════════════════════════════════
   Pages — Shared Styles for About, Contact, Legal & Sitemap
   Roof Repair Coral Springs FL · 2026
   ═══════════════════════════════════════════════════════════════ */

/* ── Page Hero (Compact) ── */
.page-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(155deg, var(--primary) 0%, var(--primary-dark) 40%, #0a1e3d 100%);
    padding: 8.5rem 0 3.5rem;
}

@media (max-width: 767px) {
    .page-hero {
        padding: 7rem 0 2.5rem;
    }
}

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

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

.page-hero-glow-1 {
    width: 350px;
    height: 350px;
    top: -15%;
    left: 15%;
    background: radial-gradient(circle, rgba(212, 135, 63, .12), transparent 70%);
    animation: pageGlowPulse 8s ease-in-out infinite;
}

.page-hero-glow-2 {
    width: 300px;
    height: 300px;
    bottom: -10%;
    right: 10%;
    background: radial-gradient(circle, rgba(212, 135, 63, .08), transparent 70%);
    animation: pageGlowPulse 10s ease-in-out 3s infinite;
}

@keyframes pageGlowPulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.08); }
}

.page-hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 780px;
    margin: 0 auto;
}

.page-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, .45);
}

.page-breadcrumb a {
    color: rgba(255, 255, 255, .6);
    transition: color 0.2s;
}

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

.page-breadcrumb svg {
    width: 14px;
    height: 14px;
    opacity: 0.5;
}

.page-hero h1 {
    color: #fff;
    font-size: clamp(1.75rem, 4.5vw, 2.8rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.025em;
    margin-bottom: 1rem;
}

.page-hero h1 .accent {
    color: var(--accent-light);
}

.page-hero-desc {
    color: rgba(255, 255, 255, .72);
    font-size: clamp(0.9rem, 1.6vw, 1.04rem);
    line-height: 1.75;
    max-width: 600px;
    margin: 0 auto;
}

/* ── About Page ── */

/* Who We Are */
.about-intro-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 768px) {
    .about-intro-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.about-intro-img {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(0, 0, 0, .1);
}

.about-intro-img .img-placeholder {
    min-height: 380px;
    border-radius: 0;
}

.about-intro-text h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
}

.about-intro-text p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.78;
    margin-bottom: 1rem;
}

.about-intro-text p:last-child {
    margin-bottom: 0;
}

/* Our Story — Timeline */
.story-timeline {
    position: relative;
    max-width: 750px;
    margin: 0 auto;
    padding-left: 3.5rem;
}

.story-timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--accent), var(--primary), rgba(212, 135, 63, .15));
    border-radius: 3px;
}

.story-step {
    position: relative;
    margin-bottom: 2.5rem;
}

.story-step:last-child {
    margin-bottom: 0;
}

.story-dot {
    position: absolute;
    left: -3.5rem;
    top: 0.15rem;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    border-radius: 50%;
    box-shadow: 0 4px 16px rgba(212, 135, 63, .25);
}

.story-dot svg {
    width: 20px;
    height: 20px;
}

.story-step h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.4rem;
    font-family: var(--font-body);
}

.story-step p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.75;
}

/* Mission & Goal Cards */
.mission-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .mission-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.mission-card {
    background: var(--card, #fff);
    border: 1px solid rgba(0, 0, 0, .06);
    border-radius: 1.25rem;
    padding: 2.5rem 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .04);
    transition: all 0.35s;
}

.mission-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(12, 35, 64, .08);
}

.mission-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.mission-card-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-glow);
    border: 1px solid rgba(212, 135, 63, .15);
    border-radius: 0.875rem;
    color: var(--accent-dark);
    margin-bottom: 1.25rem;
}

.mission-card-icon svg {
    width: 26px;
    height: 26px;
}

.mission-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.mission-card p {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.75;
}

.mission-card ul {
    list-style: none;
    padding: 0;
    margin: 0.75rem 0 0;
}

.mission-card ul li {
    position: relative;
    padding-left: 1.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.75;
    margin-bottom: 0.35rem;
}

.mission-card ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
}

/* Values Grid */
.values-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

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

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

.value-card {
    display: flex;
    gap: 1.25rem;
    padding: 1.5rem;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .06);
    border-radius: var(--radius);
    transition: all 0.35s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .03);
}

.value-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(12, 35, 64, .07);
    border-color: rgba(212, 135, 63, .25);
}

.value-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-glow);
    border: 1px solid rgba(212, 135, 63, .12);
    border-radius: 0.75rem;
    color: var(--accent-dark);
    flex-shrink: 0;
}

.value-icon svg {
    width: 22px;
    height: 22px;
}

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

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

/* Service Area Grid */
.area-highlight-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: center;
}

@media (min-width: 768px) {
    .area-highlight-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.area-highlight-map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .12);
    border: 1px solid var(--border);
}

.area-highlight-map iframe {
    display: block;
    width: 100%;
    height: 340px;
    border: 0;
}

.area-highlight-text h2 {
    font-size: clamp(1.4rem, 2.8vw, 1.85rem);
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 1rem;
}

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

.area-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.area-tag {
    display: inline-block;
    padding: 0.35rem 0.9rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 100px;
    transition: all 0.25s;
}

.area-tag:hover {
    border-color: var(--accent);
    color: var(--accent-dark);
    background: var(--accent-glow);
}

/* ── Contact Page ── */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

@media (min-width: 768px) {
    .contact-grid {
        grid-template-columns: 1.15fr 0.85fr;
    }
}

/* Contact Form */
.contact-form-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .04);
}

.contact-form-card h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.contact-form-card > p {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 1.75rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 640px) {
    .form-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: 0.02em;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem 1rem;
    font-size: 0.92rem;
    font-family: var(--font-body);
    color: var(--text);
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(212, 135, 63, .1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7d6e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 2.5rem;
}

.form-submit {
    grid-column: 1 / -1;
    margin-top: 0.5rem;
}

/* Contact Info Sidebar */
.contact-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-info-card {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.25rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .03);
}

.contact-info-card:hover {
    border-color: rgba(212, 135, 63, .25);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, .06);
}

.contact-info-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-glow);
    border: 1px solid rgba(212, 135, 63, .12);
    border-radius: 0.625rem;
    color: var(--accent-dark);
    flex-shrink: 0;
}

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

.contact-info-text h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.2rem;
    font-family: var(--font-body);
}

.contact-info-text p,
.contact-info-text a {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.55;
}

.contact-info-text a:hover {
    color: var(--accent-dark);
}

.contact-map-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .08);
    border: 1px solid var(--border);
}

.contact-map-card iframe {
    display: block;
    width: 100%;
    height: 220px;
    border: 0;
}

/* What to Expect */
.expect-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

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

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

.expect-card {
    text-align: center;
    padding: 2rem 1.5rem;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .06);
    border-radius: var(--radius);
    transition: all 0.35s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .03);
}

.expect-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(12, 35, 64, .07);
    border-color: rgba(212, 135, 63, .2);
}

.expect-num {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    font-weight: 800;
    font-size: 1rem;
    border-radius: 50%;
    margin: 0 auto 1rem;
    box-shadow: 0 4px 12px rgba(212, 135, 63, .2);
}

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

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

/* ── Legal Pages (Privacy, Terms, Disclaimer) ── */
.legal-content {
    max-width: 820px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 3rem 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .04);
}

@media (max-width: 767px) {
    .legal-content {
        padding: 2rem 1.25rem;
    }
}

.legal-updated {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    background: var(--bg-alt);
    padding: 0.4rem 0.9rem;
    border-radius: 100px;
    margin-bottom: 2rem;
}

.legal-content h2 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary);
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-light);
    letter-spacing: -0.02em;
}

.legal-content h2:first-of-type {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.legal-content h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.legal-content p {
    color: var(--text-muted);
    font-size: 0.93rem;
    line-height: 1.78;
    margin-bottom: 1rem;
}

.legal-content ul,
.legal-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
    list-style: disc;
}

.legal-content ol {
    list-style: decimal;
}

.legal-content li {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.75;
    margin-bottom: 0.35rem;
}

.legal-content a {
    color: var(--accent-dark);
    text-decoration: underline;
    text-decoration-color: rgba(212, 135, 63, .3);
    text-underline-offset: 3px;
    transition: all 0.2s;
}

.legal-content a:hover {
    color: var(--accent);
    text-decoration-color: var(--accent);
}

.legal-contact-box {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.legal-contact-box h3 {
    margin-top: 0;
    font-size: 1rem;
    color: var(--primary);
}

.legal-contact-box p {
    margin-bottom: 0.5rem;
}

.legal-contact-box p:last-child {
    margin-bottom: 0;
}

/* ── Sitemap Page ── */
.sitemap-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

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

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

.sitemap-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .04);
    transition: all 0.3s;
}

.sitemap-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(12, 35, 64, .06);
    border-color: rgba(212, 135, 63, .2);
}

.sitemap-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-light);
}

.sitemap-card-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-glow);
    border: 1px solid rgba(212, 135, 63, .12);
    border-radius: 0.625rem;
    color: var(--accent-dark);
    flex-shrink: 0;
}

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

.sitemap-card-header h2 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
    padding: 0;
    border: none;
}

.sitemap-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.sitemap-card ul li a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    padding: 0.4rem 0.5rem;
    border-radius: var(--radius-sm);
    transition: all 0.25s;
}

.sitemap-card ul li a:hover {
    color: var(--accent-dark);
    background: var(--accent-glow);
    transform: translateX(3px);
}

.sitemap-card ul li a svg {
    width: 14px;
    height: 14px;
    color: var(--accent);
    flex-shrink: 0;
}

/* ── Page CTA Section ── */
.page-cta {
    position: relative;
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    overflow: hidden;
}

.page-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

.page-cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.page-cta-content h2 {
    color: #fff;
    font-size: clamp(1.5rem, 3vw, 2.15rem);
    margin-bottom: 1rem;
}

.page-cta-content p {
    color: rgba(255, 255, 255, .78);
    font-size: 1.02rem;
    line-height: 1.7;
    margin-bottom: 1.75rem;
}

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

@media (max-width: 480px) {
    .page-cta-buttons {
        flex-direction: column;
    }

    .page-cta-buttons .btn {
        width: 100%;
    }
}
