/* Elite Test and Tag — public theme.
 *
 * Reproduces the site's own pre-existing design, which its customers already
 * recognise: light background, navy headings, a navy->cyan gradient on pill
 * buttons, alternating white / #F2F2F2 bands.
 *
 * Values are MEASURED from the old site's rendered pages (computed styles off
 * the offline mirror), not eyeballed:
 *   body      15px / #4B4F58 on #fff
 *   headings  700 / #1A2980
 *   accent    linear-gradient(90deg, #1A2980, #32BFF2)
 *   buttons   30px radius, 15px/500, white text
 *   bands     #F2F2F2
 *
 * The old CSS itself was not reused: it is minified SiteGround bundles of
 * Elementor's framework, tied to WordPress markup, and would have to be
 * carried whole to work at all.
 *
 * Layout primitives here are FIXED (repeat(N, 1fr) with one breakpoint), per
 * .claude/rules/frontend/cross-domain-consistency.md — content must never be
 * able to change the column count.
 */

:root {
    --etat-navy: #1a2980;
    --etat-cyan: #32bff2;
    --etat-ink: #4b4f58;
    --etat-band: #f2f2f2;
    --etat-line: #e2e5ea;
    --etat-max: 1140px;
    --etat-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                 Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* ── base ───────────────────────────────────────────────────────────── */

.etat {
    margin: 0;
    background: #fff;
    color: var(--etat-ink);
    font: 15px/1.7 var(--etat-font);
    -webkit-font-smoothing: antialiased;
}

.etat *, .etat *::before, .etat *::after { box-sizing: border-box; }

.etat h1, .etat h2, .etat h3, .etat h4 {
    color: var(--etat-navy);
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 .6em;
}

.etat h1 { font-size: 40px; }
.etat h2 { font-size: 30px; }
.etat h3 { font-size: 20px; }
.etat p { margin: 0 0 1.1em; }
.etat a { color: var(--etat-cyan); text-decoration: none; }
.etat a:hover { text-decoration: underline; }
/* height:auto keeps the ratio when only a width is given; object-fit is the
 * backstop for the reverse — a max-height with no width:auto clamps the height
 * while the width stays put, which is how two portrait illustrations shipped
 * squashed. Any max-height on an img in this file also carries width:auto. */
.etat img { max-width: 100%; height: auto; object-fit: contain; }
.etat ul, .etat ol { margin: 0 0 1.1em; padding-left: 1.3em; }
.etat li { margin: 0 0 .4em; }
.etat strong { color: #2b2f38; }

.etat-wrap {
    max-width: var(--etat-max);
    margin: 0 auto;
    padding: 0 24px;
}

.etat-band { background: var(--etat-band); }
.etat-section { padding: 64px 0; }

/* ── buttons ────────────────────────────────────────────────────────── */

.etat-btn {
    display: inline-block;
    padding: 15px 30px;
    border: 0;
    border-radius: 30px;
    background: linear-gradient(90deg, var(--etat-navy) 0%, var(--etat-cyan) 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: .04em;
    text-transform: uppercase;
    cursor: pointer;
}
.etat-btn:hover { color: #fff; text-decoration: none; opacity: .92; }

.etat-btn--pill {
    padding: 10px 32px;
    background: linear-gradient(160deg, var(--etat-cyan) 0%, var(--etat-navy) 100%);
    font-size: 16px;
    font-weight: 400;
}

/* ── header ─────────────────────────────────────────────────────────── */

.etat-header {
    background: #fff;
    border-bottom: 1px solid var(--etat-line);
    position: sticky;
    top: 0;
    z-index: 40;
}
.etat-header .etat-wrap {
    display: flex;
    align-items: center;
    gap: 24px;
    /* 102px header / 92px logo are the old site's own measurements. At the 76/46
     * this started with, the logo rendered at exactly half size and its
     * "ONSITE ELECTRICAL TEST AND TAGGING" line turned to mush. */
    min-height: 102px;
}
.etat-logo { flex: 0 0 auto; }
.etat-logo img { display: block; max-height: 92px; width: auto; }

.etat-nav { margin-left: auto; }
.etat-nav ul {
    display: flex;
    align-items: center;
    gap: 22px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.etat-nav li { margin: 0; }
.etat-nav a {
    color: var(--etat-navy);
    font-size: 14px;
    font-weight: 600;
}
.etat-nav a[aria-current="page"] { color: var(--etat-cyan); }

.etat-nav-toggle {
    display: none;
    margin-left: auto;
    /* 44px is the touch-target floor; 8px padding on a 14px line gave 34px. */
    min-height: 44px;
    padding: 10px 14px;
    border: 1px solid var(--etat-line);
    border-radius: 6px;
    background: #fff;
    color: var(--etat-navy);
    font: 600 14px var(--etat-font);
    cursor: pointer;
}

/* ── hero ───────────────────────────────────────────────────────────── */

.etat-hero { background: var(--etat-band); padding: 72px 0; }
.etat-hero .etat-wrap {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 48px;
    align-items: center;
}
.etat-hero h1 { margin-bottom: .5em; }
.etat-hero-media { text-align: center; }
/* width:auto is load-bearing here — see the img rule at the top. */
.etat-hero-media img { max-height: 340px; width: auto; }

/* ── page body (authored HTML) ──────────────────────────────────────── */

.etat-body { padding: 56px 0; }
.etat-body h2 { margin-top: 1.6em; }
.etat-body h2:first-child { margin-top: 0; }

/* Pricing cards — the two gradient tiles with a + between them. */
.etat-price-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 20px;
    align-items: center;
    margin: 28px 0 8px;
}
.etat-price-card {
    padding: 30px 24px;
    border-radius: 10px;
    background: linear-gradient(160deg, var(--etat-cyan) 0%, var(--etat-navy) 100%);
    color: #fff;
    text-align: center;
}
.etat-price-card p { margin: 0 0 .4em; font-size: 14px; }
.etat-price-card .etat-price-amount {
    display: block;
    margin: .2em 0;
    font-size: 30px;
    font-weight: 800;
    line-height: 1.2;
}
.etat-price-plus {
    color: var(--etat-navy);
    font-size: 38px;
    font-weight: 800;
    line-height: 1;
}

/* Suburb tiles — N / S / City / E / W. */
.etat-area-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin: 28px 0;
    padding: 0;
    list-style: none;
}
.etat-area-grid li { margin: 0; }
.etat-area-card {
    display: block;
    padding: 26px 10px 18px;
    border: 1px solid var(--etat-cyan);
    border-radius: 8px;
    background: #fff;
    text-align: center;
}
.etat-area-card:hover { text-decoration: none; box-shadow: 0 6px 18px rgba(26,41,128,.12); }
.etat-area-initial {
    display: block;
    margin-bottom: 6px;
    color: var(--etat-navy);
    font-size: 46px;
    font-weight: 800;
    line-height: 1;
}
.etat-area-name { color: var(--etat-cyan); font-size: 14px; font-weight: 600; }

/* Two-column block: illustration beside text (FAQ, about). */
.etat-split {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    align-items: center;
    margin: 28px 0;
}
.etat-split-media { text-align: center; }
.etat-split-media img { max-height: 320px; width: auto; }

/* Centred band callout. */
.etat-callout { text-align: center; }
.etat-callout h2 { text-transform: uppercase; letter-spacing: .02em; }
.etat-callout p { max-width: 720px; margin-left: auto; margin-right: auto; font-size: 17px; }

/* Tables (the AS/NZS 3760 interval schedule). */
.etat-body .table-wrapper { overflow-x: auto; margin: 0 0 1.6em; }
.etat-body table { width: 100%; border-collapse: collapse; font-size: 14px; }
.etat-body caption { padding-bottom: 10px; color: var(--etat-ink); font-size: 13px; text-align: left; }
.etat-body th, .etat-body td {
    padding: 10px 12px;
    border: 1px solid var(--etat-line);
    text-align: left;
    vertical-align: top;
}
.etat-body thead th { background: var(--etat-band); color: var(--etat-navy); }
.etat-body tbody th { background: #fafbfc; font-weight: 600; }

/* ── footer ─────────────────────────────────────────────────────────── */

.etat-footer {
    padding: 48px 0 28px;
    background: var(--etat-band);
    font-size: 14px;
}
.etat-footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.etat-footer h3 {
    margin-bottom: .5em;
    font-size: 13px;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.etat-footer ul { margin: 0; padding: 0; list-style: none; }
.etat-footer li { margin: 0 0 .35em; }
.etat-footer a { color: var(--etat-navy); }
.etat-footer-logo img { max-height: 64px; width: auto; margin-bottom: 14px; }
.etat-colophon {
    margin-top: 32px;
    padding-top: 18px;
    border-top: 1px solid var(--etat-line);
    color: #6b7078;
    font-size: 12px;
}
.etat-colophon strong { display: block; color: var(--etat-navy); letter-spacing: .06em; }

/* ── one breakpoint ─────────────────────────────────────────────────── */

@media (max-width: 860px) {
    .etat h1 { font-size: 30px; }
    .etat h2 { font-size: 24px; }

    /* The logo is a wide mark: at the desktop 92px height it is 343px across,
     * which with the 24px gap is 367px — 7px past a 360px phone, and that is
     * exactly the sideways scroll this had on every page. Height is the only
     * handle, since width follows the ratio. */
    .etat-header .etat-wrap { min-height: 68px; }
    .etat-logo img { max-height: 52px; }

    .etat-nav-toggle { display: block; }
    .etat-nav {
        display: none;
        flex: 1 0 100%;
        margin: 0 0 16px;
        order: 3;
    }
    .etat-nav.is-open { display: block; }
    .etat-nav ul { flex-direction: column; align-items: flex-start; gap: 10px; }
    .etat-header .etat-wrap { flex-wrap: wrap; padding-top: 12px; }

    .etat-hero { padding: 44px 0; }
    .etat-hero .etat-wrap,
    .etat-split,
    .etat-footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .etat-hero-media { order: -1; }

    .etat-price-row { grid-template-columns: 1fr; }
    .etat-price-plus { text-align: center; }

    .etat-area-grid { grid-template-columns: repeat(2, 1fr); }

    /* Touch-target floor for everything tappable in the mobile nav. */
    .etat-nav a { display: block; min-height: 44px; line-height: 44px; }
    .etat-nav .etat-btn--pill { line-height: 24px; }

    .etat-section, .etat-body { padding: 40px 0; }
}
