/* Front page layer: loaded after main.css on the home page only. */

/* Hero — shared */
.hero-home .hero-title-desktop em,
.hero-home .hero-title-mobile em {
  background: linear-gradient(100deg, #ff8a3d, #ffb36b 55%, #ffd29a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: normal;
}
.hero-home .hero-shade::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 70% at 8% 100%, rgba(232, 69, 42, .38), transparent 70%);
  pointer-events: none;
}
.hero-home .button-accent {
  background: var(--brand-gradient);
  border: 0;
  box-shadow: 0 12px 32px -10px rgba(232, 69, 42, .7);

}
.hero-home .button-accent:hover {

  box-shadow: 0 18px 40px -12px rgba(232, 69, 42, .85);
}
.hero-home .hero-description { color: rgba(255, 255, 255, .86); }

/* Hero — mobile: full-bleed photo with copy over it */
@media (max-width: 640px) {
  .hero-home.hero-mode-yard {
    display: block;
    position: relative;
    height: auto;
    min-height: 88svh;
  }
  .hero-home.hero-mode-yard .hero-stage {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    transform: none;
  }
  .hero-home.hero-mode-yard .hero-yard-hover,
  .hero-home.hero-mode-yard .hero-yard-landing,
  .hero-home.hero-mode-yard .hero-yard-picture { width: 100%; height: 100%; }
  /* The photo fills the height, so the slice-fitted route stays on the lane edges. */
  .hero-home.hero-mode-yard .hero-yard-route { display: block; }
  .hero-home.hero-mode-yard .hero-route-flow { stroke-width: 4; }
  .hero-home.hero-mode-yard .hero-background {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 30%;
    filter: saturate(.9) contrast(1.05);
  }
  .hero-home.hero-mode-yard .hero-yard-navy { opacity: .3; }
  .hero-home.hero-mode-yard .hero-shade {
    display: block;
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(0deg, var(--ink) 0%, rgba(19, 40, 77, .92) 36%, rgba(19, 40, 77, .35) 62%, rgba(19, 40, 77, .1) 100%);
  }
  .hero-home.hero-mode-yard .hero-shade::after {
    background: radial-gradient(90% 45% at 0% 100%, rgba(232, 69, 42, .45), transparent 70%);
  }
  .hero-home.hero-mode-yard .hero-container {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 88svh;
    padding-block: 120px 36px;
  }
  .hero-home.hero-mode-yard h1 { font-size: clamp(34px, 9.6vw, 44px); line-height: 1.08; letter-spacing: -.02em; }
  .hero-home .hero-description { font-size: 16px; margin-top: 14px; }
  .hero-home .hero-actions { flex-direction: column; align-items: stretch; gap: 14px; margin-top: 24px; }
  .hero-home .hero-actions .button-accent { width: 100%; justify-content: center; min-height: 54px; font-size: 17px; }
  .hero-home .hero-actions .text-link { align-self: center; }
}

/* Stats — dark band with glowing numbers */
.home .stats-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(40% 120% at 0% 0%, rgba(232, 69, 42, .28), transparent 70%),
    radial-gradient(40% 120% at 100% 100%, rgba(242, 106, 33, .18), transparent 70%),
    var(--ink);
}
.home .stats-grid { gap: 20px; padding-block: 56px; }
.home .stat {
  position: relative;
  padding: 24px 24px 22px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  backdrop-filter: blur(6px);
}
.home .stat:hover { border-color: rgba(242, 106, 33, .5); background: rgba(255, 255, 255, .07); }
.home .stat strong {
  display: block;
  background: linear-gradient(100deg, #fff 20%, #ffb36b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.05;
}
.home .stat span:not(.stat-icon) { color: rgba(255, 255, 255, .72); }

/* Cards — lift and gradient edge on hover */
.home .press-card,
.home .section-areas .branch-card,
.home .facility-item {
  position: relative;
}
.home .press-card::after,
.home .section-areas .branch-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: var(--brand-gradient);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  pointer-events: none;
}
.home .press-card:hover,
.home .section-areas .branch-card:hover,
.home .facility-item:hover {
  box-shadow: 0 24px 48px -24px rgba(19, 40, 77, .35);
}
.home .press-card:hover::after,
.home .section-areas .branch-card:hover::after { opacity: 1; }
.home .section-courses .content-card { overflow: hidden; }
.home .facility-item { overflow: hidden; border-radius: 16px; }
.home .press-card { overflow: hidden; }

