/* ============================================================
   Going Electric  ·  goingelectric.ca
   Family-owned electrical contractor · Greater Golden Horseshoe · est. 1988

   Design notes (so the next person understands the intent):
   - Palette is pulled from the company's own photos: warm "shop paper"
     neutrals, the friendly cobalt blue of the logo, and a deep navy.
     No second accent, no amber, no gradients-as-decoration.
   - One serif (Newsreader) carries the headlines — it reads "established,
     made by people who care." Everything else is a quiet humanist sans.
   - Restraint over decoration. Hairlines instead of heavy shadows; the
     real photographs do the talking.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@400;500;600;700&family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;0,6..72,600;1,6..72,400;1,6..72,500&display=swap');

:root {
    /* Brand blue — sampled from the logo (~#0068f8), tuned for UI/contrast */
    --blue:        #0a64ea;   /* primary actions */
    --blue-bright: #0068f8;   /* the true logo blue, for small bright accents */
    --blue-ink:    #0a4fbf;   /* link/label text on paper (AA on white) */
    --blue-deep:   #093e95;

    /* Deep navy — the one dark surface (footer) */
    --navy:        #11233c;
    --navy-soft:   #1b3454;

    /* Warm ink + neutrals */
    --ink:         #211d17;   /* headings — warm near-black */
    --body:        #4e4842;   /* body copy — warm gray */
    --muted:       #8b8275;   /* labels, captions, meta */

    /* Warm "shop paper" surfaces */
    --paper:       #f6f2ea;   /* primary warm section field */
    --paper-deep:  #efe8db;   /* slightly deeper warm field */
    --white:       #fffdf8;   /* warm white — cards & bright sections */
    --line:        #e6decf;   /* warm hairline */
    --line-soft:   #ede6d8;

    /* Type */
    --display: "Newsreader", Georgia, "Times New Roman", serif;
    --sans:    "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

    /* Form */
    --radius:    12px;
    --radius-sm: 9px;
    --shadow-photo: 0 24px 50px -28px rgba(33, 29, 23, 0.45);
    --shadow-soft:  0 2px 14px -6px rgba(33, 29, 23, 0.16);
    --header-h:  76px;
    --ease:      cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
    font-family: var(--sans);
    color: var(--body);
    background: var(--white);
    line-height: 1.7;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: var(--display);
    color: var(--ink);
    line-height: 1.12;
    letter-spacing: -0.012em;
    font-weight: 500;
    text-wrap: balance;
}
h4 { font-family: var(--sans); color: var(--ink); }

p { text-wrap: pretty; }

a { color: var(--blue-ink); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--blue-deep); }

img { max-width: 100%; height: auto; display: block; }

strong { color: var(--ink); font-weight: 600; }

::selection { background: var(--blue); color: #fff; }

:focus-visible { outline: 3px solid var(--blue-bright); outline-offset: 2px; border-radius: 3px; }

/* Skip link — visible only on keyboard focus */
.skip-link {
    position: absolute;
    left: 50%; top: 0.5rem;
    transform: translate(-50%, -160%);
    z-index: 1100;
    background: var(--blue);
    color: #fff;
    padding: 0.65rem 1.2rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: translate(-50%, 0); color: #fff; }

/* ---- Layout ---- */
.container { width: 90%; max-width: 1140px; margin: 0 auto; }
.section { padding: clamp(3.75rem, 7.5vw, 6.5rem) 0; }
.section--paper { background: var(--paper); }
.section--white { background: var(--white); }

/* Quiet section label (no decorative dash) */
.label {
    display: inline-block;
    font-family: var(--sans);
    font-weight: 600;
    font-size: 0.76rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--blue-ink);
    margin-bottom: 1rem;
}

.section-head { max-width: 660px; margin: 0 0 3rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 4vw, 2.95rem); }
.section-head p { margin-top: 1.1rem; color: var(--body); font-size: 1.1rem; }

