:root {
    --bg: #eaeaea;
    --text: #333333;
    --surface: #ffffff;
    --muted-surface: #f7f7f7;
    --primary: #0b7dda;
    --primary-dark: #0a5ea7;
    --accent: #0f172a;
    --shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    --border: #dddddd;
    --radius-lg: 12px;
    --radius-md: 10px;
    --radius-sm: 8px;
    --spacing-xs: 8px;
    --spacing-sm: 12px;
    --spacing: 1px;
    --spacing-lg: 20px;
    --font-heading: "Inter", "Segoe UI", Arial, Helvetica, sans-serif;
    --font-body: "Inter", "Segoe UI", Arial, Helvetica, sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 8px 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    position: relative;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #111;
}

.brand-mark {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    background: #0b0d14;
    padding: 6px;
    box-shadow: 0 14px 30px rgba(5, 30, 60, 0.35);
    position: relative;
    overflow: hidden;
}

.brand-mark::after {
    content: none;
}

.brand-mark img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand-text { line-height: 1.2; }
.brand-title { font-weight: 800; font-size: 1.05em; display: block; }
.brand-subtitle { font-size: 0.85em; color: #4b5563; display: block; }

.main-nav { flex: 1; }

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding: 0;
    margin: 0;
}

.nav-links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    border-radius: 999px;
    text-decoration: none;
    color: #111;
    font-weight: 600;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.nav-links a:hover {
    background: #f0f6ff;
    color: var(--primary);
}

.nav-links a.active {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 8px 18px rgba(11, 125, 218, 0.25);
}

.dropdown {
    position: relative;
    --dropdown-gap: 4px;
}

.dropdown-trigger {
    gap: 8px;
}

.dropdown.is-active > .dropdown-trigger {
    box-shadow: 0 8px 18px rgba(11, 125, 218, 0.25);
}

.chevron {
    font-size: 0.8em;
    transform: translateY(1px);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + var(--dropdown-gap));
    left: 0;
    min-width: 220px;
    background: #fff;
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
    list-style: none;
    margin: 0;
    gap: 6px;
    flex-direction: column;
    z-index: 20;
}

.dropdown-menu li { width: 100%; }

.dropdown-menu a {
    width: 100%;
    display: block;
    border-radius: 10px;
    padding: 10px 12px;
    font-weight: 600;
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu,
.dropdown.is-open .dropdown-menu {
    display: flex;
}

@media (hover: hover) and (pointer: fine) {
    .dropdown-menu::before {
        content: "";
        position: absolute;
        top: -12px;
        left: 0;
        right: 0;
        height: 12px;
        background: transparent;
    }
}

.menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #111;
    border-radius: 12px;
    padding: 10px 12px;
    cursor: pointer;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.06);
}

.menu-icon,
.menu-icon::before,
.menu-icon::after {
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
    border-radius: 999px;
    content: '';
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-icon { position: relative; }
.menu-icon::before { position: absolute; top: -7px; left: 0; }
.menu-icon::after { position: absolute; bottom: -7px; left: 0; }

.site-header.open .menu-icon { background: transparent; }
.site-header.open .menu-icon::before { transform: translateY(7px) rotate(45deg); }
.site-header.open .menu-icon::after { transform: translateY(-7px) rotate(-45deg); }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    color: #000;
    margin-top: 0;
	margin-bottom: 0;
}

.hero {
    height: 30vh;
    min-height: 260px;
    background: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)), url('../../bsf.jpg') center / cover no-repeat;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    animation: fadeIn 1.4s ease;
}

.hero h1, h2 {
    color: #fff;
    font-size: 2.4em;
    margin: 0 0 0 0;
    animation: slideDown 1s ease;
}

.box content-section h1, h2 {
    color: #000;
    font-size: 1.2em;
    margin: 0 0 0 0;
    animation: slideDown 1s ease;
}

.hero p {
    color: #fff;
    margin: 0 0;
    animation: fadeIn 1.6s ease;
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: var(--spacing-lg) auto 0 auto;
    padding: 0 var(--spacing);
}

.page-hero {
    position: relative;
    padding: 70px 20px;
    text-align: center;
    color: #fff;
    background: linear-gradient(135deg, rgba(11, 125, 218, 0.88), rgba(15, 23, 42, 0.95)),
        url('../../bsf.jpg') center / cover no-repeat;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.2);
    margin-bottom: -50px;
    overflow: hidden;
}

.page-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.08), transparent 55%);
    pointer-events: none;
}

.page-hero .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #e2e8f0;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.85em;
}

