/* ==========================================================================
   Homepage — hero, stat strip, quick links, about block.
   Loads after header-style.css, which supplies the tokens used here.
   ========================================================================== */

body #pageContainer {
  margin-top: 0;
  padding-top: 0;
}

#pageContainer main {
  padding: 0;
}

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

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(420px, 56vh, 580px);
  padding: clamp(48px, 8vw, 96px) clamp(20px, 6vw, 64px);
  background-image: url('pictures/R.jpg');
  background-size: cover;
  background-position: center;
  isolation: isolate;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg,
              rgba(6, 38, 23, .92) 0%,
              rgba(6, 38, 23, .78) 42%,
              rgba(6, 38, 23, .42) 100%);
}

.hero-inner {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
}

.hero .eyebrow {
  background: rgba(255, 255, 255, .14);
  color: #fff;
  backdrop-filter: blur(2px);
}

.hero h1 {
  max-width: 16ch;
  margin: 0 0 20px;
  color: #fff;
  font-size: clamp(2.2rem, 1.3rem + 3.6vw, 4rem);
  line-height: 1.08;
  letter-spacing: -.03em;
}

.hero-lead {
  max-width: 54ch;
  margin: 0 0 34px;
  color: rgba(255, 255, 255, .9);
  font-size: clamp(1.02rem, .95rem + .45vw, 1.24rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* --------------------------------------------------------------------------
   Stat strip — sits directly under the hero
   -------------------------------------------------------------------------- */

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: var(--wrap);
  margin: -42px auto 0;
  position: relative;
  z-index: 3;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-2);
  overflow: hidden;
}

.stat {
  padding: 28px 24px;
  text-align: center;
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: 0; }

.stat strong {
  display: block;
  font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.6rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--brand-700);
}

.stat span {
  display: block;
  margin-top: 8px;
  font-size: .84rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--ink-500);
}

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

.section {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(48px, 7vw, 84px) clamp(16px, 4vw, 32px) 0;
}

.section:last-of-type { padding-bottom: clamp(56px, 8vw, 96px); }

.section-head {
  margin-bottom: 30px;
  text-align: center;
}

.section-head h2 { margin: 0; }

/* --------------------------------------------------------------------------
   Quick-link cards
   -------------------------------------------------------------------------- */

.quick-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(248px, 1fr));
  gap: 22px;
}

.qcard {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-1);
  color: inherit;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.qcard:hover {
  transform: translateY(-5px);
  box-shadow: var(--sh-3);
  border-color: #cfe0d6;
  text-decoration: none;
}

.qcard-media {
  height: 152px;
  overflow: hidden;
  background: var(--brand-900);
}

.qcard-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}

.qcard:hover .qcard-media img { transform: scale(1.06); }

.qcard-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px 24px 24px;
}

.qcard-body h3 {
  margin: 0 0 8px;
  font-size: 1.16rem;
  color: var(--brand-800);
}

.qcard-body p {
  margin: 0 0 18px;
  font-size: .95rem;
  line-height: 1.6;
  color: var(--ink-500);
}

.qcard-more {
  margin-top: auto;
  font-size: .89rem;
  font-weight: 700;
  color: var(--brand-600);
}

.qcard-more::after {
  content: " →";
  display: inline-block;
  transition: transform .2s ease;
}

.qcard:hover .qcard-more::after { transform: translateX(4px); }

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

.about {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(28px, 4vw, 52px);
  align-items: center;
  padding: clamp(26px, 4vw, 52px);
}

.about-text h2 { margin: 0 0 16px; }

.about-text p {
  color: var(--ink-500);
  line-height: 1.75;
}

.about-text .btn { margin-top: 12px; }

.about-media img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  max-height: 360px;
  object-fit: cover;
  border-radius: var(--r);
  box-shadow: var(--sh-1);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; }
  .about-media { order: -1; }
  .about-media img { max-height: 240px; }
}

@media (max-width: 640px) {
  .stats {
    grid-template-columns: 1fr;
    margin-top: -28px;
  }
  .stat {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 20px;
  }
  .stat:last-child { border-bottom: 0; }

  .hero-actions .btn { width: 100%; justify-content: center; }
}
