/* Geelong City Cricket Club — temporary one-page site
   Palette matches the club's live site (geelongcitycc.com.au) */

:root{
  --navy:       #012b5d;
  --navy-dark:  #011c3d;
  --navy-mid:   #0d3f7c;
  --gold:       #c9a227;
  --gold-dark:  #a9860f;
  --grey:       #f2f2f2;
  --grey-line:  #e2e2e2;
  --ink:        #1b1f27;
  --ink-soft:   #4b5262;
  --white:      #ffffff;
  --radius:     10px;
  --shadow:     0 10px 30px rgba(1,27,60,.12);
  --maxw:       1180px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; scroll-padding-top:84px; }
body{
  margin:0; font-family:var(--font); color:var(--ink);
  background:var(--white); line-height:1.6; -webkit-font-smoothing:antialiased;
}
img{ max-width:100%; display:block; }
a{ color:inherit; }
h1,h2,h3{ line-height:1.15; margin:0 0 .5em; color:var(--navy); }
p{ margin:0 0 1em; }
.container{ max-width:var(--maxw); margin:0 auto; padding:0 20px; }
.visually-hidden{
  position:absolute; width:1px; height:1px; overflow:hidden;
  clip:rect(0 0 0 0); white-space:nowrap; border:0; padding:0; margin:-1px;
}
.skip-link{
  position:absolute; left:-999px; top:0; background:var(--gold); color:var(--navy-dark);
  padding:10px 16px; z-index:1000; font-weight:700; border-radius:0 0 8px 0;
}
.skip-link:focus{ left:0; }

