/* Homepage-only styles. Every rule is scoped to body.asf-home
   so shared template CSS on other pages is left unchanged. */

body.asf-home {
  --asf-navy: #07182c;
  --asf-navy-2: #0c2744;
  --asf-green: #0f4c38;
  --asf-green-2: #187354;
  --asf-gold: #c6a15b;
  --asf-gold-2: #e6d0a0;
  --asf-ink: #172033;
  --asf-muted: #5c6b7a;
  --asf-line: #e3e9ef;
  --asf-paper: #f4f6f8;
  --asf-white: #ffffff;
  background: var(--asf-paper);
  color: var(--asf-ink);
  font-family: "Poppins", "Open Sans", sans-serif;
  overflow-x: hidden;
}

body.asf-home h1,
body.asf-home h2,
body.asf-home h3,
body.asf-home h4,
body.asf-home h5,
body.asf-home h6 {
  font-family: "Poppins", "Raleway", sans-serif;
  color: var(--asf-navy);
}

body.asf-home a {
  text-decoration: none;
}

body.asf-home a:focus-visible,
body.asf-home button:focus-visible,
body.asf-home .btn:focus-visible,
body.asf-home .mobile-nav-toggle:focus-visible {
  outline: 3px solid var(--asf-gold);
  outline-offset: 2px;
}

/* Official accent bar */
body.asf-home .asf-govbar {
  height: 4px;
  background: linear-gradient(90deg, var(--asf-green) 0 78%, var(--asf-gold) 78% 100%);
}

/* Top bar */
body.asf-home #topbar {
  background: var(--asf-green);
  height: auto;
  min-height: 42px;
  padding: 8px 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 13.5px;
  letter-spacing: 0.01em;
}

body.asf-home #topbar .contact-info a,
body.asf-home #topbar .contact-info i {
  color: #fff;
  line-height: 1.4;
}

body.asf-home #topbar .contact-info a:hover {
  color: var(--asf-gold-2);
}

body.asf-home #topbar .contact-info i {
  margin-right: 8px;
}

body.asf-home #topbar .social-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

body.asf-home #topbar .social-links a {
  color: #fff;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
  background: rgba(255, 255, 255, 0.08);
}

body.asf-home #topbar .social-links a:hover {
  background: var(--asf-gold);
  color: var(--asf-navy);
}

/* Header */
body.asf-home #header {
  background: var(--asf-navy);
  height: auto;
  min-height: 84px;
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 1020;
  box-shadow: 0 8px 24px rgba(7, 24, 44, 0.18);
  border-bottom: 1px solid rgba(198, 161, 91, 0.35);
}

body.asf-home #header .container {
  gap: 16px;
}

body.asf-home #header .logo {
  line-height: 0;
  flex: 0 1 auto;
}

body.asf-home #header .logo img {
  max-height: 68px;
  width: auto;
  height: auto;
}

body.asf-home #navbar > ul {
  gap: 4px;
}

body.asf-home .navbar a,
body.asf-home .navbar a:focus {
  color: rgba(255, 255, 255, 0.9);
  background: transparent;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

body.asf-home .navbar a:hover,
body.asf-home .navbar .active,
body.asf-home .navbar .active:focus,
body.asf-home .navbar li:hover > a {
  background: rgba(255, 255, 255, 0.08);
  color: var(--asf-gold-2);
}

body.asf-home .navbar a.asf-nav-cta,
body.asf-home .navbar a.asf-nav-cta:focus {
  background: var(--asf-gold);
  color: var(--asf-navy);
  font-weight: 700;
  margin-left: 6px;
}

body.asf-home .navbar a.asf-nav-cta:hover,
body.asf-home .navbar li:hover > a.asf-nav-cta {
  background: var(--asf-gold-2);
  color: var(--asf-navy);
}

body.asf-home .mobile-nav-toggle {
  color: #fff;
  font-size: 30px;
  min-width: 44px;
  min-height: 44px;
  display: none;
  align-items: center;
  justify-content: center;
}

body.asf-home .navbar-mobile {
  background: rgba(7, 24, 44, 0.72);
}

body.asf-home .navbar-mobile ul {
  border-radius: 14px;
  padding: 12px 0 16px;
}

body.asf-home .navbar-mobile a,
body.asf-home .navbar-mobile a:focus {
  color: var(--asf-navy);
  background: transparent;
  font-size: 16px;
  padding: 14px 20px;
}

body.asf-home .navbar-mobile a:hover,
body.asf-home .navbar-mobile .active,
body.asf-home .navbar-mobile .active:focus,
body.asf-home .navbar-mobile li:hover > a {
  color: var(--asf-green);
  background: #f3f7f5;
}

body.asf-home .navbar-mobile a.asf-nav-cta,
body.asf-home .navbar-mobile a.asf-nav-cta:focus,
body.asf-home .navbar-mobile li:hover > a.asf-nav-cta {
  display: flex;
  margin: 12px 16px 4px;
  justify-content: center;
  background: var(--asf-green);
  color: #fff;
}

body.asf-home .navbar-mobile .mobile-nav-toggle {
  color: #fff;
}

@media (max-width: 991px) {
  body.asf-home .mobile-nav-toggle {
    display: inline-flex;
  }

  body.asf-home #header .logo img {
    max-height: 54px;
  }
}

