/* Brightside Vocational LLC — site styles
   Brand colors come from the logo files: slate #2C3A44 and copper #BC8A5B. */

:root {
  --slate: #2C3A44;
  --slate-deep: #1F2A31;
  --copper: #BC8A5B;
  --copper-hover: #C99A6D;
  --copper-text: #7D5530;   /* darker copper for small text; passes contrast on white */
  --sky: #DEE4EA;
  --sand: #E9D9C4;
  --sand-card: #EFE4D4;
  --blush: #F4E6D8;
  --cream: #F7F3EC;
  --text-2: #4A5560;
  --text-3: #3B4852;
  --muted: #5B6670;
  --line: #E6E9EC;
  --radius-lg: 2rem;
  --radius: 1.5rem;
  --font: "Instrument Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 1rem; line-height: 1.5; color: var(--slate); background: #FFFFFF; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
a { color: var(--slate); }
a:hover { color: var(--copper-text); }
:focus-visible { outline: 3px solid var(--copper); outline-offset: 3px; }

.wrap { max-width: 1312px; margin: 0 auto; padding-inline: 2rem; }
section[id], footer[id] { scroll-margin-top: 7.5rem; }

.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; padding: .75rem 1rem; border-radius: .5rem; background: var(--slate); color: #FFFFFF; }
.skip-link:focus { top: 1rem; color: #FFFFFF; }

.h2 { font-weight: 500; font-size: clamp(2.25rem, 4vw, 3.5rem); line-height: 1.05; letter-spacing: -0.02em; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 3rem; padding: 0 1.5rem; border-radius: 999px; font-weight: 600; font-size: 1rem; text-decoration: none; white-space: nowrap; transition: background-color .2s ease, color .2s ease; }
.btn-lg { min-height: 3.5rem; padding: 0 1.75rem; font-size: 1.0625rem; }
.btn-primary { background: var(--slate); color: #FFFFFF; }
.btn-primary:hover { background: var(--slate-deep); color: #FFFFFF; }
.btn-ghost { border: 1.5px solid var(--slate); color: var(--slate); }
.btn-ghost:hover { background: var(--slate); color: #FFFFFF; }
.btn-copper { min-height: 3.5rem; padding: 0 2rem; background: var(--copper); color: var(--slate); font-size: 1.1875rem; font-weight: 700; }
.btn-copper:hover { background: var(--copper-hover); color: var(--slate); }
.plane { width: 18px; height: 18px; transition: transform .25s ease; }
.btn:hover .plane { transform: translate(3px, -3px); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 5.75rem; }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 3.75rem; width: auto; }
.brand .brand-mark { display: none; }
.main-nav { display: flex; gap: 1.75rem; }
.main-nav a { font-size: .9375rem; text-decoration: none; }
.main-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.header-actions { display: flex; align-items: center; gap: 1.25rem; }
.header-phone { font-size: .9375rem; font-weight: 500; text-decoration: none; }
.menu-toggle { display: none; align-items: center; justify-content: center; width: 3rem; height: 3rem; border: 1.5px solid var(--slate); border-radius: 999px; background: transparent; color: var(--slate); cursor: pointer; }
.mobile-nav { display: flex; flex-direction: column; padding: .25rem 1.25rem 1rem; border-top: 1px solid var(--line); background: #FFFFFF; }
.mobile-nav[hidden] { display: none; }
.mobile-nav a { display: flex; align-items: center; min-height: 3rem; font-size: 1.0625rem; text-decoration: none; border-bottom: 1px solid var(--line); }

/* Hero */
.hero { padding-top: 4.5rem; padding-bottom: 2.5rem; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 3rem; align-items: end; }
.hero h1 { font-weight: 500; font-size: clamp(3rem, 7.4vw, 7.25rem); line-height: .95; letter-spacing: -0.03em; text-transform: uppercase; }
.hero-side { display: flex; flex-direction: column; gap: 1.5rem; padding-bottom: .5rem; }
.hero-side p { max-width: 30rem; font-size: 1.1875rem; color: var(--text-2); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

.hero-art-section { padding-bottom: 6rem; }
.hero-art { position: relative; }
.art-frame { position: relative; height: 34rem; border-radius: var(--radius-lg); overflow: hidden; background: var(--sky); }
.art-frame svg { width: 100%; height: 100%; }
.notch { position: absolute; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: #FFFFFF; }
.notch-top { top: -1.25rem; left: 46%; }
.notch-side { bottom: 32%; right: -1.25rem; }

.brand-card { position: absolute; left: 2rem; top: 2rem; max-width: 30rem; display: flex; align-items: center; gap: 1.5rem; padding: 1.75rem 2rem; border-radius: var(--radius); background: rgba(255, 255, 255, .94); }
.brand-card img { flex: none; height: 6.5rem; width: auto; }
.brand-card-name { font-weight: 600; font-size: clamp(1.875rem, 2.8vw, 2.5rem); line-height: 1.05; letter-spacing: -0.02em; }
.brand-card-reach { margin-top: .5rem; font-weight: 600; font-size: 1.1875rem; color: var(--copper-text); }
.brand-card a { display: inline-block; margin-top: 1rem; font-weight: 500; font-size: .9375rem; text-underline-offset: 4px; }

/* Hero animation: the sun rises, a dashed trail draws toward it, and the
   end point pulses once. Plays once per visit, when the picture scrolls into
   view. .bs-intro (added in the page head) holds the starting positions;
   script.js adds .is-playing to start it. */
.draw { stroke-dasharray: 1; stroke-dashoffset: 0; }
.trail-end { transform-box: fill-box; transform-origin: center; }
.bs-intro .hero-art .draw { stroke-dashoffset: 1; }
.bs-intro .hero-art .sun { transform: translateY(90px); }
.bs-intro .hero-art .trail-end { opacity: 0; }
.bs-intro .hero-art.is-playing .sun { animation: bs-rise 3.4s .3s cubic-bezier(.2, .7, .2, 1) both; }
.bs-intro .hero-art.is-playing .draw { animation: bs-draw 4.2s .9s cubic-bezier(.45, .05, .25, 1) both; }
.bs-intro .hero-art.is-playing .trail-end { animation: bs-arrive 1.4s 5s ease-out both; }
@keyframes bs-rise { from { transform: translateY(90px); } to { transform: translateY(0); } }
@keyframes bs-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes bs-arrive { 0% { opacity: 0; transform: scale(.4); } 35% { opacity: 1; transform: scale(1.8); } 100% { opacity: 1; transform: scale(1); } }

/* Section headings row */
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1.5rem; margin-bottom: 2.5rem; }
.section-head p { max-width: 28rem; font-size: 1.0625rem; color: var(--text-2); }

/* What we do */
.services { padding-bottom: 7rem; }
.service-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.service-card { display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; min-height: 19rem; padding: 1.75rem; border-radius: var(--radius); }
.service-card svg { width: 34px; height: 34px; }
.service-card h3 { margin-bottom: .625rem; font-weight: 600; font-size: 1.375rem; line-height: 1.2; }
.service-card p { font-size: .96875rem; color: var(--text-3); }
.card-sky { background: var(--sky); }
.card-sand { background: var(--sand-card); }
.card-blush { background: var(--blush); }
.card-slate { background: var(--slate); color: #FFFFFF; }
.card-slate p { color: #E3E7EA; }

/* Why Brightside */
.why { padding: 6.5rem 0; background: var(--cream); }
.why-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 4rem; align-items: start; }
.why-intro { display: flex; flex-direction: column; gap: 1.5rem; }
.why-intro p { max-width: 32rem; font-size: 1.0625rem; color: var(--text-2); }
.why-list { display: flex; flex-direction: column; gap: 1rem; margin: 0; padding: 0; list-style: none; }
.why-item { display: flex; align-items: flex-start; gap: 1.5rem; padding: 1.75rem; border-radius: var(--radius); background: #FFFFFF; }
.why-icon { flex: none; display: flex; align-items: center; justify-content: center; width: 3rem; height: 3rem; border-radius: 50%; background: var(--slate); }
.why-icon svg { width: 24px; height: 24px; }
.why-icon-copper { background: var(--copper); }
.why-item h3 { margin-bottom: .375rem; font-weight: 600; font-size: 1.25rem; }
.why-item p { color: var(--text-2); }

/* Where we work */
.states { padding-top: 6.5rem; padding-bottom: 6.5rem; }
.state-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.state { display: flex; flex-direction: column; justify-content: space-between; gap: 3rem; padding: 2rem; border: 1.5px solid var(--slate); border-radius: var(--radius); }
.state-soon { border-style: dashed; border-color: #9AA4AC; }
.state-soon .state-name { color: var(--muted); }
.state-beyond { gap: 1.5rem; background: var(--slate); color: #FFFFFF; }
.state-name { font-weight: 500; font-size: clamp(1.75rem, 2.6vw, 2.375rem); line-height: 1; letter-spacing: -0.02em; }
.state-note { margin-top: .75rem; font-size: .96875rem; color: #E3E7EA; }
.state-note a { color: #FFFFFF; text-underline-offset: 4px; }
.pill { align-self: flex-start; padding: .375rem .875rem; border-radius: 999px; font-size: .875rem; font-weight: 600; }
.pill-sky { background: var(--sky); }
.pill-blush { background: var(--blush); color: var(--copper-text); }
.pill-sand { background: var(--sand); color: var(--slate); }

/* Injured worker portal */
.workers { padding-bottom: 6.5rem; }
.workers-box { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: stretch; gap: 2.5rem; padding: 3rem; border-radius: var(--radius-lg); background: var(--sky); }
.workers-main { flex: 1 1 26rem; display: flex; flex-direction: column; align-items: flex-start; gap: 1.125rem; }
.workers-main p { max-width: 34rem; font-size: 1.125rem; color: var(--text-3); }
.workers-main .btn { margin-top: .5rem; }
.forms-panel { flex: 1 1 20rem; display: flex; flex-direction: column; justify-content: center; gap: .875rem; padding: 2rem; border-radius: var(--radius); background: #FFFFFF; }
.forms-panel h3 { font-weight: 600; font-size: 1.5rem; line-height: 1.2; }
.forms-panel p { color: var(--text-2); }

/* Referral band */
.refer { padding-bottom: 6.5rem; }
.refer-box { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; gap: 1.25rem; padding: 4.5rem 3rem 8.5rem; border-radius: var(--radius-lg); background: var(--slate); color: #FFFFFF; text-align: center; }
.refer-box > *:not(.refer-sun) { position: relative; }
.refer-sun { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 7.5rem; }
.refer-lead { max-width: 34rem; font-size: 1.125rem; color: #E3E7EA; }
.refer-box .btn-copper { margin-top: .75rem; }
.refer-alt { margin-top: 1.25rem; font-size: .96875rem; color: #E3E7EA; }
.refer-alt ul { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 2rem; margin: .5rem 0 0; padding: 0; list-style: none; }
.refer-alt a { color: #FFFFFF; text-underline-offset: 4px; }
.refer-alt a:hover { color: var(--sand); }

/* Footer */
.site-footer { padding: 4rem 0 2.5rem; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1.1fr) minmax(0, .9fr); gap: 2.5rem; }
.footer-brand img { height: 3.25rem; width: auto; }
.footer-col { display: flex; flex-direction: column; gap: .5rem; }
.footer-col h2 { margin-bottom: .25rem; font-size: 1rem; font-weight: 600; }
.footer-col a { text-decoration: none; overflow-wrap: break-word; }
.footer-col a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-col address { font-style: normal; color: var(--text-2); }
.footer-bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: .875rem; color: var(--muted); }

/* Tablet */
@media (max-width: 1180px) {
  .main-nav, .header-phone { display: none; }
  .menu-toggle { display: inline-flex; }
  .header-actions { gap: .75rem; }
}

@media (max-width: 1060px) {
  .service-grid, .state-grid, .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Phone */
@media (max-width: 760px) {
  .wrap { padding-inline: 1.25rem; }
  .header-inner { min-height: 4.5rem; }
  .brand img { height: 2.75rem; }
  section[id], footer[id] { scroll-margin-top: 5.5rem; }
  .hero { padding-top: 2.5rem; }
  .hero-grid, .why-grid { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }
  .art-frame { height: 22rem; }
  .brand-card { position: static; max-width: none; margin-top: 1rem; padding: 1.5rem; background: var(--cream); }
  .brand-card img { height: 4.75rem; }
  .service-grid, .state-grid, .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .service-card { min-height: 0; }
  .why, .states { padding-top: 4.5rem; padding-bottom: 4.5rem; }
  .services { padding-bottom: 4.5rem; }
  .workers-box { padding: 2rem 1.5rem; }
  .refer-box { padding: 3.5rem 1.5rem 8rem; }
  .refer-alt ul { flex-direction: column; align-items: center; }
}

/* Small phones: swap the wordmark for the B so the header fits */
@media (max-width: 440px) {
  .brand .brand-word { display: none; }
  .brand .brand-mark { display: block; }
  .header-actions .btn { padding: 0 1.125rem; }
  .header-actions .plane { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .plane, .btn { transition: none; }
  .bs-intro .hero-art .draw, .bs-intro .hero-art .sun, .bs-intro .hero-art .trail-end { animation: none; stroke-dashoffset: 0; transform: none; opacity: 1; }
}

/* =====================================================================
   DARK THEME (approved Nov 2026): navy page, brand gradient background,
   large logo in the hero, headline on the illustration.
   Everything above this line is the original light theme; these rules
   sit on top of it.
   ===================================================================== */
:root { --bg: #1B2733; --surface: #22303B; --surface-2: #2A3945; --ink: #F3F1EC; --ink-2: #C3CCD3; --ink-3: #9AA7B1; --line-d: #34444F; }
body { background: var(--bg); color: var(--ink); }
a { color: var(--ink); }
a:hover { color: #D9AE80; }
.site-header { background: rgba(27, 39, 51, .92); border-bottom-color: var(--line-d); }
.main-nav a, .header-phone { color: var(--ink); }
.menu-toggle { border-color: var(--ink); color: var(--ink); }
.btn-primary { background: var(--copper); color: #1B2733; }
.btn-primary:hover { background: var(--copper-hover); color: #1B2733; }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #1B2733; }
.hero-side p, .section-head p, .why-intro p { color: var(--ink-2); }
.notch { background: var(--bg); }
.brand-card, .brand-card a { color: #2C3A44; }
.service-card { color: #2C3A44; }
.card-slate { background: var(--copper); color: #1B2733; }
.card-slate p { color: #1B2733; }
.pill-sky { color: #1B2733; }
.why { background: #EFE4D4; color: #2C3A44; }
.why .why-intro p { color: #4A5560; }
.why-item { background: #F7F3EC; border: 1px solid #E2D3BE; }
.why-item p { color: #4A5560; }
.why-icon { background: #2C3A44; }
.why-icon-copper { background: var(--copper); }
.state { border: 2px solid #8496A3; }
.state-soon { border: 2px dashed #6F808C; }
.state-soon .state-name { color: var(--ink-3); }
.state-beyond { background: #DEE4EA; border-color: #DEE4EA; color: #1B2733; }
.state-note { color: #3B4852; }
.state-note a { color: #1B2733; }
.workers-box, .forms-panel { color: #2C3A44; }
.refer-box { background: var(--cream); color: #2C3A44; }
.refer-lead, .refer-alt { color: #4A5560; }
.refer-alt a { color: #2C3A44; }
.refer-alt a:hover { color: var(--copper-text); }
.site-footer { border-top-color: var(--line-d); }
.footer-col address { color: var(--ink-2); }
.footer-bottom { border-top-color: var(--line-d); color: var(--ink-3); }


/* Brand gradient behind the whole page */
body {
  background:
    radial-gradient(1000px 800px at 4% 6%, rgba(83, 106, 123, .95) 0%, rgba(83, 106, 123, 0) 70%),
    radial-gradient(900px 700px at 55% 0%, rgba(107, 70, 48, .95) 0%, rgba(107, 70, 48, 0) 70%),
    radial-gradient(950px 950px at 100% 14%, rgba(142, 93, 54, .95) 0%, rgba(142, 93, 54, 0) 70%),
    radial-gradient(1000px 900px at 0% 44%, rgba(83, 106, 123, .85) 0%, rgba(83, 106, 123, 0) 70%),
    radial-gradient(1000px 900px at 100% 60%, rgba(142, 93, 54, .85) 0%, rgba(142, 93, 54, 0) 70%),
    radial-gradient(1000px 900px at 18% 88%, rgba(107, 70, 48, .8) 0%, rgba(107, 70, 48, 0) 70%),
    radial-gradient(1000px 800px at 96% 99%, rgba(83, 106, 123, .85) 0%, rgba(83, 106, 123, 0) 70%),
    #2A3138;
}
.notch { display: none; }
.site-header { background: rgba(27, 39, 51, .85); }

/* Large logo in the hero, headline on the illustration */
.hero-brand { display: flex; flex-direction: column; gap: 1.5rem; }
.hero-logo { margin: 0; line-height: 0; }
.hero-logo img { height: 10.5rem; width: auto; display: block; }
.hero-reach { font-size: 1.25rem; font-weight: 500; color: var(--ink-2); letter-spacing: .01em; }
/* Header logo hides while the big hero logo is on screen (home page only) */
.js-hero-logo .site-header .brand { opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s ease; }
.js-hero-logo .site-header.show-brand .brand { opacity: 1; visibility: visible; }
.art-headline { position: absolute; z-index: 2; left: 3.5rem; top: 3.25rem; margin: 0; max-width: 34rem; color: #2C3A44; font-weight: 500; font-size: clamp(3.25rem, 5.4vw, 5.5rem); line-height: .94; letter-spacing: -0.03em; text-transform: uppercase; }

@media (max-width: 1060px) {
  .hero-logo img { height: 8rem; }
}
@media (max-width: 760px) {
  .hero-logo img { height: 6rem; }
  .hero-reach { font-size: 1.0625rem; }
  .art-headline { position: static; max-width: none; margin: 0 0 1.25rem; color: var(--ink); font-size: 2.75rem; }
}

/* Secure document upload button and hero call link */
.upload-icon { width: 18px; height: 18px; transition: transform .25s ease; }
.btn:hover .upload-icon { transform: translateY(-3px); }
.hero-call { font-size: .96875rem; color: var(--ink-2); }
.hero-call a { color: var(--ink); text-underline-offset: 4px; }
.refer-buttons { justify-content: center; margin-top: .75rem; }
.refer-box .btn-copper { margin-top: 0; }
.refer-box .btn-ghost { border-color: #2C3A44; color: #2C3A44; }
.refer-box .btn-ghost:hover { background: #2C3A44; color: #F7F3EC; }
@media (prefers-reduced-motion: reduce) { .upload-icon { transition: none; } }

@media (min-width: 761px) {
  .hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
}
