/*
Theme Name: Electrical Expert Witness — Site 3
Description: Electrical forensic engineering and litigation support.
Version: 1.1.1
Requires at least: 6.3
Requires PHP: 7.4
Text Domain: eew-site-3
*/
:root {
    --navy: #12263d;
    --slate: #344453;
    --blue: #2677a8;
    --cool: #edf2f5;
    --white: #fff;
    --gold: #b59a65;
    --line: #cad7e0;
    --font: Inter, "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--slate); background: var(--white); font: 1rem/1.65 var(--font); }
a { color: #175981; text-underline-offset: .24em; }
a:hover { text-decoration-thickness: 2px; }
a:active, button:active { filter: brightness(.85); }
:focus-visible { outline: 3px solid #ad681f; outline-offset: 4px; }
.skip { position: absolute; top: .5rem; left: .5rem; z-index: 20; padding: .6rem 1rem; background: white; transform: translateY(-160%); }
.skip:focus { transform: none; }
.shell { width: min(1180px, calc(100% - 72px)); margin-inline: auto; }
.masthead { position: relative; z-index: 2; border-bottom: 1px solid var(--line); }
.masthead-inner { display: flex; align-items: center; justify-content: space-between; gap: .9rem; padding-block: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .75rem; color: var(--navy); text-decoration: none; line-height: 1.2; }
.brand strong { display: block; font-size: 1.05rem; }
.brand small { display: block; margin-top: .26rem; color: var(--slate); }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; flex: 0 0 42px; color: white; background: var(--navy); border-bottom: 3px solid var(--gold); font-size: 1.4rem; font-weight: 700; }
.menu { list-style: none; display: flex; flex-wrap: wrap; padding: 0; margin: 0; gap: .15rem clamp(.65rem, 1.2vw, 1rem); }
.menu a { display: block; padding: .72rem 0; color: var(--navy); font-size: .84rem; font-weight: 650; text-decoration: none; border-bottom: 2px solid transparent; }
.menu a:hover, .menu [aria-current="page"] { border-color: var(--blue); }
.nav-toggle { min-height: 44px; background: white; color: var(--navy); padding: .45rem .7rem; border: 1px solid var(--line); border-radius: .45rem; font: inherit; font-weight: 700; cursor: pointer; }
.page { padding-bottom: clamp(2.7rem, 6vw, 5rem); }
h1, h2, h3 { color: var(--navy); line-height: 1.15; margin: 0 0 .65rem; }
h1 { font-size: clamp(2.35rem, 5.4vw, 4.3rem); letter-spacing: -.047em; }
h2 { font-size: clamp(1.55rem, 2.65vw, 2.4rem); letter-spacing: -.028em; }
h3 { font-size: 1.22rem; letter-spacing: -.012em; }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }
.hero { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); overflow: hidden; margin-top: clamp(.9rem, 2vw, 1.65rem); border-radius: 1rem; background: var(--navy); color: var(--cool); }
.hero h1, .cta h2 { color: white; }
.hero-copy { padding: clamp(2.15rem, 5.4vw, 4.75rem); }
.hero h1 { font-size: clamp(2.25rem, 4.05vw, 3.35rem); text-wrap: balance; }
.hero-copy > p:not(.kicker) { max-width: 52ch; font-size: clamp(1rem, 1.8vw, 1.18rem); }
.kicker { color: #175981; font-size: .79rem; font-weight: 750; letter-spacing: .075em; text-transform: uppercase; }
.hero .kicker { color: #e2c991; }
.hero-graphic { background: #233a50 url("images/switchgear-hero.jpg") center 52% / cover no-repeat; }
.hero-graphic span { display: none; }
.actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.55rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 44px; background: var(--blue); border: 1px solid transparent; border-radius: .45rem; color: white; padding: .56rem 1rem; text-decoration: none; font: inherit; font-weight: 700; cursor: pointer; }
.button:hover { background: #1d6693; }
.header-cta { flex-shrink: 0; font-size: .875rem; }
.hero .button, .cta .button { border-color: #8db9d4; }
.hero .secondary { border-color: #91a9bc; color: white; background: var(--navy); }
.hero .secondary:hover { background: #23425d; }
.homepage-expert { display: flex; align-items: center; gap: clamp(.95rem, 3vw, 1.75rem); padding: clamp(1rem, 3vw, 2rem) 0; }
.homepage-expert img { flex: none; width: clamp(76px, 14vw, 126px); height: auto; aspect-ratio: 1; object-fit: cover; border-radius: .65rem; }
.homepage-expert h2 { font-size: clamp(1.25rem, 3vw, 1.7rem); margin-bottom: .25rem; }
.homepage-expert p { margin-bottom: .25rem; }
.homepage-expert a { font-weight: 650; }
.credentials { display: grid; grid-template-columns: repeat(4, 1fr); list-style: none; padding: 0; margin: 0; background: var(--cool); }
.credentials li { padding: 1.1rem 1.25rem; border-bottom: 1px solid var(--line); font-weight: 650; font-size: .92rem; color: var(--navy); }
.credentials li + li { border-left: 1px solid var(--line); }
.section, .intro, .cta { margin-top: clamp(2.3rem, 5vw, 4.65rem); }
.intro { padding-bottom: 1.65rem; margin-bottom: 1.7rem; border-bottom: 1px solid var(--line); }
.intro h1 { max-width: 22ch; }
.lead { max-width: 60ch; font-size: 1.15rem; }
.section-head, .cta { display: flex; align-items: baseline; justify-content: space-between; gap: .6rem 1.5rem; flex-wrap: wrap; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.card, .panel, .quote { padding: clamp(1.1rem, 2.6vw, 2rem); }
.card { border-top: 1px solid var(--line); padding-inline: 0; }
.card:has(.case-role) { border: 1px solid var(--line); border-radius: .7rem; padding-inline: clamp(1.1rem, 2.6vw, 2rem); }
.card:target { background: var(--cool); }
.card h2 { font-size: 1.3rem; }
.card h3 a { color: var(--navy); }
.card .kicker { margin-bottom: .55rem; }
.case-role { font-size: .92rem; }
.panel, .quote { background: var(--cool); }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.15rem, 4vw, 3rem); align-items: start; }
.checks { padding-left: 1.15rem; margin: 0; }
.checks li + li { margin-top: .55rem; }
.quote { margin: 0; border-left: 3px solid var(--gold); }
.panel .quote { padding-block: .3rem; }
blockquote { margin: 0; font-size: 1.1rem; color: var(--navy); }
figcaption { margin-top: .65rem; font-size: .9rem; font-weight: 650; }
.cta { background: var(--navy); color: var(--cool); align-items: center; padding: clamp(1.2rem, 3.5vw, 2.5rem); }
.cta h2 { max-width: 25ch; }
.prose { max-width: 74ch; }
.prose h2:not(:first-child) { margin-top: 1.6rem; }
.profile { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.5rem); }
.profile img { flex: none; width: 140px; height: 140px; object-fit: cover; border: 1px solid var(--line); }
details { border-top: 1px solid var(--line); padding: .65rem 0; }
summary { font-weight: 700; cursor: pointer; color: var(--navy); }
details p { margin-top: .55rem; }
address { font-style: normal; }
.contact-layout { overflow-wrap: anywhere; }
.inquiry { display: grid; gap: .85rem; margin-block: 1rem; }
.inquiry label { display: grid; gap: .25rem; font-weight: 650; }
.inquiry input, .inquiry select, .inquiry textarea { width: 100%; font: inherit; padding: .58rem; border: 1px solid #748a9c; border-radius: 0; color: var(--navy); background: white; }
.inquiry button { justify-self: start; }
.notice { padding: .85rem; border-left: 3px solid var(--blue); background: var(--cool); }
.site-footer { background: var(--navy); color: var(--cool); }
.site-footer a { color: white; overflow-wrap: anywhere; }
.footer-inner { display: grid; grid-template-columns: 1.15fr 1fr .75fr; gap: 1rem; padding-block: 2rem; }
@media (max-width: 1200px) {
    .masthead-inner { justify-content: flex-start; flex-wrap: wrap; }
    .navigation { margin-left: auto; }
    .nav-toggle:not([hidden]) + .menu:not([hidden]) { position: absolute; inset: 100% 0 auto; background: var(--white); padding: .6rem max(16px, calc((100% - 1180px) / 2)); border-bottom: 1px solid var(--line); }
}
@media (max-width: 900px) {
    .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    .shell { width: calc(100% - 32px); }
    .menu { gap: 0 1rem; }
    .credentials { grid-template-columns: repeat(2, 1fr); }
    .credentials li:nth-child(3) { border-left: 0; }
    .hero { grid-template-columns: 1fr; }
    .hero-graphic { min-height: clamp(155px, 36vw, 250px); }
    .split, .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 500px) {
    .masthead-inner { gap: .5rem; }
    .header-cta, .nav-toggle { font-size: .8rem; padding-inline: .48rem; }
    .brand { flex: 1 1 120px; }
    .brand-mark { display: none; }
    .brand small { font-size: .73rem; }
    .grid { grid-template-columns: 1fr; }
    .profile { align-items: flex-start; flex-direction: column; }
}