/* Hero */
body.asf-home .asf-hero {
  position: relative;
  color: #fff;
  background:
    linear-gradient(105deg, rgba(7, 24, 44, 0.94) 0%, rgba(7, 24, 44, 0.82) 48%, rgba(15, 76, 56, 0.62) 100%),
    url("../assets/img/carousel-imgs/slide_1.jpg") center 28% / cover no-repeat;
  padding: 76px 0 112px;
  overflow: hidden;
}

body.asf-home .asf-hero h1,
body.asf-home .asf-hero h2,
body.asf-home .asf-hero p {
  color: #fff;
}

body.asf-home .asf-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: var(--asf-gold-2);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

body.asf-home .asf-kicker::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--asf-gold);
}

body.asf-home .asf-hero h1 {
  font-size: clamp(2.05rem, 4.4vw, 3.45rem);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.02em;
  max-width: 14ch;
  margin: 0 0 16px;
}

body.asf-home .asf-hero-lead {
  max-width: 38rem;
  margin: 0 0 18px;
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
}

body.asf-home .asf-hero-current {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 600;
}

body.asf-home .asf-hero-current span {
  color: var(--asf-gold-2);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.asf-home .asf-hero-date {
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.95rem;
}

body.asf-home .asf-hero-date i {
  color: var(--asf-gold);
  margin-right: 6px;
}

body.asf-home .asf-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

body.asf-home .asf-hero-seal-wrap {
  display: flex;
  justify-content: center;
}

body.asf-home .asf-hero-seal {
  width: min(280px, 70%);
  height: auto;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.35));
}

body.asf-home .asf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 6px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.2;
  text-align: center;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

body.asf-home .asf-btn-gold {
  background: var(--asf-gold);
  color: var(--asf-navy);
}

body.asf-home .asf-btn-gold:hover {
  background: var(--asf-gold-2);
  color: var(--asf-navy);
}

body.asf-home .asf-btn-light {
  background: #fff;
  color: var(--asf-navy);
}

body.asf-home .asf-btn-light:hover {
  background: #f4f7f5;
  color: var(--asf-green);
}

body.asf-home .asf-btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}

body.asf-home .asf-btn-ghost:hover {
  background: #fff;
  color: var(--asf-navy);
  border-color: #fff;
}

body.asf-home .asf-btn-green {
  background: var(--asf-green);
  color: #fff;
}

body.asf-home .asf-btn-green:hover {
  background: var(--asf-green-2);
  color: #fff;
}

/* Quick facts */
body.asf-home .asf-quickfacts {
  margin-top: -42px;
  position: relative;
  z-index: 3;
  padding-bottom: 10px;
}

body.asf-home .asf-quickfacts ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin: 0;
  padding: 18px 24px;
  background: #fff;
  border: 1px solid var(--asf-line);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(7, 24, 44, 0.1);
}

body.asf-home .asf-quickfacts li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--asf-ink);
  font-size: 14.5px;
  font-weight: 500;
}

body.asf-home .asf-quickfacts i {
  color: var(--asf-green);
  font-size: 1.1rem;
}

body.asf-home .asf-quickfacts a {
  color: var(--asf-navy);
}

body.asf-home .asf-quickfacts a:hover {
  color: var(--asf-green);
}

/* Sections */
body.asf-home .asf-section {
  padding: 72px 0;
}

body.asf-home .asf-section-head {
  max-width: 680px;
  margin-bottom: 32px;
}

