/* ═══════════════════════════════════════════════
   AREA PAGE STYLES — Roof Repair Plano Texas
   Unique layout for service-area city pages
   Same warm North Texas palette, different structure
   ═══════════════════════════════════════════════ */

/* ─── AREA HERO ─── */
.area-hero {
    position: relative;
    background: linear-gradient(160deg, var(--primary-dark) 0%, var(--primary) 55%, #22405e 100%);
    padding: 0;
    overflow: hidden;
    min-height: 380px;
}

.area-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 85% 20%, rgba(196, 94, 44, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 15% 80%, rgba(43, 122, 75, 0.1) 0%, transparent 45%);
    pointer-events: none;
}

.area-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 80px 80px;
    pointer-events: none;
}

.area-hero .container {
    position: relative;
    z-index: 2;
    padding-top: 100px;
    padding-bottom: 60px;
}

.area-hero-inner {
    max-width: 780px;
}

.area-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    margin-bottom: 18px;
}

.area-breadcrumb a {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    transition: color var(--transition);
}

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

.area-breadcrumb svg {
    width: 14px;
    height: 14px;
    color: rgba(255, 255, 255, 0.35);
}

.area-breadcrumb span {
    color: rgba(255, 255, 255, 0.8);
}

.area-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-light);
    background: rgba(196, 94, 44, 0.12);
    border: 1px solid rgba(196, 94, 44, 0.2);
    border-radius: 100px;
    margin-bottom: 18px;
}

.area-hero-badge svg {
    width: 14px;
    height: 14px;
}

.area-hero h1 {
    font-size: clamp(1.75rem, 4vw, 2.6rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 16px;
}

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

.area-hero-desc {
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 28px;
    max-width: 640px;
}

.area-hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 28px;
}

.area-hero-stat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    font-size: 0.82rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
}

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

.area-hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* ─── AREA SECTION COMMON ─── */
.area-section {
    padding: 72px 0;
}

.area-section-alt {
    background: var(--bg-alt);
}

.area-section-dark {
    background: var(--bg-dark);
    color: var(--text-on-dark);
}

.area-section-header {
    margin-bottom: 40px;
}

.area-section-header .section-tag {
    margin-bottom: 12px;
}

.area-section-header h2 {
    margin-bottom: 10px;
}

.area-section-header p {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 680px;
    line-height: 1.7;
}

/* ─── ABOUT CITY SECTION ─── */
.area-about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: start;
}

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

.area-about-text p {
    margin-bottom: 16px;
    line-height: 1.8;
}

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

.area-about-img {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.area-about-img img {
    width: 100%;
    height: 340px;
    object-fit: cover;
}

/* ─── CHALLENGES SECTION ─── */
.area-challenges-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

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

.area-challenge-card {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 28px;
    transition: all var(--transition);
}

.area-section-alt .area-challenge-card {
    background: #fff;
}

.area-challenge-card:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 20px rgba(196, 94, 44, 0.08);
    transform: translateY(-2px);
}

.area-challenge-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.area-challenge-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: var(--accent-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.area-challenge-icon svg {
    width: 18px;
    height: 18px;
    color: var(--accent);
}

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

/* ─── SERVICES SECTION ─── */
.area-services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

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

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

.area-service-card {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 28px 28px 24px;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.area-service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent);
    opacity: 0;
    transition: opacity var(--transition);
}

.area-service-card:hover::before {
    opacity: 1;
}

.area-service-card:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.area-service-card h3 {
    font-size: 1.05rem;
    margin-bottom: 10px;
    color: var(--primary);
}

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

.service-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.service-card-link h3 {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.service-card-link h3 span {
    color: var(--accent);
    font-size: 1.2rem;
    line-height: 1;
    transition: transform var(--transition);
}

.service-card-link:hover h3 span {
    transform: translateX(4px);
}

.area-section-call {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.area-section-call .btn {
    min-width: 200px;
    justify-content: center;
}

/* ─── WHY CHOOSE US — ICON ROW ─── */
.area-why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

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

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

.area-why-item {
    text-align: center;
    padding: 24px 16px;
    border-radius: var(--radius);
    background: #fff;
    border: 1px solid var(--border-light);
    transition: all var(--transition);
}

.area-section-alt .area-why-item {
    background: #fff;
}

.area-why-item:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.area-why-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

.area-why-icon svg {
    width: 22px;
    height: 22px;
    color: var(--accent);
}

.area-why-item h4 {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 4px;
}

.area-why-item p {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ─── PROCESS — HORIZONTAL TIMELINE ─── */
.area-process-timeline {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    position: relative;
}

@media (min-width: 768px) {
    .area-process-timeline {
        grid-template-columns: repeat(4, 1fr);
        gap: 0;
    }
}

.area-process-step {
    text-align: center;
    padding: 24px 16px;
    position: relative;
}

@media (min-width: 768px) {
    .area-process-step::after {
        content: '';
        position: absolute;
        top: 40px;
        right: 0;
        width: 50%;
        height: 2px;
        background: var(--border);
    }

    .area-process-step::before {
        content: '';
        position: absolute;
        top: 40px;
        left: 0;
        width: 50%;
        height: 2px;
        background: var(--border);
    }

    .area-process-step:first-child::before {
        display: none;
    }

    .area-process-step:last-child::after {
        display: none;
    }
}

.area-process-num {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(27, 45, 69, 0.2);
}

.area-process-step h3 {
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.area-process-step p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ─── UNIQUE CITY FACTOR SECTION ─── */
.area-factor-box {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.area-factor-box::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 240px;
    height: 240px;
    background: rgba(196, 94, 44, 0.12);
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
}

.area-factor-box h2 {
    color: #fff;
    margin-bottom: 16px;
    position: relative;
}

.area-factor-box p {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.95rem;
    line-height: 1.8;
    max-width: 720px;
    position: relative;
}

.area-factor-box p + p {
    margin-top: 14px;
}

/* ─── ZIP CODES ─── */
.area-zip-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: start;
}

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

.area-zip-text p {
    line-height: 1.8;
    margin-bottom: 14px;
}

.area-zip-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.area-zip-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--primary);
    background: rgba(27, 45, 69, 0.06);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.area-zip-tag svg {
    width: 14px;
    height: 14px;
    color: var(--accent);
}

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

.area-faq-item {
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    overflow: hidden;
    background: #fff;
    transition: all var(--transition);
}

.area-faq-item:hover {
    border-color: var(--border);
}

.area-faq-item.active {
    border-color: var(--accent);
    box-shadow: 0 4px 16px rgba(196, 94, 44, 0.08);
}

.area-faq-q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 24px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--primary);
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
    font-family: var(--font-body);
    transition: background var(--transition);
}

