* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f5f7fa;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Top navigation – matches your screenshot */
.nav {
  background: #f0f2f5;
  border-radius: 0 0 20px 20px;
  padding: 18px 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 28px;
  align-items: center;
}
.nav a {
  text-decoration: none;
  color: #444;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.3px;
}
.nav a:hover { color: #1a73e8; }
.nav .phone {
  background: #1a73e8;
  color: white !important;
  padding: 9px 18px;
  border-radius: 50px;
  font-size: 14px;
  margin-left: 10px;
}

/* Large hero picture at top of every page */
.hero-image {
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  display: block;
  margin: 30px auto 25px;
  border-radius: 16px;
  background: white;
}

/* Rounded content cards */
.card {
  background: white;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
  margin-bottom: 30px;
}

h1, h2, h3 { color: #1a3a6e; margin-bottom: 12px; }
h1 { font-size: 2rem; text-align: center; }
p { margin-bottom: 14px; }

.btn {
  display: inline-block;
  background: #1a73e8;
  color: white;
  padding: 12px 26px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  margin-top: 8px;
}
.btn:hover { background: #0d47a1; }

/* Castles picture-box grid – matches your original layout */
.castles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
  margin: 30px 0;
}
.castle-box {
  background: white;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0,0,0,0.08);
  text-align: center;
  transition: transform 0.2s;
}
.castle-box:hover { transform: translateY(-5px); }
.castle-box img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  background: #f8f9fa;
  padding: 10px;
}
.castle-box .info {
  padding: 16px 12px 20px;
}
.castle-box h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
  color: #222;
}
.castle-box p {
  font-size: 0.92rem;
  color: #555;
  margin: 0;
  line-height: 1.4;
}

/* Extra photos at bottom */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-top: 15px;
}
.photo-placeholder {
  height: 140px;
  background: #e8eef7;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-size: 14px;
  border: 2px dashed #c5d0e6;
  text-align: center;
  padding: 10px;
}
.photo-grid img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 12px;
}

/* Footer */
.footer {
  background: #1a3a6e;
  color: white;
  padding: 40px 0;
  margin-top: 50px;
  text-align: center;
}
.footer a { color: #90caf9; }
.footer p { margin-bottom: 6px; }

/* Responsive */
@media (max-width: 700px) {
  .nav .container { gap: 10px 16px; }
  .nav .phone { margin-left: 0; width: 100%; text-align: center; }
  .hero-image { max-height: 280px; }
  .castles-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
}

/* ===== Advanced Animations for Partytime ===== */

/* 1. Staggered card entrance */
.castle-box {
  opacity: 0;
  animation: slideUpFade 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.castle-box:nth-child(1) { animation-delay: 0.05s; }
.castle-box:nth-child(2) { animation-delay: 0.10s; }
.castle-box:nth-child(3) { animation-delay: 0.15s; }
.castle-box:nth-child(4) { animation-delay: 0.20s; }
.castle-box:nth-child(5) { animation-delay: 0.25s; }
.castle-box:nth-child(6) { animation-delay: 0.30s; }
.castle-box:nth-child(7) { animation-delay: 0.35s; }
.castle-box:nth-child(8) { animation-delay: 0.40s; }
/* Add more if you have lots of cards */

@keyframes slideUpFade {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* 2. Fancy hover effect on the cards */
.castle-box {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.4s ease;
}

.castle-box:hover {
  transform: translateY(-12px) scale(1.03);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.12);
}

.castle-box img {
  transition: transform 0.5s ease;
}

.castle-box:hover img {
  transform: scale(1.08);
}

/* 3. Soft floating animation on the hero image */
.hero-image {
  animation: gentleFloat 4s ease-in-out infinite;
}

@keyframes gentleFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .castle-box,
  .hero-image {
    animation: none !important;
    transition: none !important;
  }
}

/* Clean modern links */
a {
  color: #1a3a6e;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.25s ease, transform 0.25s ease;
}

a:hover {
  color: #e91e63;          /* your bright pink */
  /* optional extra niceness: */
  /* transform: translateY(-1px); */
}

/* Keep the phone button looking special */
.nav .phone {
  color: white !important;
}
.nav .phone:hover {
  color: white !important;
  background: #0d47a1;     /* slightly darker blue on hover */
}