body.asf-home .asf-section-head h2 {
  font-size: clamp(1.7rem, 2.4vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}

body.asf-home .asf-section-head p {
  margin: 0;
  color: var(--asf-muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

body.asf-home #services {
  scroll-margin-top: 110px;
  background: var(--asf-paper);
  padding-top: 48px;
}

body.asf-home .asf-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
}

body.asf-home a.asf-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 100%;
  padding: 22px 20px 18px;
  background: #fff;
  border: 1px solid var(--asf-line);
  border-radius: 14px;
  color: var(--asf-ink);
  box-shadow: 0 8px 22px rgba(16, 36, 58, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

body.asf-home a.asf-card:hover {
  transform: translateY(-4px);
  border-color: var(--asf-gold);
  box-shadow: 0 16px 36px rgba(7, 24, 44, 0.1);
  color: var(--asf-ink);
}

body.asf-home .asf-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eef5f2;
  color: var(--asf-green);
  font-size: 1.45rem;
}

body.asf-home a.asf-card:hover .asf-card-icon {
  background: var(--asf-green);
  color: #fff;
}

body.asf-home .asf-card-title {
  display: block;
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--asf-navy);
  margin-bottom: 6px;
}

body.asf-home .asf-card-copy,
body.asf-home .asf-card-meta,
body.asf-home .asf-card-date {
  display: block;
  color: var(--asf-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

body.asf-home .asf-card-meta {
  color: var(--asf-ink);
  font-weight: 600;
  margin-bottom: 4px;
}

body.asf-home .asf-card-date {
  margin-top: 4px;
}

body.asf-home .asf-card-date i {
  color: var(--asf-green);
  margin-right: 4px;
}

body.asf-home .asf-card-action {
  margin-top: auto;
  padding-top: 14px;
  color: var(--asf-green);
  font-weight: 700;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

body.asf-home .asf-card-action i {
  transition: transform 0.2s ease;
}

body.asf-home a.asf-card:hover .asf-card-action i {
  transform: translateX(4px);
}

/* Profiles and carousel */
body.asf-home .asf-about {
  background: #fff;
  border-top: 1px solid var(--asf-line);
}

body.asf-home .asf-stage {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  height: 460px;
  background: var(--asf-navy);
  box-shadow: 0 18px 40px rgba(7, 24, 44, 0.16);
  margin-bottom: 22px;
}

body.asf-home .asf-stage .carousel,
body.asf-home .asf-stage .carousel-inner {
  height: 100%;
}

body.asf-home .asf-stage .carousel-item {
  display: block;
  position: absolute;
  inset: 0;
  float: none;
  width: 100%;
  margin: 0;
  opacity: 0;
  z-index: 0;
  transition: opacity 0.55s ease;
}

body.asf-home .asf-stage .carousel-item.active {
  opacity: 1;
  z-index: 1;
}

body.asf-home .asf-stage .carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.62);
}

body.asf-home .asf-stage .carousel-caption {
  z-index: 2;
  left: 6%;
  right: 6%;
  bottom: 28px;
  text-align: left;
  padding: 14px 16px;
  background: rgba(7, 24, 44, 0.62);
  border-left: 3px solid var(--asf-gold);
  border-radius: 0 10px 10px 0;
}

body.asf-home .asf-stage .carousel-caption h5 {
  color: #fff;
  font-weight: 700;
  margin-bottom: 6px;
}

body.asf-home .asf-stage .carousel-caption p {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.95rem;
  line-height: 1.55;
}

body.asf-home .asf-stage .carousel-control-prev,
body.asf-home .asf-stage .carousel-control-next,
body.asf-home .asf-stage .carousel-indicators {
  z-index: 3;
}

body.asf-home .asf-stage .carousel-indicators [data-bs-slide-to] {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
}

body.asf-home .asf-panel {
  height: 100%;
  background: var(--asf-paper);
  border: 1px solid var(--asf-line);
  border-top: 3px solid var(--asf-gold);
  border-radius: 16px;
  padding: 28px 24px 24px;
}

body.asf-home .asf-portrait {
  width: 112px;
  height: 112px;
  object-fit: cover;
  border-radius: 50%;
  background: var(--asf-navy);
  border: 3px solid var(--asf-gold);
  margin-bottom: 16px;
}

body.asf-home .asf-panel h3 {
  font-size: 1.25rem;
  margin: 0 0 4px;
}

body.asf-home .asf-panel .asf-role {
  display: block;
  color: var(--asf-green);
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 12px;
}

body.asf-home .asf-panel p {
  margin: 0;
  color: #3d4b5c;
  line-height: 1.7;
  font-size: 0.96rem;
}

/* Footer */
body.asf-home #footer {
  background: var(--asf-navy);
  color: rgba(255, 255, 255, 0.86);
  padding: 0;
  font-size: 14.5px;
}

