/* ═══════════════════════════════════════════════════
   Pages — About, Contact, Legal, Sitemap
   Roofing La Mesa CA · Earth-Tone Palette
   ═══════════════════════════════════════════════════ */

/* ── Page Hero ── */
.pg-hero {
    position: relative;
    background: linear-gradient(160deg, var(--primary) 0%, var(--primary-dark) 55%, #0a1a10 100%);
    padding: 8.5rem 0 4rem;
    overflow: hidden;
}

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

.pg-hero::after {
    content: '';
    position: absolute;
    inset: 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%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
    pointer-events: none;
    z-index: 1;
}

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

.pg-hero-glow-1 {
    top: -15%;
    right: 10%;
    background: radial-gradient(circle, rgba(212, 160, 23, 0.12), transparent 70%);
}

.pg-hero-glow-2 {
    bottom: -10%;
    left: 5%;
    background: radial-gradient(circle, rgba(194, 69, 45, 0.08), transparent 70%);
}

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

/* Breadcrumb */
.pg-crumbs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    margin-bottom: 1.25rem;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.4);
}

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

.pg-crumbs a:hover {
    color: #fff;
}

.pg-crumbs svg {
    width: 12px;
    height: 12px;
    opacity: 0.4;
}

/* Hero Tag */
.pg-hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: rgba(212, 160, 23, 0.15);
    border: 1px solid rgba(212, 160, 23, 0.3);
    border-radius: 6px;
    color: var(--accent-light);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

.pg-hero-tag::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent);
}

/* Hero H1 */
.pg-hero h1 {
    color: #fff;
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4.5vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 1.25rem;
}

.pg-hero h1 em {
    font-style: normal;
    color: var(--accent-light);
}

.pg-hero-desc {
    color: rgba(255, 255, 255, 0.68);
    font-size: clamp(0.88rem, 1.6vw, 1.02rem);
    line-height: 1.8;
    max-width: 620px;
    margin: 0 auto;
}

/* ══════════════════════════════════════════════════
   ABOUT PAGE SECTIONS
   ══════════════════════════════════════════════════ */

/* ── Section Shared ── */
.pg-section {
    padding: 5rem 0;
}

.pg-section-alt {
    padding: 5rem 0;
    background: var(--bg-alt);
}

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

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

.pg-section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-dark);
    background: var(--accent-soft);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    margin-bottom: 14px;
}

.pg-section-tag svg {
    width: 16px;
    height: 16px;
}

.pg-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;
}

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

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

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

    .about-split.reverse {
        direction: rtl;
    }

    .about-split.reverse > * {
        direction: ltr;
    }
}

.about-split-img {
    width: 100%;
    min-height: 360px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    display: block;
    box-shadow: var(--shadow-lg);
}

@media (max-width: 767px) {
    .about-split-img {
        min-height: 240px;
    }
}

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

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

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

.about-highlight {
    background: var(--accent-soft);
    border-left: 4px solid var(--accent);
    padding: 1.25rem 1.5rem;
    border-radius: 0 var(--radius) var(--radius) 0;
    margin: 1.5rem 0;
}

.about-highlight p {
    color: var(--text) !important;
    font-weight: 500;
    margin: 0 !important;
}

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

.story-timeline::before {
    content: '';
    position: absolute;
    left: 18px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--accent), var(--primary), rgba(27, 67, 50, 0.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: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    font-weight: 800;
    font-size: 0.75rem;
    border-radius: 50%;
    box-shadow: 0 4px 16px rgba(27, 67, 50, 0.25);
}

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

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

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

.story-year {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent-dark);
    background: var(--accent-soft);
    padding: 2px 10px;
    border-radius: var(--radius-full);
    margin-bottom: 0.5rem;
    letter-spacing: 0.04em;
}

/* ── Mission / Vision / Goal Cards ── */
.mvg-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

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

.mvg-card {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 2rem 1.75rem;
    transition: all 0.35s;
    box-shadow: var(--shadow-xs);
    position: relative;
    overflow: hidden;
}

.mvg-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: 18px 18px 0 0;
}

.mvg-card-mission::before {
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
}

.mvg-card-vision::before {
    background: linear-gradient(90deg, var(--accent), var(--accent-dark));
}

.mvg-card-goal::before {
    background: linear-gradient(90deg, var(--cta), var(--cta-light));
}

.mvg-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.mvg-card-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    margin-bottom: 1.25rem;
}

.mvg-card-mission .mvg-card-icon {
    background: rgba(27, 67, 50, 0.1);
    color: var(--primary);
}

.mvg-card-vision .mvg-card-icon {
    background: var(--accent-soft);
    color: var(--accent-dark);
}

.mvg-card-goal .mvg-card-icon {
    background: var(--cta-soft);
    color: var(--cta);
}

.mvg-card-icon svg {
    width: 24px;
    height: 24px;
}

.mvg-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.75rem;
    font-family: var(--font-body);
}

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

/* ── Core 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: 1rem;
    align-items: flex-start;
    padding: 1.5rem;
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    transition: all 0.3s;
    box-shadow: var(--shadow-xs);
}

.value-card:hover {
    border-color: rgba(27, 67, 50, 0.2);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.value-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(27, 67, 50, 0.08);
    border-radius: 10px;
    flex-shrink: 0;
    color: var(--primary);
}

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

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

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

/* ── Why Choose Us — Stats Row ── */
.stats-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

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

