/**
 * Towns We Service - WordPress Template Stylesheet
 *
 * Matching styles for the location SEO page template.
 * Brand colors pulled from Boccia Bros existing site.
 *
 * @package Boccia_Bros
 */

/* ==========================================================================
   BRAND VARIABLES (adjust to match exact theme tokens)
   ========================================================================== */
:root {
    --boccia-primary: #c8102e;        /* Boccia red */
    --boccia-primary-dark: #9a0d24;
    --boccia-dark: #1a1a1a;
    --boccia-charcoal: #333333;
    --boccia-gray: #666666;
    --boccia-light-gray: #f5f5f5;
    --boccia-border: #e0e0e0;
    --boccia-white: #ffffff;
    --boccia-blue: #0a3d62;
    --max-width: 1200px;
    --section-padding: 4rem 1.5rem;
    --section-padding-mobile: 2.5rem 1rem;
}

/* ==========================================================================
   GLOBAL TEMPLATE LAYOUT
   ========================================================================== */
.towns-template{
    width: 100%;
}

.towns-template {
    color: var(--boccia-charcoal);
    line-height: 1.6;
}

.towns-template .container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.towns-template section {
    padding: var(--section-padding);
}

.towns-template h1,
.towns-template h2,
.towns-template h3 {
    color: var(--boccia-dark);
    font-weight: 700;
    line-height: 1.2;
}

.towns-template h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); margin-bottom: 1rem; }
.towns-template h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); margin-bottom: 1.5rem; }
.towns-template h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); margin-bottom: 0.75rem; }

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.towns-template .btn {
    display: inline-block;
    padding: 0.875rem 1.75rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s ease;
    margin: 0.25rem;
    text-align: center;
}

.btn--primary {
    background-color: var(--boccia-primary);
    color: var(--boccia-white);
}
.btn--primary:hover {
    background-color: var(--boccia-primary-dark);
    color: var(--boccia-white);
}

.btn--secondary {
    background-color: var(--boccia-dark);
    color: var(--boccia-white);
}
.btn--secondary:hover {
    background-color: var(--boccia-charcoal);
}

.btn--text {
    color: var(--boccia-primary);
    font-weight: 600;
    padding: 0;
}
.btn--text:hover {
    color: var(--boccia-primary-dark);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.towns-hero {
    background: linear-gradient(135deg, var(--boccia-dark) 0%, var(--boccia-charcoal) 100%);
    color: var(--boccia-white);
    text-align: center;
}

.towns-hero h1 {
    color: var(--boccia-white);
}

.towns-hero__intro {
    max-width: 800px;
    margin: 1rem auto 2rem;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
}

.towns-hero__cta {
    margin-top: 1.5rem;
}

/* ==========================================================================
   TIER 1: TRUST BAR
   ========================================================================== */
.towns-trust-bar {
    background-color: var(--boccia-primary);
    padding: 2rem 1.5rem;
    color: var(--boccia-white);
}

.trust-bar__list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
    max-width: var(--max-width);
    margin: 0 auto;
}

.trust-bar__item {
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0 1rem;
}
.trust-bar__item:last-child { border-right: none; }

.trust-bar__stat {
    display: block;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.trust-bar__label {
    display: block;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.95);
}

/* ==========================================================================
   MEDIA SECTION (Map + Video, Hub only)
   ========================================================================== */
.towns-media {
    background-color: var(--boccia-light-gray);
}

.towns-media__map h2 { text-align: center; }
.towns-media__map p { text-align: center; max-width: 700px; margin: 0 auto 2rem; }

