/* =====================================================
   INDEXPOINT AGENCY — Jobs Landing Page Styles
   Shared across all trade-specific landing pages
   ===================================================== */

/* ── INSULATION SUB-BAR ── */
.insulation-bar {
  background: var(--teal-pale);
  border-bottom: 2px solid rgba(44,191,173,0.2);
  position: sticky; top: 122px; z-index: 899;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.insulation-bar::-webkit-scrollbar { display: none; }
.insulation-bar__inner {
  display: flex; align-items: center; gap: 0;
  min-width: max-content; padding: 0 16px;
}
.insulation-bar__back {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 16px 10px 4px; font-size: 0.8rem; font-weight: 700;
  color: var(--teal); white-space: nowrap; text-decoration: none;
  border-right: 1px solid rgba(44,191,173,0.2); margin-right: 8px;
  transition: opacity var(--transition);
}
.insulation-bar__back:hover { opacity: 0.75; }
.insulation-bar__link {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 16px; font-size: 0.82rem; font-weight: 600;
  color: var(--text-mid); white-space: nowrap;
  border-bottom: 3px solid transparent; margin-bottom: -2px;
  transition: color var(--transition), border-color var(--transition);
  text-decoration: none;
}
.insulation-bar__link:hover { color: var(--teal); border-bottom-color: rgba(44,191,173,0.4); }
.insulation-bar__link.active { color: var(--teal); border-bottom-color: var(--teal); font-weight: 700; }

/* ── TRADES NAV BAR ── */
.trades-bar {
  background: var(--white);
  border-bottom: 2px solid var(--border-light);
  position: sticky; top: 72px; z-index: 900;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.trades-bar::-webkit-scrollbar { display: none; }
.trades-bar__inner {
  display: flex; align-items: stretch;
  min-width: max-content; padding: 0 16px;
}
.trades-bar__link {
  display: flex; align-items: center; gap: 7px;
  padding: 14px 18px; font-size: 0.85rem; font-weight: 600;
  color: var(--text-mid); white-space: nowrap;
  border-bottom: 3px solid transparent; margin-bottom: -2px;
  transition: color var(--transition), border-color var(--transition);
  text-decoration: none;
}
.trades-bar__link:hover { color: var(--teal); border-bottom-color: var(--teal-border); }
.trades-bar__link.active { color: var(--teal); border-bottom-color: var(--teal); }
.trades-bar__link span { font-size: 1rem; }

/* ── HERO ── */
.job-hero {
  background: #0b1c28; padding: 128px 0 72px;
  position: relative; overflow: hidden;
}
/* animated grid SVG overlay */
.hero-grid-svg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 0;
}
.hgl {
  fill: none; stroke: rgba(255,255,255,0.07); stroke-width: 1;
  stroke-dasharray: 1; stroke-dashoffset: var(--from, 1);
  animation: drawGridLine 1s ease forwards var(--d);
}
.vgl {
  fill: none; stroke: rgba(255,255,255,0.07); stroke-width: 1;
  stroke-dasharray: 1; stroke-dashoffset: var(--from, 1);
  animation: drawGridLine 0.75s ease forwards var(--d);
}
@keyframes drawGridLine {
  to { stroke-dashoffset: 0; }
}
@keyframes gridOut {
  from { stroke-dashoffset: 0; }
  to   { stroke-dashoffset: var(--from); }
}
.job-hero__inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center;
}
.job-hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(44,191,173,0.15); color: var(--teal);
  border: 1px solid rgba(44,191,173,0.3); border-radius: 100px;
  padding: 6px 18px; font-size: 0.78rem; font-weight: 800;
  letter-spacing: 1px; text-transform: uppercase; margin-bottom: 20px;
}
.job-hero__badge-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--teal); animation: pulse 1.5s infinite;
}
.job-hero__title {
  font-size: clamp(2.4rem, 4.5vw, 3.8rem); font-weight: 900;
  color: var(--white); line-height: 1.1; letter-spacing: -1.5px; margin-bottom: 8px;
}
.job-hero__trade {
  display: block; font-size: clamp(3rem, 6vw, 5.2rem);
  color: var(--teal);
  text-shadow: 4px 4px 0 rgba(0,0,0,0.2), 8px 8px 0 rgba(0,0,0,0.1);
  letter-spacing: -2px; line-height: 1;
}
.job-hero__sub {
  font-size: 1.08rem; color: rgba(255,255,255,0.8);
  line-height: 1.7; margin: 20px 0 32px; max-width: 520px;
}
.job-hero__pills { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.job-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14);
  border-radius: 100px; padding: 7px 16px; font-size: 0.82rem;
  font-weight: 600; color: rgba(255,255,255,0.85);
}
.job-hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* Right side — visual card */
.job-hero__card {
  background: rgba(255,255,255,0.07); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.15); border-radius: var(--radius-lg);
  padding: 36px 32px;
}
.job-hero__card-title {
  font-size: 1.1rem; font-weight: 800; color: var(--white);
  margin-bottom: 24px; padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.job-offer-list { display: flex; flex-direction: column; gap: 16px; }
.job-offer-item {
  display: flex; align-items: flex-start; gap: 14px;
}
.job-offer-item__icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(44,191,173,0.15); border: 1px solid rgba(44,191,173,0.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
}
.job-offer-item strong { display: block; font-size: 0.9rem; font-weight: 800; color: var(--white); margin-bottom: 2px; }
.job-offer-item span { font-size: 0.8rem; color: rgba(255,255,255,0.6); line-height: 1.4; }

/* ── WHAT WE OFFER ── */
.job-benefits { padding: 90px 0; background: var(--white); }
.job-benefits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.job-benefit {
  background: var(--gray-light); border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md); padding: 30px 24px; text-align: center;
  transition: all var(--transition);
}
.job-benefit:hover { border-color: var(--teal); transform: translateY(-4px); box-shadow: var(--shadow-teal); background: var(--white); }
.job-benefit__icon { font-size: 2.2rem; margin-bottom: 14px; }
.job-benefit__title { font-size: 1rem; font-weight: 800; margin-bottom: 8px; color: var(--text-dark); }
.job-benefit__text { font-size: 0.87rem; color: var(--text-mid); line-height: 1.6; }