/* ============================================================
   Header / Nav — always light & warm; hairline appears on scroll
   ============================================================ */
.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1000;
    background: rgba(255, 253, 248, 0.85);
    backdrop-filter: saturate(150%) blur(12px);
    -webkit-backdrop-filter: saturate(150%) blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.site-header.scrolled {
    border-bottom-color: var(--line);
    box-shadow: var(--shadow-soft);
}
.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    height: var(--header-h);
}
.logo { display: flex; align-items: center; }
.logo img { height: 46px; width: auto; }

.main-nav ul { list-style: none; display: flex; align-items: center; gap: 2.1rem; }
.main-nav a {
    position: relative;
    color: var(--ink);
    font-weight: 500;
    font-size: 1rem;
    padding: 0.4rem 0;
}
.main-nav a::after {
    content: "";
    position: absolute;
    left: 0; bottom: -1px;
    width: 0; height: 2px;
    background: var(--blue);
    transition: width 0.25s var(--ease);
}
.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after { width: 100%; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--blue-ink); }

.nav-actions { display: flex; align-items: center; gap: 1.1rem; }
.nav-cta { white-space: nowrap; }
.nav-cta-mobile { display: none; }

.nav-toggle {
    display: none;
    background: none; border: none; cursor: pointer;
    width: 44px; height: 44px; padding: 10px;
}
.nav-toggle span {
    display: block; width: 100%; height: 2px;
    background: var(--ink); border-radius: 2px;
    transition: 0.3s var(--ease);
}
.nav-toggle span + span { margin-top: 6px; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.9rem 1.55rem;
    border-radius: var(--radius-sm);
    font-family: var(--sans);
    font-weight: 600;
    font-size: 1rem;
    line-height: 1;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: transform 0.18s var(--ease), background 0.22s var(--ease), color 0.22s var(--ease), border-color 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* Primary — solid logo blue */
.btn-primary {
    background: var(--blue);
    color: #fff;
    box-shadow: 0 10px 22px -12px rgba(10, 100, 234, 0.85);
}
.btn-primary:hover { background: var(--blue-deep); color: #fff; transform: translateY(-2px); }

/* Secondary — outline on light */
.btn-outline {
    background: transparent;
    color: var(--blue-ink);
    border-color: var(--line);
}
.btn-outline svg { stroke: currentColor; fill: none; }
.btn-outline:hover { border-color: var(--blue); color: var(--blue-ink); background: var(--white); transform: translateY(-2px); }

/* On the navy footer / dark contexts */
.btn-ondark {
    background: #fff;
    color: var(--navy);
    border-color: #fff;
}
.btn-ondark:hover { background: var(--blue-bright); color: #fff; border-color: var(--blue-bright); transform: translateY(-2px); }

.btn-lg { padding: 1.05rem 1.9rem; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* A plain, friendly phone affordance */
.phone-link {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--ink);
}
.phone-link svg { width: 19px; height: 19px; fill: var(--blue); }
.phone-link:hover { color: var(--blue-ink); }
.phone-link strong { color: inherit; font-weight: 600; }

/* Text link with arrow */
.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--blue-ink);
    margin-top: 0.5rem;
}
.link-arrow svg { width: 18px; height: 18px; fill: currentColor; transition: transform 0.25s var(--ease); }
.link-arrow:hover { color: var(--blue-deep); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ============================================================
   Hero — editorial split: warm headline + real photo, true colour
   ============================================================ */
.hero {
    background: var(--white);
    padding: calc(var(--header-h) + 3.25rem) 0 clamp(3.5rem, 6vw, 5.5rem);
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.02fr 0.98fr;
    gap: clamp(2.5rem, 5vw, 4.5rem);
    align-items: center;
}
.hero-copy { max-width: 560px; }
.hero-copy .est {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--blue-ink);
    margin-bottom: 1.4rem;
}
.hero-copy .est::before {
    content: "";
    width: 9px; height: 9px;
    border-radius: 50%;
    background: var(--blue-bright);
    box-shadow: 0 0 0 4px rgba(0, 104, 248, 0.16);
}
.hero h1 {
    font-size: clamp(2.5rem, 5.4vw, 4rem);
    line-height: 1.06;
    margin-bottom: 1.4rem;
}
.hero h1 em { font-style: italic; color: var(--blue-ink); font-weight: 500; }
.hero .lead {
    font-size: clamp(1.08rem, 1.5vw, 1.22rem);
    line-height: 1.6;
    color: var(--body);
    margin-bottom: 2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.4rem; }
.hero-note { margin-top: 1.4rem; font-size: 0.95rem; color: var(--muted); }
.hero-note a { font-weight: 600; }

/* Framed project photo */
.hero-figure { margin: 0; }
.hero-figure .frame {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-photo);
    border: 1px solid var(--line);
}
.hero-figure img { width: 100%; display: block; }
.hero-figure figcaption {
    margin-top: 0.9rem;
    font-family: var(--display);
    font-style: italic;
    font-size: 0.98rem;
    color: var(--muted);
    line-height: 1.5;
    max-width: 46ch;
}