body.asf-home #footer .footer-top {
  padding: 56px 0 28px;
}

body.asf-home #footer .footer-top .footer-info {
  background: transparent;
  border-top: 0;
  text-align: left;
  padding: 0;
  margin: 0;
}

body.asf-home #footer .footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

body.asf-home #footer .footer-brand img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

body.asf-home #footer h4,
body.asf-home #footer .footer-info h4 {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  padding-bottom: 0;
  margin: 0;
}

body.asf-home #footer .footer-info p,
body.asf-home #footer .footer-top .footer-info p {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.7;
  margin: 12px 0 0;
  font-family: "Poppins", "Open Sans", sans-serif;
}

body.asf-home #footer .footer-top .social-links a {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

body.asf-home #footer .footer-top .social-links a:hover {
  background: var(--asf-gold);
  color: var(--asf-navy);
}

body.asf-home #footer .footer-links h4 {
  margin-bottom: 14px;
}

body.asf-home #footer .footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 18px;
}

body.asf-home #footer .footer-links li {
  padding: 7px 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

body.asf-home #footer .footer-links i {
  color: var(--asf-gold);
  font-size: 16px;
}

body.asf-home #footer .footer-links a {
  color: rgba(255, 255, 255, 0.86);
}

body.asf-home #footer .footer-links a:hover {
  color: var(--asf-gold-2);
}

body.asf-home .asf-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px 0 20px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 13px;
}

body.asf-home .asf-footer-bottom p {
  margin: 0;
}

/* Modals opened from the homepage */
body.asf-home .modal-content {
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(7, 24, 44, 0.28);
}

body.asf-home .modal .form-label {
  font-weight: 600;
  color: var(--asf-navy);
  font-size: 0.92rem;
}

body.asf-home .modal .form-control {
  min-height: 46px;
  border-color: #d5dee6;
  border-radius: 8px;
}

body.asf-home .modal .form-control:focus {
  border-color: var(--asf-green);
  box-shadow: 0 0 0 0.2rem rgba(15, 76, 56, 0.15);
}

body.asf-home .modal .btn {
  min-height: 42px;
  border-radius: 6px;
  font-weight: 600;
}

body.asf-home .modal .btn-primary {
  background-color: var(--asf-navy);
  border-color: var(--asf-navy);
}

body.asf-home .modal .btn-primary:hover,
body.asf-home .modal .btn-primary:focus {
  background-color: var(--asf-green);
  border-color: var(--asf-green);
}

body.asf-home #MyNewModal .modal-header {
  border-bottom: 0;
  padding: 10px 12px 0;
}

body.asf-home #MyNewModal img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 767.98px) {
  body.asf-home .asf-hero {
    padding: 48px 0 88px;
  }

  body.asf-home .asf-hero h1 {
    max-width: none;
  }

  body.asf-home .asf-hero-actions .asf-btn {
    width: 100%;
  }

  body.asf-home .asf-section {
    padding: 48px 0;
  }

  body.asf-home .asf-stage {
    height: 300px;
  }

  body.asf-home .asf-stage .carousel-caption {
    left: 12px;
    right: 12px;
    bottom: 16px;
    padding: 10px 12px;
  }

  body.asf-home .asf-stage .carousel-caption p {
    font-size: 0.82rem;
  }

  body.asf-home #footer .footer-links ul {
    grid-template-columns: 1fr;
  }

  body.asf-home #footer .footer-top .footer-info,
  body.asf-home #footer .footer-links {
    margin-bottom: 28px;
  }
}

@media (max-width: 575.98px) {
  body.asf-home .asf-quickfacts ul {
    padding: 14px 16px;
  }

  body.asf-home .asf-quickfacts li {
    width: 100%;
  }

  body.asf-home .asf-stage {
    height: 250px;
  }

  body.asf-home .asf-panel {
    padding: 22px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.asf-home .asf-stage .carousel-item,
  body.asf-home a.asf-card,
  body.asf-home .asf-btn,
  body.asf-home .asf-card-action i {
    transition: none;
  }
}
