/* ==========================================================================
   Bezpečná práce JP s.r.o. - redesign 2026
   Black & safety-yellow, mobile-first, no frameworks.
   ========================================================================== */

:root {
  --yellow: #FFD500;
  --yellow-deep: #F2B705;
  --ink: #0C0D10;
  --ink-2: #14161B;
  --ink-3: #1D2027;
  --paper: #D8DBE0;
  --white: #FFFFFF;
  --line: #C2C6CD;
  --line-dark: #262932;
  --muted: #5D6068;
  --muted-light: #A9ADB8;
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Barlow", "Segoe UI", sans-serif;
  --header-h: 72px;
  --radius: 10px;
  --shadow-lg: 0 24px 48px -16px rgba(12, 13, 16, 0.35);
  --shadow-sm: 0 8px 24px -12px rgba(12, 13, 16, 0.25);
}

/* ---------- Reset & base ---------- */

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

/* Anchor offset: exactly the fixed header (header bar + 6px hazard line).
   Keep this the ONLY scroll offset - do not add scroll-margin on sections,
   the two would stack. */
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 6px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--ink);
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  width: min(1180px, 92%);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--yellow);
  color: var(--ink);
  padding: 0.75rem 1.25rem;
  font-weight: 700;
  z-index: 300;
}

.skip-link:focus {
  left: 0;
}

/* ---------- Hazard stripe ---------- */

.hazard-line {
  height: 6px;
  background: repeating-linear-gradient(
    -45deg,
    var(--yellow) 0 14px,
    var(--ink) 14px 28px
  );
}

/* ---------- Type helpers ---------- */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  text-transform: uppercase;
  line-height: 1.02;
  letter-spacing: 0.01em;
  font-weight: 700;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.95rem;
  /* Black on light sections (the yellow-black stripe carries the accent),
     yellow on dark sections */
  color: var(--ink);
  margin-bottom: 0.9rem;
}

.section-dark .kicker {
  color: var(--yellow);
}

.kicker::before {
  content: "";
  width: 34px;
  height: 4px;
  background: repeating-linear-gradient(
    -45deg,
    var(--yellow) 0 6px,
    var(--ink) 6px 12px
  );
}


.section-title {
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  margin-bottom: 0.5rem;
}

.section-sub {
  font-family: var(--font-display);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: clamp(1.15rem, 2.6vw, 1.5rem);
  color: var(--muted);
  margin-bottom: 2.5rem;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 1.1rem;
  padding: 0.9rem 1.7rem;
  border: 2px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}

.btn svg {
  width: 1.1em;
  height: 1.1em;
  flex: none;
}

.btn-yellow {
  background: var(--yellow);
  color: var(--ink);
  border-color: var(--yellow);
}

.btn-yellow:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -8px rgba(255, 213, 0, 0.45);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-outline:hover {
  border-color: var(--yellow);
  color: var(--yellow);
  transform: translateY(-2px);
}

.btn-dark {
  background: var(--ink);
  color: var(--yellow);
  border-color: var(--ink);
}

.btn-dark:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -8px rgba(12, 13, 16, 0.5);
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  transition: box-shadow 0.25s ease;
}

/* Background lives on a pseudo-element: backdrop-filter on the header
   itself would make it the containing block for the fixed mobile nav,
   collapsing the menu panel to the header's height */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(12, 13, 16, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.site-header.scrolled {
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.6);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* White plate + yellow glow so the black parts of the logo
   stay visible on dark backgrounds */
.logo-plate {
  display: inline-flex;
  align-items: center;
  background: var(--white);
  padding: 6px 10px;
  border-radius: 6px;
  box-shadow:
    0 0 0 1px rgba(255, 213, 0, 0.4),
    0 6px 20px -4px rgba(255, 213, 0, 0.45);
}

.brand img {
  height: 34px;
  width: auto;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.main-nav a:not(.btn) {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.82);
  padding: 0.4rem 0;
  position: relative;
  transition: color 0.18s ease;
}

.main-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 3px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.main-nav a:not(.btn):hover,
.main-nav a:not(.btn).active {
  color: var(--yellow);
}

.main-nav a:not(.btn).active::after,
.main-nav a:not(.btn):hover::after {
  transform: scaleX(1);
}

.nav-cta .btn {
  padding: 0.55rem 1.2rem;
  font-size: 1rem;
}

/* Hamburger */

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 46px;
  height: 46px;
  padding: 10px;
  background: transparent;
  border: 0;
  cursor: pointer;
  z-index: 210;
}

