/* ===  ADDITIONS =====================================================
   Styles for elements added during the SEO work (breadcrumbs, FAQs,
   area directory, footer links, content sections), written to match
   the original site design in styles.css.
===================================================================== */

/* Accessibility helpers */
.skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 100;
    padding: 12px 18px;
    background: var(--accent-color-2);
    color: white;
    border-radius: var(--border-radius);
}
.skip-link:focus { top: 12px; }

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

:focus-visible {
    outline: 3px solid #1a73e8;
    outline-offset: 3px;
}

/* Buttons as links (same look as the original <button> elements) */
a.button-dark, a.hero-button-light, a.hero-button-dark {
    display: inline-block;
    padding: 0.6em 1em;
    margin: 4px 0;
    border-radius: var(--border-radius);
    font-family: var(--paragraph-text);
    font-size: 1.2rem;
    font-weight: 500;
    line-height: normal;
    text-decoration: none;
    transition: 0.3s;
    cursor: pointer;
}
a.button-dark { margin: 10px 0; }
a.hero-button-dark i { margin-right: 0.5em; }
button.prev-button, button.next-button { background: none; border: 0; }

/* Header: two-column areas dropdown and taller mobile accordions */
header nav ul ul.dropdown-cols { columns: 2; }
header nav ul ul li { break-inside: avoid; }
@media (max-width: 1000px) {
    header nav ul ul.dropdown-cols { columns: 1; }
    .dropdown-accordian { max-height: 1200px; }
}

/* Inner page hero: lead line and buttons */
.page-hero {
    height: auto;
    min-height: 50vh;
    padding: calc(var(--header-height) + 40px) 0 60px;
}
.page-hero .page-hero-lead {
    max-width: 800px;
    margin: 1em auto 0;
    text-align: center;
    font-size: 1.3rem;
}
.page-hero-buttons { margin-top: 1.5em; text-align: center; }
.page-hero-buttons a { margin: 4px 8px; }

/* Breadcrumbs */
.breadcrumbs { padding: 14px 15%; background-color: var(--very-light-grey); font-size: 0.95rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.breadcrumbs li { color: var(--medium-grey); }
.breadcrumbs li + li::before { content: '/'; margin-right: 6px; }
.breadcrumbs a { color: var(--dark-grey); }

/* Content sections (service and area pages) */
.content-section h2 { margin-bottom: 0.4em; }
.content-section h3 { font-size: 1.6rem; padding-top: 1em; }
.content-section p, .content-section ul, .content-section ol { max-width: 1000px; }
.content-section > img, .img-pair {
    display: block;
    max-width: 900px;
    margin: 2em 0;
}
.content-section > img { width: 100%; border-radius: calc(var(--border-radius) * 2); }
.img-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1em; }
.img-pair img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: calc(var(--border-radius) * 2); }
.content-section a:not(.button-dark):not(.service-card) {
    text-decoration: underline;
    text-decoration-color: rgba(0,0,0,0.3);
    text-decoration-thickness: 2px;
    text-underline-offset: 0.2em;
    color: var(--accent-color-2);
    font-weight: 600;
}

.checklist { list-style: none; padding-left: 0; }
.checklist li { position: relative; padding: 5px 0 5px 2rem; font-size: 1.2rem; line-height: 1.7rem; }
.checklist li::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 0.75em;
    width: 12px;
    height: 7px;
    border-left: 3px solid var(--accent-color-1);
    border-bottom: 3px solid var(--accent-color-1);
    transform: rotate(-45deg);
}

.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li { counter-increment: step; position: relative; margin-bottom: 1em; padding: 1em 1em 1em 4em; background-color: white; border-radius: var(--border-radius); border-bottom: 3px solid var(--accent-color-1); font-size: 1.2rem; line-height: 1.7rem; }
section:nth-child(even) .steps li { background-color: white; }
.steps li::before {
    content: counter(step);
    position: absolute;
    left: 1em;
    top: 1em;
    width: 1.8em;
    height: 1.8em;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background-color: var(--accent-color-1);
    color: white;
    font-weight: 600;
    line-height: 1;
}

.callout { margin: 2em 0; padding: 1.5em; border-left: 5px solid var(--accent-color-1); background-color: white; border-radius: var(--border-radius); }
.callout p { margin: 0; }

/* Area link pills */
.area-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 1.5em 0 0; padding: 0; list-style: none; }
.area-links a {
    display: inline-block;
    padding: 0.5em 1em;
    border: 2px solid var(--accent-color-1);
    border-radius: var(--border-radius);
    color: var(--accent-color-1);
    font-weight: 500;
    text-decoration: none !important;
    transition: 0.3s;
}
.area-links a:hover { background-color: var(--accent-color-1); color: white !important; }
.areas-section { text-align: center; }
.areas-section p { max-width: 900px; margin: 1em auto; }
.areas-section .area-links { justify-content: center; }

/* Service tiles: allow any number of cards */
.service-card { background-position: center; }
.service-card-container { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.content-section .service-card-container, .services .service-card-container { text-align: left; }

/* Red link panel (related services / nearby areas) */
.learn-more-links h2 { text-align: center; color: white; margin-bottom: 1em; }
.learn-more-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1em; }
.learn-more-links a i { margin-left: 0.3em; }

