/* =========================================================
   Individual area page styles (prefix .ta-)
   Reusable for Brampton, Mississauga, Vaughan, etc.
   Loads AFTER serviceareas-content.css (shares .sa-content vars)
   ========================================================= */

/* ---------- HERO ---------- */
.ta-hero {
    --ta-accent: #e63232;
    --ta-accent-dark: #c41f1f;
    --ta-dark: #0a0f1c;
    --ta-muted: rgba(255, 255, 255, 0.78);
    --ta-glass: rgba(255, 255, 255, 0.08);
    --ta-glass-border: rgba(255, 255, 255, 0.18);

    position: relative;
    isolation: isolate;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(700px 420px at 100% 0%, rgba(230, 50, 50, 0.28), transparent 65%),
        linear-gradient(160deg, #111827 0%, var(--ta-dark) 70%);
    padding: 150px 0 90px;
}

.ta-hero *,
.ta-hero *::before,
.ta-hero *::after {
    box-sizing: border-box;
}

.ta-hero-glow {
    position: absolute;
    z-index: -1;
    width: 520px;
    height: 520px;
    left: -180px;
    bottom: -220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(230, 50, 50, 0.22), transparent 70%);
    pointer-events: none;
}

.ta-hero-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 60px;
    align-items: center;
}

.ta-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
    font-size: 0.85rem;
    color: var(--ta-muted);
}

.ta-breadcrumb a {
    color: var(--ta-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.ta-breadcrumb a:hover {
    color: #fff;
}

.ta-breadcrumb [aria-current="page"] {
    color: #fff;
    font-weight: 600;
}

.ta-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--ta-glass);
    border: 1px solid var(--ta-glass-border);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.14em;
}

.ta-pulse {
    position: relative;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #3ddc84;
}

.ta-pulse::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #3ddc84;
    animation: ta-pulse 1.8s ease-out infinite;
}

@keyframes ta-pulse {
    0%   { transform: scale(1);   opacity: 0.7; }
    100% { transform: scale(3.2); opacity: 0; }
}

.ta-hero h1 {
    margin: 0 0 20px;
    font-size: clamp(2.2rem, 4.6vw, 3.7rem);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #fff;
}

.ta-hero h1 span {
    display: block;
    background: linear-gradient(90deg, #ff5a5a, var(--ta-accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--ta-accent);
}

.ta-hero-text {
    max-width: 580px;
    margin: 0 0 32px;
    font-size: 1.08rem;
    line-height: 1.7;
    color: var(--ta-muted);
}

.ta-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 38px;
}

.ta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 30px;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.ta-btn svg {
    width: 20px;
    height: 20px;
}

.ta-btn-primary {
    background: linear-gradient(135deg, var(--ta-accent), var(--ta-accent-dark));
    color: #fff;
    box-shadow: 0 12px 30px rgba(230, 50, 50, 0.4);
}

.ta-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 38px rgba(230, 50, 50, 0.55);
}

.ta-btn-ghost {
    color: #fff;
    background: var(--ta-glass);
    border: 1px solid var(--ta-glass-border);
}

.ta-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.ta-trust {
    list-style: none;
    margin: 0;
    padding: 24px 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 14px 40px;
    border-top: 1px solid var(--ta-glass-border);
}

.ta-trust li {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ta-trust strong {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.1;
}

.ta-trust span {
    font-size: 0.85rem;
    color: var(--ta-muted);
}

/* Hero image */
.ta-hero-media {
    position: relative;
}

.ta-hero-frame {
    position: relative;
    aspect-ratio: 5 / 4;
    border-radius: 30px;
    overflow: hidden;
    border: 1px solid var(--ta-glass-border);
    box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55);
}

.ta-hero-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 15, 28, 0) 55%, rgba(10, 15, 28, 0.55) 100%);
    pointer-events: none;
}

.ta-hero-frame img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ta-chip {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 18px;
    background: rgba(17, 24, 39, 0.78);
    border: 1px solid var(--ta-glass-border);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
    line-height: 1.25;
}

.ta-chip strong {
    display: block;
    font-size: 1rem;
}

.ta-chip small {
    display: block;
    font-size: 0.78rem;
    color: var(--ta-muted);
}

.ta-chip-top {
    top: 22px;
    left: -22px;
}

.ta-chip-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    right: -14px;
    bottom: 26px;
}

.ta-chip-bottom strong {
    font-size: 1.5rem;
    color: #ffc531;
}

.ta-chip-dot {
    flex: 0 0 auto;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #3ddc84;
    box-shadow: 0 0 0 5px rgba(61, 220, 132, 0.2);
}

/* ---------- TABLE OF CONTENTS ---------- */
.ta-toc {
    position: relative;
    z-index: 2;
    background: #fff;
    border-bottom: 1px solid var(--sa-line);
}