.course-filters .filter-button[aria-pressed="true"] {
  background: var(--brand-gradient);
  border-color: transparent;
  box-shadow: 0 8px 20px -10px rgba(232, 69, 42, .8);
}

/* Commitments — glass cards on the ink band */
.home .section-commitments {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(50% 60% at 100% 0%, rgba(232, 69, 42, .22), transparent 70%),
    var(--ink);
}
.home .commitment-card {
  position: relative;
  border: 1px solid rgba(255, 255, 255, .08);
  background: linear-gradient(160deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02));
  backdrop-filter: blur(8px);
}
.home .commitment-card::before {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  top: -1px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand-gradient);
  opacity: .7;
}
.home .commitment-card:hover { border-color: rgba(242, 106, 33, .45); }

/* Learning outline — gradient rail with glowing stops */
.home .learning-outline { border-left: 0; position: relative; }
.home .learning-outline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 24px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, #f26a21, #e8452a 60%, rgba(232, 69, 42, .15));
}
.home .learning-outline > div { position: relative; }
.home .learning-outline > div::before {
  left: -5px;
  width: 12px;
  height: 12px;
  background: #fff;
  border: 3px solid var(--primary);
  box-shadow: 0 0 0 5px #fbf1ea, 0 0 16px 2px rgba(232, 69, 42, .45);
}

/* Team — warm overlay */
.home .team-preview .team-card { overflow: hidden; border-radius: 18px; }

/* FAQ */
.home .faq-list details { border-radius: 14px; }
.home .faq-list details[open] summary { color: var(--primary); }

/* Lead */
.home .lead-form-panel {
  border-radius: 22px;
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .06);
}
.home .lead-form-panel .button,
.home .lead-form-panel button[type="submit"] { background: var(--brand-gradient); border: 0; }

/* Mobile: swipeable rows */
@media (max-width: 700px) {
  .home .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding-block: 40px; }
  .home .stat { padding: 18px 16px; border-radius: 14px; }
  .home .stat strong { font-size: clamp(24px, 7.4vw, 34px); overflow-wrap: normal; white-space: nowrap; }
  .home .team-preview {
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 14px;
    margin-inline: -16px;
    padding: 0 16px 12px;
    scrollbar-width: none;
  }
  .home .team-preview::-webkit-scrollbar { display: none; }
  .home .team-preview > .team-card { flex: 0 0 62%; scroll-snap-align: start; }
  .home .press-grid {
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 14px;
    margin-inline: -16px;
    padding: 4px 16px 16px;
    scrollbar-width: none;
  }
  .home .press-grid::-webkit-scrollbar { display: none; }
  .home .press-grid > .press-card { flex: 0 0 84%; scroll-snap-align: start; }
  .home .section-courses .card-grid { scrollbar-width: none; }
  .home .section-courses .card-grid::-webkit-scrollbar { display: none; }
}

/* Reveal on scroll */
@media (prefers-reduced-motion: no-preference) {
  .js.home-motion-ready [data-reveal] {
    transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1);
    transition-delay: var(--reveal-delay, 0ms);
  }
  .js.home-motion-ready [data-reveal]:not(.is-visible) { opacity: 0; transform: translateY(28px); }
  .hero-home .hero-copy > * { animation: antam-home-rise .8s cubic-bezier(.2, .7, .2, 1) both; }
  .hero-home .hero-copy > :nth-child(2) { animation-delay: .12s; }
  .hero-home .hero-copy > :nth-child(3) { animation-delay: .24s; }
  .hero-home .hero-copy > :nth-child(4) { animation-delay: .36s; }
}
@keyframes antam-home-rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-home .button-accent { transition: transform .25s ease, box-shadow .25s ease; }
  .hero-home .button-accent:hover { transform: translateY(-2px); }
