/* =========================================================
   Ascot Graphics - Business Finder Directories page CSS (prefix: abfd-)
   ========================================================= */

/* ---------- Title area (chocolate, pill nav clears over) ---------- */
.abfd-title {
    position: relative;
    padding: clamp(9rem, 15vw, 12rem) 0 clamp(2.5rem, 5vw, 3.5rem);
    background:
        linear-gradient(180deg, var(--charcoal) 0%, #4A3529 100%);
    overflow: hidden;
    isolation: isolate;
    text-align: center;
}
.abfd-title::before {
    content: "";
    position: absolute;
    top: -60px;
    right: -60px;
    width: 280px;
    height: 280px;
    background: var(--brand);
    border-radius: 50%;
    opacity: 0.12;
    z-index: 0;
}
.abfd-title__inner {
    position: relative;
    z-index: 1;
}
.abfd-title__eyebrow {
    display: block;
    color: var(--brand);
    margin-bottom: 0.85rem;
}
.abfd-title__heading {
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    color: var(--white);
    line-height: 1.1;
    letter-spacing: -0.02em;
    font-weight: 500;
    margin: 0 0 1.25rem;
}
.abfd-title__heading::after {
    content: "";
    display: block;
    width: 68px;
    height: 4px;
    background: var(--brand);
    margin: 1.25rem auto 0;
    border-radius: 2px;
}
.abfd-title__lead {
    color: var(--on-charcoal);
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 62ch;
    margin: 0 auto;
}

/* ---------- Inline banner image ---------- */
.abfd-banner {
    padding: clamp(2rem, 4vw, 3rem) 0;
    background: var(--white);
}
.abfd-banner__img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

/* ---------- Intro content ---------- */
.abfd-intro {
    padding-block: clamp(2rem, 5vw, 4rem);
}
.abfd-intro__head {
    max-width: 720px;
    margin: 0 auto clamp(2.5rem, 5vw, 3.5rem);
    text-align: center;
}
.abfd-intro__head .section__eyebrow {
    display: block;
    margin-bottom: 0.85rem;
}
.abfd-intro__head h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    margin: 0 0 1rem;
    letter-spacing: -0.015em;
    display: inline-block;
}
.abfd-intro__head h2::after {
    content: "";
    display: block;
    width: 56px;
    height: 3px;
    background: var(--brand);
    margin: 1rem auto 0;
    border-radius: 2px;
}
.abfd-intro__lead {
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.7;
    margin: 1.5rem auto 0;
    max-width: 60ch;
}

/* Feature cards - what's inside */
.abfd-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1020px;
    margin: 0 auto clamp(2.5rem, 5vw, 3.5rem);
}
.abfd-feature {
    background: var(--white);
    border: 0.5px solid var(--grey-line);
    border-radius: var(--radius-lg);
    padding: clamp(1.75rem, 3vw, 2.25rem);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s var(--ease);
    position: relative;
    overflow: hidden;
    text-align: left;
}
.abfd-feature::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--brand);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s var(--ease);
}
.abfd-feature:hover {
    transform: translateY(-4px);
    border-color: var(--brand);
    box-shadow: var(--shadow-md);
}
.abfd-feature:hover::before {
    transform: scaleX(1);
}
.abfd-feature__icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--brand);
    color: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 1.25rem;
}
.abfd-feature h3 {
    font-size: 1.25rem;
    margin: 0 0 0.65rem;
    color: var(--charcoal);
    letter-spacing: -0.01em;
}
.abfd-feature p {
    color: var(--muted);
    font-size: 0.98rem;
    line-height: 1.6;
    margin: 0;
}

/* Read online external callout */
.abfd-visit {
    background: var(--tint);
    border-radius: var(--radius-lg);
    border: 0.5px solid var(--grey-line);
    padding: clamp(1.5rem, 3vw, 2rem) clamp(1.75rem, 3vw, 2.5rem);
    max-width: 1020px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
}
.abfd-visit::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 4px;
    background: var(--brand);
}
.abfd-visit__content {
    padding-left: 0.5rem;
    min-width: 0;
    flex: 1 1 auto;
}
.abfd-visit__label {
    display: block;
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--brand);
    font-weight: 500;
    margin-bottom: 0.35rem;
}
.abfd-visit p {
    color: var(--charcoal);
    font-size: 1.02rem;
    line-height: 1.55;
    margin: 0;
    font-weight: 500;
}
/* Invert button hover to red - default tint hover would blend into tint callout bg */
.abfd-visit .btn--light:hover,
.abfd-visit .btn--light:focus-visible {
    background: var(--brand);
    color: var(--white);
    border-color: var(--brand);
}