/* Hero mosaic — a few real projects: a lead photo + three smaller tiles */
.hero-mosaic { margin: 0; }
.hm-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    grid-template-rows: repeat(3, 1fr);
    gap: 12px;
    height: clamp(360px, 40vw, 500px);
}
.hm-tile {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-photo);
}
.hm-tile.hm-lead { grid-row: 1 / 4; }
.hm-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.hm-tile:hover img { transform: scale(1.05); }
/* staggered reveal — tiles cascade in on load */
.js .hm-tile.reveal:nth-child(2) { transition-delay: 0.09s; }
.js .hm-tile.reveal:nth-child(3) { transition-delay: 0.18s; }
.js .hm-tile.reveal:nth-child(4) { transition-delay: 0.27s; }
.hero-mosaic figcaption {
    margin-top: 0.9rem;
    font-family: var(--display);
    font-style: italic;
    font-size: 0.98rem;
    color: var(--muted);
    line-height: 1.5;
    max-width: 46ch;
}

/* Light hero variant for inner pages */
.hero-light {
    background: var(--paper);
    padding: calc(var(--header-h) + 3rem) 0 3.25rem;
    text-align: center;
    border-bottom: 1px solid var(--line);
}
.hero-light h1 { font-size: clamp(2.1rem, 4.6vw, 3.2rem); }
.hero-light .lead {
    color: var(--body);
    max-width: 680px;
    margin: 1.1rem auto 0;
    font-size: 1.12rem;
    line-height: 1.65;
}

/* ============================================================
   Pillars — three genuine values; quiet columns, meaningful icons
   ============================================================ */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1.5rem, 3vw, 2.75rem);
}
.pillar {
    padding-top: 1.6rem;
    border-top: 2px solid var(--ink);
}
.pillar-icon {
    width: 44px; height: 44px;
    color: var(--blue);
    margin-bottom: 1.1rem;
}
.pillar-icon svg {
    width: 44px; height: 44px;
    fill: currentColor;
}
.pillar h3 { font-size: 1.55rem; margin-bottom: 0.7rem; }
.pillar p { font-size: 1rem; line-height: 1.66; color: var(--body); }

/* ============================================================
   Our people — large team photo + family story
   ============================================================ */
.people-grid {
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    gap: clamp(2.5rem, 5vw, 4.5rem);
    align-items: center;
}
.people-photo { margin: 0; }
.people-photo .frame {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-photo);
    border: 1px solid var(--line);
}
.people-photo img { width: 100%; }
.people-photo figcaption {
    margin-top: 0.9rem;
    font-family: var(--display);
    font-style: italic;
    font-size: 0.98rem;
    color: var(--muted);
}
.people-content h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); margin-bottom: 1.2rem; }
.people-content p { margin-bottom: 1rem; font-size: 1.06rem; }
.people-content p:last-of-type { margin-bottom: 0; }