/* ── APPLICATION FORM ── */
.job-apply { padding: 90px 0; background: var(--gray-light); }
.job-apply__wrap { display: grid; grid-template-columns: 1fr 1.3fr; gap: 56px; align-items: start; }
.job-apply__info .section__title { text-align: left; }
.job-apply__desc { color: var(--text-mid); line-height: 1.7; margin: 16px 0 28px; }
.job-apply__contact { display: flex; flex-direction: column; gap: 12px; }
.job-apply__contact a {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; background: var(--white); border: 1px solid var(--border-light);
  border-radius: var(--radius-md); font-weight: 700; color: var(--text-dark);
  transition: all var(--transition); box-shadow: var(--shadow-sm);
}
.job-apply__contact a:hover { border-color: var(--teal); color: var(--teal); transform: translateX(4px); }

/* ── JOB DESCRIPTION ── */
.job-desc { padding: 90px 0; background: var(--white); }
.job-desc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.job-desc__title { font-size: 1.1rem; font-weight: 800; color: var(--text-dark); margin-bottom: 16px; }
.job-desc__text p { font-size: 0.95rem; color: var(--text-mid); line-height: 1.85; }
.job-tasks { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.job-tasks li {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 13px 16px; background: var(--gray-light);
  border-radius: var(--radius-md); border-left: 3px solid var(--teal);
  font-size: 0.88rem; color: var(--text-dark); font-weight: 500; line-height: 1.5;
}
.job-tasks li::before { content: '▸'; color: var(--teal); font-size: 0.85rem; flex-shrink: 0; margin-top: 2px; }

/* ── REQUIREMENTS ── */
.job-requirements { padding: 90px 0; background: var(--teal-pale); }
.job-req-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 800px; margin: 0 auto; }
.job-req-item {
  display: flex; align-items: center; gap: 14px;
  background: var(--white); border: 1px solid var(--border-light);
  border-radius: var(--radius-md); padding: 18px 20px; box-shadow: var(--shadow-sm);
}
.job-req-item .req-check {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--teal); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; font-weight: 700; flex-shrink: 0;
}
.job-req-item span { font-size: 0.9rem; font-weight: 600; color: var(--text-dark); }

/* ── PROCESS STRIP ── */
.job-process { padding: 90px 0; background: #0b1c28; }
.job-process .section__title { color: var(--white); }
.job-process-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.job-process-step { text-align: center; padding: 28px 16px; }
.job-process-step__num {
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(44,191,173,0.15); border: 2px solid var(--teal);
  color: var(--teal); font-size: 1.2rem; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.job-process-step h4 { font-size: 0.95rem; font-weight: 800; color: var(--white); margin-bottom: 8px; }
.job-process-step p { font-size: 0.82rem; color: rgba(255,255,255,0.55); line-height: 1.5; }

/* ── ANIMATIONS ── */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(0.85); }
}