/* ---- Header ---- */
.site-header{
  background:var(--navy); color:var(--white); position:sticky; top:0; z-index:100;
  box-shadow:0 2px 12px rgba(0,0,0,.18);
}
.site-header .container{ position:relative; }
.site-header .container{
  display:flex; align-items:center; justify-content:space-between;
  padding-top:12px; padding-bottom:12px; gap:20px;
}
.brand{ display:flex; align-items:center; gap:16px; text-decoration:none; color:var(--white); min-width:0; }
.brand img{ width:92px; height:92px; flex:0 0 auto; }
.brand-text{ min-width:0; }
.brand-text .name{ font-size:1.25rem; font-weight:800; letter-spacing:.2px; white-space:nowrap; }
.brand-text .tag{ font-size:.78rem; color:#cfd9ea; text-transform:uppercase; letter-spacing:1px; }

.nav-toggle{
  display:none; background:transparent; border:2px solid rgba(255,255,255,.5); border-radius:8px;
  width:44px; height:44px; color:var(--white); font-size:1.4rem; cursor:pointer; flex:0 0 auto;
}
.main-nav ul{
  display:flex; gap:6px; list-style:none; margin:0; padding:0; flex-wrap:wrap; justify-content:flex-end;
}
.main-nav a{
  display:block; padding:10px 12px; text-decoration:none; color:#e8edf7; font-size:.92rem;
  font-weight:600; border-radius:6px; white-space:nowrap;
}
.main-nav a:hover, .main-nav a:focus{ background:rgba(255,255,255,.12); color:var(--white); }
.main-nav .btn-nav{ background:var(--gold); color:var(--navy-dark); margin-left:6px; }
.main-nav .btn-nav:hover{ background:#dcb434; }

/* ---- Hero ---- */
.hero{ position:relative; background:var(--navy-dark); }
.hero picture, .hero img{ width:100%; height:clamp(260px,48vw,520px); object-fit:cover; object-position:center 12%; }
.hero-caption{
  background:var(--navy); color:#cfd9ea; text-align:center; font-size:.85rem; padding:8px 16px;
}

/* ---- Sections ---- */
.section{ padding:56px 0; }
.section-alt{ background:var(--grey); }
.section-navy{ background:var(--navy); color:var(--white); }
.section-navy h2, .section-navy h3{ color:var(--white); }
.eyebrow{
  display:inline-block; color:var(--gold-dark); font-weight:800; letter-spacing:1.5px;
  text-transform:uppercase; font-size:.78rem; margin-bottom:8px;
}
.section-navy .eyebrow{ color:var(--gold); }
.section-head{ max-width:760px; margin:0 0 32px; }
.section-head p{ color:var(--ink-soft); font-size:1.05rem; }
.section-navy .section-head p{ color:#cfd9ea; }

/* ---- About layout ---- */
.about-grid{ display:grid; grid-template-columns:1.3fr 1fr; gap:40px; align-items:start; }
.about-copy p{ font-size:1.02rem; color:var(--ink-soft); }
.stat-card{
  background:var(--white); border:1px solid var(--grey-line); border-radius:var(--radius);
  padding:22px; box-shadow:var(--shadow);
}
.stats-list{ display:grid; grid-template-columns:1fr 1fr; gap:14px; margin-top:6px; }
.stat{ text-align:center; padding:14px 8px; background:var(--grey); border-radius:8px; }
.stat .val{ display:block; font-size:1.7rem; font-weight:800; color:var(--navy); }
.stat .lbl{ font-size:.78rem; color:var(--ink-soft); text-transform:uppercase; letter-spacing:.5px; }
.about-facts{ list-style:none; margin:18px 0 0; padding:0; font-size:.95rem; }
.about-facts li{ display:flex; gap:10px; padding:8px 0; border-top:1px solid var(--grey-line); }
.about-facts li:first-child{ border-top:none; }
.about-facts strong{ color:var(--navy); min-width:92px; flex:0 0 auto; }

/* ---- Program cards ---- */
.cards-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:20px; }
.card{
  background:var(--white); border:1px solid var(--grey-line); border-radius:var(--radius);
  padding:24px; box-shadow:var(--shadow); display:flex; flex-direction:column;
}
.card .icon{
  width:48px; height:48px; border-radius:50%; background:var(--navy); color:var(--gold);
  display:flex; align-items:center; justify-content:center; font-size:1.4rem; margin-bottom:14px; font-weight:800;
}
.card h3{ font-size:1.15rem; margin-bottom:8px; }
.card p{ color:var(--ink-soft); font-size:.94rem; flex:1; }
.card .coord{ font-size:.85rem; color:var(--navy-mid); font-weight:700; margin-bottom:10px; }
.card-links{ display:flex; flex-wrap:wrap; gap:8px; margin-top:auto; }

/* ---- Buttons ---- */
.btn{
  display:inline-flex; align-items:center; gap:6px; padding:10px 16px; border-radius:8px;
  font-weight:700; font-size:.88rem; text-decoration:none; border:2px solid transparent; cursor:pointer;
}
.btn-gold{ background:var(--gold); color:var(--navy-dark); }
.btn-gold:hover{ background:#dcb434; }
.btn-outline{ background:transparent; border-color:var(--navy); color:var(--navy); }
.btn-outline:hover{ background:var(--navy); color:var(--white); }
.section-navy .btn-outline{ border-color:var(--white); color:var(--white); }
.section-navy .btn-outline:hover{ background:var(--white); color:var(--navy); }
.btn-lg{ padding:14px 26px; font-size:1rem; }
.btn-disabled{ opacity:.5; cursor:not-allowed; pointer-events:none; }
.btn-disabled small{ font-weight:600; font-size:.72em; }
.link-disabled{ font-size:.88rem; color:#8fa0bd; cursor:not-allowed; pointer-events:none; }

/* ---- Match centre / registration ---- */
.mc-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:16px; }
.mc-card{
  background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.18); border-radius:var(--radius);
  padding:20px;
}
.mc-card h3{ font-size:1.02rem; margin-bottom:12px; }
.mc-links{ display:flex; flex-direction:column; gap:8px; }
.mc-links a{ font-size:.88rem; text-decoration:underline; color:#e8edf7; }
.mc-links a:hover{ color:var(--gold); }

/* ---- Committee / contacts ---- */
.people-group-h{
  font-size:1.05rem; color:var(--navy); margin:36px 0 16px; padding-top:20px; border-top:1px solid var(--grey-line);
}
.people-group-h:first-of-type{ margin-top:0; padding-top:0; border-top:none; }
.people-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:18px; margin-bottom:8px; }
.person{
  background:var(--white); border:1px solid var(--grey-line); border-radius:var(--radius);
  padding:20px; text-align:center; box-shadow:var(--shadow);
}
.person .avatar{
  width:56px; height:56px; border-radius:50%; background:var(--navy); color:var(--gold);
  display:flex; align-items:center; justify-content:center; font-weight:800; font-size:1.1rem;
  margin:0 auto 12px;
}
.person .role{ font-size:.78rem; text-transform:uppercase; letter-spacing:.5px; color:var(--gold-dark); font-weight:800; }
.person .name{ font-weight:700; color:var(--navy); margin:2px 0 6px; }
.person a{ font-size:.85rem; text-decoration:underline; }
.committee-note{
  max-width:760px; margin:26px auto 0; text-align:center; font-size:.9rem; color:var(--ink-soft);
  background:var(--grey); border-radius:var(--radius); padding:16px 20px;
}

/* ---- Sponsors ---- */
.sponsor-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:20px; }
.sponsor-chip{
  display:flex; align-items:center; justify-content:center; text-align:center;
  background:var(--white); border:1px solid var(--grey-line); border-radius:var(--radius);
  padding:32px 20px; font-weight:800; color:var(--navy); font-size:1.15rem; text-decoration:none;
  min-height:120px; box-shadow:var(--shadow); transition:transform .15s ease, border-color .15s ease;
}
.sponsor-chip:hover{ border-color:var(--gold); color:var(--gold-dark); transform:translateY(-3px); }

/* ---- Sponsor carousel (above footer) ---- */
.sponsor-carousel{ background:var(--navy-dark); padding:44px 0 48px; overflow:hidden; }
.sponsor-carousel .section-head{ margin:0 auto 28px; text-align:center; }
.sponsor-carousel .section-head p{ color:#a9b6cf; }
.carousel-track-wrap{
  overflow:hidden; -webkit-mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent);
  mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent);
}
.carousel-track{
  display:flex; gap:20px; width:max-content; animation:scroll-sponsors 32s linear infinite;
}
.carousel-track-wrap:hover .carousel-track{ animation-play-state:paused; }
.carousel-chip{
  display:flex; align-items:center; justify-content:center; text-align:center;
  background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.16); border-radius:var(--radius);
  padding:22px 28px; font-weight:800; color:var(--white); font-size:1.05rem; text-decoration:none;
  white-space:nowrap; flex:0 0 auto; min-width:200px; transition:background .15s ease, border-color .15s ease;
}
.carousel-chip:hover{ background:rgba(255,255,255,.14); border-color:var(--gold); color:var(--gold); }
@keyframes scroll-sponsors{
  from{ transform:translateX(0); }
  to{ transform:translateX(-50%); }
}
@media (prefers-reduced-motion: reduce){
  .carousel-track{ animation:none; }
  .carousel-track-wrap{ overflow-x:auto; }
}
.partners-row{
  display:flex; flex-wrap:wrap; gap:16px; justify-content:center; align-items:stretch; margin-top:24px;
}
.partner-logo{
  display:flex; align-items:center; justify-content:center; background:var(--white);
  border:1px solid var(--grey-line); box-shadow:var(--shadow);
  border-radius:10px; padding:16px 26px; min-width:150px; min-height:74px;
  transition:transform .15s ease, border-color .15s ease;
}
.partner-logo:hover{ border-color:var(--gold); transform:translateY(-2px); }
.partner-logo img{ max-height:46px; max-width:150px; width:auto; height:auto; object-fit:contain; }
.partner-logo--dark{ background:var(--navy); border-color:var(--navy); }
.partner-logo--dark:hover{ background:var(--navy-mid); }

