/* ==========================================================================
   BTW Group Careers — Homepage
   Loaded ONLY by index.html, after base.css + careers.css.
   Bright, editorial look: paper-white surfaces, ink-navy type, one green
   accent, big display headings. Tokens come from base.css.
   Job cards, Apply URLs and structured data are untouched — presentation only.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Scroll progress
   -------------------------------------------------------------------------- */
.scroll-progress { background: var(--green-500); height: 3px; }

/* --------------------------------------------------------------------------
   2. Hero
   -------------------------------------------------------------------------- */
.hero {
    position: relative; overflow: hidden;
    padding: 88px 0 96px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
}
.hero::before {                                  /* soft dotted texture, fades out to the left */
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background-image: radial-gradient(var(--line-strong) 1px, transparent 1px);
    background-size: 28px 28px;
    -webkit-mask-image: linear-gradient(100deg, transparent 30%, #000 100%);
    mask-image: linear-gradient(100deg, transparent 30%, #000 100%);
    opacity: .6;
}
.hero::after {                                   /* warm paper panel behind the visual */
    content: ''; position: absolute; top: 0; right: 0; bottom: 0; width: 44%;
    background: var(--surface-alt);
    border-bottom-left-radius: 120px;
    z-index: 0;
}
.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.12fr .88fr; gap: 72px; align-items: center; }

.hero-badge {
    display: inline-flex; align-items: center; gap: 10px;
    background: #fff; color: var(--ink); border: 1px solid var(--line-strong);
    padding: 8px 18px 8px 14px; border-radius: 999px;
    font-family: var(--font-display); font-size: .8rem; font-weight: 700; letter-spacing: .01em;
    box-shadow: var(--shadow-sm); margin-bottom: 26px;
}
.hero-badge::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--green-600); box-shadow: 0 0 0 4px var(--green-100); }
.hero-content h1 { color: var(--ink); margin-bottom: 22px; }
.hero-content h1 span {
    color: var(--navy-700); padding: 0 .06em;
    background: linear-gradient(transparent 66%, rgba(165,213,73,.6) 66%);
    -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.hero-content > p { font-size: 1.15rem; line-height: 1.75; color: var(--text); max-width: 560px; margin-bottom: 32px; }

/* Job finder — the primary action */
.job-finder {
    display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) auto; gap: 0; align-items: stretch;
    background: #fff; border: 1px solid var(--line-strong); border-radius: 18px;
    padding: 8px; box-shadow: var(--shadow-lg); max-width: 640px;
}
.jf-field { display: flex; flex-direction: column; justify-content: center; padding: 8px 18px; min-width: 0; }
.jf-field + .jf-field { border-left: 1px solid var(--line); }
.jf-field label { font-family: var(--font-display); font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.jf-field input, .jf-field select {
    width: 100%; border: 0; background: transparent; font: inherit; font-size: 1rem; font-weight: 600; color: var(--ink);
    padding: 4px 0; outline: none; text-overflow: ellipsis;
}
.jf-field select { appearance: none; -webkit-appearance: none; cursor: pointer;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23566777' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 2px center; padding-right: 22px; }
.jf-field input::placeholder { color: #8A97A3; font-weight: 500; }
.job-finder:focus-within { border-color: var(--navy-700); box-shadow: 0 0 0 4px rgba(11,74,122,.14), var(--shadow-lg); }
.jf-field input:focus-visible, .jf-field select:focus-visible { outline: none; }
.jf-submit { border-radius: 12px; padding: 0 30px; align-self: stretch; }

.hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.hero-buttons .btn { padding: 12px 22px; font-size: .9rem; }
.hero-buttons .btn-primary { background: transparent; color: var(--ink); border-color: var(--line-strong); box-shadow: none; }
.hero-buttons .btn-primary:hover { background: #fff; border-color: var(--navy-700); color: var(--navy-700); }
.hero-buttons .btn-primary::after { content: '\2192'; margin-left: 2px; transition: transform .2s; }
.hero-buttons .btn-primary:hover::after { transform: translateX(3px); }

.hero-stats { display: flex; gap: 0; margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); max-width: 640px; }
.hero-stat { flex: 1; padding: 0 26px; border-left: 1px solid var(--line); }
.hero-stat:first-child { padding-left: 0; border-left: 0; }
.hero-stat strong { display: block; font-family: var(--font-display); font-size: clamp(1.3rem, 2.1vw, 1.75rem); font-weight: 800; letter-spacing: -.03em; color: var(--ink); line-height: 1.1; white-space: nowrap; }
.hero-stat span { font-size: .84rem; color: var(--muted); font-weight: 500; }

.hero-highlight { display: flex; justify-content: center; }
.hero-visual-card { position: relative; width: 100%; max-width: 440px; }
.hero-visual-card::before {                       /* offset accent block */
    content: ''; position: absolute; inset: 22px -22px -22px 22px; border-radius: 26px; background: var(--green-500); opacity: .85; z-index: 0;
}
.hero-visual-card svg { position: relative; z-index: 1; width: 100%; height: auto; display: block; border-radius: 24px; border: 1px solid var(--line); box-shadow: var(--shadow-lg); background: #fff; }

/* --------------------------------------------------------------------------
   3. Group strip (static — replaces the scrolling ticker)
   -------------------------------------------------------------------------- */
.group-strip { padding: 34px 0; background: var(--surface); border-bottom: 1px solid var(--line); }
.group-strip .container { display: flex; align-items: center; gap: 28px 36px; flex-wrap: wrap; }
.group-strip-label { font-family: var(--font-display); font-size: .74rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--green-700); flex: 0 0 auto; margin: 0; max-width: 150px; line-height: 1.4; }
.group-strip-list { display: flex; flex-wrap: wrap; gap: 10px 10px; flex: 1; }
.group-strip-list li { font-size: .88rem; font-weight: 600; color: var(--ink); background: var(--surface-alt); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; }

/* --------------------------------------------------------------------------
   4. Section headers
   -------------------------------------------------------------------------- */
.section-header[data-eyebrow]::before, .section-label {
    content: attr(data-eyebrow);
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--font-display); font-size: .74rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
    color: var(--green-700); background: none; border: 0; padding: 0; margin-bottom: 14px;
}
.section-header[data-eyebrow]::before { content: attr(data-eyebrow); }
.section-header[data-eyebrow]::before { position: static; }
.section-header .divider { display: none; }
.section-header h2 span { color: var(--navy-700); }
section.alt-bg { background: var(--surface-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
section { padding: 104px 0; }

/* --------------------------------------------------------------------------
   5. Benefits — bento grid
   -------------------------------------------------------------------------- */
.benefits-grid, .benefits-extended-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.benefits-grid .benefit-card:nth-child(1), .benefits-grid .benefit-card:nth-child(7) { grid-column: span 2; }
.benefit-card, .eb-card { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px 30px; box-shadow: none; background: #fff; }
.benefit-card:hover, .eb-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.benefit-card .icon, .eb-card .icon { width: 52px; height: 52px; border-radius: 14px; background: var(--green-100); border: 0; box-shadow: none; }
.benefit-card .icon svg, .eb-card .icon svg { stroke: var(--green-700); }
.benefit-card h3, .eb-card h3 { font-size: 1.15rem; }
.benefits-grid .benefit-card:nth-child(1), .benefits-grid .benefit-card:nth-child(7) { background: var(--navy-800); border-color: var(--navy-800); }
.benefits-grid .benefit-card:nth-child(1) h3, .benefits-grid .benefit-card:nth-child(7) h3 { color: #fff; }
.benefits-grid .benefit-card:nth-child(1) p, .benefits-grid .benefit-card:nth-child(7) p { color: #C9D8E6; }
.benefits-grid .benefit-card:nth-child(1) .icon, .benefits-grid .benefit-card:nth-child(7) .icon { background: var(--green-500); }
.benefits-grid .benefit-card:nth-child(1) .icon svg, .benefits-grid .benefit-card:nth-child(7) .icon svg { stroke: var(--navy-900); }

/* --------------------------------------------------------------------------
   6. Openings
   -------------------------------------------------------------------------- */
.openings-toolbar {
    position: sticky; top: calc(var(--header-h) + 12px); z-index: 30;
    background: #fff; border: 1px solid var(--line-strong); border-radius: 16px; padding: 12px 16px;
    box-shadow: var(--shadow-md);
}
.job-filter { border-radius: 999px; font-family: var(--font-display); font-weight: 700; border-color: var(--line-strong); }
.job-filter[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); }
.link-btn { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: var(--navy-700); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.openings-grid { gap: 20px; }
.job-card { border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: none; }
.job-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.job-card .card-accent { height: 4px; background: var(--green-500); }
.job-card h3 { font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; }
.job-card .card-apply-btn { background: var(--ink); border-color: var(--ink); border-radius: 999px; padding: 10px 20px; box-shadow: none; }
.job-card .card-apply-btn:hover { background: var(--navy-700); border-color: var(--navy-700); box-shadow: 0 12px 24px -12px rgba(11,74,122,.8); }
.job-card .card-apply-btn.is-disabled { background: var(--surface-alt); border-color: var(--line); color: var(--muted); }
.job-card .job-quick-info .qi-item { background: var(--surface-alt); border-color: var(--line); }
.job-card .job-quick-info .qi-salary { background: var(--green-100); border-color: #D9E9B8; color: var(--ink); }
.job-card .job-quick-info .qi-salary span { color: var(--ink); }
.job-card .job-info-col { background: var(--surface-alt); border-color: var(--line); }
.job-card .duties-title { color: var(--green-700); }
.openings-footer { border-radius: var(--radius-lg); border: 1px solid var(--line); box-shadow: none; }
.openings-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 48px 24px; margin-top: 20px; background: #fff; border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); }
.openings-empty[hidden] { display: none; }
.openings-empty strong { font-family: var(--font-display); font-size: 1.15rem; color: var(--ink); }
.openings-empty span { color: var(--muted); margin-bottom: 10px; }

/* --------------------------------------------------------------------------
   7. Hiring process
   -------------------------------------------------------------------------- */
.process-timeline::before { width: 2px; background: var(--line-strong); }
.tl-marker { background: var(--ink); border: 0; box-shadow: 0 0 0 6px var(--surface); }
.tl-marker svg { stroke: #fff; }
.tl-content { border: 1px solid var(--line); border-radius: var(--radius); box-shadow: none; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease); }
.tl-step:hover .tl-content { transform: translateX(6px); border-color: var(--line-strong); box-shadow: var(--shadow-md); }

/* --------------------------------------------------------------------------
   8. About
   -------------------------------------------------------------------------- */
.about-visual { background: var(--navy-900); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.about-visual .about-stat { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); }
.company-item { border-radius: var(--radius-sm); border-left: 3px solid var(--green-500); }
.company-item:hover { border-left-color: var(--navy-700); transform: translateX(3px); }

/* --------------------------------------------------------------------------
   9. Testimonials & FAQ
   -------------------------------------------------------------------------- */
.testimonial-card { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: none; background: #fff; }
.testimonial-card::before { content: '\201C'; position: absolute; top: 4px; right: 22px; font-family: Georgia, 'Times New Roman', serif; font-size: 5rem; line-height: 1; color: var(--green-500); opacity: .35; pointer-events: none; }
.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.testimonial-stars { color: #C98A00; }
.testimonial-avatar { background: var(--ink); }
.faq-item { border-radius: var(--radius); border: 1px solid var(--line); }
.faq-item.active { border-color: var(--ink); box-shadow: var(--shadow-md); }
.faq-item.active .faq-question .toggle { background: var(--ink); }
.faq-contact { background: var(--surface-alt); border: 1px solid var(--line); border-radius: var(--radius-lg); }

/* --------------------------------------------------------------------------
   10. Closing CTA + footer
   -------------------------------------------------------------------------- */
.cta-final { background: var(--navy-800); }
.cta-final::before { border-color: rgba(255,255,255,.05); }
.cta-final::after { border-color: rgba(165,213,73,.12); }
.cta-final .btn-primary { background: var(--green-500); border-color: var(--green-500); color: var(--navy-900); }
.cta-final .btn-primary:hover { background: #fff; border-color: #fff; color: var(--navy-900); }
.footer-col .footer-apply { background: var(--green-500); color: var(--navy-900); }
.scroll-top { border-radius: 14px; }
.scroll-top:hover { background: var(--ink); }

/* --------------------------------------------------------------------------
   11. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .hero { padding: 72px 0 80px; }
    .hero .container { gap: 48px; }
    .hero-stat { padding: 0 18px; }
    .benefits-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .benefits-grid .benefit-card:nth-child(1), .benefits-grid .benefit-card:nth-child(7) { grid-column: auto; }
    section { padding: 84px 0; }
}
@media (max-width: 900px) {
    .hero .container { grid-template-columns: 1fr; }
    .hero::after { width: 100%; top: auto; height: 42%; border-bottom-left-radius: 0; border-top-left-radius: 80px; }
    .hero-content > p { max-width: none; }
    .hero-highlight { margin-top: 12px; }
    .hero-visual-card { max-width: 380px; }
    .benefits-grid, .benefits-extended-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .group-strip-label { max-width: none; flex-basis: 100%; }
}
@media (max-width: 640px) {
    .container { padding: 0 20px; }
    section { padding: 64px 0; }
    .hero { padding: 40px 0 56px; }
    .hero::after { display: none; }
    .hero-content > p { font-size: 1.04rem; }
    .job-finder { grid-template-columns: 1fr; padding: 8px; border-radius: 16px; }
    .jf-field { padding: 10px 14px; }
    .jf-field + .jf-field { border-left: 0; border-top: 1px solid var(--line); }
    .jf-submit { padding: 15px 24px; width: 100%; }
    .hero-buttons { gap: 10px; }
    .hero-buttons .btn { flex: 1 1 calc(50% - 5px); width: auto; padding: 12px 10px; font-size: .86rem; }
    .hero-stats { margin-top: 32px; padding-top: 22px; }
    .hero-stat { padding: 0 12px; }
    .hero-stat strong { font-size: 1.12rem; }
    .hero-visual-card::before { inset: 14px -10px -14px 10px; }
    .benefits-grid, .benefits-extended-grid { grid-template-columns: 1fr; }
    .openings-toolbar { position: static; }
    .group-strip-list li { font-size: .82rem; padding: 7px 13px; }
}

/* Badge text may wrap on narrow screens: keep the dot round and aligned to the first line */
.hero-badge { line-height: 1.4; border-radius: 22px; }
.hero-badge::before { flex-shrink: 0; }
@media (max-width: 640px) {
    .hero-badge { align-items: flex-start; font-size: .78rem; }
    .hero-badge::before { margin-top: 5px; }
}