.nav-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background: var(--yellow);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

body.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

body.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

body.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(255, 213, 0, 0.14), transparent 60%),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    var(--ink);
  background-size: auto, 44px 44px, 44px 44px, auto;
  color: var(--white);
  padding: calc(var(--header-h) + clamp(2rem, 5vh, 4rem)) 0 0;
  overflow: hidden;
  /* Fill the first screen exactly: content centers in the free space,
     the marquee sits pinned at the fold. */
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.hero-grid {
  flex: 1;
  display: grid;
  gap: 3rem;
  align-items: center;
  align-content: center;
  padding-bottom: clamp(2rem, 5vh, 4rem);
}

.hero-slogan {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--yellow);
  font-size: clamp(0.95rem, 2.4vw, 1.15rem);
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.2rem;
}

.hero-slogan::before {
  content: "";
  flex: none;
  width: 12px;
  height: 12px;
  background: var(--yellow);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.hero h1 {
  font-size: clamp(3.1rem, 11vw, 6.2rem);
  margin-bottom: 1.4rem;
}

.hero h1 .accent {
  color: var(--yellow);
}

.hero .lead {
  font-size: clamp(1.05rem, 2.6vw, 1.2rem);
  color: var(--muted-light);
  max-width: 56ch;
  margin-bottom: 2.2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 2.4rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  font-size: 0.98rem;
  color: var(--muted-light);
}

.hero-meta a:hover {
  color: var(--yellow);
}

.hero-meta .meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.hero-meta svg {
  width: 1.05em;
  height: 1.05em;
  color: var(--yellow);
  flex: none;
}

/* Hero portrait */

.hero-portrait {
  justify-self: center;
  position: relative;
  width: min(380px, 82vw);
}

.hero-portrait .frame {
  position: relative;
  border: 1px solid var(--line-dark);
  background: var(--ink-2);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform: rotate(-1.5deg);
}

.hero-portrait .frame::before {
  content: "";
  display: block;
  height: 10px;
  background: repeating-linear-gradient(
    -45deg,
    var(--yellow) 0 14px,
    var(--ink) 14px 28px
  );
}

.hero-portrait img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.hero-portrait figcaption {
  /* Slightly bottom-heavy padding keeps the text clear of the social
     badges overlapping the frame's bottom-right corner */
  padding: 0.75rem 1.1rem 0.95rem;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  font-size: 1rem;
  color: var(--white);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.hero-portrait figcaption span {
  color: var(--yellow);
}

.hero-portrait .badge-social {
  position: absolute;
  right: -10px;
  bottom: -28px;
  display: flex;
  gap: 0.6rem;
}

.social-btn {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--yellow);
  color: var(--ink);
  border-radius: 6px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease;
}

.social-btn:hover {
  transform: translateY(-3px) rotate(-3deg);
}

.social-btn svg {
  width: 20px;
  height: 20px;
}

/* Marquee */

.marquee {
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  background: var(--ink-2);
  overflow: hidden;
  padding: 0.85rem 0;
}

.marquee-track {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: marquee 26s linear infinite;
}

.marquee-track span {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.55);
  display: inline-flex;
  align-items: center;
  gap: 3rem;
  white-space: nowrap;
}