.page-hero h1 {
    margin: 4px 0 2px 0;
    color: #fff;
    font-size: clamp(1.8rem, 2.4vw, 2.6rem);
}

.page-hero p {
    margin: 0;
    color: #e5e7eb;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.page-hero.hero-legal {
    background: linear-gradient(135deg, #0f172a, #1f2937);
}

.page-hero.hero-diagnostic {
    background: linear-gradient(135deg, rgba(63, 98, 255, 0.9), rgba(15, 23, 42, 0.96)),
        url('../../bsf.jpg') center / cover no-repeat;
}

.page-hero.hero-service-alt {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.9), rgba(15, 23, 42, 0.95)),
        url('../../bsf.jpg') center / cover no-repeat;
}

.container.hero-offset {
    margin-top: -35px;
}

.container.narrow {
    max-width: 900px;
}

.box {
    background: var(--surface);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    margin-bottom: var(--spacing-sm);
    animation: slideUp 0.8s ease forwards;
}

.services,
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--spacing-sm);
}

.service-box,
.grid a {
    background: var(--muted-surface);
    padding: 15px;
    border-radius: var(--radius-sm);
    text-align: center;
    font-weight: 700;
    box-shadow: inset 0 0 0 1px var(--border);
    color: inherit;
    display: block;
    cursor: pointer;
}

.service-box:hover,
.grid a:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.service-box:active,
.grid a:active {
    transform: scale(0.98);
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(320px, 1.1fr) minmax(260px, 0.9fr);
    gap: var(--spacing);
    align-items: start;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

.contact-heading {
    margin-bottom: 10px;
}

.contact-subtitle {
    color: #6b7280;
    font-weight: 600;
    margin-top: 6px;
}

.contact-info p {
    margin-top: 0;
}

.contact a {
    display: inline-block;
    margin: 6px 0;
    font-weight: 700;
}

.contact-hours {
    background: linear-gradient(135deg, #f8fafc, #eef2ff);
    padding: 18px;
    border-radius: var(--radius-md);
    box-shadow: inset 0 0 0 1px #e5e7eb;
}

.hours-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.hours-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: #0b7dda;
    color: #fff;
    font-size: 1.2em;
}

.hours-subtitle {
    margin: 2px 0 0 0;
    color: #4b5563;
	font-size: 0.8em
}

.contact-hours h3 {
    margin: 0;
}

.contact-hours ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hours-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #fff;
    box-shadow: inset 0 0 0 1px #e5e7eb;
}

.hours-item .day {
    font-weight: 800;
}

.hours-item .time {
    font-weight: 700;
    color: #0f172a;
}

footer {
    background: #111;
    color: #fff;
    text-align: center;
    padding: 1px 10px 1px 10px;
    font-size: 0.9em;
}

footer a {
    color: #fff;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

.call-button {
    display: none;
    position: fixed;
    bottom: 5px;
    left: 15px;
    right: 15px;
    background: var(--primary);
    color: #fff;
    text-align: center;
    padding: 15px;
    border-radius: 14px;
    font-size: 1.2em;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
    animation: slideUp 0.8s ease;
    z-index: 1000;
}

.content-section {
    padding: var(--spacing-lg);
}

.content-section ul {
    padding-left: 18px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1100px) {
    .nav-links a { padding: 9px 12px; font-size: 0.95em; }
}

@media (max-width: 900px) {
    .hero { height: auto; padding: 40px 20px; }

    .main-nav { width: 100%; }
    .menu-toggle { display: inline-flex; }
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        margin-top: 8px;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        border-radius: 0 0 14px 14px;
        box-shadow: 0 0 0 rgba(0, 0, 0, 0);
        transition: max-height 0.3s ease, box-shadow 0.3s ease;
    }

    .site-header.open .nav-links {
        max-height: 520px;
        box-shadow: 0 18px 38px rgba(0, 0, 0, 0.12);
    }

    .nav-links li { width: 100%; border-top: 1px solid #f3f4f6; }
    .nav-links a { width: 100%; border-radius: 0; padding: 14px 18px; }

    .dropdown { width: 100%; }
    .dropdown-trigger { justify-content: space-between; }
    .dropdown-menu {
        position: static;
        width: 100%;
        padding: 0 0 12px 0;
        box-shadow: none;
        background: transparent;
        display: none;
    }
    .dropdown-menu a { padding: 12px 18px; border-radius: 0; }
    .site-header.open .dropdown-menu { display: block; }
}

@media (max-width: 600px) {
    .call-button { display: block; }
}