.home .stat { transition: border-color .3s ease, background .3s ease; }
/* Cards — lift and gradient edge on hover */
.home .press-card,
.home .section-areas .branch-card,
.home .facility-item { transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s ease; }
.home .press-card::after,
.home .section-areas .branch-card::after { transition: opacity .35s ease; }
.home .press-card:hover,
.home .section-areas .branch-card:hover,
.home .facility-item:hover { transform: translateY(-6px); }
.home .facility-item img { transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.home .facility-item:hover img { transform: scale(1.04); }
.course-filters .filter-button { transition: background .25s ease, color .25s ease, box-shadow .25s ease; }
.home .commitment-card { transition: border-color .3s ease, transform .35s cubic-bezier(.2, .7, .2, 1); }
.home .commitment-card:hover { transform: translateY(-4px); }
.home .team-preview .team-card img { transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.home .team-preview .team-card:hover img { transform: scale(1.05); }
/* FAQ */
.home .faq-list details { transition: background .3s ease; }
}

/* A night-time showroom, with each plate sitting across the bodywork seam. */
.home .section-courses {
  position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(56px, 7vw, 100px);
  color: #fff; background: radial-gradient(ellipse at 100% 0, #d4380f26, transparent 50%), var(--ink);
}
.home .section-courses::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--brand-gradient); }
.home .section-courses :is(.section-heading, .heading-row) { max-width: 850px; margin-bottom: 36px; }
.home .section-courses :is(.section-heading, .heading-row) h2 { font-size: clamp(38px, 5.5vw, 72px); line-height: 1.06; letter-spacing: -.055em; text-wrap: balance; }
.home .section-courses :is(.section-heading, .heading-row) p { color: var(--dark-text); max-width: 580px; margin-top: 24px; }
.home .section-courses .course-filters { border-color: #ffffff26; padding-block: 18px; margin-bottom: 32px; }
.home .section-courses .filter-button { background: transparent; border: 1px solid #ffffff40; color: #fff; box-shadow: none; }
.home .section-courses .filter-button[aria-pressed=true] { background: #fff; color: var(--ink); border-color: #fff; box-shadow: inset 0 -3px var(--accent); }
.home .section-courses .card-grid { gap: 24px; align-items: stretch; }
.home .section-courses .has-four-courses .card-grid { max-width: none; }
.home .section-courses .fallback-card { color: var(--ink); }
.home .section-courses .content-card { height: auto; border: 1px solid #ffffff30; background: #ffffff07; border-radius: 20px 20px 8px 8px; box-shadow: 0 24px 40px -32px #0009; }
.home .section-courses .content-card:is(:hover, :focus-within) { border-color: #f26a21; }
.home .section-courses .course-card-head .license-label { font-size: 54px; min-width: 100px; min-height: 74px; }
.home .section-courses .card-body { padding: 46px 26px 26px; gap: 16px; }
.home .section-courses .card-body h3 { font-size: 24px; line-height: 1.3; }
.home .section-courses .card-body h3 a { color: #fff; }
.home .section-courses .course-excerpt { display: block; overflow: visible; font-size: 14px; color: var(--dark-text); }
.home .section-courses .course-card-footer { border-color: #ffffff26; }
.home .section-courses .course-price span { color: var(--dark-text); }
.home .section-courses .course-price strong { color: #fff; font-size: clamp(22px, 2.2vw, 30px); }
.home .section-courses .course-card-link { border-color: #ffffff70; color: #fff; background: transparent; }
.home .section-courses .course-card-link:hover { background: #fff; color: var(--ink); }
.home .section-courses > .container > .contact-buttons { margin-top: 36px; gap: 16px; }
.home .section-courses .contact-buttons .button-accent { color: #fff; border-color: #ffffff70; }
.home .section-courses :focus-visible { outline-color: var(--gold); }
.home .section-courses .course-card-link:focus-visible { outline-offset: -5px; }
@media (max-width: 700px) {
  .home .section-courses .card-grid { display: flex; gap: 16px; padding: 4px 0 20px; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: #f26a21 #ffffff20; }
  .home .section-courses .card-grid::-webkit-scrollbar { display: block; height: 4px; }
  .home .section-courses .card-grid::-webkit-scrollbar-thumb { background: #f26a21; }
  .home .section-courses .content-card { flex: 0 0 90%; scroll-snap-align: start; }
  .home .section-courses .card-body { padding: 44px 22px 22px; }
  .home .section-courses .card-body h3 { font-size: 22px; }
  .home .section-courses .course-filters { margin-bottom: 16px; }
  .home .section-courses .course-swipe-hint { display: block; color: var(--dark-text); font-size: 12px; margin-bottom: 16px; }
  .home .section-courses .course-card-head .license-label { font-size: 48px; min-height: 68px; }
}
@media (prefers-reduced-motion: no-preference) {
  .home .section-courses .course-image img { transition: transform .7s cubic-bezier(.2,.7,.2,1); }
  .home .section-courses .course-card-head { transition: transform .45s cubic-bezier(.2,.7,.2,1); }
  .home .section-courses .content-card:is(:hover, :focus-within) .course-image img { transform: scale(1.025); }
  .home .section-courses .content-card:is(:hover, :focus-within) .course-card-head { transform: translateY(-4px) rotate(-2deg); }
  .js.home-motion-ready .section-courses [data-reveal]:not(.is-visible) { opacity: 1; transform: none; }
  .home .section-courses .content-card.course-enter { animation: antam-course-enter .6s cubic-bezier(.2,.7,.2,1) both; animation-delay: var(--course-delay, 0ms); }
  @keyframes antam-course-enter { from { opacity: .45; transform: translateY(20px); } to { opacity: 1; transform: none; } }
}

.home .section-courses .heading-row { max-width: none; align-items: end; }
.home .section-courses .heading-row .text-link { color: #fff; min-height: 44px; display: inline-flex; align-items: center; }
@media (max-width: 700px) {
  .home .section-courses .heading-row { align-items: start; flex-direction: column; gap: 12px; }
}

/* Hero — mobile motion: the desktop video and parallax are skipped on phones,
   so the photo drifts, a headlight beam sweeps across and the CTA catches light. */
@media (max-width: 640px) and (prefers-reduced-motion: no-preference) {
  .js .hero-home.hero-mode-yard .hero-yard-picture,
  .js .hero-home.hero-mode-yard .hero-yard-route { display: block; transform-origin: 50% 60%; will-change: transform; animation: antam-m-drift 16s 1.8s ease-in-out infinite alternate both; }
  .hero-home.hero-mode-yard .hero-shade::before {
    content: "";
    position: absolute;
    inset: -20% -60%;
    background: linear-gradient(105deg, transparent 40%, rgba(255, 179, 107, .16) 48%, rgba(255, 236, 214, .22) 50%, rgba(255, 179, 107, .16) 52%, transparent 60%);
    mix-blend-mode: screen;
    pointer-events: none;
    animation: antam-m-beam 7s 2.4s ease-in-out infinite both;
  }
  .hero-home.hero-mode-yard .hero-shade::after { animation: antam-m-glow 5s ease-in-out infinite; }
  .hero-home .hero-title-mobile {
    background-image: linear-gradient(100deg, #fff 35%, #ffb36b 45%, #ff8a3d 50%, #ffb36b 55%, #fff 65%);
    background-size: 300% 100%;
    background-position: 100% 0;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: antam-m-shimmer 6s 1.2s ease-in-out infinite;
  }
  .hero-home .hero-actions .button-accent { position: relative; overflow: hidden; isolation: isolate; }
  .hero-home .hero-actions .button-accent::after {
    content: "";
    position: absolute;
    inset: -40% auto -40% -40%;
    width: 30%;
    z-index: -1;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent);
    transform: skewX(-22deg);
    pointer-events: none;
    animation: antam-m-shine 4.5s 2s ease-in-out infinite;
  }
  .hero-home.is-paused *, .hero-home.is-paused *::before, .hero-home.is-paused *::after { animation-play-state: paused; }
}
@keyframes antam-m-drift {
  from { transform: scale(1.06) translate3d(-1.5%, 0, 0); }
  to { transform: scale(1.14) translate3d(1.5%, -1.5%, 0); }
}
@keyframes antam-m-beam {
  0% { transform: translateX(-55%); opacity: 0; }
  15% { opacity: 1; }
  55% { transform: translateX(55%); opacity: 0; }
  100% { transform: translateX(55%); opacity: 0; }
}
@keyframes antam-m-glow { 0%, 100% { opacity: .7; } 50% { opacity: 1; } }
@keyframes antam-m-shimmer { 0%, 30% { background-position: 100% 0; } 70%, 100% { background-position: 0 0; } }
@keyframes antam-m-shine { 0%, 55% { left: -40%; } 85%, 100% { left: 130%; } }