.ta-toc .sa-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 22px;
    padding-top: 18px;
    padding-bottom: 18px;
}

.ta-toc-label {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--sa-body);
}

.ta-toc ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ta-toc a {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--sa-bg);
    color: var(--sa-ink);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.ta-toc a:hover {
    background: var(--sa-accent);
    color: #fff;
}

/* Offset anchored sections under the sticky header */
.sa-content section[id] {
    scroll-margin-top: 90px;
}

/* ---------- INTRO ---------- */
.ta-intro {
    padding: 96px 0;
    background: #fff;
}

.ta-intro-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
    gap: 60px;
    align-items: start;
}

.ta-intro-copy p {
    margin: 0 0 18px;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--sa-body);
}

.ta-intro-copy a,
.ta-faq-list a {
    color: var(--sa-accent);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ta-intro-copy strong {
    color: var(--sa-ink);
}

.ta-intro-card {
    padding: 32px;
    border-radius: 24px;
    background: var(--sa-bg);
    border: 1px solid var(--sa-line);
    position: sticky;
    top: 110px;
}

.ta-intro-card h3 {
    margin: 0 0 18px;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--sa-ink);
}

.ta-intro-card ul {
    list-style: none;
    margin: 0 0 22px;
    padding: 0;
}

.ta-intro-card li {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 13px 0;
    border-bottom: 1px solid var(--sa-line);
    font-size: 0.93rem;
}

.ta-intro-card li span {
    color: var(--sa-body);
}

.ta-intro-card li strong {
    text-align: right;
    color: var(--sa-ink);
}

.ta-card-call {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 16px 20px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--sa-accent), var(--sa-accent-dark));
    color: #fff;
    text-decoration: none;
    font-size: 0.85rem;
    box-shadow: 0 14px 30px rgba(230, 50, 50, 0.35);
    transition: transform 0.2s ease;
}

.ta-card-call strong {
    font-size: 1.4rem;
    letter-spacing: 0.01em;
}

.ta-card-call:hover {
    transform: translateY(-2px);
}

/* ---------- NEIGHBOURHOODS ---------- */
.ta-areas {
    padding: 100px 0;
    background: #fff;
}

.ta-areas-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 24px;
}

.ta-areas-block {
    padding: 36px;
    border-radius: 26px;
    background: var(--sa-bg);
    border: 1px solid var(--sa-line);
}

.ta-areas-block h3 {
    margin: 0 0 22px;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--sa-ink);
}

.ta-chips {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ta-chips li {
    padding: 10px 18px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--sa-line);
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--sa-ink);
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.ta-chips li:hover {
    background: var(--sa-accent);
    border-color: var(--sa-accent);
    color: #fff;
    transform: translateY(-2px);
}

.ta-areas-dark {
    color: #fff;
    border-color: transparent;
    background:
        radial-gradient(380px 240px at 100% 0%, rgba(230, 50, 50, 0.35), transparent 70%),
        linear-gradient(160deg, var(--sa-dark-2), var(--sa-dark));
}

.ta-areas-dark h3 {
    color: #fff;
}

.ta-roads {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ta-roads li {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 14px 0 14px 18px;
    border-left: 3px solid var(--sa-accent);
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 0 12px 12px 0;
}

.ta-roads strong {
    font-size: 1rem;
}

.ta-roads span {
    font-size: 0.86rem;
    color: rgba(255, 255, 255, 0.7);
}

/* ---------- GUIDES HUB ---------- */
.ta-hub {
    padding: 100px 0;
    background:
        radial-gradient(900px 400px at 0% 0%, rgba(230, 50, 50, 0.06), transparent 60%),
        var(--sa-bg);
}

.ta-hub-group {
    margin-bottom: 44px;
}

.ta-hub-group:last-child {
    margin-bottom: 0;
}

.ta-hub-title {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 20px;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--sa-ink);
}

.ta-hub-title span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: var(--sa-dark);
    color: #fff;
    font-size: 0.95rem;
}

.ta-hub-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.ta-post {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 28px 26px 24px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid var(--sa-line);
    color: inherit;
    text-decoration: none;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.ta-post::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: var(--sa-accent);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.3s ease;
}

.ta-post:hover,
.ta-post:focus-visible {
    transform: translateY(-6px);
    border-color: transparent;
    box-shadow: 0 24px 50px rgba(15, 23, 42, 0.13);
    outline: none;
}

.ta-post:hover::before,
.ta-post:focus-visible::before {
    transform: scaleY(1);
}

.ta-post-tag {
    align-self: flex-start;
    margin-bottom: 14px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(230, 50, 50, 0.1);
    color: var(--sa-accent);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ta-post h4 {
    margin: 0 0 10px;
    font-size: 1.12rem;
    line-height: 1.35;
    font-weight: 800;
    color: var(--sa-ink);
}

.ta-post p {
    margin: 0 0 18px;
    font-size: 0.92rem;
    line-height: 1.65;
    color: var(--sa-body);
}

.ta-post-more {
    margin-top: auto;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--sa-accent);
}

