/* =======================================================
   LSA HOMEPAGE CSS -- lsa-home.css
   Mobile first. Desktop breakpoints at 640px and 900px.
   Fraunces serif for headings, DM Sans for everything else.
   ======================================================= */

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

:root {
  --blue:           #1662b9;
  --blue-dark:      #0f4a8a;
  --blue-light:     #e8f1fb;
  --text:           #1a1814;
  --text-mid:       #4a4540;
  --text-muted:     #7a7470;
  --border:         #e2ddd8;
  --off-white:      #f9f8f6;
  --score-grey:     #8a9ab0;
  --score-grey-bg:  #c8d9ee;
  --mvp-bbh:        #0F6E56;
  --mvp-sbh:        #3C3489;
  --pad:            20px;
}

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Strip theme wrapper margins on this template */
.page-template-page-lsa-home2-php #theme-page-wrapper,
.page-template-page-lsa-home2-php #content,
.page-template-page-lsa-home2-php .site-content {
  margin-top: 0 !important;
  padding-top: 0 !important;
}


/* -- NAV -- */
.page-template-page-lsa-home-php nav {
  position: sticky; top: 0; z-index: 200;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 0 var(--pad);
  display: flex; align-items: center; justify-content: space-between;
  height: 56px;
}
.page-template-page-lsa-home-php .nav-logo {
  display: flex; align-items: center; gap: 10px; text-decoration: none;
}

.page-template-page-lsa-home-php .nav-mark svg { width: 18px; height: 18px; }
.page-template-page-lsa-home-php .nav-wm {
  font-size: 13px; font-weight: 600; color: var(--text); line-height: 1.2;
}
.page-template-page-lsa-home-php .nav-wm span {
  display: block; font-size: 9px; font-weight: 400;
  color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.09em;
}

/* Hamburger -- mobile only */
.page-template-page-lsa-home-php .nav-burger {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 36px; height: 36px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.page-template-page-lsa-home-php .nav-burger span {
  display: block; height: 2px; background: var(--text);
  border-radius: 2px; transition: all 0.2s;
}
.page-template-page-lsa-home-php .nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.page-template-page-lsa-home-php .nav-burger.open span:nth-child(2) { opacity: 0; }
.page-template-page-lsa-home-php .nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.page-template-page-lsa-home-php .nav-drawer {
  display: none; position: fixed;
  top: 56px; left: 0; right: 0; bottom: 0;
  background: #fff; z-index: 190;
  padding: 24px var(--pad); overflow-y: auto;
}
.page-template-page-lsa-home-php .nav-drawer.open { display: block; }
.page-template-page-lsa-home-php .nav-drawer ul {
  list-style: none; padding-left: 0; margin: 0;
}
.page-template-page-lsa-home-php .nav-drawer ul li {
  border-bottom: 1px solid var(--border); margin: 0; padding: 0;
}
.page-template-page-lsa-home-php .nav-drawer ul li a {
  display: block; padding: 16px 0; font-size: 17px;
  font-weight: 500; color: var(--text); text-decoration: none;
}
.page-template-page-lsa-home-php .nav-drawer .drawer-cta {
  margin-top: 24px; display: block; background: var(--blue);
  color: #fff; text-align: center; padding: 14px; border-radius: 8px;
  font-weight: 600; font-size: 16px; text-decoration: none;
}

/* Desktop nav -- hidden on mobile */
.page-template-page-lsa-home-php .nav-right { display: none; }
.page-template-page-lsa-home-php .nav-burger { display: flex; }

/* Nav list -- base reset */
.page-template-page-lsa-home-php #homepage-nav-list {
  list-style: none; padding: 0; margin: 0;
}
.page-template-page-lsa-home-php #homepage-nav-list li {
  list-style: none; margin: 0; padding: 0; border-bottom: none;
}

/* Nav dropdowns */
.page-template-page-lsa-home-php .nav-right li { position: relative; }
.page-template-page-lsa-home-php .nav-right li ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    padding-top: 12px;
    background: transparent;
    z-index: 300;
    list-style: none;
    margin: 0;
    min-width: 200px;
}
.page-template-page-lsa-home-php .nav-right li:hover > ul { display: block; }
.page-template-page-lsa-home-php .nav-right li ul::before {
    content: '';
    display: block;
    position: absolute;
    top: 6px;
    left: 16px;
    width: 10px;
    height: 10px;
    background: #fff;
    border-left: 1px solid var(--border);
    border-top: 1px solid var(--border);
    transform: rotate(45deg);
}
.page-template-page-lsa-home-php .nav-right li ul::after {
    content: '';
    position: absolute;
    top: 12px;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    z-index: -1;
}
.page-template-page-lsa-home-php .nav-right li ul li {
    border-bottom: none;
    padding: 0;
    margin: 0;
    list-style: none;
    position: relative;
    z-index: 1;
}
.page-template-page-lsa-home-php .nav-right li ul li a {
    display: block;
    padding: 10px 18px;
    font-size: 13px;
    color: var(--text);
    font-weight: 500;
    white-space: nowrap;
    transition: color 0.15s, background 0.15s;
}
.page-template-page-lsa-home-php .nav-right li ul li:first-child a { padding-top: 16px; }
.page-template-page-lsa-home-php .nav-right li ul li:last-child a { padding-bottom: 14px; }
.page-template-page-lsa-home-php .nav-right li ul li a:hover {
    color: var(--blue);
    background: var(--blue-light);
}

