.page-home {
  background: #0e1c33;
  color: #fafaf7;
  min-height: 100vh;
}

.home-nav {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.35rem;
  max-width: 1120px;
  margin: 0 auto;
}
.home-nav .brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.92rem;
}
.home-nav .brand img {
  width: 52px; height: 52px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 0 2px #f5d76e;
  object-fit: cover;
}
.home-nav .brand span { display: none; }
@media (min-width: 720px) {
  .home-nav .brand span { display: inline; max-width: 11rem; line-height: 1.15; }
}
.home-nav nav {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.home-nav nav a {
  color: rgba(255,255,255,.88);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
}
.home-nav nav a:hover { color: #f5d76e; }
.home-nav .nav-cta {
  background: #084fbd;
  color: #fff !important;
  padding: 0.45rem 0.8rem;
  border-radius: 0.45rem;
}

.home-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  text-align: center;
  overflow: hidden;
  padding: 6.5rem 1.25rem 3rem;
}
.home-hero-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(14,28,51,.55) 0%, rgba(14,28,51,.72) 45%, rgba(14,28,51,.92) 100%),
    url("../wp-content/uploads/2026/05/Central-Texas-Tae-Kwon-Do-Temple_Young-students-in-Taekwondo-gis-during-class-formation_05.webp")
      center / cover no-repeat;
  transform: scale(1.04);
  animation: heroDrift 18s ease-in-out infinite alternate;
}
@keyframes heroDrift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.08) translate3d(-1.5%, -1%, 0); }
}
.home-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 40rem;
  animation: riseIn 0.9s ease both;
}
@keyframes riseIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
.home-seal {
  width: 140px; height: 140px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 4px #f5d76e, 0 18px 40px rgba(0,0,0,.35);
  object-fit: cover;
  margin-bottom: 1.1rem;
  animation: sealIn 1.1s ease 0.15s both;
}
@keyframes sealIn {
  from { opacity: 0; transform: scale(0.88); }
  to { opacity: 1; transform: none; }
}
.home-hero h1 {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(1.85rem, 4.5vw, 3rem);
  line-height: 1.15;
  margin: 0 0 0.75rem;
  color: #fff;
}
.home-hero p {
  margin: 0 auto 1.4rem;
  color: rgba(250,250,247,.9);
  font-size: clamp(1rem, 2vw, 1.15rem);
  max-width: 32rem;
  line-height: 1.45;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
}
.page-home .btn {
  display: inline-block;
  font-weight: 800;
  text-decoration: none;
  padding: 0.85rem 1.15rem;
  border-radius: 0.5rem;
}
.page-home .btn.primary { background: #084fbd; color: #fff; }
.page-home .btn.secondary {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,.45);
}
.page-home .btn.secondary:hover { border-color: #f5d76e; color: #f5d76e; }

.home-story {
  display: grid;
  background: #fafaf7;
  color: #0e1c33;
}
@media (min-width: 860px) {
  .home-story { grid-template-columns: 1fr 1.05fr; min-height: 420px; }
}
.home-story-copy {
  padding: clamp(2rem, 5vw, 3.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.75rem;
  animation: riseIn 0.8s ease 0.1s both;
}
.home-story-copy h2 {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  margin: 0;
}
.home-story-copy p:not(.eyebrow) {
  margin: 0;
  color: #4a5568;
  line-height: 1.5;
  max-width: 28rem;
}
.text-link {
  color: #084fbd;
  font-weight: 800;
  text-decoration: none;
  margin-top: 0.35rem;
}
.home-story-media {
  min-height: 280px;
  background:
    center / cover no-repeat
    url("../wp-content/uploads/2026/05/Central-Texas-Tae-Kwon-Do-Temple_Students-practicing-katana-work-close-up_01.webp");
}

.home-programs {
  background: #eef2f8;
  color: #0e1c33;
  padding: clamp(2rem, 5vw, 3.25rem) 1.25rem;
}
.home-programs header {
  max-width: 1100px;
  margin: 0 auto 1.25rem;
}
.home-programs h2 {
  font-family: "Libre Baskerville", Georgia, serif;
  margin: 0.25rem 0 0;
  font-size: clamp(1.45rem, 3vw, 2rem);
}
.prog-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: 0.85rem;
}
@media (min-width: 720px) {
  .prog-grid { grid-template-columns: repeat(3, 1fr); }
}
.prog {
  position: relative;
  min-height: 220px;
  border-radius: 0.9rem;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  background: center / cover no-repeat var(--p);
  display: flex;
  align-items: flex-end;
  transition: transform 0.25s ease;
}
.prog::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(14,28,51,.85));
}
.prog span {
  position: relative;
  z-index: 1;
  padding: 1.1rem;
  font-weight: 800;
  font-size: 1.1rem;
}
.prog:hover { transform: translateY(-3px); }

.home-visit {
  background: #0e1c33;
  color: #fafaf7;
  max-width: none;
  padding: clamp(2rem, 5vw, 3rem) 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}
.home-visit > div { max-width: 1100px; }
.home-visit {
  display: grid;
  gap: 1rem;
  justify-items: start;
}
@media (min-width: 720px) {
  .home-visit {
    grid-template-columns: 1fr auto;
    align-items: center;
    padding-left: max(1.25rem, calc((100% - 1100px) / 2 + 1.25rem));
    padding-right: max(1.25rem, calc((100% - 1100px) / 2 + 1.25rem));
  }
}
.home-visit h2 {
  font-family: "Libre Baskerville", Georgia, serif;
  margin: 0.25rem 0 0.45rem;
  font-size: 1.45rem;
}
.home-visit p { margin: 0; color: rgba(250,250,247,.8); line-height: 1.5; }

.home-foot {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  padding: 1.25rem;
  background: #081222;
  justify-content: center;
}
.home-foot a {
  color: rgba(250,250,247,.7);
  text-decoration: none;
  font-size: 0.9rem;
}
.home-foot a:hover { color: #f5d76e; }

@media (prefers-reduced-motion: reduce) {
  .home-hero-bg, .home-hero-inner, .home-seal, .home-story-copy {
    animation: none !important;
  }
}
