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

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

a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */

.site-header {
  background: #020617;
  color: #f9fafb;
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
}

.logo {
  font-weight: 700;
  letter-spacing: 0.03em;
}

.logo span {
  color: #eab308;
}
/* --- NAVBAR --- */
.nav {
  display: flex;
  justify-content: center;   /* center the whole menu */
  align-items: center;
  gap: 3rem;                 /* big spacing between items */
}

.nav a {
  font-size: 1.1rem;         /* bigger text */
  font-weight: 600;
  color: #f9fafb;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  transition: 0.25s ease;
}

/* Hover effect */
.nav a:hover {
  background: rgba(255,255,255,0.18);
  color: #fff;
}

/* Active tab (Home, About, etc.) */
.nav a.active {
  background: #eab308;
  color: #111827;
}

/* Hero */

.hero {
  position: relative;
  color: #f9fafb;
  padding: 4.5rem 0 3.5rem;

  /* Full screen height */
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;

  /* 2 images + dark overlay */
  background-image:
    linear-gradient(to right, rgba(0,0,0,0.75), rgba(0,0,0,0.55), rgba(0,0,0,0.75)),
    url("https://cdn.clubzone.com.au/clubzone-media/Clubs/12/medialib/Gallery/CUCC%20Juniors/kids-playing-cricket.jpg"),
    url("https://media.istockphoto.com/photos/boys-practising-sport-of-cricket-during-lessons-in-nets-picture-id458414093?k=6&m=458414093&s=612x612&w=0&h=AfxhESUTm02z3agZ1FeiXt6elUmNbP7PNnEgovzrdYk=");
  
  background-repeat: no-repeat, no-repeat, no-repeat;

  /* Overlay centered, left img left, right img right */
  background-position: center center, left center, right center;

  /* ❗ FIXED: each image 50% width, auto height (no stretch) */
  background-size: cover, 50% auto, 50% auto;
}

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.1rem, 4vw, 2.8rem);
  margin-bottom: 1rem;
}

.hero-text h3{
  margin-bottom: 1.8rem;
}

.hero p {
  max-width: 550px;
  margin: 0 auto 1.5rem;
  color: #e5e7eb;
}

.btn-primary {
  display: inline-block;
  padding: 0.7rem 1.6rem;
  border-radius: 999px;
  background: #eab308;
  color: #111827;
  font-weight: 600;
  font-size: 0.98rem;
  border: none;
  cursor: pointer;
}

/* Sections */

.section {
  padding: 2.8rem 0;
}

.section-alt {
  background: #ffffff;
}

.section-title {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

/* Layout helpers */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2rem;
}

.card {
  background: #ffffff;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.card h3 {
  margin-bottom: 0.6rem;
  font-size: 1.1rem;
}

/* Feature list */

.feature-list {
  list-style: disc inside;
}

.feature-list li + li {
  margin-top: 0.35rem;
}

/* Page header */

.page-header {
  background: #0f172a;
  color: #f9fafb;
  padding: 2.5rem 0 2rem;
}

.page-header h1 {
  font-size: 1.7rem;
  margin-bottom: 0.25rem;
}

.page-header p {
  color: #e5e7eb;
}

/* Gallery */

.gallery-placeholder {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.gallery-item {
  background: #e5e7eb;
  border-radius: 0.75rem;
  padding: 2.5rem 0.5rem;
  text-align: center;
  font-size: 0.9rem;
  color: #4b5563;
}

/* Contact */

.contact-form {
  display: grid;
  gap: 0.8rem;
}

.contact-form label {
  font-size: 0.9rem;
  display: grid;
  gap: 0.25rem;
}

.contact-form input,
.contact-form textarea {
  border-radius: 0.5rem;
  border: 1px solid #d1d5db;
  padding: 0.5rem 0.6rem;
  font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid #eab308;
  outline-offset: 1px;
}

.contact-form .note {
  font-size: 0.8rem;
  color: #6b7280;
}

.center {
  text-align: center;
}

/* Footer */

.site-footer {
  background: #020617;
  color: #9ca3af;
  padding: 1.3rem 0;
  margin-top: 1rem;
}

.footer-inner {
  text-align: center;
  font-size: 0.85rem;
}

/* Responsive */

@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .two-col {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 3.2rem 0 2.6rem;
  }
}

.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

/* Popup Box */
.popup-box {
  background: #ffffff;
  padding: 2rem 1.5rem;
  width: 90%;
  max-width: 380px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  text-align: center;
  animation: fadeIn 0.25s ease-in-out;
}

.popup-box h3 {
  margin-bottom: 0.7rem;
  font-size: 1.3rem;
  color: #111827;
}

.popup-box p {
  margin-bottom: 1.2rem;
  color: #4b5563;
  font-size: 0.95rem;
}

/* Fade-in Animation */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}


/* --- Live help popup (bottom-right) --- */

.support-popup {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  width: 280px;
  background: #ffffff;
  border-radius: 0.75rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.25);
  padding: 1rem;
  z-index: 999;
  display: none; /* shown with JS */
}

.support-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.support-header button {
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  line-height: 1;
}

.support-popup p {
  font-size: 0.9rem;
  color: #4b5563;
  margin-bottom: 0.8rem;
}

/* --- Live help popup (bottom-right) --- */

.support-popup {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  width: 280px;
  background: #ffffff;
  border-radius: 0.75rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.25);
  padding: 1rem;
  z-index: 999;
  display: none; /* shown with JS */
}

.support-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.support-header button {
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  line-height: 1;
}

.support-popup p {
  font-size: 0.9rem;
  color: #4b5563;
  margin-bottom: 0.8rem;
}

/* Small badge when popup is closed */
.support-badge {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  border: none;
  border-radius: 999px;
  padding: 0.6rem 1.1rem;
  background: #eab308;
  color: #111827;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  z-index: 998;
  display: none;
}

/* Smaller primary button inside popup */
.btn-small {
  font-size: 0.85rem;
  padding: 0.45rem 1.1rem;
}

@media (max-width: 480px) {
  .support-popup {
    width: 90%;
    right: 5%;
    bottom: 1rem;
  }
}

/* Social icons on hero */
.social-icons {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  display: flex;
  gap: 0.6rem;
  z-index: 20;
}

.social-icons a {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.65);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #f9fafb;
  font-size: 0.9rem;
  transition: background 0.15s ease, transform 0.15s ease;
}

.social-icons a:hover {
  background: #eab308;
  color: #111827;
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .social-icons {
    top: 1rem;
    right: 1rem;
  }
}


.hero-top-bar {
  position: absolute;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  
  width: 90%;
  max-width: 1100px;

  display: grid;
  grid-template-columns: 1fr auto 1fr;  /* 3 columns */
  align-items: center;
  z-index: 20;
}

/* Center logo */
.hero-logo {
  grid-column: 2;               /* force logo into center column */
  justify-self: center;         
  font-size: 2.8rem;
  font-weight: 800;
  color: #fff;
}

.hero-logo span {
  color: #eab308;
}

/* Icons stay right */
.hero-social {
  grid-column: 3;
  justify-self: end;            /* move icons to right */
  display: flex;
  gap: 0.8rem;
}

.hero-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  font-size: 1rem;
  transition: 0.25s ease;
}

.hero-social a:hover {
  background: #eab308;
  color: #111;
  transform: translateY(-2px);
}