.stat-card {
    text-align: center;
    padding: 2rem 1.25rem;
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    transition: all 0.3s;
    box-shadow: var(--shadow-xs);
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.stat-number {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-number span {
    color: var(--accent);
}

.stat-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ── About CTA Block ── */
.pg-cta-block {
    position: relative;
    text-align: center;
    padding: 3.5rem 2rem;
    background: linear-gradient(155deg, var(--primary) 0%, var(--primary-dark) 60%, #0a1a10 100%);
    border-radius: 1.5rem;
    overflow: hidden;
}

.pg-cta-block .cta-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(212, 160, 23, 0.15), transparent 70%);
    border-radius: 50%;
    top: -20%;
    right: -10%;
    filter: blur(60px);
    pointer-events: none;
}

.pg-cta-block h2 {
    position: relative;
    color: #fff;
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

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

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

/* ══════════════════════════════════════════════════
   CONTACT PAGE SECTIONS
   ══════════════════════════════════════════════════ */

/* ── Contact Info Cards ── */
.contact-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

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

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

.contact-card {
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    transition: all 0.35s;
    box-shadow: var(--shadow-xs);
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(27, 67, 50, 0.2);
}

.contact-card-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(27, 67, 50, 0.08);
    border-radius: var(--radius);
    margin: 0 auto 1.25rem;
    color: var(--primary);
}

.contact-card-icon svg {
    width: 24px;
    height: 24px;
}

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

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

.contact-card a {
    color: var(--primary-light);
    font-weight: 600;
    transition: color 0.2s;
}

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

/* ── Contact Form ── */
.contact-form-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: start;
}

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

.contact-form {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
}

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

.contact-form .form-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text);
    background: var(--bg);
    border: 1.5px solid var(--card-border);
    border-radius: var(--radius);
    transition: all 0.2s;
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(27, 67, 50, 0.1);
}

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

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

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

    .form-row .form-group {
        margin-bottom: 0;
    }
}

.form-submit {
    margin-top: 0.5rem;
}

.form-submit .btn {
    width: 100%;
}

/* ── Contact Map ── */
.contact-map-wrap iframe {
    border-radius: var(--radius-lg);
}

/* ── Service Areas List ── */
.areas-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

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

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

.area-pill {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1rem;
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--text);
    transition: all 0.25s;
}

.area-pill:hover {
    border-color: rgba(27, 67, 50, 0.2);
    background: var(--bg-alt);
}

.area-pill svg {
    width: 14px;
    height: 14px;
    color: var(--accent-dark);
    flex-shrink: 0;
}

/* ══════════════════════════════════════════════════
   LEGAL PAGES (Privacy, Terms, Disclaimer)
   ══════════════════════════════════════════════════ */

.legal-content {
    max-width: 820px;
    margin: 0 auto;
}

.legal-updated {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 2rem;
    padding: 0.4rem 1rem;
    background: var(--bg-alt);
    border-radius: var(--radius-full);
}

.legal-updated svg {
    width: 14px;
    height: 14px;
}

.legal-content h2 {
    font-size: clamp(1.3rem, 2.5vw, 1.65rem);
    font-weight: 800;
    color: var(--primary);
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-soft);
}

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

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

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

.legal-content ul {
    padding-left: 0;
    margin-bottom: 1rem;
}

.legal-content ul li {
    position: relative;
    padding: 0.35rem 0 0.35rem 1.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
}

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

.legal-content a {
    color: var(--primary-light);
    font-weight: 600;
    border-bottom: 1px solid rgba(45, 106, 79, 0.3);
    transition: all 0.2s;
}

.legal-content a:hover {
    color: var(--accent-dark);
    border-bottom-color: var(--accent-dark);
}

.legal-callout {
    background: rgba(27, 67, 50, 0.05);
    border-left: 4px solid var(--primary);
    padding: 1.25rem 1.5rem;
    border-radius: 0 var(--radius) var(--radius) 0;
    margin: 1.5rem 0;
}

.legal-callout p {
    margin: 0;
    color: var(--text);
    font-weight: 500;
}

/* ══════════════════════════════════════════════════
   SITEMAP PAGE
   ══════════════════════════════════════════════════ */

.sitemap-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

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

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

.sitemap-group {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: all 0.3s;
    box-shadow: var(--shadow-xs);
}

.sitemap-group:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(27, 67, 50, 0.15);
}

.sitemap-group-title {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--accent-soft);
}

.sitemap-group-title svg {
    width: 20px;
    height: 20px;
    color: var(--accent-dark);
}

.sitemap-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sitemap-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.75rem;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-muted);
    border-radius: 8px;
    transition: all 0.2s;
    text-decoration: none;
}

.sitemap-link:hover {
    background: var(--bg-alt);
    color: var(--accent-dark);
    padding-left: 1rem;
}

.sitemap-link svg {
    width: 14px;
    height: 14px;
    color: var(--accent-dark);
    opacity: 0.5;
    flex-shrink: 0;
}

.sitemap-link:hover svg {
    opacity: 1;
}

/* ── Print ── */
@media print {
    .pg-hero,
    .pg-cta-block {
        display: none;
    }
}