.marquee-track span::after {
  content: "▲";
  color: var(--yellow);
  font-size: 0.7em;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- Sections ---------- */

.section {
  /* Top padding ~36% smaller than bottom so titles sit closer to the seam */
  padding: clamp(2.6rem, 5.8vw, 4.5rem) 0 clamp(4rem, 9vw, 7rem);
}

.section-light {
  background: var(--paper);
  color: var(--ink);
}

.section-white {
  background: #E2E4E8;
  color: var(--ink);
}

.section-dark {
  background: var(--ink);
  color: var(--white);
}

.section-dark .section-sub {
  color: var(--muted-light);
}

/* ---------- Services ---------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
  gap: 1.6rem;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--yellow);
  box-shadow: var(--shadow-lg);
}

.service-media {
  position: relative;
  overflow: hidden;
}

.service-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.04);
  transition: transform 0.4s ease;
}

.service-card:hover .service-media img {
  transform: scale(1.05);
}

.service-num {
  position: absolute;
  top: 0;
  left: 0;
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  padding: 0.35rem 0.9rem;
  letter-spacing: 0.06em;
  border-bottom-right-radius: 8px;
}

.service-body {
  padding: 1.5rem 1.5rem 1.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.service-body h3 {
  font-size: 1.7rem;
}

.service-body p {
  color: var(--muted);
}

/* ---------- Bezpečný podnik ---------- */

.bp-figure {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
  border: 1px solid var(--line-dark);
  box-shadow: var(--shadow-lg);
}

.bp-figure::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 10px;
  background: repeating-linear-gradient(
    -45deg,
    var(--yellow) 0 14px,
    var(--ink) 14px 28px
  );
  z-index: 2;
}

.bp-figure img {
  width: 100%;
  /* Tall enough that the presenter's hands stay in frame,
     anchored so the top edge crops the same as before */
  aspect-ratio: 2 / 1;
  object-fit: cover;
  object-position: 50% 40%;
}

.bp-grid {
  display: grid;
  gap: 1.6rem;
  grid-template-columns: repeat(auto-fill, minmax(min(440px, 100%), 1fr));
}

.bp-block {
  border: 1px solid var(--line-dark);
  background: var(--ink-2);
  border-radius: var(--radius);
  padding: 1.8rem 1.7rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.22s ease, transform 0.22s ease;
}

.bp-block:hover {
  border-color: rgba(255, 213, 0, 0.55);
  transform: translateY(-4px);
}

.bp-block .bp-num {
  position: absolute;
  top: 0.4rem;
  right: 0.9rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 4.4rem;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 213, 0, 0.32);
  pointer-events: none;
}

.bp-block h3 {
  font-size: 1.75rem;
  margin-bottom: 1.1rem;
  padding-right: 4.5rem;
  color: var(--white);
}

.bp-block ul {
  display: grid;
  gap: 0.8rem;
}

.bp-block li {
  display: flex;
  gap: 0.75rem;
  color: var(--muted-light);
  line-height: 1.55;
}

.bp-block li svg {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 0.2rem;
  color: var(--yellow);
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  gap: 1.6rem;
  margin-bottom: 1.6rem;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

a.contact-card:hover {
  transform: translateY(-4px);
  border-color: var(--yellow);
  box-shadow: var(--shadow-sm);
}

.contact-icon {
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--yellow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.contact-icon svg {
  width: 26px;
  height: 26px;
}

.contact-card .label {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--muted);
}

.contact-card .value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.35rem, 4vw, 1.7rem);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.15;
  /* The email carries a <wbr> before the @ - when it doesn't fit on one line
     it wraps there ("@gmail.com" whole on the second row) instead of being
     chopped mid-domain. break-word stays only as a last-resort safety net. */
  overflow-wrap: break-word;
}

.contact-card address {
  font-style: normal;
  font-weight: 600;
  line-height: 1.5;
}

.contact-note {
  color: var(--muted);
  max-width: 75ch;
  margin-bottom: 2rem;
}

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.map-wrap iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 8;
  min-height: 320px;
  border: 0;
}

/* ---------- About ---------- */

.about-grid {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

.about-photo {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
}

.about-photo::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 10px;
  background: repeating-linear-gradient(
    -45deg,
    var(--yellow) 0 14px,
    var(--ink) 14px 28px
  );
  z-index: 2;
}

.about-photo img {
  width: 100%;
  object-fit: cover;
}

.about-copy p {
  margin-bottom: 1.1rem;
  color: #33363D;
}

.about-quote {
  border-left: 5px solid var(--yellow);
  background: var(--paper);
  padding: 1.1rem 1.3rem;
  font-weight: 600;
  border-radius: 0 8px 8px 0;
  margin-bottom: 1.3rem;
}

.cert-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  background: var(--paper);
  margin-bottom: 1.3rem;
}

.cert-panel h4 {
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.7rem;
}