.area-faq-q:hover {
    background: rgba(196, 94, 44, 0.03);
}

.area-faq-q svg {
    width: 18px;
    height: 18px;
    color: var(--accent);
    flex-shrink: 0;
    transition: transform var(--transition);
}

.area-faq-item.active .area-faq-q svg {
    transform: rotate(180deg);
}

.area-faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
}

.area-faq-item.active .area-faq-a {
    max-height: 400px;
    padding: 0 24px 20px;
}

.area-faq-a p {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.7;
}

/* ─── THINGS TO DO — LANDMARKS ─── */
.area-landmarks-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

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

.area-landmark-card {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all var(--transition);
}

.area-landmark-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.area-landmark-img {
    height: 180px;
    overflow: hidden;
}

.area-landmark-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.area-landmark-card:hover .area-landmark-img img {
    transform: scale(1.05);
}

.area-landmark-body {
    padding: 20px;
}

.area-landmark-body h3 {
    font-size: 1rem;
    margin-bottom: 8px;
    color: var(--primary);
}

.area-landmark-body p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ─── NEARBY AREAS — PILL LAYOUT ─── */
.area-nearby-content p {
    line-height: 1.8;
    margin-bottom: 20px;
    max-width: 720px;
}

.area-nearby-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.area-nearby-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--primary);
    background: rgba(27, 45, 69, 0.04);
    border: 1px solid var(--border);
    border-radius: 100px;
    transition: all var(--transition);
}

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

.area-nearby-pill svg {
    width: 14px;
    height: 14px;
    color: var(--accent);
}

/* ─── SERVICE AREA MAP ─── */
.area-map-section {
    padding: 64px 0;
    background: var(--bg-alt);
}

.area-map-heading {
    max-width: 680px;
    margin: 0 auto 28px;
    text-align: center;
}

.area-map-heading h2 {
    margin-bottom: 10px;
}

.area-map-heading p {
    color: var(--text-muted);
    line-height: 1.65;
}

.area-map-embed {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: 0 12px 28px rgba(15, 28, 46, 0.1);
}

.area-map-embed iframe {
    display: block;
    width: 100%;
    height: 360px;
}

/* ─── CTA SECTION ─── */
.area-cta-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    padding: 64px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.area-cta-section::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(196, 94, 44, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.area-cta-section h2 {
    color: #fff;
    margin-bottom: 14px;
    position: relative;
}

.area-cta-section p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1rem;
    max-width: 560px;
    margin: 0 auto 28px;
    line-height: 1.7;
    position: relative;
}

.area-cta-btns {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    position: relative;
}

/* ─── AREA IMAGE SECTION ─── */
.area-img-section {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.area-img-section img {
    width: 100%;
    height: 320px;
    object-fit: cover;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
    .area-hero .container {
        padding-top: 80px;
        padding-bottom: 48px;
    }

    .area-hero h1 {
        font-size: 1.7rem;
    }

    .area-hero-desc {
        font-size: 0.95rem;
    }

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

    .area-hero-cta .btn {
        width: 100%;
    }

    .area-section {
        padding: 56px 0;
    }

    .area-factor-box {
        padding: 32px 24px;
    }

    .area-cta-section {
        padding: 48px 0;
    }

    .area-map-section {
        padding: 48px 0;
    }

    .area-map-embed iframe {
        height: 300px;
    }

    .area-cta-btns {
        flex-direction: column;
        align-items: center;
    }

    .area-cta-btns .btn {
        width: 100%;
        max-width: 320px;
    }
}

@media (max-width: 480px) {
    .area-hero .container {
        padding-top: 72px;
    }

    .area-hero h1 {
        font-size: 1.5rem;
    }

    .area-why-grid {
        grid-template-columns: 1fr;
    }

    .area-process-step {
        padding: 16px 12px;
    }

    .area-landmarks-grid {
        grid-template-columns: 1fr;
    }
}
