/* ============================================================
   Kinross Hockey Club — Faithful replication of kinrosshockey.org
   Design: Clean Squarespace aesthetic
   Logo: "KINROSS HOCKEY" futura-pt/Jost, 18px, letter-spacing 12px, uppercase
   Nav: proxima-nova/Jost, 12px, grey #c2c2c2
   Body: white background, black text
   Grid: 4x2 square image grid on homepage
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Jost:wght@300;400;500;600&family=Source+Sans+3:wght@400;500;600&display=swap');

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

:root {
  --purple:      #361c7b;
  --blue:        #254da0;
  --gold:        #f0b429;
  --text:        #2b2b2b;
  --nav-text:    #c2c2c2;
  --nav-hover:   #2b2b2b;
  --border:      #e8e8e8;
  --white:       #ffffff;
  --light-grey:  #f5f5f5;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Source Sans 3', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── HEADER / NAV ── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 60px;
  max-width: 1400px;
  margin: 0 auto;
}

/* Logo: "KINROSS HOCKEY" text — futura-pt style */
.site-logo {
  font-family: 'Jost', 'Futura', 'Century Gothic', sans-serif;
  font-weight: 300;
  font-size: 18px;
  letter-spacing: 12px;
  text-transform: uppercase;
  color: var(--text);
  white-space: nowrap;
  line-height: 1;
  flex-shrink: 0;
  display: block;
}

.site-logo:hover { color: var(--text); }

/* Social icons in nav */
.nav-social {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 1rem;
  flex-shrink: 0;
}

.nav-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--purple);
  color: var(--white);
  transition: opacity 0.15s;
}

.nav-social-btn:hover { opacity: 0.8; }

/* Primary nav */
.primary-nav {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
}

.primary-nav > li {
  position: relative;
}

.primary-nav > li > a,
.primary-nav > li > button {
  display: block;
  padding: 0 0.85rem;
  font-family: 'Jost', 'proxima-nova', sans-serif;
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.5px;
  color: var(--nav-text);
  background: none;
  border: none;
  cursor: pointer;
  line-height: 60px;
  white-space: nowrap;
  transition: color 0.15s;
  text-transform: uppercase;
}

.primary-nav > li > a:hover,
.primary-nav > li > button:hover,
.primary-nav > li > a.active {
  color: var(--nav-hover);
}

/* Nav item with both a link and a dropdown arrow button */
.primary-nav > li {
  display: flex;
  align-items: center;
}
.nav-dropdown-link {
  display: block;
  padding: 0 0.4rem 0 0.85rem;
  font-family: Tahoma, Geneva, sans-serif;
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.5px;
  color: var(--nav-text);
  line-height: 60px;
  white-space: nowrap;
  text-transform: uppercase;
  transition: color 0.15s;
}
.nav-dropdown-link:hover { color: var(--nav-hover); }

/* Dropdown */
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 160px;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
  list-style: none;
  z-index: 200;
}

.primary-nav > li:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.fees-grid p {
  font-size: 14px;
  color: #444;
  line-height: 1.75;
  margin-bottom: 0.9rem;
  text-align: left !important;
}

.fees-text {
  font-size: 14px;
  color: #444;
  line-height: 1.75;
  margin-bottom: 0.9rem;
  text-align: left;
}

.nav-dropdown li a {
  display: block;
  padding: 0.55rem 1rem;
  font-family: 'Jost', sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: var(--nav-text);
  transition: color 0.15s, background 0.15s;
  text-transform: uppercase;
}

.nav-dropdown li a:hover {
  color: var(--nav-hover);
  background: var(--light-grey);
}

/* Mobile hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.2s, opacity 0.2s;
}

.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  display: none;
  background: var(--white);
  border-top: 1px solid var(--border);
}

.mobile-menu.open { display: block; }

.mobile-menu a,
.mobile-menu button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.7rem 1.5rem;
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: var(--text);
  background: none;
  border: none;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s;
}

.mobile-menu a:hover,
.mobile-menu button:hover { background: var(--light-grey); }

.mobile-sub { display: none; background: var(--light-grey); }
.mobile-sub.open { display: block; }
.mobile-sub a { padding-left: 2.5rem; font-size: 12px; color: #666; }

/* ── PAGE WRAPPER ── */
.page-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── HOME: IMAGE GRID ── */
/* 4 columns x 2 rows of square images, 80% width centred */
.home-grid-wrap {
  width: 80%;
  margin: 2.5rem auto 0;
}

.home-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.home-grid-item {
  overflow: hidden;
  position: relative;
}

