:root {
  --bg-dark: #04011b;
  --bg-panel: rgba(10, 6, 34, 0.8);
  --gold: #f7c16b;
  --gold-soft: #ffe5b4;
  --wonder-blue: #5ad0ff;
  --wonder-violet: #b18bff;
  --text: #fdfaf5;
  --muted: #d9d6ef;
  --accent: #ff6b99;
  --max-width: 1100px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: "Roboto", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg-dark);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--wonder-blue);
  outline-offset: 3px;
}

.landing {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

/* Wonderland battlefield background */

.bg-animation {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.18), transparent 60%),
    radial-gradient(circle at 70% 10%, rgba(90, 208, 255, 0.25), transparent 55%),
    radial-gradient(circle at 30% 80%, rgba(177, 139, 255, 0.25), transparent 55%),
    #050720;
  pointer-events: none;
}

.bg-animation::before,
.bg-animation::after {
  content: "";
  position: absolute;
  inset: -35% -15%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08), transparent 65%);
  animation: glowDrift 20s ease-in-out infinite;
  mix-blend-mode: screen;
}

.bg-animation::after {
  animation-duration: 26s;
  animation-direction: reverse;
}

.board {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 125vmin;
  aspect-ratio: 1 / 1;
  background-image: linear-gradient(90deg, rgba(255, 255, 255, 0.08) 50%, transparent 50%),
    linear-gradient(rgba(255, 255, 255, 0.08) 50%, transparent 50%);
  background-size: calc(100% / 8) calc(100% / 8);
  transform: translate(-50%, -50%) rotateX(62deg) rotateZ(45deg) scale(1.25);
  opacity: 0.45;
  filter: drop-shadow(0 40px 55px rgba(7, 3, 24, 0.8));
  animation: boardPulse 16s ease-in-out infinite;
}

.piece {
  position: absolute;
  font-size: clamp(2.7rem, 7vw, 4.6rem);
  opacity: 0.85;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.45), 0 0 35px rgba(90, 208, 255, 0.35);
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
  animation-duration: 18s;
  font-family: "Cinzel", "Times New Roman", serif;
  mix-blend-mode: screen;
}

.piece-white-knight {
  top: 20%;
  left: 16%;
  color: #ffffff;
  animation-name: knightDash;
}

.piece-black-queen {
  top: 65%;
  left: 68%;
  color: rgba(15, 10, 40, 0.95);
  text-shadow: 0 0 14px rgba(255, 153, 255, 0.3);
  animation-name: queenSurge;
  animation-duration: 22s;
}

.piece-white-pawn {
  top: 70%;
  left: 32%;
  color: #fef3da;
  font-size: clamp(2rem, 4.5vw, 3rem);
  animation-name: pawnVolley;
  animation-duration: 13s;
}

.piece-black-bishop {
  top: 32%;
  left: 78%;
  color: rgba(34, 24, 62, 0.95);
  text-shadow: 0 0 25px rgba(0, 0, 0, 0.85);
  animation-name: bishopGambit;
  animation-duration: 17s;
}

.piece-white-queen {
  top: 38%;
  left: 10%;
  color: #fff8ff;
  animation-name: queenArc;
  animation-duration: 21s;
}

.piece-black-knight {
  top: 18%;
  left: 70%;
  color: rgba(13, 20, 45, 0.95);
  animation-name: knightCharge;
  animation-duration: 14s;
}

.piece-white-rook {
  top: 75%;
  left: 55%;
  color: #fefefe;
  animation-name: rookSlide;
  animation-duration: 19s;
}

.piece-black-king {
  top: 45%;
  left: 85%;
  color: rgba(30, 13, 38, 0.9);
  animation-name: kingAdvance;
  animation-duration: 24s;
}

/* Header + nav */

.site-header {
  position: sticky;
  top: 0;
  background: rgba(1, 3, 10, 0.7);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 20;
}

.nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-family: "Cinzel", "Times New Roman", serif;
  letter-spacing: 0.35rem;
  font-size: 1rem;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  font-weight: 500;
}

.nav-links a {
  position: relative;
  padding-bottom: 0.2rem;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.25s ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.3rem;
}