.ta-post-more i {
    display: inline-block;
    font-style: normal;
    transition: transform 0.25s ease;
}

.ta-post:hover .ta-post-more i {
    transform: translateX(6px);
}

/* ---------- FAQ ---------- */
.ta-faq {
    padding: 100px 0;
    background: #fff;
}

.ta-faq-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 60px;
    align-items: start;
}

.ta-faq-head {
    position: sticky;
    top: 110px;
}

.ta-faq-head p {
    margin: 0 0 26px;
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--sa-body);
}

.ta-faq-call {
    display: inline-block;
    padding: 15px 28px;
    border-radius: 999px;
    background: var(--sa-dark);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.ta-faq-call:hover {
    background: var(--sa-accent);
    transform: translateY(-2px);
}

.ta-faq-list details {
    margin-bottom: 14px;
    border-radius: 18px;
    background: var(--sa-bg);
    border: 1px solid var(--sa-line);
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.ta-faq-list details[open] {
    background: #fff;
    border-color: transparent;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.1);
}

.ta-faq-list summary {
    position: relative;
    list-style: none;
    cursor: pointer;
    padding: 22px 64px 22px 26px;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--sa-ink);
}

.ta-faq-list summary::-webkit-details-marker {
    display: none;
}

.ta-faq-list summary::after {
    content: "+";
    position: absolute;
    right: 22px;
    top: 50%;
    width: 30px;
    height: 30px;
    margin-top: -15px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--sa-line);
    color: var(--sa-accent);
    font-size: 1.3rem;
    line-height: 27px;
    text-align: center;
    transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.ta-faq-list details[open] summary::after {
    content: "–";
    background: var(--sa-accent);
    border-color: var(--sa-accent);
    color: #fff;
}

.ta-faq-list summary:focus-visible {
    outline: 2px solid var(--sa-accent);
    outline-offset: 2px;
    border-radius: 18px;
}

.ta-faq-list details p {
    margin: 0;
    padding: 0 26px 24px;
    font-size: 0.98rem;
    line-height: 1.75;
    color: var(--sa-body);
}

/* ---------- NEARBY AREAS ---------- */
.ta-nearby {
    padding: 0 0 70px;
    background: #fff;
}

.ta-nearby-box {
    padding: 36px 40px;
    border-radius: 24px;
    background: var(--sa-bg);
    border: 1px solid var(--sa-line);
    text-align: center;
}

.ta-nearby-box h2 {
    margin: 0 0 20px;
    font-size: 1.4rem;
}

.ta-nearby-box ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.ta-nearby-box a {
    display: inline-block;
    padding: 11px 20px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--sa-line);
    color: var(--sa-ink);
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.ta-nearby-box a:hover {
    background: var(--sa-accent);
    border-color: var(--sa-accent);
    color: #fff;
    transform: translateY(-2px);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 992px) {
    .ta-hero {
        padding: 130px 0 70px;
    }

    .ta-hero-container {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .ta-hero-text {
        max-width: none;
    }

    .ta-chip-top {
        left: 12px;
    }

    .ta-chip-bottom {
        right: 12px;
    }

    .ta-intro,
    .ta-areas,
    .ta-hub,
    .ta-faq {
        padding: 72px 0;
    }

    .ta-intro-grid,
    .ta-faq-grid,
    .ta-areas-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .ta-intro-card,
    .ta-faq-head {
        position: static;
    }

    .ta-hub-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .ta-hero {
        padding: 110px 0 56px;
    }

    .ta-hero-container {
        padding: 0 18px;
    }

    .ta-btn {
        width: 100%;
        justify-content: center;
    }

    .ta-hero-frame {
        border-radius: 22px;
    }

    .ta-chip {
        padding: 10px 14px;
    }

    .ta-chip-top {
        top: 12px;
        left: 10px;
    }

    .ta-chip-bottom {
        right: 10px;
        bottom: 12px;
    }

    .ta-intro,
    .ta-areas,
    .ta-hub,
    .ta-faq {
        padding: 56px 0;
    }

    .ta-areas-block,
    .ta-intro-card {
        padding: 24px 20px;
    }

    .ta-hub-grid {
        grid-template-columns: 1fr;
    }

    .ta-faq-list summary {
        padding: 18px 56px 18px 18px;
        font-size: 1rem;
    }

    .ta-faq-list details p {
        padding: 0 18px 20px;
    }

    .ta-nearby-box {
        padding: 28px 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ta-pulse::after {
        animation: none;
    }

    .ta-btn,
    .ta-post,
    .ta-chips li,
    .ta-nearby-box a,
    .ta-post-more i {
        transition: none;
    }
}