/* Force square cells using a pseudo-element */
.home-grid-item::before {
  content: '';
  display: block;
  padding-top: 100%;
}

.home-grid-item img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.home-grid-item:hover img {
  transform: scale(1.03);
}

/* ── SPONSOR BANNER ── */
.sponsor-banner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 12px 0 0 0;
}

.sponsor-box {
  width: 50%;
  overflow: hidden;
  line-height: 0;
}

.sponsor-box img {
  width: 100%;
  height: auto;
  display: block;
}

.sponsor-box .sponsor-label {
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.75;
  text-align: center;
}

.sponsor-box .sponsor-names {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.sponsor-box .sponsor-name {
  font-family: 'Jost', sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
}

.sponsor-box .sponsor-divider {
  font-size: 10px;
  opacity: 0.4;
}

/* ── HOME LOWER SECTION ── */
.home-lower {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  padding: 2rem 0;
}

/* Stacked left-aligned blocks below the grid */
.home-lower-stack {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 2rem 0;
  max-width: 50%;
}

.home-lower-stack > div {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}

.home-lower-stack > div:last-child {
  border-bottom: none;
}

.home-section-heading {
  font-family: 'Jost', sans-serif;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.home-section-text {
  font-size: 14px;
  color: #444;
  line-height: 1.7;
  margin: 0;
}

.home-news-block {
  padding-right: 2rem;
}

.home-news-block a.news-link {
  display: block;
  margin-bottom: 0.5rem;
}

.home-news-block a.news-link img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.home-news-label {
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--nav-text);
  margin-bottom: 0.25rem;
}

.home-news-title {
  font-family: 'Jost', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.home-news-desc {
  font-size: 13px;
  color: #666;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.home-social {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 13px;
  transition: background 0.15s, color 0.15s;
}

.social-icon:hover { background: var(--text); color: var(--white); }

/* ── HOME VISION/MISSION ── */
.home-vision {
  padding-left: 2rem;
  border-left: 1px solid var(--border);
}

.home-vision h2 {
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text);
  margin-bottom: 0.5rem;
  margin-top: 1.5rem;
}

.home-vision h2:first-child { margin-top: 0; }

.home-vision p {
  font-size: 14px;
  color: #444;
  line-height: 1.65;
}

/* ── PAGE HERO ── */
.page-hero {
  position: relative;
  height: 280px;
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
}

.page-hero-content {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 2rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.page-hero-content h1 {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--white);
}

.page-hero-content p {
  color: rgba(255,255,255,0.8);
  font-size: 14px;
  margin-top: 0.5rem;
  max-width: 560px;
}

/* ── GENERIC PAGE CONTENT ── */
.page-section {
  padding: 3rem 0;
  border-bottom: 1px solid var(--border);
}

.page-section:last-child { border-bottom: none; }

.page-section h2 {
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text);
  margin-bottom: 1rem;
}

.page-section h3 {
  font-family: 'Jost', sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: var(--text);
  margin-bottom: 0.5rem;
  margin-top: 1.5rem;
}

.page-section h3:first-child { margin-top: 0; }

.page-section p {
  font-size: 14px;
  color: #444;
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.page-section ul {
  margin: 0.5rem 0 0.75rem 1.25rem;
  font-size: 14px;
  color: #444;
  line-height: 1.7;
}

.page-section a {
  color: var(--purple);
  text-decoration: underline;
}

/* Two-column layout */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

/* ── INFO TABLE ── */
.info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin-bottom: 1rem;
}