/* ── HERO ENTRANCE ANIMATIONS ── */
@keyframes heroSlideUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes heroSlideLeft {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes heroPop {
  from { opacity: 0; transform: scale(0.92) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.job-hero__badge {
  animation: heroSlideUp 0.55s cubic-bezier(0.22,1,0.36,1) both;
  animation-delay: 0.05s;
}
.job-hero__title {
  animation: heroSlideUp 0.65s cubic-bezier(0.22,1,0.36,1) both;
  animation-delay: 0.15s;
}
.job-hero__sub {
  animation: heroSlideUp 0.6s cubic-bezier(0.22,1,0.36,1) both;
  animation-delay: 0.28s;
}
.job-hero__pills {
  animation: heroSlideUp 0.6s cubic-bezier(0.22,1,0.36,1) both;
  animation-delay: 0.38s;
}
.job-hero__cta {
  animation: heroSlideUp 0.6s cubic-bezier(0.22,1,0.36,1) both;
  animation-delay: 0.48s;
}
.job-hero__card {
  animation: heroSlideLeft 0.7s cubic-bezier(0.22,1,0.36,1) both;
  animation-delay: 0.2s;
}

/* ── GALLERY IMAGE HOVER ENHANCEMENT ── */
.job-gallery__grid img {
  transform-origin: center;
  transition: transform 0.4s cubic-bezier(0.22,1,0.36,1), box-shadow 0.4s ease;
}
.job-gallery__grid img:hover {
  transform: scale(1.04);
  box-shadow: 0 12px 40px rgba(0,0,0,0.22);
}

/* ── OFFER LIST ITEM HOVER ── */
.job-offer-item {
  transition: transform 0.25s ease;
}
.job-offer-item:hover {
  transform: translateX(5px);
}

/* ── PROCESS STEP HOVER ── */
.job-process-step {
  transition: transform 0.3s ease;
}
.job-process-step:hover {
  transform: translateY(-6px);
}
.job-process-step__num {
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.job-process-step:hover .job-process-step__num {
  background: rgba(44,191,173,0.28);
  box-shadow: 0 0 18px rgba(44,191,173,0.35);
}

/* ── BENEFIT CARD HOVER ── */
.job-benefit {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.job-benefit:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.10);
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .job-hero__inner { grid-template-columns: 1fr; }
  .job-hero__card { display: none; }
  .job-benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .job-apply__wrap { grid-template-columns: 1fr; gap: 36px; }
  .job-process-steps { grid-template-columns: repeat(2, 1fr); }
  .job-desc-grid { grid-template-columns: 1fr !important; }
  .why-grid { grid-template-columns: 1fr !important; }
}
@media (max-width: 768px) {
  .trades-bar {
    position: fixed;
    top: 60px;
    left: 0; right: 0;
    overflow-x: visible;
    transform: translateY(0);
    transition: transform 0.25s ease;
    will-change: transform;
  }
  .trades-bar--hidden {
    transform: translateY(-100%);
  }
  .trades-bar__inner {
    min-width: 0;
    flex-wrap: wrap;
    padding: 6px 8px;
    gap: 2px;
    align-items: center;
  }
  .trades-bar__link {
    padding: 6px 10px;
    font-size: 0.75rem;
    border-bottom: 2px solid transparent;
    margin-bottom: 0;
    border-radius: 4px;
  }
  .trades-bar__link.active {
    background: var(--teal-pale);
    border-bottom-color: var(--teal);
  }
  /* Insulation sub-bar: not sticky on mobile (trades-bar height varies when wrapped) */
  .insulation-bar {
    position: relative;
    top: auto;
  }
}
@media (max-width: 600px) {
  .job-benefits-grid { grid-template-columns: 1fr; }
  .job-req-grid { grid-template-columns: 1fr; }
  .job-process-steps { grid-template-columns: 1fr; }
  .job-hero__title { letter-spacing: -1px; }
  .insulation-bar { top: 117px; }
}

/* ─── APPLY LEFT COLUMN EXTRAS ──────────────────────── */

/* Quick benefits checklist */
.apply-benefits {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 24px 0 28px;
}
.apply-benefit-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
}
.apply-check {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(44,191,173,0.12);
  border: 1.5px solid rgba(44,191,173,0.35);
  color: var(--teal);
  font-size: 0.85rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* What happens next steps */
.apply-steps {
  background: var(--white);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
}
.apply-steps__title {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--teal);
  margin: 0 0 16px;
}
.apply-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
}
.apply-step:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.apply-step:first-of-type {
  padding-top: 0;
}
.apply-step__num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #0b1c28;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.apply-step strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 2px;
}
.apply-step span {
  font-size: 0.8rem;
  color: var(--text-mid);
  line-height: 1.4;
}

/* ─── BREVO FORM — Job page specific ──────────────── */
/* Common overrides are in style.css */

/* "Apply For A Job" heading */
#sib-container .sib-form-block p {
  font-family: 'Inter', sans-serif !important;
  font-size: 1.3rem !important;
  font-weight: 900 !important;
  color: #0b1c28 !important;
  margin: 0 !important;
}

/* ─── PHOTO GALLERY ──────────────────────── */
.job-gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.job-gallery__grid img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: block;
}
.job-gallery__grid img:hover {
  transform: scale(1.025);
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}
@media (max-width: 768px) {
  .job-gallery__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .job-gallery__grid { grid-template-columns: 1fr; }
}

