/*
Theme Name: PlaymakerHD
Theme URI: https://playmakerhd.com/
Author: PlaymakerHD (custom build)
Description: A lightweight custom theme for Playmaker Hockey (marketing site + shortcode-ready pages for Schedule/Testimonials).
Version: 1.2.3
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: playmakerhd
*/

/* -----------------------------
   Design tokens
------------------------------ */
:root{
  --pm-max-width: 980px;
  --pm-gutter: 20px;

  /* Pulled from the logo palette (approx.) */
  --pm-accent: #78b9d6;
  --pm-text: #0f172a;
  --pm-muted: #475569;
  --pm-border: #e2e8f0;
  --pm-bg: #ffffff;
  --pm-bg-soft: #f8fafc;

  --pm-radius: 12px;
  --pm-shadow: 0 8px 24px rgba(15, 23, 42, .10);
}

/* -----------------------------
   Base
------------------------------ */
*{ box-sizing: border-box; }
html{ -webkit-text-size-adjust: 100%; }
body{
  margin: 0;
  color: var(--pm-text);
  background: var(--pm-bg);
  font: 16px/1.6 system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

/* Prevent fixed cookie banner from covering bottom content on mobile/short viewports */
body.pm-has-cookie{
  padding-bottom: var(--pm-cookie-pad, 0px);
}
a{ color: inherit; text-decoration: none; }
a:hover, a:focus{ text-decoration: underline; }

img{ max-width: 100%; height: auto; }
hr{
  border: 0;
  border-top: 1px solid var(--pm-border);
  margin: 18px 0;
}

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

.skip-link{
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus{
  left: 10px;
  top: 10px;
  width: auto;
  height: auto;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid var(--pm-border);
  border-radius: 8px;
  z-index: 99999;
}

/* -----------------------------
   Header / Navigation
------------------------------ */
.site-header{
  border-bottom: 1px solid var(--pm-border);
  background: var(--pm-bg);
}
.site-header__inner{
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding: 18px 0;
  align-items: center;
}

.site-branding{
  display: flex;
  align-items: center;
  justify-content: center;
}
.site-logo{
  width: min(320px, 72vw);
  height: auto;
  display: block;
}

.nav-toggle{
  display: none;
  margin: 0 auto;
  border: 1px solid var(--pm-border);
  background: var(--pm-bg);
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 600;
  cursor: pointer;
}
.nav-toggle:hover, .nav-toggle:focus{
  border-color: var(--pm-accent);
}

.site-nav{
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  padding-bottom: 6px;
}

.site-nav a{
  padding: 8px 10px;
  border-radius: 10px;
  font-weight: 600;
  color: var(--pm-muted);
}
.site-nav a:hover,
.site-nav a:focus{
  color: var(--pm-text);
  background: var(--pm-bg-soft);
  text-decoration: none;
}
.site-nav a[aria-current="page"]{
  color: var(--pm-text);
  background: rgba(120, 185, 214, .18);
  border: 1px solid rgba(120, 185, 214, .35);
}

@media (max-width: 640px){
  .nav-toggle{ display: inline-flex; }
  .site-nav{
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 10px 0 0;
  }
  .site-nav.is-open{ display: flex; }
}

/* -----------------------------
   Content
------------------------------ */
.site-main{
  padding: 28px 0 56px;
}

.pm-page{
  background: var(--pm-bg);
}

.pm-hero{
  text-align: center;
  padding: 28px 0;
}
.pm-hero h1{
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.15;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}
.pm-hero p{
  margin: 0;
  color: var(--pm-muted);
  font-weight: 600;
}

/* Hero variants */
.pm-hero--simple{
  padding: 10px 0 0;
}

.pm-hero--split{
  text-align: left;
  padding: 22px 0;
  display: grid;
  gap: 18px;
  align-items: center;
}
@media (min-width: 860px){
  .pm-hero--split{
    grid-template-columns: 1.15fr .85fr;
  }
}

.pm-hero__content h1{
  margin-bottom: 10px;
}

.pm-hero__cta{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.pm-hero__media{
  display: flex;
  justify-content: center;
}

.pm-hero__media--cutout{
  align-items: flex-end;
}

.pm-hero__img{
  width: min(420px, 84vw);
  height: auto;
  display: block;
}

.pm-hero__mediaFrame{
  width: 100%;
  min-height: 320px;
  border-radius: calc(var(--pm-radius) + 6px);
  border: 1px solid var(--pm-border);
  background-color: var(--pm-bg-soft);
  background-size: cover;
  background-position: center;
  box-shadow: var(--pm-shadow);
}

.pm-statline{
  margin-top: 12px;
  font-weight: 800;
  color: var(--pm-text);
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(120, 185, 214, .35);
  background: rgba(120, 185, 214, .10);
}

.pm-bullets{
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--pm-muted);
}
.pm-bullets li{
  margin: 6px 0;
}

.pm-section{
  padding: 18px 0;
}
.pm-section h2{
  font-size: 26px;
  margin: 0 0 12px;
}
.pm-section h3{
  font-size: 20px;
  margin: 18px 0 10px;
}
.pm-section h4{
  font-size: 16px;
  margin: 0 0 10px;
  letter-spacing: .02em;
  text-transform: none;
  color: var(--pm-muted);
}

.pm-card-grid{
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(12, 1fr);
}
.pm-card{
  grid-column: span 12;
  background: var(--pm-bg-soft);
  border: 1px solid var(--pm-border);
  border-radius: var(--pm-radius);
  padding: 16px;
}
@media (min-width: 780px){
  .pm-card{ grid-column: span 4; }
}

.pm-card h4{
  margin: 0 0 6px;
  color: var(--pm-text);
}
.pm-card p{
  margin: 0 0 12px;
  color: var(--pm-muted);
}

.pm-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(120, 185, 214, .45);
  background: rgba(120, 185, 214, .18);
  color: var(--pm-text);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.pm-btn:hover, .pm-btn:focus{
  background: rgba(120, 185, 214, .28);
  text-decoration: none;
}

.pm-btn--primary{
  border-color: rgba(120, 185, 214, .65);
  background: rgba(120, 185, 214, .30);
}

/* Lists */
.pm-section ul{
  padding-left: 20px;
}
.pm-section li{
  margin: 6px 0;
  color: var(--pm-muted);
}

/* -----------------------------
   Footer
------------------------------ */
.site-footer{
  border-top: 1px solid var(--pm-border);
  background: var(--pm-bg);
  padding: 20px 0;
}
.site-footer__inner{
  text-align: center;
  color: var(--pm-muted);
  font-size: 14px;
}
.site-footer__brand{
  font-weight: 800;
  color: var(--pm-text);
}

/* -----------------------------
   Cookie banner
------------------------------ */
.pm-cookie{
  position: fixed;
  left: 14px;
  right: 14px;
  bottom: 14px;
  background: #fff;
  border: 1px solid var(--pm-border);
  border-radius: 14px;
  box-shadow: var(--pm-shadow);
  padding: 14px 14px 12px;
  z-index: 9999;
}
.pm-cookie__grid{
  max-width: 920px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}
@media (min-width: 720px){
  .pm-cookie__grid{
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}
.pm-cookie h4{
  margin: 0 0 4px;
  font-size: 14px;
  color: var(--pm-text);
}
.pm-cookie p{
  margin: 0;
  font-size: 13px;
  color: var(--pm-muted);
}
.pm-cookie__actions{
  display: flex;
  justify-content: flex-start;
  gap: 10px;
}
@media (min-width: 720px){
  .pm-cookie__actions{ justify-content: flex-end; }
}

/* WordPress Custom Logo output */
.custom-logo-link{
  display: inline-block;
}
.custom-logo{
  width: min(320px, 72vw);
  height: auto;
  display: block;
}


/* -----------------------------
   Utilities
------------------------------ */
.pm-muted{
  color: var(--pm-muted);
}
.pm-hr{
  border: 0;
  border-top: 1px solid var(--pm-border);
  margin: 18px 0;
}

/* -----------------------------
   Notices
------------------------------ */
.pm-notice{
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--pm-border);
  background: rgba(120, 185, 214, .12);
  color: var(--pm-text);
}
.pm-notice--info{
  background: rgba(120, 185, 214, .12);
  border-color: rgba(120, 185, 214, .25);
}
.pm-notice--error{
  background: rgba(220, 38, 38, .08);
  border-color: rgba(220, 38, 38, .25);
}

/* -----------------------------
   Simple form styling
------------------------------ */
.pm-form{
  display: grid;
  gap: 14px;
}
.pm-fieldset{
  border: 1px solid var(--pm-border);
  border-radius: 14px;
  padding: 14px;
}
.pm-fieldset legend{
  font-weight: 800;
  padding: 0 6px;
}
.pm-field{
  display: grid;
  gap: 6px;
  margin-top: 10px;
}
.pm-field:first-child{
  margin-top: 0;
}
.pm-field label{
  font-weight: 700;
  color: var(--pm-text);
}
.pm-field input[type="text"],
.pm-field input[type="email"],
.pm-field input[type="tel"],
.pm-field input[type="password"],
.pm-field input[type="date"]{
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--pm-border);
  background: #fff;
  color: var(--pm-text);
}
.pm-field input[disabled]{
  background: rgba(15, 23, 42, .03);
  color: var(--pm-muted);
}
.pm-field input:focus{
  outline: 3px solid rgba(120, 185, 214, .25);
  border-color: rgba(120, 185, 214, .55);
}
.pm-field--check{
  margin-top: 14px;
}
.pm-field--check label{
  font-weight: 600;
  color: var(--pm-muted);
}
.pm-field--check input{
  margin-right: 8px;
}

.pm-help{
  margin: 10px 0 0;
  color: var(--pm-muted);
  font-size: 14px;
}

/* -----------------------------
   Grids
------------------------------ */
.pm-grid{
  display: grid;
  gap: 16px;
}
@media (min-width: 860px){
  .pm-grid--2{
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

/* Simple split layout used on Home, About, Facility, etc. */
.pm-split{
  display: grid;
  gap: 16px;
}
@media (min-width: 860px){
  .pm-split{
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  /* Top-aligned variant (used on Testimonials to avoid awkward empty space next to media). */
  .pm-split--top{
    align-items: start;
  }
}

.pm-media{
  border-radius: calc(var(--pm-radius) + 6px);
  overflow: hidden;
  border: 1px solid var(--pm-border);
  box-shadow: var(--pm-shadow);
  background: var(--pm-bg-soft);
}
.pm-media__img{
  width: 100%;
  height: auto;
  display: block;
}

.pm-gallery{
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.pm-gallery__item{
  margin: 0;
  border-radius: calc(var(--pm-radius) + 6px);
  overflow: hidden;
  border: 1px solid var(--pm-border);
  background: var(--pm-bg-soft);
}
.pm-gallery__item img{
  width: 100%;
  height: auto;
  display: block;
}

.pm-embed{
  display: flex;
  justify-content: center;
}

.pm-embed--hero{
  width: 100%;
}

.pm-shortcode-wrap{
  background: #fff;
  border: 1px solid var(--pm-border);
  border-radius: calc(var(--pm-radius) + 6px);
  padding: 14px;
}

/* -----------------------------
   Schedule
------------------------------ */
.pm-schedule-top{
  margin-top: 14px;
  display: grid;
  gap: 10px;
}
.pm-schedule-weeknav{
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.pm-schedule-weeknav__label{
  flex: 1;
  text-align: center;
  padding: 8px 10px;
  border: 1px solid var(--pm-border);
  border-radius: 14px;
  background: rgba(15, 23, 42, .02);
}
.pm-schedule-weeknav__kicker{
  font-size: 12px;
  color: var(--pm-muted);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.pm-schedule-weeknav__value{
  font-weight: 900;
  color: var(--pm-text);
}
.pm-authline{
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 10px 12px;
  border: 1px solid var(--pm-border);
  border-radius: 14px;
  background: rgba(15, 23, 42, .02);
}
.pm-authline__links{
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--pm-muted);
}
.pm-authline__links a{
  color: var(--pm-text);
  text-decoration: none;
  font-weight: 700;
}
.pm-authline__links a:hover{
  text-decoration: underline;
}

.pm-schedule{
  display: grid;
  gap: 14px;
}
@media (min-width: 980px){
  .pm-schedule{
    grid-template-columns: 1fr 1fr 1fr;
    align-items: start;
  }
}
.pm-schedule-day__head{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.pm-schedule-day__title{
  margin: 0;
  font-size: 20px;
}
.pm-schedule-day__date{
  color: var(--pm-muted);
  font-weight: 700;
}

.pm-schedule-slots{
  display: grid;
}
.pm-slot{
  border-top: 1px solid var(--pm-border);
  padding: 12px 0;
  display: grid;
  gap: 10px;
}
.pm-slot:first-child{
  border-top: 0;
  padding-top: 0;
}
@media (min-width: 720px){
  .pm-slot{
    grid-template-columns: 160px 1fr auto;
    align-items: center;
  }
}
.pm-slot__time{
  font-weight: 900;
  color: var(--pm-text);
}
.pm-slot__status{
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: var(--pm-muted);
  flex-wrap: wrap;
}
.pm-slot__name{
  font-weight: 800;
  color: var(--pm-text);
}
.pm-inline-form{
  margin: 0;
}
.pm-inline-form button{
  width: 100%;
}
@media (min-width: 720px){
  .pm-inline-form button{
    width: auto;
  }
}

.pm-badge{
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--pm-border);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.pm-badge--available{
  background: rgba(34, 197, 94, .10);
  border-color: rgba(34, 197, 94, .25);
}
.pm-badge--booked{
  background: rgba(234, 179, 8, .12);
  border-color: rgba(234, 179, 8, .25);
}
.pm-badge--closed{
  background: rgba(148, 163, 184, .18);
  border-color: rgba(148, 163, 184, .35);
}

.pm-slot--highlight{
  border-radius: 12px;
  padding: 12px;
  margin: 6px -10px;
  border: 1px solid rgba(120, 185, 214, .45);
  background: rgba(120, 185, 214, .08);
}



/* -----------------------------
   Schedule enhancements
------------------------------ */
.pm-badge--full{
  background: rgba(239, 68, 68, .12);
  border-color: rgba(239, 68, 68, .25);
}

.pm-slot__meta{
  margin-left: 8px;
}

.pm-inline-form select{
  min-width: 210px;
  padding: 10px 12px;
  border: 1px solid var(--pm-border);
  border-radius: 10px;
  background: #fff;
  font-weight: 600;
}

.pm-roster{
  margin: 0;
  padding-left: 18px;
}
.pm-roster li{
  margin: 0;
  padding: 0;
}

/* -----------------------------
   Testimonials
------------------------------ */
.pm-testimonials{
  display: grid;
  gap: 14px;
}

.pm-testimonial__inner{
  display: grid;
  gap: 14px;
}
@media (min-width: 820px){
  .pm-testimonial__inner{
    grid-template-columns: 220px 1fr;
    align-items: start;
  }
}

.pm-testimonial__img{
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  border: 1px solid var(--pm-border);
}

.pm-testimonial__placeholder{
  width: 100%;
  height: 160px;
  border-radius: 12px;
  border: 1px dashed var(--pm-border);
  background: rgba(148, 163, 184, .08);
}

.pm-testimonial__title{
  margin: 0;
}

.pm-testimonial__quote{
  margin-top: 10px;
  color: var(--pm-text);
}

/* -----------------------------
   Facility video
------------------------------ */
.pm-video{
  max-width: 920px;
}
.pm-video video{
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--pm-border);
}