/* ---- Contact ---- */
.contact-grid{ display:grid; grid-template-columns:1fr 1fr; gap:40px; align-items:start; }
.contact-list{ list-style:none; margin:0 0 20px; padding:0; }
.contact-list li{ display:flex; gap:12px; padding:12px 0; border-top:1px solid var(--grey-line); }
.contact-list li:first-child{ border-top:none; }
.contact-list .ico{ color:var(--gold-dark); font-weight:800; }
.map-wrap{ border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow); border:1px solid var(--grey-line); }
.map-wrap iframe{ width:100%; height:320px; border:0; display:block; }
.social-row{ display:flex; gap:10px; margin-top:16px; }
.social-row a{
  width:42px; height:42px; border-radius:50%; background:var(--navy); color:var(--white);
  display:flex; align-items:center; justify-content:center; text-decoration:none; font-weight:800;
}
.social-row a:hover{ background:var(--gold); color:var(--navy-dark); }

/* ---- Footer ---- */
.site-footer{ background:var(--navy-dark); color:#cfd9ea; padding:36px 0 20px; font-size:.85rem; }
.footer-grid{ display:flex; flex-wrap:wrap; justify-content:space-between; gap:20px; margin-bottom:22px; }
.footer-grid a{ color:#cfd9ea; text-decoration:none; }
.footer-grid a:hover{ color:var(--gold); text-decoration:underline; }
.footer-links{ display:flex; flex-wrap:wrap; gap:16px; list-style:none; margin:0; padding:0; }
.footer-bottom{
  border-top:1px solid rgba(255,255,255,.12); padding-top:16px; display:flex; flex-wrap:wrap;
  justify-content:space-between; gap:10px; color:#93a1bd;
}

/* ---- Back to top ---- */
.back-to-top{
  position:fixed; right:18px; bottom:18px; width:46px; height:46px; border-radius:50%;
  background:var(--gold); color:var(--navy-dark); border:0; font-size:1.2rem; font-weight:800;
  box-shadow:0 6px 18px rgba(0,0,0,.3); cursor:pointer; display:none; align-items:center; justify-content:center;
  z-index:90;
}
.back-to-top.show{ display:flex; }

/* ---- Responsive ---- */
@media (max-width: 980px){
  .cards-grid{ grid-template-columns:repeat(2,1fr); }
  .mc-grid{ grid-template-columns:repeat(2,1fr); }
  .people-grid{ grid-template-columns:repeat(2,1fr); }
  .sponsor-grid{ grid-template-columns:repeat(3,1fr); }
  .about-grid, .contact-grid{ grid-template-columns:1fr; }
}
@media (max-width: 920px){
  .nav-toggle{ display:flex; align-items:center; justify-content:center; }
  .main-nav{
    position:absolute; top:100%; left:0; right:0; background:var(--navy); max-height:calc(100vh - 60px);
    overflow-y:auto; transform:translateY(-8px); opacity:0; pointer-events:none;
    transition:opacity .18s ease, transform .18s ease; box-shadow:0 12px 24px rgba(0,0,0,.25);
  }
  .main-nav.open{ opacity:1; transform:translateY(0); pointer-events:auto; }
  .main-nav ul{ flex-direction:column; padding:10px 20px 20px; justify-content:flex-start; }
  .main-nav a{ padding:14px 10px; border-top:1px solid rgba(255,255,255,.08); border-radius:0; }
  .main-nav .btn-nav{ margin:10px 0 0; text-align:center; border-radius:8px; }
}
@media (max-width: 760px){
  .cards-grid, .mc-grid, .people-grid, .sponsor-grid{ grid-template-columns:1fr; }
  .section{ padding:40px 0; }
  .brand-text .name{ font-size:1.05rem; }
  .brand img{ width:64px; height:64px; }
}
