/*
  Modular hero styles (no frameworks)
  Include on homepage:
    <link rel="stylesheet" href="css/hero.css?v=<?php echo time(); ?>">

  Replace guidance:
  - Update tokens below if you want different brand colors.
  - Replace the illustration in includes/hero.php with a real image when available.
*/

:root {
  /* Brand + surface tokens (hero-local defaults; will inherit from navbar tokens if present) */
  --hero-brand: var(--brand-primary, #2c64ad);
  --hero-accent: var(--brand-accent, #ff8c42);
  --hero-bg: #0b1830;
  --hero-text: #ffffff;
  --hero-muted: rgba(255, 255, 255, 0.84);

  /* Spacing */
  --hero-max-width: 1200px;
  --hero-pad-x: 5%;
  --hero-radius: 18px;

  /* Motion (respects global tokens if present) */
  --hero-ease: var(--motion-ease, cubic-bezier(0.2, 0.8, 0.2, 1));
  --hero-fast: var(--motion-fast, 160ms);
  --hero-medium: var(--motion-medium, 420ms);
  --hero-lift: var(--lift-sm, 4px);
}

.site-hero {
  /* Content-focused (not full screen), but “above the fold” on most screens */
  padding: 28px 0 18px;
  background:
    radial-gradient(
      1000px 500px at 10% 10%,
      rgba(255, 140, 66, 0.22),
      transparent 60%
    ),
    radial-gradient(
      900px 520px at 90% 40%,
      rgba(44, 100, 173, 0.28),
      transparent 55%
    ),
    url("../images/0.jpeg") center / cover no-repeat;
  color: var(--hero-text);
}

.site-hero__inner {
  max-width: var(--hero-max-width);
  margin: 0 auto;
  padding: 24px var(--hero-pad-x);
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  align-items: center;
}

.site-hero__content {
  max-width: 64ch;
  padding: 18px 16px;
  border-radius: var(--hero-radius);
  background: rgba(30 80 172 / 55%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
}

.site-hero__title {
  margin: 0 0 12px;
  font-weight: 900;
  letter-spacing: -0.6px;
  line-height: 1.06;
  font-size: clamp(30px, 4.3vw, 48px);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.55);
}

.site-hero__lead {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.55;
  font-size: 16px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.5);
}

.site-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin: 0 0 14px;
}

/* Buttons are scoped to the hero to avoid changing other pages */
.site-hero .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 16px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  border: 1px solid transparent;
  transition:
    transform var(--hero-fast) var(--hero-ease),
    filter var(--hero-fast) var(--hero-ease),
    box-shadow var(--hero-fast) var(--hero-ease);
  transform: translateZ(0);
}

.site-hero .btn-primary {
  background: var(--hero-accent);
  color: #1a1a1a;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.24);
}

.site-hero .btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.22);
}

.site-hero .btn:focus-visible {
  outline: 3px solid rgba(255, 140, 66, 0.45);
  outline-offset: 2px;
}

@media (hover: hover) {
  .site-hero .btn:hover {
    transform: translateY(-1px) scale(1.02);
    filter: brightness(1.03);
  }
}

.site-hero .btn:active {
  transform: translateY(0) scale(0.98);
}

.site-hero__meta {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.5;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.site-hero__meta-label {
  font-weight: 800;
  color: rgba(255, 255, 255, 0.92);
  margin-right: 6px;
}

.site-hero__phone {
  color: #ffffff;
  font-weight: 900;
  text-decoration: none;
  padding-bottom: 1px;
  border-bottom: 2px solid rgba(255, 140, 66, 0.55);
}

.site-hero__phone:focus-visible {
  outline: 3px solid rgba(255, 140, 66, 0.45);
  outline-offset: 2px;
}

@media (hover: hover) {
  .site-hero__phone:hover {
    border-bottom-color: rgba(255, 140, 66, 0.9);
  }
}

.site-hero__media {
  display: block;
  color: rgba(255, 255, 255, 0.92);
}

.site-hero__illustration {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--hero-radius);
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.35),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

/* Breakpoints */
@media (min-width: 768px) {
  .site-hero {
    padding: 34px 0 22px;
  }

  .site-hero__inner {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 28px;
    padding: 34px var(--hero-pad-x);
  }

  .site-hero__content {
    padding: 22px 20px;
  }

  .site-hero__lead {
    font-size: 17px;
  }
}

@media (min-width: 1024px) {
  .site-hero__inner {
    padding: 44px var(--hero-pad-x);
  }
}

/* Reduced motion: keep everything static */
@media (prefers-reduced-motion: reduce) {
  .site-hero .btn {
    transition: none !important;
    transform: none !important;
  }
}

/*
Manual testing notes (hero.css)
- Verify hero remains readable against the background.
- Check 320px width: CTAs should wrap cleanly.
- Check 768px/1024px: layout becomes 2-column, no overflow.
- Confirm focus rings are visible for buttons and phone link.
- Reduced motion: no hover/press transforms should be forced.

Reveal integration
- Add `.reveal` to hero elements (already done in includes/hero.php).
- Global observer should pick up `.reveal` elements once navbar/navbar.js includes `.reveal` in its selector list.
*/