/* -- WEATHER NOTICE -- */
.weather-notice {
  display: flex; align-items: center; gap: 12px;
  background: #FAEEDA;
  padding: 12px var(--pad);
  font-size: 13px; font-weight: 500; color: #633806;
}
.wn-pip {
  width: 8px; height: 8px; border-radius: 50%;
  background: #BA7517; flex-shrink: 0;
}

/* -- WEATHER NOTICE -- */

.weather-notice {
  display: flex; align-items: center; gap: 12px;
  background: #FAEEDA;
  padding: 12px var(--pad);
  font-size: 13px; font-weight: 500; color: #633806;
}
.wn-pip { width: 8px; height: 8px; border-radius: 50%; background: #BA7517; flex-shrink: 0; }


/* -- HERO -- */

.hero { position: relative; min-height: 480px; display: flex; align-items: flex-end; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0;
  background: #1a3050 url('https://leedssoftball.co.uk/wp-content/uploads/2024/03/Shake-and-Bake-April-2024-Cheer.jpg') center 50% / cover no-repeat;
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(8,16,35,0.90) 0%, rgba(8,16,35,0.65) 55%, rgba(8,16,35,0.25) 100%);
}
.hero-inner { position: relative; z-index: 2; width: 100%; padding: 40px var(--pad) 36px; }
.hero-copy { margin-bottom: 28px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 10px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.12em; color: rgba(255,255,255,0.6); margin-bottom: 12px;
}
.hero-eyebrow::before { content: ''; width: 16px; height: 1.5px; background: rgba(255,255,255,0.4); border-radius: 2px; }
.hero h1 { font-family: 'Fraunces', serif; font-size: 44px; font-weight: 700; line-height: 1.05; color: #fff; margin-bottom: 14px; letter-spacing: -0.02em; }
.hero h1 em { font-style: italic; color: #7ab8ff; }
.hero-sub { font-size: 15px; color: rgba(255,255,255,0.78); margin-bottom: 24px; line-height: 1.6; max-width: 460px; }
.hero-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-blue  { background: var(--blue); color: #fff; padding: 12px 20px; border-radius: 7px; text-decoration: none; font-weight: 600; font-size: 14px; display: inline-block; }
.btn-ghost { background: rgba(255,255,255,0.12); color: #fff; padding: 12px 20px; border-radius: 7px; border: 1px solid rgba(255,255,255,0.35); text-decoration: none; font-weight: 500; font-size: 14px; display: inline-block; }


/* -- RESULTS PANEL -- */

.results-panel { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 8px 40px rgba(0,0,0,0.28); }
.rp-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.rp-head-title { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); }
.rp-head a { font-size: 11px; color: var(--blue); text-decoration: none; font-weight: 500; }
.r-item { padding: 14px 16px; border-bottom: 1px solid var(--border); }
.r-item:last-child { border-bottom: none; }
.r-link { font-size: 10px; font-weight: 600; color: var(--blue); text-decoration: none; display: block; margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.07em; opacity: 0.8; }
.sr { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 10px; }
.tn { flex: 1; font-size: 13px; }
.tn.h { text-align: right; }
.tn.a { text-align: left; }
.tn.w { font-weight: 700; color: var(--text); }
.tn.l { color: var(--text-muted); font-weight: 400; }
.sc { display: flex; align-items: center; flex-shrink: 0; }
.sn { font-size: 18px; font-weight: 700; padding: 6px 12px; color: #fff; min-width: 38px; text-align: center; line-height: 1; }
.sn.w { background: var(--blue); }
.sn.l { background: var(--score-grey); }
.sn:first-child { border-radius: 6px 0 0 6px; }
.sn:last-child  { border-radius: 0 6px 6px 0; }
.sd { background: var(--score-grey-bg); color: #5a7a9a; font-size: 11px; font-weight: 600; padding: 6px 7px; line-height: 1; }
.mvp-s { border-top: 1px solid var(--border); padding-top: 8px; display: flex; flex-direction: column; gap: 3px; font-size: 10px; color: var(--text-muted); }
.mvp-bbh { color: var(--mvp-bbh); font-weight: 600; }
.mvp-sbh { color: var(--mvp-sbh); font-weight: 600; }


/* -- PHOTO STRIP -- */

.photo-strip { display: flex; overflow-x: auto; height: 180px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.photo-strip::-webkit-scrollbar { display: none; }
.pc { flex: 0 0 72vw; scroll-snap-align: start; overflow: hidden; position: relative; background: #1a2a3a; }
.pc img { width: 100%; height: 100%; object-fit: cover; }
.ph-label { position: absolute; bottom: 10px; left: 12px; font-size: 10px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,0.55); }


/* -- SECTIONS -- */

.section { padding: 36px var(--pad); border-bottom: 1px solid var(--border); }
.section.alt { background: var(--off-white); }
.s-label { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; color: var(--blue); margin-bottom: 4px; }
.s-h2 { font-family: 'Fraunces', serif; font-size: 26px; font-weight: 700; line-height: 1.15; margin-bottom: 20px; letter-spacing: -0.01em; }
.more-link { display: inline-block; margin-top: 16px; font-size: 12px; font-weight: 600; color: var(--blue); text-decoration: none; }


/* -- FIXTURES / EVENTS CARDS -- */

.ev-card { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--border); }
.ev-card:last-of-type { border-bottom: none; }
.ev-date { flex-shrink: 0; width: 44px; text-align: center; background: var(--blue); border-radius: 7px; padding: 7px 4px; }
.ev-date--tourn { background: #d97706; }
.ev-date .day { font-family: 'Fraunces', serif; font-size: 20px; font-weight: 700; color: #fff; line-height: 1; }
.ev-date .mon { font-size: 9px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em; color: rgba(255,255,255,0.78); margin-top: 2px; }
.ev-info h3 { font-size: 13px; font-weight: 600; margin-bottom: 2px; line-height: 1.4; }
.ev-info p  { font-size: 11px; color: var(--text-muted); line-height: 1.5; margin-bottom: 3px; }
.ev-tag { display: inline-block; margin-top: 5px; font-size: 9px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em; color: var(--blue); background: var(--blue-light); padding: 2px 7px; border-radius: 4px; }
.ev-tag.tourn { color: #92400e; background: #fef3c7; }


/* -- STANDINGS TABLE -- */

.standings-table { font-size: 14px; border-collapse: collapse; width: 100%; table-layout: fixed; }
.standings-table th { text-align: center; padding: 6px 10px 10px; font-weight: 600; color: var(--text-muted); font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; border-bottom: 1px solid var(--border); }
.standings-table th:nth-child(2) { text-align: left; }
.standings-table td { text-align: center; padding: 12px 10px; border-bottom: 1px solid var(--border); }
.standings-table td:nth-child(2) { text-align: left; }
.standings-table tr:last-child td { border-bottom: none; }
.standings-table tr.leader { background: var(--blue-light); }
.st-pos { color: var(--text-muted); font-size: 11px; width: 28px; text-align: center !important; }


/* -- HOMEPAGE TABLE: STANDINGS + RESULTS TWO-COLUMN -- */
/* [slm_homepage_table] shortcode output.
   Outer padding comes from .section.alt via var(--pad) -- no overrides needed.
   Desktop: two columns, gap + dividing border between them. */

.slm-homepage-table { }

.slm-table-cols {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.slm-table-col { width: 100%; min-width: 0; }

/* Date divider -- label sits on the rule line */
.results-date { display: flex; align-items: center; gap: 10px; margin: 14px 0 6px; }
.results-date:first-child { margin-top: 0; }
.results-date span { font-size: 9px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); white-space: nowrap; flex-shrink: 0; }
.results-date::after { content: ''; flex: 1; height: 0.5px; background: var(--border); }

/* Result rows -- plain text, no score boxes */
.result-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 0.5px solid var(--border); }
.result-row--last { border-bottom: none; }
.r-team { flex: 1; font-size: 13px; color: var(--text-muted); line-height: 1.3; }
.r-team.right { text-align: right; }
.r-team.w { color: var(--text); font-weight: 600; }

/* Score -- plain text, no boxes, no backgrounds */
.r-scores { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.r-scores .sn { font-size: 14px; font-weight: 600; color: var(--text); background: none; padding: 0; line-height: 1; min-width: auto; border-radius: 0; }
.r-scores .sn.l { color: var(--text-muted); font-weight: 400; }
.r-scores .sd { background: none; color: var(--text-muted); font-size: 13px; font-weight: 400; padding: 0; line-height: 1; }


/* -- TEAMS GRID -- */

.teams-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 20px; }
.team-card { background: var(--off-white); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; text-decoration: none; color: var(--text); }
.team-photo { height: 140px; overflow: hidden; background: #2a3a4a; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.team-tag { padding: 8px 10px; font-size: 12px; font-weight: 600; text-align: center; border-top: 1px solid var(--border); }


/* -- NEVER PLAYED / JOIN CTA -- */

.join-band { position: relative; overflow: hidden; min-height: 260px; display: flex; align-items: flex-end; }
.join-bg { position: absolute; inset: 0; background: #1a2a3a url('https://leedssoftball.co.uk/wp-content/uploads/2025/07/IMG_3439.jpeg') center / cover no-repeat; }
.join-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,16,40,0.95) 0%, rgba(8,16,40,0.6) 60%, rgba(8,16,40,0.2) 100%); }
.join-inner { position: relative; z-index: 2; padding: 32px var(--pad); }
.join-inner .s-label { color: rgba(255,255,255,0.5); }
.join-inner h2 { font-family: 'Fraunces', serif; font-size: 32px; font-weight: 700; line-height: 1.1; color: #fff; margin-bottom: 10px; letter-spacing: -0.02em; }
.join-inner h2 em { font-style: italic; color: #7ab8ff; }
.join-inner p { font-size: 14px; color: rgba(255,255,255,0.78); margin-bottom: 22px; line-height: 1.6; }


/* -- FOOTER -- */

footer { background: var(--off-white); padding: 28px var(--pad); border-top: 1px solid var(--border); }
footer p { font-size: 12px; color: var(--text-muted); margin-bottom: 12px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; padding-left: 0; }
.footer-links a { font-size: 12px; color: var(--text-muted); text-decoration: none; }


/* ========================================
   TABLET -- 640px+
======================================== */
@media (min-width: 640px) {
  :root { --pad: 32px; }
  .hero { min-height: 520px; }
  .hero h1 { font-size: 54px; }
  .photo-strip { height: 200px; }
  .pc { flex: 0 0 44vw; }
  .teams-grid { grid-template-columns: repeat(3, 1fr); }
  .team-photo { height: 150px; }
  .mvp-s { flex-direction: row; justify-content: space-between; }
}


/* ========================================
   DESKTOP -- 900px+
======================================== */
@media (min-width: 900px) {
  :root { --pad: 48px; }

/* Nav */
  .page-template-page-lsa-home-php .nav-burger { display: none; }
  .page-template-page-lsa-home-php .nav-right { display: flex; align-items: center; gap: 16px; }
  .page-template-page-lsa-home-php #homepage-nav-list { display: flex; align-items: center; gap: 28px; list-style: none; padding: 0; margin: 0; }
  .page-template-page-lsa-home-php #homepage-nav-list li { border-bottom: none; margin: 0; padding: 0; list-style: none; }
  .page-template-page-lsa-home-php #homepage-nav-list a { text-decoration: none; font-size: 13.5px; color: var(--text-mid); font-weight: 500; }
  .page-template-page-lsa-home-php #homepage-nav-list a:hover { color: var(--blue); }
  .page-template-page-lsa-home-php .nav-cta--desktop { display: inline-block; background: var(--blue); color: #fff !important; padding: 7px 16px; border-radius: 6px; font-size: 13.5px; font-weight: 600; text-decoration: none; }

  /* Hero */
  .hero { min-height: 580px; align-items: flex-end; }
  .hero-inner { display: grid; grid-template-columns: 1fr 390px; gap: 48px; align-items: end; }
  .hero-copy { margin-bottom: 0; }
  .hero h1 { font-size: 62px; }
  .results-panel { box-shadow: 0 8px 40px rgba(0,0,0,0.35); margin-bottom: 36px; }

  /* Photo strip */
  .photo-strip { height: 220px; overflow: visible; }
  .pc { flex: 1; scroll-snap-align: unset; }

  /* Fixtures + Events */
  .two-col { display: grid; grid-template-columns: 1fr 1fr; }
  .col-l { border-right: 1px solid var(--border); }

  /* Homepage table -- two columns, section handles outer padding */
  .slm-table-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 52px;
    align-items: start;
  }
  .slm-table-col { width: auto; min-width: 0; }
  .slm-table-col:first-child { border-right: 1px solid var(--border); }

  /* Teams */
  .teams-grid { grid-template-columns: repeat(6, 1fr); }
  .team-photo { height: 150px; }

  /* Never played */
  .join-band { min-height: 300px; align-items: center; }
  .join-bg::after { background: linear-gradient(90deg, rgba(8,16,40,0.92) 40%, rgba(8,16,40,0.3) 100%); }
  .join-inner { max-width: 520px; padding: 64px var(--pad); }
  .join-inner h2 { font-size: 40px; }

  /* Footer */
  footer { display: flex; align-items: center; justify-content: space-between; }
  footer p { margin-bottom: 0; }
  .footer-links { flex-wrap: nowrap; gap: 20px; }

  /* Sections */
  .section { padding: 52px var(--pad); }
  .s-h2 { font-size: 28px; }
}