/* ===== EOMC - Emeryville Occupational Medical Center ===== */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: "Ubuntu", "Trebuchet MS", "Segoe UI", Arial, sans-serif;
    font-size: 13px;
    line-height: 1.75;
    color: #333;
    background: #fff;
}
a { color: #7a0000; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; border: 0; }
p { margin: 0 0 10px; }

.top-line   { height: 2px; background: #d9d9d9; }
.wrapper    { max-width: 740px; margin: 0 auto; padding: 0 0 0; }

/* ---------- Header ---------- */
.site-header { display: flex; justify-content: space-between; align-items: flex-start; padding: 4px 0 14px; }
.logo img { display: block; width: 296px; }
.header-right { text-align: right; padding-top: 4px; }
.phone { color: #333; font-size: 15px; letter-spacing: .5px; display: inline-flex; align-items: center; gap: 6px; }
.phone:hover { text-decoration: none; }
.search input {
    margin-top: 6px; width: 124px; height: 20px;
    border: 1px solid #c9c9c9; padding: 2px 4px; font-size: 12px;
}

/* ---------- Main nav ---------- */
.menu-toggle { display: none; }
.main-nav { margin: 0 0 6px 10px; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: nowrap; }
.main-nav li { border: 1px solid #ececec; border-left: 0; }
.main-nav li:first-child { border-left: 1px solid #ececec; }
.main-nav a {
    display: block; padding: 8px 5px; white-space: nowrap;
    font-family: Arial, Helvetica, sans-serif; font-size: 10px; letter-spacing: -.1px;
    color: #7a0000; line-height: 1.4;
}
.main-nav a:hover { background: #f3f3f3; text-decoration: none; }
.main-nav a.active { background: #e9e9e9; color: #000; }

/* ---------- Blue tab nav ---------- */
.sub-nav { margin: 8px 0 0; border-bottom: 1px solid #e3e3e3; padding-bottom: 4px; }
.sub-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: nowrap; }
.sub-nav li { flex: 1 1 auto; border-right: 1px solid #fff; }
.sub-nav li:last-child { border-right: 0; }
.sub-nav a {
    display: block; text-align: center; background: #7fcbe2;
    color: #1d3a8f; font-size: 12.5px; padding: 4px 6px; white-space: nowrap;
}
.sub-nav a:hover, .sub-nav a.active { background: #5fb8d6; text-decoration: none; }

/* ---------- Content ---------- */
.content { min-height: 260px; padding-top: 4px; }
.home-content { padding-top: 6px; }
.page-banner { margin: 10px 0 0; padding-bottom: 14px; border-bottom: 1px solid #e3e3e3; }
.page-banner img { display: block; width: 100%; }
.intro { margin: 14px 0; }

.bar-title {
    background: linear-gradient(to bottom, #a9def0 0%, #6fc2df 100%);
    color: #fff; font-size: 15px; font-weight: bold; text-align: center;
    padding: 4px 10px; margin: 18px 0 16px;
}
h2.section-title { font-size: 15px; color: #222; font-weight: normal; border-bottom: 1px solid #ccc; padding-bottom: 4px; margin: 14px 0 18px; }
h3 { margin: 0 0 6px; font-size: 13.5px; color: #333; }
.text-blue { color: #2a7ab0; }

/* Home: slider + side */
.home-top { display: flex; justify-content: space-between; gap: 20px; margin: 10px 0 40px; }
.slider { width: 445px; flex-shrink: 0; }
.slides { position: relative; width: 100%; aspect-ratio: 801 / 425; overflow: hidden; background: #dfeff5; }
.slides a { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; }
.slides a.show { opacity: 1; z-index: 1; }
.slides img { width: 100%; height: 100%; display: block; }
.slider-pager { background: #eee; text-align: center; padding: 1px 0; margin-top: 3px; }
.slider-pager button {
    border: 0; background: none; font: bold 12px Arial, sans-serif;
    color: #a00000; padding: 1px 3px; cursor: pointer;
}
.slider-pager button.active { background: #d0d0d0; color: #000; }
.side-boxes { width: 220px; }
.side-boxes a { display: block; margin-bottom: 4px; }
.side-boxes img { display: block; width: 100%; }

/* Two column lists (products / onsite) */
.two-col { display: flex; gap: 70px; }
.two-col > div { flex: 1; }
.two-col .bar-title { margin-top: 6px; }
ul.square { margin: 0; padding-left: 12px; list-style: none; }
ul.square li { position: relative; padding-left: 0; }
ul.square li::before { content: "\25AA"; position: absolute; left: -11px; font-size: 9px; color: #777; }

/* Core values */
.values { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 30px; }
.value { display: flex; gap: 16px; padding-bottom: 18px; background: radial-gradient(ellipse at bottom, #e2e2e2 0%, transparent 60%) bottom/100% 6px no-repeat; }
.value img { width: 100px; height: 100px; flex-shrink: 0; }
.value h3 { color: #2a8bc0; font-size: 15px; margin: 0 0 8px; }

/* Health & safety */
.program { display: flex; gap: 16px; padding: 4px 0 14px; border-bottom: 1px solid #444; margin-bottom: 14px; }
.program:last-of-type { border-bottom: 0; }
.program img { width: 60px; height: 60px; flex-shrink: 0; }
.program h3 { font-size: 15px; color: #222; font-weight: normal; }
.program p { color: #2a5a8a; }
.program p.dark { color: #333; }

/* Medical research */
.center-head { text-align: center; font-size: 22px; color: #333; font-weight: normal; padding-bottom: 6px; border-bottom: 3px solid #a8d8e8; margin: 16px 0 26px; }
.center-head em { color: #7a0000; font-weight: bold; }
.research { display: flex; justify-content: space-between; gap: 20px; }
.research h3 { font-size: 15px; }
.research ul.square { max-width: 420px; }
.contact-box { text-align: center; max-width: 420px; margin-top: 18px; }
.contact-box .title { text-decoration: underline; color: #222; }
.contact-box .email { color: #c00000; }

/* Government */
.gov { display: flex; gap: 34px; font-size: 11.5px; }
.gov aside { width: 160px; flex-shrink: 0; font-weight: bold; }
.gov aside p { margin-bottom: 16px; }
.gov aside .naics { font-weight: normal; }
.gov .gov-title { text-align: center; font-style: italic; font-weight: bold; }
.gov ul { padding-left: 18px; margin: 0 0 12px; }
.gov .cols { display: grid; grid-template-columns: 1fr 1fr; }
.gov-contact { text-align: center; margin-top: 24px; padding-top: 18px; font-size: 12px; background: radial-gradient(ellipse at top, #e2e2e2 0%, transparent 60%) top/70% 4px no-repeat; }

/* Team */
.team-banner img { display: block; width: 100%; margin: 8px 0 22px; }
.member { display: flex; gap: 26px; padding-bottom: 22px; margin-bottom: 22px; background: radial-gradient(ellipse at bottom, #e2e2e2 0%, transparent 60%) bottom/100% 5px no-repeat; font-size: 12px; }
.member img { width: 70px; height: 84px; object-fit: cover; flex-shrink: 0; background: #eee; }
.member h3 { color: #2a8bc0; font-size: 14px; font-weight: normal; }

/* History */
.float-right { float: right; margin: 6px 0 10px 18px; width: 140px; }
.clearfix::after { content: ""; display: table; clear: both; }

/* Site map */
.sitemap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 20px; }
.sitemap a { display: block; line-height: 1.9; }

/* FAQ */
.faq details { border: 1px solid #d6edf5; margin-bottom: 8px; }
.faq summary { background: #eef8fb; padding: 6px 10px; cursor: pointer; color: #1d3a8f; font-weight: bold; }
.faq details p { padding: 8px 12px 2px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; text-align: center; gap: 10px; margin-top: 10px; }
.contact-grid h3 { color: #2a8bc0; font-weight: normal; font-size: 15px; }
.contact-grid .map iframe { width: 100%; height: 160px; border: 1px solid #ddd; }
.ethics { color: #2a7a2a; }
.ethics a { color: #c00000; }

/* Forms */
.form-row { margin-bottom: 10px; }
.form-row label { display: block; font-weight: bold; }
.form-row input, .form-row textarea { width: 100%; max-width: 420px; padding: 5px; border: 1px solid #c9c9c9; font: inherit; }
.btn { background: #7fcbe2; color: #1d3a8f; border: 0; padding: 6px 18px; cursor: pointer; font: inherit; }
.btn:hover { background: #5fb8d6; }
.notice { background: #eef8fb; border-left: 4px solid #7fcbe2; padding: 8px 12px; margin: 10px 0; }

/* Footer */
.site-footer { text-align: center; font-size: 10px; color: #999; padding: 40px 0 6px; }

/* ---------- Responsive (layout stays the same on desktop, stacks on mobile) ---------- */
@media (max-width: 760px) {
    .wrapper { padding: 0 12px; }
    .logo img { width: 220px; }
    .menu-toggle { display: block; width: 100%; background: #7a0000; color: #fff; border: 0; padding: 8px; font-size: 14px; cursor: pointer; margin-bottom: 6px; }
    .main-nav { display: none; margin: 0 0 6px; }
    body.nav-open .main-nav { display: block; }
    .main-nav ul { flex-direction: column; }
    .sub-nav ul { flex-wrap: wrap; }
    .main-nav li, .main-nav li:first-child { border: 1px solid #ececec; border-top: 0; }
    .main-nav a { font-size: 13px; padding: 8px 10px; }
    .sub-nav li { flex: 1 1 33%; border-bottom: 1px solid #fff; }
    .home-top, .two-col, .research, .gov, .member { flex-direction: column; gap: 14px; }
    .slider, .gov aside { width: 100%; }
    .side-boxes { width: 100%; max-width: 300px; margin: 0 auto; }
    .values, .sitemap, .contact-grid, .gov .cols { grid-template-columns: 1fr; }
    .float-right { float: none; display: block; margin: 0 auto 10px; }
}
@media (max-width: 480px) {
    .site-header { flex-direction: column; align-items: center; gap: 6px; }
    .header-right { text-align: center; }
    .sub-nav li { flex: 1 1 50%; }
}
