/**
 * Matson Iron Casting — shared layout & accessibility baseline.
 *
 * data-fragment hooks (for future includes / static site generators):
 *   site-skip        — skip navigation link
 *   site-header      — global header
 *   brand-lockup     — logo / home link (MATSONIRON wordmark in <h1>)
 *   site-breadcrumb  — breadcrumb strip below header
 *   primary-nav      — main navigation landmark
 *   site-main        — primary content wrapper (<main>)
 *   site-footer      — global footer
 *   page-hero        — optional: first hero inside main (add per page if useful)
 *   section-*        — optional: major sections inside main (add as you split templates)
 */

/* ---- Skip link ---- */
.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    z-index: 1000;
    padding: 0.75rem 1.25rem;
    background: #e68a2e;
    color: #0a2a3b;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0 0 8px 0;
}
.skip-link:focus {
    left: 0;
    top: 0;
    width: auto;
    height: auto;
    overflow: visible;
}

/* ---- Logo / home link (same wordmark as about.html) ---- */
a.logo {
    text-decoration: none;
    color: inherit;
    display: inline-block;
}
a.logo:hover {
    opacity: 0.92;
}
.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: #fff;
    margin: 0;
    line-height: 1.15;
}
.logo h1 span {
    font-weight: 300;
    color: #e68a2e;
}

/* ---- Breadcrumbs (below header) ---- */
.breadcrumb-wrap {
    background: #f0f4f7;
    border-bottom: 1px solid #dce6ec;
    padding: 0.65rem 0;
    font-size: 0.875rem;
}
/* Below page hero: extra breathing room vs header-adjacent strip */
.breadcrumb-wrap--after-hero {
    padding-top: 1rem;
    padding-bottom: 1rem;
    border-top: 1px solid #e2e8f0;
}
.breadcrumbs ol {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 0;
    color: #5a6f7a;
}
.breadcrumbs li {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.breadcrumbs li:not(:last-child)::after {
    content: "/";
    color: #9fb0bd;
    font-weight: 400;
    margin-left: 0.5rem;
    pointer-events: none;
}
.breadcrumbs a {
    color: #0a2a3b;
    text-decoration: none;
    font-weight: 500;
}
.breadcrumbs a:hover {
    color: #e68a2e;
    text-decoration: underline;
}
.breadcrumbs [aria-current="page"] {
    color: #6b7a8a;
    font-weight: 500;
}

/* Primary nav wrapper — keeps .navbar flex layout (logo | toggle | nav>ul) */
.primary-nav {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}
@media (max-width: 900px) {
    .primary-nav {
        width: 100%;
        justify-content: center;
        flex-basis: 100%;
        order: 3;
    }
}

/* Mobile menu control as real button */
button.menu-toggle {
    font: inherit;
    background: none;
    border: none;
    padding: 0;
    line-height: 1;
}

/* FAQ trigger as button (shared with page inline .faq-item rules) */
button.faq-question {
    width: 100%;
    font: inherit;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}

/* Home hero: allow <h1> primary headline */
.hero-content h1,
.hero-content h2 {
    font-size: 3.2rem;
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.7);
    background: rgba(0, 0, 0, 0.3);
    padding: 10px 20px;
    border-radius: 8px;
    display: inline-block;
    margin-bottom: 1rem;
    line-height: 1.15;
}
@media (max-width: 900px) {
    .hero-content h1,
    .hero-content h2 {
        font-size: 2.2rem;
    }
}