/* FAQ */
.faq { display: grid; gap: 12px; margin-top: 1.5em; max-width: 1000px; }
.faq details { background-color: white; border-radius: var(--border-radius); border-left: 5px solid var(--accent-color-1); box-shadow: 0 2px 6px rgba(0,0,0,0.08); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 1em; padding: 1em 1.2em; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--accent-color-1); font-size: 2rem; line-height: 1; }
.faq details[open] summary::after { content: '\2212'; }
.faq summary h3 { margin: 0; padding: 0; font-size: 1.25rem; font-weight: 500; }
.faq .faq-answer { padding: 0 1.2em 1em; }
.faq .faq-answer p { margin: 0; }

/* Reviews used on inner pages */
.reviews .button-dark { margin-top: 1em; }

/* Areas directory (areas-covered.html) */
.areas-search-widget {
    margin: 2em 0 1.5em;
    padding: 2em;
    border-radius: var(--border-radius);
    background-color: var(--accent-color-3);
    background-image: var(--gradient-2), url('../media/images/circuit-breakers-background.webp');
    background-size: cover;
    background-position: center;
    color: white;
}
.areas-search-widget h2 { color: white; font-size: clamp(1.6rem, 5vw, 2rem); margin-bottom: 0.6em; }
.areas-search-form { display: flex; gap: 10px; }
.areas-search-form input {
    flex-grow: 1;
    padding: 0.6em 1em;
    border: none;
    border-radius: var(--border-radius);
    font-family: var(--paragraph-text);
    font-size: 1.1rem;
}
.areas-search-form .button-dark { margin: 0; }
.areas-search-result { min-height: 24px; margin-top: 15px; font-size: 1.1rem; }
.areas-search-result.success { color: #9be79b; }
.areas-search-result.warning { color: #ffd27a; }
.areas-search-result a { color: white; font-weight: 600; }
.areas-filter-buttons { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-btn {
    min-width: 48px;
    min-height: 48px;
    margin: 0;
    background-color: white;
    border: 2px solid var(--accent-color-1);
    color: var(--accent-color-1);
    font-size: 1.1rem;
}
.filter-btn:hover, .filter-btn.active { background-color: var(--accent-color-1); color: white; }
.area-group { margin-top: 2em; }
.area-group-title { border-bottom: 2px solid var(--accent-color-1); font-size: 1.8rem; }
.areas-list-grouped { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; margin: 1em 0 0; padding: 0; list-style: none; }
.area-item { padding: 1em 1.2em; background-color: var(--very-light-grey); border-radius: var(--border-radius); border-bottom: 3px solid var(--accent-color-1); }
.area-item a { font-size: 1.2rem; font-weight: 600; color: var(--accent-color-2); text-decoration: none !important; }
.area-item a:hover { color: var(--accent-color-1); }
.area-item p { margin: 0.4em 0 0; font-size: 1rem; line-height: 1.5rem; }

/* Gallery page group headings */
.gallery-section h2 { text-align: center; margin-top: 1em; }
.gallery-section h3 { text-align: center; padding-top: 1em; }
.gallery { padding-bottom: 40px; }

/* Contact page */
.contacts-container .contact-big {
    font-size: 2rem;
    color: var(--accent-color-2);
    font-weight: 500;
    text-align: center;
    text-decoration: none;
}
.form h2 { margin-top: 1.5em; text-align: left; }

/* Legal pages */
.legal h2 { font-size: clamp(2rem, 8vw, 2.2rem); padding: 10px 0; }

/* Footer additions: links, phone/email links, hours */
footer .footer-col a { color: white; text-decoration: none; }
footer .footer-col a:hover { text-decoration: underline; }
.footer-hours { text-align: center; font-size: 1.1rem !important; }
.footer-links {
    display: grid;
    grid-template-columns: 1fr 1.4fr 1fr;
    gap: 40px;
    padding: 40px 0;
    border-top: 1px solid rgba(255,255,255,0.2);
    text-align: left;
}
.footer-links h2 { color: white; font-size: 1.3rem; margin-bottom: 0.8em; }
.footer-links ul { margin: 0; padding: 0; list-style: none; font-size: 1rem; }
.footer-links li { margin-bottom: 0.4em; }
.footer-links a { color: var(--light-grey); text-decoration: none; }
.footer-links a:hover { color: white; text-decoration: underline; }
.footer-links .footer-areas { columns: 2; column-gap: 20px; }

@media (max-width: 1000px) {
    .breadcrumbs { padding: 14px 10%; }
    .footer-links { grid-template-columns: 1fr; gap: 24px; text-align: center; }
    .footer-links .footer-areas { columns: 1; }
}

@media (max-width: 650px) {
    .breadcrumbs { padding: 12px 5%; }
    .img-pair { grid-template-columns: 1fr; }
    .areas-search-form { flex-direction: column; }
    .page-hero .page-hero-lead { font-size: 1.1rem; }
    .page-hero-buttons a { display: block; margin: 8px 0; }
    a.button-dark, a.hero-button-light, a.hero-button-dark { display: block; width: 100%; text-align: center; }
    .area-links a, .filter-btn { width: auto; }
}

/* Keep width/height attributes (for layout stability) from distorting the original image sizing */
img { height: auto; }
.logo, .accreditations-container img, .social-icon img { width: auto; }
header nav a { white-space: nowrap; }
a.hero-button-light { margin: 4px 16px 4px 0; }
.page-hero-buttons a.hero-button-light { margin: 4px 8px; }
@media (max-width: 650px) {
    a.hero-button-light, .page-hero-buttons a.hero-button-light { margin: 0 0 16px 0; }
}
@media (min-width: 1001px) and (max-width: 1500px) {
    header nav > ul { gap: 0.7em; }
    header nav a { font-size: 1rem; }
}