.info-table tr { border-bottom: 1px solid var(--border); }
.info-table tr:last-child { border-bottom: none; }
.info-table td { padding: 0.6rem 0; vertical-align: top; }
.info-table td:first-child { color: #888; width: 45%; }
.info-table td:last-child { font-weight: 500; color: var(--text); }

/* ── TEAM CARDS ── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.team-card {
  border: 1px solid var(--border);
}

.team-card-img {
  aspect-ratio: 4/3;
  overflow: hidden;
}

.team-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.team-card:hover .team-card-img img { transform: scale(1.04); }

.team-card-body {
  padding: 1rem;
}

.team-card-body h3 {
  font-family: 'Jost', sans-serif;
  font-weight: 500;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text);
  margin: 0 0 0.4rem;
}

.team-card-body p {
  font-size: 13px;
  color: #666;
  line-height: 1.5;
  margin: 0;
}

/* ── NEWS GRID ── */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.news-card { border: 1px solid var(--border); }

.news-card-img {
  aspect-ratio: 16/9;
  overflow: hidden;
}

.news-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.news-card:hover .news-card-img img { transform: scale(1.04); }

.news-card-body { padding: 1rem; }

.news-tag {
  display: inline-block;
  font-family: 'Jost', sans-serif;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #888;
  margin-bottom: 0.4rem;
}

.news-card-body h3 {
  font-family: 'Jost', sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 0.4rem;
  line-height: 1.3;
}

.news-card-body p {
  font-size: 13px;
  color: #666;
  line-height: 1.5;
  margin: 0;
}

/* ── FORM ── */
.form-group { margin-bottom: 1.25rem; }

.form-label {
  display: block;
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #888;
  margin-bottom: 0.4rem;
}

.form-input,
.form-textarea {
  width: 100%;
  border: 1px solid var(--border);
  padding: 0.6rem 0.75rem;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 14px;
  color: var(--text);
  background: var(--white);
  outline: none;
  transition: border-color 0.15s;
  border-radius: 0;
  -webkit-appearance: none;
}

.form-input:focus,
.form-textarea:focus { border-color: var(--text); }

.form-textarea { resize: vertical; min-height: 130px; }

.btn-submit {
  display: inline-block;
  font-family: 'Jost', sans-serif;
  font-weight: 500;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 0.7rem 2rem;
  background: var(--text);
  color: var(--white);
  border: none;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-submit:hover { background: #444; }

.form-success {
  display: none;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  padding: 1.5rem;
  font-size: 14px;
  color: #166534;
}

/* ── FEES TABLE ── */
.fees-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin-bottom: 1rem;
}

.fees-table tr { border-bottom: 1px solid var(--border); }
.fees-table td { padding: 0.6rem 0; }
.fees-table td:first-child { color: #444; }
.fees-table td:last-child { font-weight: 600; color: var(--purple); text-align: right; }

/* ── FOOTER ── */
footer {
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  margin-top: 2rem;
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.footer-logo {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 14px;
  letter-spacing: 8px;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.footer-desc {
  font-size: 13px;
  color: #888;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.footer-social { display: flex; gap: 0.4rem; }

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--border);
  font-size: 12px;
  color: var(--text);
  transition: background 0.15s, color 0.15s;
}

.footer-social a:hover { background: var(--text); color: var(--white); }

.footer-col-title {
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.4rem; }
.footer-links a { font-size: 13px; color: #888; transition: color 0.15s; }
.footer-links a:hover { color: var(--text); }

.footer-address { font-size: 13px; color: #888; line-height: 1.7; }
.footer-address a { color: #888; }
.footer-address a:hover { color: var(--text); }

.footer-bottom {
  max-width: 1400px;
  margin: 1.5rem auto 0;
  padding: 1rem 2rem 0;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-bottom p { font-size: 12px; color: #aaa; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .home-grid { grid-template-columns: repeat(4, 1fr); }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .news-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

/* Footer social icons */
.site-footer-social {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 1.5rem 0 2rem;
  margin-top: 1rem;
}
.footer-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--purple);
  color: #fff;
  border-radius: 4px;
  transition: opacity 0.15s;
}
.footer-social-btn:hover { opacity: 0.8; }

@media (max-width: 768px) {
  .primary-nav { display: none; }
  .nav-social { display: none; }
  .nav-hamburger { display: flex; }
  /* Stack banner panels vertically on mobile */
  .home-banner-row {
    grid-template-columns: 1fr !important;
  }
  .home-banner-left {
    grid-column: 1 / 2 !important;
  }
  .home-banner-right {
    grid-column: 1 / 2 !important;
  }
  .header-inner { padding: 0 1rem; }
  .site-logo { font-size: 14px; letter-spacing: 6px; }
  .home-grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(4, 1fr); }
  .sponsor-box { width: 100%; }
  .sponsor-banner { justify-content: stretch; }
  .home-lower { grid-template-columns: 1fr; }
  .home-vision { border-left: none; border-top: 1px solid var(--border); padding-left: 0; padding-top: 1.5rem; margin-top: 1.5rem; }
  .two-col { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .page-content { padding: 0 1rem; }
  /* Mobile menu: show social icons inside the open drawer instead */
  .mobile-menu.open .mobile-social {
    display: flex;
    gap: 8px;
    padding: 0.75rem 1.5rem;
    border-bottom: 1px solid var(--border);
  }
}

@media (max-width: 480px) {
  .home-grid { grid-template-columns: repeat(2, 1fr); }
  .site-logo { font-size: 12px; letter-spacing: 4px; }
}
