/* Corporate Training & RFQ page only. Reuses breadcrumb, features,
   section-title, cta-banner and buttons from base.css, overridden here to match
   docs/mockups/corporate-*.jpg. Phone first; one desktop breakpoint at 1100px. */

/* ---------- Hero: text on the left over a faded photo on the right ---------- */
.corp-hero { padding-top: 0; min-height: 0; }
.corp-hero .hero__img {
  position: absolute; right: 0; bottom: 0; left: auto; top: auto; z-index: 0;
  width: 58%; height: auto; margin: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 30%), linear-gradient(180deg, transparent 0, #000 22%);
  mask-image: linear-gradient(90deg, transparent 0, #000 30%), linear-gradient(180deg, transparent 0, #000 22%);
  -webkit-mask-composite: source-in; mask-composite: intersect;
}
.corp-hero .hero__inner { position: relative; z-index: 1; padding-inline: 10px; }
.corp-hero .hero__text { max-width: 54%; padding-bottom: 16px; }
.corp-hero .breadcrumb { padding: 10px 0 6px; font-size: 11px; gap: 6px; }
.corp-hero .breadcrumb .icon { width: 13px; height: 13px; }
.corp-hero__head { border-left: 4px solid var(--gold); padding-left: 10px; margin-top: 6px; }
.corp-hero .hero__title { border: 0; padding: 0; font-size: clamp(20px, 5.6vw, 34px); line-height: 1.08; text-wrap: balance; }
.corp-hero .hero__sub { margin-top: 6px; font-size: 11px; line-height: 1.35; max-width: 16em; }
.corp-hero .hero__actions { flex-direction: column; align-items: flex-start; gap: 6px; margin-top: 10px; padding: 0; }
.corp-hero .btn { padding: 6px 13px; font-size: 11px; gap: 6px; white-space: nowrap; }
.corp-hero .btn .icon { width: 14px; height: 14px; }

/* ---------- Page wrapper: tighter side padding on phones, like the mockup ---------- */
.corp-wrap { padding-inline: 10px; }

/* ---------- Feature strip: one row of 4 with dividers ---------- */
.corp-features {
  flex-wrap: nowrap; margin-top: 6px; padding: 10px 2px; background: var(--white);
  border-radius: 14px; box-shadow: var(--shadow-md);
}
.corp-features .feature { flex: 1 1 0; min-width: 0; gap: 5px; padding: 4px 2px; font: 500 11px/1.3 var(--font-head); color: var(--navy-soft); }
.corp-features .feature + .feature { border-left: 1px solid var(--line); }
.corp-features .feature b { font-weight: 700; color: var(--navy); }
.corp-features .feature .icon { width: 26px; height: 26px; }
.corp-features .feature br { display: block; }

/* ---------- Areas + process ---------- */
.corp-cols { display: grid; gap: 18px; margin-top: 18px; }
.corp-wrap .section-title { font-size: 16px; gap: 8px; }
.corp-wrap .section-title::before { width: 24px; height: 4px; }

.areas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.area {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--white); border: 1px solid #eef0f6; border-radius: 10px; box-shadow: var(--shadow-md);
}
.area__img { width: 100%; height: auto; aspect-ratio: 1.9; object-fit: cover; }
.area__label {
  position: relative; flex: 1; display: flex; align-items: center; gap: 4px;
  padding: 6px 4px 7px; font: 600 11px/1.25 var(--font-head); color: var(--navy); letter-spacing: -.01em;
}
.area__label::before {
  content: ""; position: absolute; left: 0; bottom: 100%; width: 42%; height: 9px;
  background: var(--gold-grad); clip-path: polygon(0 0, 100% 100%, 0 100%);
}
.area__label .icon { width: 17px; height: 17px; color: #2d4fb5; stroke-width: 1.9; }
.corp-all { display: flex; width: fit-content; margin: 14px auto 0; padding: 6px 18px; font-size: 11px; }
.corp-all .icon { width: 14px; height: 14px; }

.steps { display: grid; padding: 0; list-style: none; grid-template-columns: repeat(4, 1fr); gap: 11px; margin-top: 12px; counter-reset: none; }
.step {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  padding: 12px 1px; text-align: center;
  background: var(--white); border: 1px solid #eef0f6; border-radius: 10px; box-shadow: var(--shadow-md);
  font: 600 11px/1.3 var(--font-head); color: var(--navy); letter-spacing: -.01em;
}
.step .icon { width: 22px; height: 22px; color: var(--navy); }
.step:not(:last-child)::after {
  content: ""; position: absolute; left: calc(100% + 2.5px); top: 50%; width: 6px; height: 10px;
  background: var(--gold); clip-path: polygon(0 0, 100% 50%, 0 100%); transform: translateY(-50%);
}

/* ---------- RFQ banner: icon | title + text | button, in one row ---------- */
.corp-cta { margin-top: 4px; }
.corp-cta .cta-banner {
  grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "icon title btn" "icon text btn";
  gap: 2px 10px; padding: 12px 10px; border-radius: 14px;
}
.corp-cta .cta-banner__icon { width: 34px; height: 34px; padding-right: 10px; box-sizing: content-box; border-right: 2px solid var(--gold); }
.corp-cta .cta-banner__title { font-size: 12px; align-self: end; }
.corp-cta .cta-banner__text { font-size: 11px; line-height: 1.35; align-self: start; }
.corp-cta .cta-banner .btn { justify-self: end; padding: 8px 11px; font-size: 11px; gap: 5px; white-space: nowrap; }
.corp-cta .cta-banner .btn .icon { width: 12px; height: 12px; }

/* ---------- RFQ form ---------- */
.rfq { margin-top: 40px; scroll-margin-top: calc(var(--header-h) + 12px); }
.rfq__card {
  padding: 22px 18px 26px; background: var(--white); border: 1px solid #eef0f6;
  border-radius: var(--r-lg); box-shadow: var(--shadow-md);
}
.rfq__intro { margin-top: 12px; font-size: 14px; color: var(--navy-soft); }
.rfq__summary {
  margin-top: 14px; padding: 10px 14px; border-left: 4px solid #c0392b; border-radius: 6px;
  background: #fdecea; color: #8a1f14; font-size: 14px; font-weight: 600;
}
.rfq__form { display: grid; gap: 16px; margin-top: 18px; }
.rfq__field { display: flex; flex-direction: column; min-width: 0; }
.rfq__field label { margin-bottom: 6px; font: 600 14px/1.3 var(--font-head); color: var(--navy); }
.rfq__field input, .rfq__field select, .rfq__field textarea {
  width: 100%; padding: 12px 14px; font: inherit; font-size: 16px; color: var(--text);
  background: var(--white); border: 1.5px solid var(--line); border-radius: 12px;
}
.rfq__field textarea { resize: vertical; min-height: 110px; }
.rfq__field input:focus, .rfq__field select:focus, .rfq__field textarea:focus { border-color: var(--gold-deep); }
.rfq__field [aria-invalid="true"] { border-color: #c0392b; }
.rfq__error { margin-top: 6px; font-size: 13px; font-weight: 600; color: #b3261e; }
.rfq__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.rfq__submit .btn { width: 100%; }

.rfq__thanks { display: grid; justify-items: center; gap: 10px; padding: 28px 8px 12px; text-align: center; }
.rfq__thanks > .icon {
  width: 56px; height: 56px; padding: 14px; border-radius: 50%; color: var(--navy);
  background: var(--gold-grad); box-shadow: var(--shadow-gold); stroke-width: 2.4;
}
.rfq__thanks p { max-width: 36em; color: var(--navy-soft); }
.rfq__thanks .btn { margin-top: 6px; }

@media (max-width: 639px) {
  .corp-hero .btn, .corp-all, .corp-cta .cta-banner .btn { min-height: 40px; }
}
/* 320px: the 4-up feature strip goes 2x2 so the labels stay on few lines. */
@media (max-width: 359px) {
  .corp-features { flex-wrap: wrap; }
  .corp-features .feature { flex: 0 0 50%; padding: 8px 6px; }
  .corp-features .feature + .feature { border-left: 0; }
  .corp-features .feature:is(:nth-child(2), :nth-child(4)) { border-left: 1px solid var(--line); }
  .corp-features .feature:nth-child(n+3) { border-top: 1px solid var(--line); }
}
/* Phones: tiles and steps go 2x2, the banner stacks (icon + title, text, full-width button). */
@media (max-width: 479px) {
  .areas { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .area__label { padding: 8px 8px 9px; gap: 6px; }
  .area__label .icon { flex: none; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .step { padding: 14px 6px; }
  .step:not(:last-child)::after { left: calc(100% + 4px); }
  .step:nth-child(2)::after { display: none; }
  .corp-cta .cta-banner { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "icon title" "text text" "btn btn"; gap: 8px 12px; padding: 14px; }
  .corp-cta .cta-banner__icon { width: 36px; height: 36px; padding-right: 12px; }
  .corp-cta .cta-banner__title { font-size: 15px; align-self: center; }
  .corp-cta .cta-banner__text { font-size: 12.5px; }
  .corp-cta .cta-banner .btn { justify-self: stretch; justify-content: center; min-height: 44px; margin-top: 2px; }
}

@media (min-width: 480px) {
  .corp-hero .hero__title { font-size: clamp(24px, 5.6vw, 34px); }
  .corp-hero .hero__sub { font-size: 13px; }
  .corp-hero .btn { padding: 10px 18px; font-size: 13px; }
  .corp-features .feature { font-size: 11px; }
  .corp-features .feature .icon { width: 30px; height: 30px; }
  .corp-wrap .section-title { font-size: 19px; }
  .area__label { font-size: 11px; padding: 8px 6px 9px; gap: 5px; }
  .area__label .icon { width: 18px; height: 18px; }
  .area__label::before { height: 12px; }
  .corp-all { font-size: 12px; padding: 8px 20px; }
  .steps { gap: 16px; }
  .step { font-size: 11px; padding: 12px 2px; }
  .step .icon { width: 28px; height: 28px; }
  .step:not(:last-child)::after { left: calc(100% + 4px); width: 8px; height: 12px; }
  .corp-cta .cta-banner { padding: 14px 16px; gap: 3px 14px; }
  .corp-cta .cta-banner__icon { width: 42px; height: 42px; }
  .corp-cta .cta-banner__title { font-size: 15px; }
  .corp-cta .cta-banner__text { font-size: 11px; }
  .corp-cta .cta-banner .btn { padding: 10px 16px; font-size: 12px; }
}

@media (min-width: 640px) {
  .corp-wrap { padding-inline: 24px; }
  .corp-hero .hero__inner { padding-inline: 24px; }
  .corp-hero .hero__img { top: 0; width: 62%; height: 100%; object-fit: cover; object-position: 20% center; }
  .corp-hero .hero__text { max-width: 48%; padding-bottom: 24px; }
  .corp-hero .breadcrumb { font-size: 13px; }
  .corp-hero .hero__title { font-size: 34px; }
  .corp-hero .hero__sub { font-size: 14px; }
  .corp-features .feature { font-size: 12px; }
  .corp-features .feature .icon { width: 36px; height: 36px; }
  .corp-wrap .section-title { font-size: 22px; }
  .corp-wrap .section-title::before { width: 32px; height: 5px; }
  .areas { gap: 14px; }
  .area__label { font-size: 12px; }
  .area__label .icon { width: 22px; height: 22px; }
  .steps { gap: 24px; }
  .step { font-size: 12px; padding: 16px 4px; }
  .step .icon { width: 34px; height: 34px; }
  .corp-cta .cta-banner { padding: 20px 28px; gap: 4px 20px; }
  .corp-cta .cta-banner__icon { width: 50px; height: 50px; padding-right: 20px; }
  .corp-cta .cta-banner__title { font-size: 20px; }
  .corp-cta .cta-banner__text { font-size: 14px; }
  .corp-cta .cta-banner .btn { padding: 13px 24px; font-size: 15px; }
  .rfq__card { padding: 28px 30px 32px; }
  .rfq__form { grid-template-columns: 1fr 1fr; gap: 18px 20px; }
  .rfq__field--wide, .rfq__submit { grid-column: 1 / -1; }
  .rfq__submit .btn { width: auto; }
}

@media (min-width: 1100px) {
  .corp-wrap, .corp-hero .hero__inner { max-width: 1260px; }
  .corp-hero .hero__img { width: 58%; object-position: right center; }
  .corp-hero .hero__text { max-width: 560px; padding-bottom: 26px; }
  .corp-hero .breadcrumb { padding-top: 14px; font-size: 14px; }
  .corp-hero__head { padding-left: 18px; margin-top: 8px; }
  .corp-hero .hero__title { font-size: 46px; line-height: 1.05; }
  .corp-hero .hero__sub { margin-top: 10px; font-size: 16px; max-width: 29em; }
  .corp-hero .hero__actions { flex-direction: row; margin-top: 18px; gap: 12px; }
  .corp-hero .btn { padding: 11px 22px; font-size: 14px; gap: 9px; }
  .corp-hero .btn .icon { width: 20px; height: 20px; }

  .corp-features { margin-top: 4px; padding: 10px 8px; background: var(--paper); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
  .corp-features .feature { flex-direction: row; justify-content: center; gap: 14px; font-size: 13px; text-align: left; padding: 4px 8px; font-weight: 600; }
  .corp-features .feature .icon { width: 42px; height: 42px; }

  .corp-cols { grid-template-columns: minmax(0, 1.22fr) minmax(0, 1fr); gap: 0 36px; margin-top: 28px; }
  .corp-process { padding-left: 36px; border-left: 2px solid var(--gold); }
  .corp-wrap .section-title { font-size: 23px; }
  .areas { gap: 12px; margin-top: 16px; }
  .area { border-radius: 12px; }
  .area__label { font-size: 11px; padding: 8px 6px 10px; }
  .area__label::before { height: 14px; }
  .corp-all { margin-top: 14px; padding: 8px 40px; font-size: 13px; }
  .steps { gap: 20px; margin-top: 16px; }
  .step { font-size: clamp(11px, 1vw, 11.5px); padding: 18px 2px; gap: 9px; border-radius: 14px; }
  .step .icon { width: 36px; height: 36px; }
  .corp-cta { margin-top: 26px; }
  .corp-cta .cta-banner {
    grid-template-columns: auto minmax(0, 1.2fr) minmax(0, 1fr) auto; grid-template-areas: "icon title text btn";
    padding: 14px 34px; gap: 0 26px; border-radius: 16px;
  }
  .corp-cta .cta-banner__icon { width: 56px; height: 56px; padding-right: 26px; }
  .corp-cta .cta-banner__title { font-size: clamp(20px, 2vw, 25px); align-self: center; border-left: 3px solid var(--gold); padding-left: 0; border: 0; }
  .corp-cta .cta-banner__text { font-size: 15px; align-self: center; border-left: 3px solid var(--gold); padding-left: 24px; }
  .corp-cta .cta-banner .btn { padding: 14px 32px; font-size: 16px; }
  .corp-cta .cta-banner .btn .icon { width: 18px; height: 18px; }
  .rfq__form { grid-template-columns: repeat(3, 1fr); }
  .rfq__field--wide { grid-column: 1 / -1; }
}