.cert-panel h4 svg {
  width: 22px;
  height: 22px;
  color: #8F7100;
  flex: none;
}

.cert-panel p {
  margin: 0;
  color: #33363D;
}

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--yellow);
  color: var(--ink);
  position: relative;
  overflow: hidden;
}

.cta-band::before,
.cta-band::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 10px;
  background: repeating-linear-gradient(
    -45deg,
    var(--ink) 0 14px,
    var(--yellow) 14px 28px
  );
}

.cta-band::before {
  top: 0;
}

.cta-band::after {
  bottom: 0;
}

.cta-inner {
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
  display: grid;
  gap: 2rem;
  align-items: center;
}

.cta-inner h2 {
  font-size: clamp(2rem, 5.5vw, 3.2rem);
  margin-bottom: 0.8rem;
}

.cta-inner p {
  font-size: 1.1rem;
  font-weight: 500;
  max-width: 65ch;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

/* ---------- E-learning promo page ---------- */

/* Section label next to the logo ("you are in the E-learning part of BPJP") */
.header-brand-group {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
}

.header-section {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 1.15rem;
  color: var(--yellow);
  padding-left: 0.9rem;
  border-left: 1px solid var(--line-dark);
  white-space: nowrap;
}

/* Slim header actions (promo page has no section nav) */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.header-actions .btn {
  padding: 0.55rem 1.2rem;
  font-size: 1rem;
}

.header-back {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.82);
  transition: color 0.18s ease;
  white-space: nowrap;
}

.header-back:hover {
  color: var(--yellow);
}

/* "Already have access?" card under the hero photo */
.login-card-hint {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: 3rem;
  background: var(--ink-2);
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  color: var(--muted-light);
  font-size: 0.95rem;
  line-height: 1.4;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.login-card-hint:hover {
  transform: translateY(-2px);
  border-color: var(--yellow);
  box-shadow: var(--shadow-sm);
}

.login-card-hint strong {
  color: var(--yellow);
  font-size: 1.05rem;
}

.login-card-hint .hint-icon {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 6px;
  background: var(--yellow);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.login-card-hint .hint-icon svg {
  width: 22px;
  height: 22px;
}

/* Wider hero frame for landscape photos */
.hero-portrait--wide {
  width: min(500px, 88vw);
}

.hero-portrait--wide img {
  aspect-ratio: auto;
}

/* Service tiers */
.tiers-grid {
  display: grid;
  gap: 1.8rem;
  grid-template-columns: repeat(auto-fit, minmax(min(310px, 100%), 1fr));
  align-items: stretch;
}

.tier-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.1rem 1.8rem 1.9rem;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.tier-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--yellow);
}

.tier-card.featured {
  border: 2px solid var(--yellow);
  box-shadow: 0 18px 40px -18px rgba(12, 13, 16, 0.35);
}

.tier-badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
  padding: 0.3rem 0.9rem;
  border-radius: 4px;
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}

.tier-tag {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.tier-name {
  font-size: 1.9rem;
  margin-bottom: 0.6rem;
}

.tier-desc {
  color: var(--muted);
  margin-bottom: 1.2rem;
}

.tier-list {
  display: grid;
  gap: 0.7rem;
  margin-bottom: 1.8rem;
}

.tier-list li {
  display: flex;
  gap: 0.65rem;
  color: #33363D;
  line-height: 1.5;
}

.tier-list li svg {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 0.15rem;
  color: var(--yellow-deep);
}

.tier-cta {
  margin-top: auto;
}

.tier-cta .btn {
  width: 100%;
}

.tiers-note {
  margin-top: 2.2rem;
  color: var(--muted);
  text-align: center;
  max-width: 70ch;
  margin-inline: auto;
}

/* "How we start" steps */
.steps-grid {
  display: grid;
  gap: 1.6rem;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
}

.step {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-dark);
  background: var(--ink-2);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
}

.step .step-num {
  position: absolute;
  top: 0.4rem;
  right: 0.9rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 4rem;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 213, 0, 0.32);
  pointer-events: none;
}

.step h3 {
  font-size: 1.6rem;
  color: var(--white);
  margin-bottom: 0.6rem;
  padding-right: 3.5rem;
}

.step p {
  color: var(--muted-light);
}