.nav-toggle .bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
}

/* Hero */

.hero {
  position: relative;
  padding: clamp(4rem, 12vw, 8rem) 1.5rem;
  text-align: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3, 5, 11, 0.2) 0%, rgba(3, 5, 11, 0.9) 70%);
  z-index: -1;
}

.hero-content {
  max-width: 720px;
  margin: 0 auto;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.28rem;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.hero-title {
  font-family: "Cinzel", "Times New Roman", serif;
  font-size: clamp(2.75rem, 9vw, 4.75rem);
  letter-spacing: 0.28rem;
  margin-bottom: 1rem;
}

.hero-sub {
  color: var(--muted);
  font-size: 1.15rem;
  margin-bottom: 2rem;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  letter-spacing: 0.2rem;
  padding: 0.85rem 2.75rem;
  border: 1px solid var(--gold);
  color: var(--gold-soft);
  transition: transform 0.2s ease, background 0.2s ease;
}

.btn.primary {
  background: var(--gold);
  color: #120b03;
}

.btn.secondary {
  background: transparent;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-3px);
}

.stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.15rem;
  font-size: 0.8rem;
}

.stats dd {
  font-size: 2rem;
  font-weight: 600;
  color: var(--gold-soft);
}

.stats dt {
  color: var(--muted);
}

/* Schedule cards */

.info-grid {
  padding: 0 1.5rem 2rem;
}

.section-head {
  max-width: 620px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.section-head h2 {
  font-family: "Cinzel", "Times New Roman", serif;
  font-size: clamp(2rem, 6vw, 3rem);
  letter-spacing: 0.2rem;
  margin-bottom: 0.75rem;
}

.card-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
}