.map-embed {
    background: var(--boccia-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    aspect-ratio: 16 / 9;
}
.map-embed iframe,
.map-embed > * {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.towns-media__video { margin-top: 3rem; }

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.video-wrapper iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ==========================================================================
   TIER 2: CREDIBILITY BADGES STRIP
   ========================================================================== */
.towns-credibility {
    background-color: var(--boccia-white);
    border-top: 1px solid var(--boccia-border);
    border-bottom: 1px solid var(--boccia-border);
    text-align: center;
}

.towns-credibility__heading {
    color: var(--boccia-dark);
    margin-bottom: 2rem;
}

.credibility-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.credibility-strip__item img {
    height: 70px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
    filter: grayscale(15%);
    transition: filter 0.2s ease;
}
.credibility-strip__item:hover img,
.credibility-strip__item a:hover img {
    filter: grayscale(0%);
}

.credibility-strip__item a { display: inline-block; }

/* ==========================================================================
   REGION CARDS (Hub page)
   ========================================================================== */
.towns-regions {
    background-color: var(--boccia-light-gray);
}

.region-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.region-card {
    background: var(--boccia-white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border-top: 4px solid var(--boccia-primary);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.region-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.region-card h3 {
    color: var(--boccia-dark);
    margin-bottom: 1rem;
}

.region-card p {
    color: var(--boccia-gray);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

/* ==========================================================================
   TOWN LIST (Sub pages)
   ========================================================================== */
.towns-list {
    background-color: var(--boccia-white);
}

.town-group {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--boccia-border);
}
.town-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.town-group h3 {
    color: var(--boccia-primary);
    margin-bottom: 1rem;
    font-size: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.town-group__list {
    color: var(--boccia-charcoal);
    line-height: 2;
    font-size: 1.05rem;
}

/* ==========================================================================
   SERVICES OFFERED
   ========================================================================== */
.towns-services {
    background-color: var(--boccia-light-gray);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 1.5rem;
}

.services-column h3 {
    color: var(--boccia-primary);
    border-bottom: 2px solid var(--boccia-primary);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.services-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.services-column li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--boccia-border);
}
.services-column li:last-child { border-bottom: none; }

.services-column a {
    color: var(--boccia-charcoal);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}
.services-column a:hover { color: var(--boccia-primary); }

/* ==========================================================================
   TIER 3: PATENTED PRODUCTS
   ========================================================================== */
.towns-patents {
    background-color: var(--boccia-dark);
    color: var(--boccia-white);
    text-align: center;
}

.towns-patents h2 { color: var(--boccia-white); }
.towns-patents > .container > p {
    max-width: 700px;
    margin: 0 auto 2rem;
    color: rgba(255, 255, 255, 0.85);
}

.patents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.patent-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 2rem;
    border-radius: 8px;
    text-decoration: none;
    color: var(--boccia-white);
    transition: all 0.2s ease;
    position: relative;
}
.patent-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
    color: var(--boccia-white);
}

.patent-card h3 { color: var(--boccia-white); }

.patent-card__badge {
    display: inline-block;
    background: var(--boccia-primary);
    color: var(--boccia-white);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.patent-card p { color: rgba(255, 255, 255, 0.8); margin: 0; }

/* ==========================================================================
   LOCAL AUTHORITY / WHY BOCCIA
   ========================================================================== */
.towns-authority {
    background-color: var(--boccia-white);
}

.towns-authority__content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.05rem;
}

.towns-authority__content p { margin-bottom: 1.25rem; }

/* ==========================================================================
   FINAL CTA
   ========================================================================== */
.towns-final-cta {
    background: linear-gradient(135deg, var(--boccia-primary) 0%, var(--boccia-primary-dark) 100%);
    color: var(--boccia-white);
    text-align: center;
}

.towns-final-cta h2 { color: var(--boccia-white); }
.towns-final-cta > .container > p {
    max-width: 700px;
    margin: 0 auto 2rem;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.95);
}

.final-cta__buttons .btn--primary {
    background-color: var(--boccia-white);
    color: var(--boccia-primary);
}
.final-cta__buttons .btn--primary:hover {
    background-color: var(--boccia-light-gray);
    color: var(--boccia-primary-dark);
}

.final-cta__buttons .btn--secondary {
    background-color: transparent;
    border: 2px solid var(--boccia-white);
    color: var(--boccia-white);
}
.final-cta__buttons .btn--secondary:hover {
    background-color: var(--boccia-white);
    color: var(--boccia-primary);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 768px) {
    .towns-template section { padding: var(--section-padding-mobile); }

    .trust-bar__list {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    .trust-bar__item { border-right: none; padding: 0.75rem 0; }
    .trust-bar__item:nth-child(odd) { border-right: 1px solid rgba(255,255,255,0.2); }

    .credibility-strip { gap: 1.5rem; }
    .credibility-strip__item img { height: 55px; max-width: 110px; }

    .towns-hero__cta .btn,
    .final-cta__buttons .btn {
        display: block;
        width: 100%;
        max-width: 320px;
        margin: 0.5rem auto;
    }
}

@media (max-width: 480px) {
    .trust-bar__list { grid-template-columns: 1fr; }
    .trust-bar__item { border-right: none !important; }
}