/* Service card as a link (E-learning card on the main page) */
a.service-card {
  color: inherit;
}

.service-more {
  margin-top: 0.4rem;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink);
  transition: color 0.18s ease;
}

.service-card:hover .service-more {
  color: var(--yellow-deep);
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: var(--muted-light);
  padding: 3rem 0 2rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.8rem;
}

.footer-inner img {
  height: 36px;
  width: auto;
}

.footer-social {
  display: flex;
  gap: 0.7rem;
}

.footer-bottom {
  border-top: 1px solid var(--line-dark);
  padding-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2rem;
  justify-content: space-between;
  font-size: 0.92rem;
}

.footer-bottom a:hover {
  color: var(--yellow);
}

/* ---------- Mobile call bar ---------- */

.mobile-bar {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 190;
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line-dark);
  border-top: 1px solid var(--line-dark);
  padding-bottom: env(safe-area-inset-bottom);
}

.mobile-bar a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.95rem 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 1.05rem;
}

.mobile-bar a svg {
  width: 1.15em;
  height: 1.15em;
}

.mobile-bar .bar-call {
  background: var(--yellow);
  color: var(--ink);
}

.mobile-bar .bar-mail {
  background: var(--ink-2);
  color: var(--white);
}

/* ---------- Reveal animations ---------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .marquee-track {
    animation: none;
  }
  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ---------- Breakpoints ---------- */

/* Shallow desktop viewports (1366x768, 1280x720): compress the hero
   so the full black screen + marquee fit exactly in the first view. */
@media (min-width: 900px) and (max-height: 880px) {
  .hero {
    padding-top: calc(var(--header-h) + 1.25rem);
  }

  .hero-grid {
    padding-bottom: 1.5rem;
    gap: 2rem;
  }

  .hero-slogan {
    margin-bottom: 0.7rem;
  }

  .hero h1 {
    font-size: clamp(3rem, 6.5vw, 4.3rem);
    margin-bottom: 1rem;
  }

  .hero .lead {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1.4rem;
  }

  .hero-actions {
    margin-bottom: 1.5rem;
  }

  .hero-portrait {
    width: min(320px, 82vw);
  }
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }

  .about-grid {
    grid-template-columns: 0.9fr 1.1fr;
  }

  .about-photo {
    position: sticky;
    top: calc(var(--header-h) + 1.5rem);
  }

  .contact-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .cta-inner {
    grid-template-columns: 1.4fr auto;
  }
}

@media (max-width: 899px) {
  .hero-portrait {
    order: -1;
  }

  /* Promo page: the copy sells, the photo illustrates - text first on phones */
  .hero--promo .hero-portrait {
    order: 0;
  }
}

@media (max-width: 767px) {
  :root {
    --header-h: 64px;
  }

  /* The logo already links home - drop the redundant back link so the
     login button fits next to the E-learning label */
  .header-back {
    display: none;
  }

  .brand img {
    height: 28px;
  }

  .logo-plate {
    padding: 5px 8px;
  }

  .nav-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: linear-gradient(180deg, rgba(12, 13, 16, 0.99), rgba(20, 22, 27, 0.99));
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    overflow-y: auto;
    z-index: 205;
  }

  body.nav-open .main-nav {
    transform: translateX(0);
  }

  body.nav-open {
    overflow: hidden;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 2rem 8vw 3rem;
  }

  .main-nav li {
    width: 100%;
    border-bottom: 1px solid var(--line-dark);
  }

  .main-nav li.nav-cta {
    border: 0;
    margin-top: 1.6rem;
  }

  .main-nav a:not(.btn) {
    display: block;
    font-size: 1.9rem;
    padding: 1rem 0;
  }

  .main-nav a:not(.btn)::after {
    display: none;
  }

  .nav-cta .btn {
    width: 100%;
    font-size: 1.2rem;
    padding: 0.9rem 1.2rem;
  }

  .mobile-bar {
    display: grid;
  }

  body {
    padding-bottom: calc(56px + env(safe-area-inset-bottom));
  }

  .hero-actions .btn {
    flex: 1 1 100%;
  }

  .bp-figure img {
    aspect-ratio: 16 / 10;
  }

  .contact-card {
    padding: 1.2rem 1.2rem;
  }
}