/* ---------- Editions grid ---------- */
.abfd-editions {
    padding-block: clamp(3.5rem, 6vw, 5rem);
}
.abfd-editions__head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 3rem;
}
.abfd-editions__head .section__eyebrow {
    display: block;
    margin-bottom: 0.85rem;
}
.abfd-editions__head h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    margin: 0 0 1rem;
    letter-spacing: -0.015em;
    display: inline-block;
}
.abfd-editions__head h2::after {
    content: "";
    display: block;
    width: 56px;
    height: 3px;
    background: var(--brand);
    margin: 1rem auto 0;
    border-radius: 2px;
}
.abfd-editions__lead {
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.65;
    margin: 1.5rem 0 0;
}

.abfd-editions__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1020px;
    margin-inline: auto;
}

/* ---------- Edition card ---------- */
.abfd-edition {
    background: var(--white);
    border: 0.5px solid var(--grey-line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s var(--ease);
    display: grid;
    grid-template-columns: 180px 1fr;
    position: relative;
}
.abfd-edition::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--brand);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s var(--ease);
    z-index: 3;
}
.abfd-edition:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--brand);
}
.abfd-edition:hover::before {
    transform: scaleX(1);
}
.abfd-edition__cover {
    position: relative;
    overflow: hidden;
    background: var(--tint);
}
.abfd-edition__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.abfd-edition__body {
    padding: 1.5rem 1.5rem 1.75rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-width: 0;
}
.abfd-edition__label {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: var(--brand);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    border-radius: var(--radius-pill);
    margin-bottom: 0.85rem;
}
.abfd-edition__body h3 {
    font-size: 1.2rem;
    margin: 0 0 0.65rem;
    line-height: 1.25;
    color: var(--charcoal);
}
.abfd-edition__body p {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.55;
    margin: 0;
}

/* ---------- Advertise CTA ---------- */
.abfd-cta {
    padding-block: clamp(3.5rem, 6vw, 5rem);
}
.abfd-cta__card {
    background:
        linear-gradient(180deg, var(--charcoal) 0%, #4A3529 100%);
    border-radius: var(--radius-lg);
    padding: clamp(2.5rem, 5vw, 4rem);
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 2.5rem;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.abfd-cta__card::before {
    content: "";
    position: absolute;
    top: -60px;
    right: -60px;
    width: 260px;
    height: 260px;
    background: var(--brand);
    border-radius: 50%;
    opacity: 0.15;
    z-index: 0;
}
.abfd-cta__content {
    position: relative;
    z-index: 1;
}
.abfd-cta__content .section__eyebrow {
    display: block;
    color: var(--brand);
    margin-bottom: 0.75rem;
}
.abfd-cta__content h2 {
    color: var(--white);
    font-size: clamp(1.65rem, 2.8vw, 2.15rem);
    margin: 0 0 0.75rem;
    line-height: 1.15;
}
.abfd-cta__content p {
    color: var(--on-charcoal);
    margin: 0;
    max-width: 46ch;
    line-height: 1.6;
}
.abfd-cta__actions {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
}
.abfd-cta__phone {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--on-charcoal);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s var(--ease);
}
.abfd-cta__phone:hover {
    color: var(--white);
}
.abfd-cta__phone i {
    color: var(--brand);
    font-size: 0.95rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .abfd-features {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    .abfd-visit {
        justify-content: stretch;
    }
    .abfd-visit .btn {
        width: 100%;
        justify-content: center;
    }
    .abfd-editions__grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .abfd-cta__card {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .abfd-cta__actions {
        align-items: stretch;
    }
    .abfd-cta__actions .btn {
        justify-content: center;
    }
    .abfd-cta__phone {
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .abfd-edition {
        grid-template-columns: 1fr;
    }
    .abfd-edition__cover {
        aspect-ratio: 3 / 2;
    }
    .abfd-title {
        padding-top: clamp(7rem, 14vw, 9rem);
    }
}