/* ============================================================
   What we do — plain, honest service list
   ============================================================ */
.work-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 0.5rem;
}
.work-item {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.75rem 1.85rem;
    display: flex;
    gap: 1.1rem;
    align-items: flex-start;
    transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.work-item:hover { border-color: var(--blue); transform: translateY(-2px); }
.work-item .wi-icon {
    flex-shrink: 0;
    width: 30px; height: 30px;
    color: var(--blue);
    margin-top: 2px;
}
.work-item .wi-icon svg { width: 30px; height: 30px; fill: currentColor; }
.work-item h3 { font-size: 1.25rem; margin-bottom: 0.35rem; }
.work-item p { font-size: 0.97rem; line-height: 1.6; color: var(--body); }

/* ============================================================
   CTA — warm invitation (no dark gradient band)
   ============================================================ */
.cta {
    background: var(--paper-deep);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.cta-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}
.cta-text { max-width: 34ch; }
.cta-text h2 { font-size: clamp(1.85rem, 3.4vw, 2.6rem); margin-bottom: 0.6rem; }
.cta-text p { color: var(--body); font-size: 1.08rem; }
.cta-actions { display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; }
.cta-actions .or { font-size: 0.92rem; color: var(--muted); }

/* ============================================================
   Footer — one solid navy surface, clean
   ============================================================ */
.site-footer { background: var(--navy); color: rgba(255,255,255,0.66); font-size: 0.96rem; }
.footer-top {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1.3fr;
    gap: 3rem;
    padding: clamp(3rem, 5vw, 4rem) 0 3rem;
}
.footer-brand img { height: 40px; width: auto; margin-bottom: 1.2rem; filter: brightness(0) invert(1); }
.footer-brand p { max-width: 32ch; line-height: 1.7; }
.footer-social { display: flex; gap: 0.7rem; margin-top: 1.4rem; }
.footer-social a {
    width: 40px; height: 40px;
    display: grid; place-items: center;
    border-radius: 9px;
    background: rgba(255,255,255,0.08);
    color: #fff;
    transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}
.footer-social a:hover { background: var(--blue-bright); transform: translateY(-2px); }
.footer-social svg { width: 18px; height: 18px; fill: currentColor; }

.footer-col h4 {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 1.1rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.65rem; }
.footer-col a { color: rgba(255,255,255,0.66); }
.footer-col a:hover { color: #fff; }

.footer-contact p { margin-bottom: 0.7rem; display: flex; gap: 0.6rem; align-items: flex-start; }
.footer-contact svg { width: 18px; height: 18px; fill: var(--blue-bright); flex-shrink: 0; margin-top: 3px; }
.footer-contact a { color: rgba(255,255,255,0.85); }
.footer-contact a:hover { color: #fff; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 1.4rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-size: 0.86rem;
    color: rgba(255,255,255,0.5);
}
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: #fff; }

/* ============================================================
   Contact page
   ============================================================ */
/* Jobber's form paints its own pure-white body inside the iframe (cross-origin React app,
   no theme API). We can't reach that, so we flip the approach: make this section pure
   white so the form blends into it instead of looking like a card. */
.contact-body { padding: clamp(3rem, 6vw, 4.5rem) 0 clamp(3.5rem, 7vw, 5.5rem); background: #ffffff; }
.contact-layout { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }

.contact-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 2.1rem;
}
.contact-card h2 { font-size: 1.45rem; margin-bottom: 0.35rem; }
.contact-card .card-intro { font-size: 0.98rem; color: var(--body); margin-bottom: 1.25rem; }
.contact-method { display: flex; gap: 0.9rem; align-items: flex-start; padding: 0.95rem 0; border-bottom: 1px solid var(--line); }
.contact-method:last-child { border-bottom: none; padding-bottom: 0; }
/* Interactive cards (call/text + email rows on contact page) are <a class="contact-method">.
   Keep the card look and only colour the value text on hover/focus, no underline. */
a.contact-method { color: inherit; text-decoration: none; }
a.contact-method:hover .cm-value,
a.contact-method:focus-visible .cm-value { color: var(--blue-ink); }
.contact-method .ci {
    width: 42px; height: 42px; flex-shrink: 0;
    border-radius: 10px; display: grid; place-items: center;
    background: var(--white); color: var(--blue); border: 1px solid var(--line);
    transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
a.contact-method:hover .ci { background: var(--blue); color: #fff; }
.contact-method svg { width: 20px; height: 20px; fill: currentColor; }
.contact-method .cm-label { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); font-weight: 600; }
.contact-method .cm-value { font-weight: 600; color: var(--ink); font-size: 1.06rem; transition: color 0.2s var(--ease); }

.jobber-embed h2 { font-size: 1.45rem; margin-bottom: 0.35rem; }
.jobber-embed .embed-intro { color: var(--body); margin-bottom: 1.25rem; }
/* Jobber's official embed script sizes the injected iframe to the form's content; no
   fixed height (a min-height would fight its sizing and reintroduce a scrollbar/whitespace).
   The .jobber-work-request override below uses higher specificity (0,2,1) than Jobber's
   own (0,1,1) so we win the cascade and the iframe blends into our warm page bg instead
   of painting a pure-white card. */
.jobber-embed iframe { width: 100%; border: none; display: block; }
/* Kill Jobber's 8px border-radius so the iframe doesn't read as a card on the (now
   white) section. Background is left to Jobber's own #ffffff, which matches .contact-body. */
.jobber-embed iframe.jobber-work-request { border-radius: 0; }

/* ============================================================
   Careers page
   ============================================================ */
.careers-form-section { padding: clamp(3rem, 6vw, 4rem) 0 clamp(3.5rem, 7vw, 5.5rem); }
.careers-form-wrap {
    max-width: 720px; margin: 0 auto;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    padding: clamp(1.75rem, 4vw, 2.75rem);
}
.careers-form-wrap h2 { font-size: 1.55rem; margin-bottom: 0.4rem; }
.careers-form-wrap .form-intro { color: var(--body); margin-bottom: 2rem; }
.form-group { margin-bottom: 1.35rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.35rem; }
.form-group label { display: block; font-size: 0.9rem; font-weight: 600; color: var(--ink); margin-bottom: 0.45rem; }
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%;
    padding: 0.82rem 1rem;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: inherit;
    color: var(--ink);
    background: var(--white);
    transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.form-group input::placeholder, .form-group textarea::placeholder { color: #b3ab9d; }
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(10, 100, 234, 0.12);
}
.form-group textarea { min-height: 130px; resize: vertical; }
.radio-group { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.3rem; }
.radio-group label {
    display: flex; align-items: center; gap: 0.5rem;
    font-weight: 500; cursor: pointer;
    padding: 0.55rem 1.05rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
    transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.radio-group label:hover { border-color: var(--blue); }
.radio-group input[type="radio"] { accent-color: var(--blue); }
.form-group input[type="file"] { font-size: 0.92rem; color: var(--body); }
.form-group input[type="file"]::file-selector-button {
    margin-right: 1rem; padding: 0.55rem 1rem; border: none; border-radius: var(--radius-sm);
    background: var(--paper-deep); color: var(--blue-ink); font-weight: 600; cursor: pointer; font-family: inherit;
}
.form-hint { font-size: 0.85rem; color: var(--muted); margin-top: 1rem; text-align: center; }

/* Careers — "why work here" strip */
.careers-why { background: var(--paper); border-top: 1px solid var(--line); }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); }
.why-item { }
.why-item .wy-icon { width: 38px; height: 38px; color: var(--blue); margin-bottom: 0.9rem; }
.why-item .wy-icon svg { width: 38px; height: 38px; fill: currentColor; }
.why-item h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.why-item p { font-size: 0.98rem; color: var(--body); line-height: 1.62; }

/* ============================================================
   Legal / Privacy
   ============================================================ */
.legal-body { padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(3.5rem, 7vw, 5.5rem); }
.legal-wrap { max-width: 740px; margin: 0 auto; }
.legal-updated { color: var(--muted); font-size: 0.9rem; margin-bottom: 2.5rem; }
.legal-body h2 { font-size: 1.5rem; margin: 2.5rem 0 0.75rem; }
.legal-body p { margin-bottom: 1rem; }
.legal-body ul { margin: 0 0 1rem 1.3rem; }
.legal-body li { margin-bottom: 0.55rem; }

/* ============================================================
   Scroll-reveal (progressive enhancement)
   ============================================================ */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .js .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
    .footer-top { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
    .footer-brand { grid-column: 1 / -1; }
    .contact-layout { grid-template-columns: 1fr; }
    .why-grid { grid-template-columns: 1fr; gap: 2rem; }

    /* Mobile: collapse the contact card into a small phone + email strip above the
       form, so the request form stays the main event (and we don't push it down). */
    .contact-card {
        display: flex;
        gap: 0.6rem;
        background: none;
        border: none;
        border-radius: 0;
        padding: 0;
        margin-bottom: 0.9rem;
    }
    .contact-card h2,
    .contact-card .card-intro { display: none; }            /* drop the "call us" pitch */
    .contact-card .contact-method:last-child { display: none; }   /* drop the service-area row */
    .contact-card .contact-method {
        flex: 1 1 0;
        min-width: 0;
        align-items: center;
        gap: 0.55rem;
        padding: 0.6rem 0.7rem;
        border: 1px solid var(--line);
        border-radius: var(--radius-sm);
        background: var(--paper);
        transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
    }
    .contact-card a.contact-method:active { background: var(--paper-deep); border-color: var(--blue); }
    .contact-card .contact-method .ci { width: 30px; height: 30px; border-radius: 8px; }
    .contact-card .contact-method svg { width: 15px; height: 15px; }
    .contact-card .cm-label { font-size: 0.64rem; }
    .contact-card .cm-value { font-size: 0.82rem; min-width: 0; overflow-wrap: anywhere; }
}

@media (max-width: 820px) {
    .hero-grid { grid-template-columns: 1fr; gap: 2.25rem; }
    .hero-copy { max-width: none; }
    /* Headline leads on the stacked hero; the project photos follow as support. */
    .home .hero { padding-top: calc(var(--header-h) + 1.5rem); }
    .hm-grid { height: clamp(300px, 76vw, 400px); }
    .people-grid { grid-template-columns: 1fr; gap: 2rem; }
    .pillars-grid { grid-template-columns: 1fr; gap: 2.25rem; }
    .work-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    body { font-size: 16px; }

    .nav-toggle { display: block; }
    /* Hide the whole actions group, not just its button — an empty but still-flex
       .nav-actions would hold the far-right slot and shove the hamburger toward centre. */
    .nav-actions { display: none; }

    .main-nav {
        position: fixed;
        top: var(--header-h); left: 0; right: 0;
        background: var(--white);
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow-soft);
        transform: translateY(-12px);
        opacity: 0; visibility: hidden;
        transition: 0.3s var(--ease);
        padding: 1.25rem 5% 1.6rem;
    }
    .nav-open .main-nav { transform: none; opacity: 1; visibility: visible; }
    .main-nav ul { flex-direction: column; align-items: stretch; gap: 0.25rem; }
    .main-nav a { padding: 0.7rem 0; font-size: 1.05rem; }
    .main-nav a::after { display: none; }
    .nav-cta-mobile { display: block; margin-top: 0.8rem; }

    .cta-inner { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
    .footer-top { grid-template-columns: 1fr; gap: 2rem; }
    .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    .hero-actions .btn { width: 100%; }
    .hero-actions { gap: 0.85rem; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
}