.info-card {
  padding: 1.75rem;
  background: var(--bg-panel);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.75rem;
  box-shadow: 0 25px 45px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.card-day {
  text-transform: uppercase;
  letter-spacing: 0.3rem;
  color: var(--gold-soft);
  font-size: 0.75rem;
}

.info-card h3 {
  font-size: 1.4rem;
  letter-spacing: 0.1rem;
}

.info-card span {
  color: var(--muted);
}

/* Contact */

.contact {
  padding: 0 1.5rem 4rem;
}

.contact-card {
  max-width: 720px;
  margin: 0 auto;
  padding: 2.5rem;
  background: rgba(5, 6, 22, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  text-align: center;
  box-shadow: 0 30px 50px rgba(0, 0, 0, 0.4);
}

.contact-card h2 {
  font-family: "Cinzel", "Times New Roman", serif;
  font-size: clamp(2rem, 6vw, 3rem);
  margin-bottom: 1rem;
}
/* Blog page */

.blog-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.blog-hero {
  padding: clamp(4rem, 10vw, 7rem) 1.5rem;
  text-align: center;
}

.blog-hero .hero-title {
  font-size: clamp(2.5rem, 8vw, 4.2rem);
}

.blog-hero .hero-sub {
  max-width: 720px;
  margin: 0 auto;
}

.blog-cta {
  margin-top: 2rem;
}

.blog-list {
  padding: 0 1.5rem 4rem;
}

.post-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.post-card {
  padding: 1.75rem;
  background: rgba(6, 9, 26, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.9rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.post-card h3 {
  font-size: 1.35rem;
  letter-spacing: 0.08rem;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.tag {
  padding: 0.2rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.2rem;
  font-size: 0.7rem;
}

.post-card p {
  color: var(--muted);
}

.read-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--wonder-blue);
  font-weight: 500;
}

.read-link:hover,
.read-link:focus-visible {
  color: var(--gold);
}

.local-seo {
  padding: 0 1.5rem 4rem;
}

.local-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.local-card {
  padding: 1.9rem;
  background: rgba(6, 9, 26, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  box-shadow: 0 25px 45px rgba(0, 0, 0, 0.38);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.local-card h3 {
  font-size: 1.3rem;
  letter-spacing: 0.08rem;
}

.service-area {
  list-style: disc;
  margin-left: 1rem;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}


.contact-card p {
  margin-bottom: 1.5rem;
  color: var(--muted);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.contact-note {
  font-size: 0.95rem;
}

.footer {
  text-align: center;
  padding: 1.5rem;
  font-size: 0.9rem;
  color: var(--muted);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(1, 3, 10, 0.9);
}

/* Responsive tweaks */

@media (max-width: 920px) {
  .nav-links {
    position: absolute;
    top: 100%;
    right: 1.5rem;
    background: rgba(2, 4, 12, 0.95);
    flex-direction: column;
    width: min(260px, 90vw);
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s ease;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav[aria-expanded="true"] #nav-menu,
  .nav-toggle[aria-expanded="true"] + #nav-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .stats {
    flex-direction: column;
    gap: 1rem;
  }
}

@media (max-width: 640px) {
  .logo {
    letter-spacing: 0.2rem;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .contact-card {
    padding: 2rem;
  }
}

/* Wonderland battle keyframes */

@keyframes boardPulse {
  0% {
    opacity: 0.35;
    transform: translate(-50%, -50%) rotateX(62deg) rotateZ(45deg) scale(1.15);
  }
  50% {
    opacity: 0.55;
    transform: translate(-50%, -52%) rotateX(58deg) rotateZ(45deg) scale(1.28);
  }
  100% {
    opacity: 0.35;
    transform: translate(-50%, -50%) rotateX(62deg) rotateZ(45deg) scale(1.15);
  }
}

@keyframes glowDrift {
  0% {
    transform: translate(-10%, -5%) scale(1);
  }
  50% {
    transform: translate(5%, 3%) scale(1.25);
  }
  100% {
    transform: translate(-10%, -5%) scale(1);
  }
}

@keyframes knightDash {
  0% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(120px, -60px) rotate(-6deg);
  }
  50% {
    transform: translate(70px, -150px) scale(0.95);
  }
  75% {
    transform: translate(-20px, -80px) rotate(4deg);
  }
  100% {
    transform: translate(0, 0) scale(1);
  }
}

@keyframes queenSurge {
  0% {
    transform: translate(0, 0) scale(1);
  }
  30% {
    transform: translate(-80px, -40px) scale(1.05);
  }
  60% {
    transform: translate(-40px, 80px) rotate(3deg);
  }
  90% {
    transform: translate(40px, 30px) scale(1.08);
  }
  100% {
    transform: translate(0, 0) scale(1);
  }
}

@keyframes pawnVolley {
  0% {
    transform: translate(0, 0);
  }
  20% {
    transform: translate(0, -40px);
  }
  40% {
    transform: translate(40px, -60px) scale(0.95);
  }
  60% {
    transform: translate(60px, -20px);
  }
  80% {
    transform: translate(20px, 20px);
  }
  100% {
    transform: translate(0, 0);
  }
}

@keyframes bishopGambit {
  0% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(-90px, -90px) scale(1.05);
  }
  66% {
    transform: translate(-140px, -10px) scale(0.95);
  }
  100% {
    transform: translate(0, 0) scale(1);
  }
}

@keyframes queenArc {
  0% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(60px, -40px);
  }
  50% {
    transform: translate(40px, -140px) rotate(-4deg);
  }
  75% {
    transform: translate(-20px, -60px);
  }
  100% {
    transform: translate(0, 0);
  }
}

@keyframes knightCharge {
  0% {
    transform: translate(0, 0) scale(0.95);
  }
  30% {
    transform: translate(-90px, 30px) rotate(8deg);
  }
  60% {
    transform: translate(-120px, -40px);
  }
  100% {
    transform: translate(0, 0) scale(0.95);
  }
}

@keyframes rookSlide {
  0% {
    transform: translate(0, 0);
  }
  20% {
    transform: translate(-150px, 0);
  }
  40% {
    transform: translate(0, -60px);
  }
  70% {
    transform: translate(140px, 10px);
  }
  100% {
    transform: translate(0, 0);
  }
}

@keyframes kingAdvance {
  0% {
    transform: translate(0, 0) scale(1);
  }
  40% {
    transform: translate(-60px, -50px) scale(1.05);
  }
  70% {
    transform: translate(-90px, 20px) scale(0.9);
  }
  100% {
    transform: translate(0, 0) scale(1);
  }
}
