/* Hawkesbury Baseball Club shared styles */

:root {
  --hawks-blue: #1a4faa;
  --hawks-blue-dark: #0d2f6e;
  --hawks-blue-darker: #081f4d;
  --ink: #0f1a30;
  --hawks-gold: #f2b429;
  --hawks-gold-dark: #d69a17;
  --white: #ffffff;
  --off-white: #f7f6f3;
  --grey: #5a5a5a;
  --light-grey: #e7e5e0;
  --max-width: 1160px;
  --radius: 10px;
  --shadow: 0 6px 18px rgba(8, 20, 48, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  line-height: 1.6;
  background: linear-gradient(rgba(9, 24, 56, 0.93), rgba(9, 24, 56, 0.93)), url('/images/field-hero.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.2;
  margin-top: 0;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
}

h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--hawks-gold-dark);
}

.section {
  padding: 64px 0;
  background: rgba(247, 246, 243, 0.97);
}

.section--tight {
  padding: 40px 0;
}

.section--dark {
  background: var(--hawks-blue-darker);
  color: var(--white);
}

.section--navy {
  background: var(--hawks-blue);
  color: var(--white);
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 40px;
}

.section-head p {
  color: var(--grey);
}

.section--dark .section-head p,
.section--navy .section-head p {
  color: rgba(255, 255, 255, 0.85);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  font-size: 0.95rem;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-gold {
  background: var(--hawks-gold);
  color: var(--hawks-blue-darker);
}

.btn-gold:hover {
  background: var(--hawks-gold-dark);
}

.btn-outline {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--hawks-blue);
}

.btn-navy {
  background: var(--hawks-blue);
  color: var(--white);
}

.btn-navy:hover {
  background: var(--hawks-blue-dark);
}

.btn-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--hawks-blue);
  border-bottom: 3px solid var(--hawks-gold);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--white);
}

.brand img {
  height: 76px;
  width: auto;
  border-radius: 8px;
  background: var(--white);
  padding: 4px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-size: 1.3rem;
  letter-spacing: 0.02em;
}

.brand-text span {
  font-size: 0.74rem;
  color: var(--hawks-gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-nav a {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 10px 14px;
  border-radius: 6px;
  transition: background 0.15s ease, color 0.15s ease;
}

.main-nav a:hover,
.main-nav a.active {
  background: var(--hawks-gold);
  color: var(--hawks-blue-darker);
}

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--hawks-gold);
  border-radius: 6px;
  color: var(--white);
  font-size: 1.3rem;
  padding: 6px 12px;
  cursor: pointer;
}

@media (max-width: 900px) {
  .site-header .container {
    height: 84px;
  }

  .brand img {
    height: 58px;
  }

  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 84px;
    left: 0;
    right: 0;
    background: var(--hawks-blue);
    flex-direction: column;
    align-items: stretch;
    padding: 8px 24px 20px;
    display: none;
    border-bottom: 3px solid var(--hawks-gold);
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    padding: 12px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }
}

/* Hero */
.hero {
  position: relative;
  color: var(--white);
  background: linear-gradient(180deg, rgba(9, 24, 56, 0.5), rgba(8, 20, 48, 0.86)), var(--hero-image, none);
  background-size: cover;
  background-position: center;
  padding: 90px 0;
  text-align: center;
}

.hero-inner {
  max-width: 720px;
  margin: 0 auto;
}

.hero-logo {
  height: 150px;
  width: auto;
  margin: 0 auto 24px;
  background: var(--white);
  border-radius: 16px;
  padding: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.page-hero .hero-logo {
  height: 100px;
}

.hero .eyebrow {
  color: var(--hawks-gold);
}

.hero p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.92);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.hero .btn-row {
  justify-content: center;
}

.page-hero {
  padding: 64px 0 56px;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--hawks-gold);
}

.card h3 {
  margin-bottom: 8px;
}

.card p {
  color: var(--grey);
  margin-bottom: 16px;
}

.card a.link {
  color: var(--hawks-blue);
  font-weight: 700;
  text-decoration: none;
}

.card a.link:hover {
  text-decoration: underline;
}

/* Sponsors */
.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  align-items: center;
}

.sponsor-tile {
  background: var(--white);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  aspect-ratio: 1 / 1;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

a.sponsor-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 26px rgba(8, 20, 48, 0.24);
}

.sponsor-tile img {
  max-height: 100%;
  object-fit: contain;
}

.sponsor-strip-note {
  text-align: center;
  margin-top: 28px;
}

/* Tables (draws & results) */
.table-wrap {
  overflow-x: auto;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 480px;
}

th, td {
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid var(--light-grey);
  font-size: 0.95rem;
}

th {
  background: var(--hawks-blue);
  color: var(--white);
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}

tr:last-child td {
  border-bottom: none;
}

.home-icon {
  display: inline-block;
  height: 18px;
  width: 18px;
  border-radius: 4px;
  margin-right: 6px;
  vertical-align: middle;
}

.result-badge {
  display: inline-block;
  min-width: 22px;
  margin-right: 8px;
  padding: 1px 0;
  border-radius: 4px;
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
}

.result-win {
  background: #1e8e3e;
}

.result-loss {
  background: #d93025;
}

.ladder-note {
  display: flex;
  align-items: center;
  color: var(--grey);
  font-size: 0.85rem;
  margin: 16px 0 0;
}

tr.is-hawks td {
  background: rgba(242, 180, 41, 0.18);
  font-weight: 700;
}

.update-block {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  margin-bottom: 28px;
  border-left: 5px solid var(--hawks-blue);
}

.update-block h3 {
  margin-bottom: 4px;
}

.update-date {
  color: var(--hawks-gold-dark);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 18px;
}

.update-block h4 {
  margin: 22px 0 10px;
  font-size: 1rem;
  color: var(--hawks-blue);
}

.update-block h4:first-of-type {
  margin-top: 0;
}

/* Info list (contact / about) */
.info-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.info-list li {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--light-grey);
}

.info-list strong {
  min-width: 110px;
  color: var(--hawks-blue);
}

.two-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}

@media (max-width: 800px) {
  .two-col {
    grid-template-columns: 1fr;
  }
}

.map-frame {
  width: 100%;
  height: 320px;
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.badge {
  display: inline-block;
  background: var(--hawks-gold);
  color: var(--hawks-blue-darker);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.callout {
  background: var(--hawks-gold);
  color: var(--hawks-blue-darker);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
}

.callout h2 {
  margin-bottom: 8px;
}

/* Footer */
.site-footer {
  background: var(--hawks-blue-darker);
  color: rgba(255, 255, 255, 0.85);
  padding: 56px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}

.footer-grid h4 {
  color: var(--hawks-gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.footer-grid a {
  display: block;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  padding: 4px 0;
}

.footer-grid a:hover {
  color: var(--hawks-gold);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.footer-brand img {
  height: 64px;
  background: var(--white);
  border-radius: 8px;
  padding: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 20px;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

.social-row {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.social-row a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transition: background 0.15s ease;
}

.social-row a:hover {
  background: var(--hawks-gold);
}

.social-row svg {
  width: 18px;
  height: 18px;
  fill: var(--white);
}

.social-row a:hover svg {
  fill: var(--hawks-blue-darker);
}
