/* Preview-only styles for the Appointment Buddy page.
   Shared site-refresh.css and styles.css are unchanged from live. */

.hero-section-1 {
    min-height: 340px !important;
    padding: 64px 24px 56px !important;
}

.hero-section-1 h1 {
    font-size: 2.15rem;
    max-width: 920px;
    margin: 0 auto 16px;
    line-height: 1.25;
}

.hero-section-1 .ab-subhead {
    max-width: 720px;
    margin: 0 auto 28px;
    font-size: 1.15rem;
    line-height: 1.5;
    color: #fff;
}

/* Beat the generic .hero-section-1 a { color: gold } rule */
.hero-section-1 a.btn-gold,
.hero-section-1 a.btn-gold:hover,
.hero-section-1 a.btn-gold:focus {
    background: var(--gold);
    color: var(--teal-dark);
    border-color: var(--gold);
}
.hero-section-1 a.btn-gold:hover,
.hero-section-1 a.btn-gold:focus {
    background: var(--gold-hover);
    border-color: var(--gold-hover);
    color: var(--teal-dark);
}
.hero-section-1 a.btn-outline-light,
.hero-section-1 a.btn-outline-light:hover,
.hero-section-1 a.btn-outline-light:focus {
    background: transparent;
    color: #fff;
    border-color: #fff;
}
.hero-section-1 a.btn-outline-light:hover,
.hero-section-1 a.btn-outline-light:focus {
    background: var(--gold);
    color: var(--teal-dark);
    border-color: var(--gold);
}

.hero-section-1 .hero-actions {
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}


/* Align breadcrumbs with the page content container, not the viewport edge */
.town-breadcrumbs {
    max-width: 1080px;
    margin: 18px auto 8px;
    padding: 0 20px;
    font-size: 0.9rem;
    font-family: "Open Sans", sans-serif;
    box-sizing: border-box;
}
.ab-wrap {
    max-width: 1080px;
    margin: 0 auto;
    padding: 12px 20px 48px;
}

.ab-wrap h2 {
    color: var(--teal);
    font-family: "Montserrat", sans-serif;
    font-size: 1.6rem;
    margin: 36px 0 16px;
    text-align: left;
}

.ab-lead {
    font-size: 1.08rem;
    line-height: 1.7;
    color: var(--text-deep);
    margin: 20px 0 0;
}

.ab-wrap p,
.ab-wrap li {
    font-family: "Open Sans", sans-serif;
    line-height: 1.65;
    color: var(--text-deep);
}

.ab-include {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.ab-include li {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 18px 20px 18px 48px;
    position: relative;
}

.ab-include li::before {
    content: "";
    position: absolute;
    left: 18px;
    top: 22px;
    width: 16px;
    height: 8px;
    border-left: 3px solid var(--teal);
    border-bottom: 3px solid var(--teal);
    transform: rotate(-45deg);
}

.ab-facts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 12px 0 8px;
}

.ab-fact {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 20px 22px;
    height: 100%;
    box-sizing: border-box;
}

.ab-fact h3 {
    margin: 0 0 8px;
    color: var(--teal);
    font-family: "Montserrat", sans-serif;
    font-size: 1.1rem;
}

.ab-fact p { margin: 0; }

.ab-note {
    background: #fff;
    border-left: 4px solid var(--gold);
    border-radius: 0 12px 12px 0;
    box-shadow: var(--shadow);
    padding: 16px 20px;
    margin: 28px 0 8px;
    font-size: 0.95rem;
    color: var(--text-deep);
}

.ab-mid-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 28px 0 8px;
}

.ab-wrap .accordion { width: 100%; text-align: left; }
.ab-wrap .panel p { margin: 12px 16px 16px; }
.ab-wrap .panel ul { margin: 0 16px 16px 36px; padding: 0; }

.ab-wrap .accordion-container { margin-top: 8px; }

@media (max-width: 700px) {
    .hero-section-1 {
        min-height: 0 !important;
        padding: 40px 18px 36px !important;
    }
    .hero-section-1 h1 { font-size: 1.7rem; }
    .hero-section-1 .ab-subhead { font-size: 1.05rem; margin-bottom: 22px; }
    .hero-section-1 .hero-actions .btn { flex: 1 1 100%; }
    .ab-include { grid-template-columns: 1fr; }
    .ab-facts { grid-template-columns: 1fr; }
    .ab-mid-cta { justify-content: stretch; }
    .ab-mid-cta .btn { flex: 1 1 100%; }
    .ab-wrap h2 { font-size: 1.4rem; }
}

/* Keep the closing CTA band clear of the mobile sticky bar */
@media (max-width: 768px) {
    .cta-band {
        padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px));
    }
    footer,
    .site-footer {
        padding-bottom: 110px !important;
    }
}

.btn-outline-teal {
    background: transparent;
    color: var(--teal-dark);
    border-color: var(--teal-dark);
}
.btn-outline-teal:hover,
.btn-outline-teal:focus {
    background: var(--gold);
    color: var(--teal-dark);
    border-color: var(--gold);
}
