/*
Theme Name:   Yorkshire Alloy Directory Child
Theme URI:    https://yorkshirealloyrepair.co.uk
Description:  Child theme for Yorkshire Alloy Directory. Adds SEO-optimised
              location page template (taxonomy-listdom-location.php) without
              modifying the parent theme.
Author:       Yorkshire Alloy Repair
Template:     yorkshire-alloy-directory
Version:      1.0.0
Text Domain:  yorkshire-alloy-directory-child
*/

/* ============================================================
   LOCATION PAGE — additional styles
   ============================================================ */

/* Intro block */
.yad-location-intro {
    background: #fff;
    border-radius: 12px;
    padding: 36px 40px;
    box-shadow: 0 2px 12px rgba(0,0,0,.07);
    border: 1px solid #e8ecf0;
    margin-bottom: 32px;
}
.yad-location-intro p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #4a5568;
    margin: 0;
}

/* Services grid */
.yad-loc-services {
    background: #fff;
    border-radius: 12px;
    padding: 36px 40px;
    box-shadow: 0 2px 12px rgba(0,0,0,.07);
    border: 1px solid #e8ecf0;
    margin-bottom: 32px;
}
.yad-loc-services h2 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: #1a2332;
}
.yad-loc-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}
.yad-loc-service-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #f7f9fc;
    border-radius: 8px;
    border: 1px solid #e8ecf0;
    font-size: .9rem;
    font-weight: 600;
    color: #1a2332;
    text-decoration: none;
    transition: all .2s ease;
}
.yad-loc-service-pill:hover {
    background: #e8333a;
    color: #fff;
    border-color: #e8333a;
    text-decoration: none;
}
.yad-loc-service-pill i {
    color: #e8333a;
    font-size: 1rem;
    transition: color .2s ease;
}
.yad-loc-service-pill:hover i { color: #fff; }

/* Why choose section */
.yad-loc-why {
    background: linear-gradient(135deg, #1a2332 0%, #2d3f55 100%);
    border-radius: 12px;
    padding: 36px 40px;
    margin-bottom: 32px;
    color: #fff;
}
.yad-loc-why h2 { color: #fff; font-size: 1.4rem; margin-bottom: 20px; }
.yad-loc-why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}
.yad-loc-why-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}
.yad-loc-why-icon {
    width: 44px; height: 44px; min-width: 44px;
    background: rgba(232,51,58,.2);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: #ff6b6b; font-size: 1.1rem;
}
.yad-loc-why-text strong { display: block; color: #fff; margin-bottom: 4px; }
.yad-loc-why-text span { font-size: .85rem; color: rgba(255,255,255,.7); }

/* FAQ */
.yad-loc-faq {
    background: #fff;
    border-radius: 12px;
    padding: 36px 40px;
    box-shadow: 0 2px 12px rgba(0,0,0,.07);
    border: 1px solid #e8ecf0;
    margin-bottom: 32px;
}
.yad-loc-faq h2 { font-size: 1.4rem; margin-bottom: 24px; color: #1a2332; }

/* Nearby locations */
.yad-loc-nearby {
    background: #f7f9fc;
    border-radius: 12px;
    padding: 36px 40px;
    border: 1px solid #e8ecf0;
    margin-bottom: 32px;
}
.yad-loc-nearby h2 { font-size: 1.4rem; margin-bottom: 20px; color: #1a2332; }
.yad-loc-nearby-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.yad-loc-nearby-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #fff;
    border: 1px solid #e8ecf0;
    border-radius: 50px;
    font-size: .875rem;
    font-weight: 600;
    color: #1a2332;
    text-decoration: none;
    transition: all .2s ease;
}
.yad-loc-nearby-link:hover {
    background: #1a2332;
    color: #fff;
    border-color: #1a2332;
    text-decoration: none;
}

/* CTA */
.yad-loc-cta {
    background: linear-gradient(135deg, #e8333a 0%, #c0272d 100%);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    margin-bottom: 32px;
    color: #fff;
}
.yad-loc-cta h2 { color: #fff; font-size: 1.6rem; margin-bottom: 12px; }
.yad-loc-cta p { color: rgba(255,255,255,.85); margin-bottom: 24px; font-size: 1rem; }
.yad-loc-cta .yad-btn-white {
    background: #fff;
    color: #e8333a;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 700;
    font-size: .95rem;
    text-decoration: none;
    display: inline-block;
    transition: all .2s ease;
}
.yad-loc-cta .yad-btn-white:hover {
    background: #1a2332;
    color: #fff;
    text-decoration: none;
}

/* Schema / hidden */
.yad-schema-hidden { display: none; }

/* Responsive */
@media (max-width: 768px) {
    .yad-location-intro,
    .yad-loc-services,
    .yad-loc-why,
    .yad-loc-faq,
    .yad-loc-nearby,
    .yad-loc-cta { padding: 24px 20px; }
    .yad-loc-why-grid { grid-template-columns: 1fr; }
}
