/*
Theme Name: Sebastian Sharks
Theme URI: https://sebastiansharks.org
Author: Sebastian Sharks Youth Football & Cheerleading Association
Author URI: https://sebastiansharks.org
Description: Official website theme for the Sebastian Sharks Youth Football & Cheerleading Association. Royal blue, bold, energetic youth football design with 5 divisions — Flag 6U/7U, 8U, 10U, 12U, and 14U. ACYAA league member.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sebastian-sharks
Tags: sports, youth, football, custom-colors, custom-logo, full-width-template

*/

/* ============================================
   CSS CUSTOM PROPERTIES (BRAND COLORS)
============================================ */
:root {
  --sp:   #1a47cc;   /* Royal blue — primary */
  --spd:  #0f2d8a;   /* Dark navy — headers, hero, footer */
  --spm:  #2255e0;   /* Medium blue — hover states */
  --spl:  #5580e8;   /* Light blue — subtext, icons */
  --spp:  #e8edfb;   /* Pale tint — backgrounds, badges */

  /* Flag football silver */
  --flag:  #5F5E5A;
  --flagl: #888780;
  --flagp: #F1EFE8;

  /* Neutral */
  --white: #ffffff;
  --black: #000000;
}

/* ============================================
   RESET & BASE
============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  color: #1a1a1a;
  background: #ffffff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--sp); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ============================================
   TYPOGRAPHY
============================================ */
h1, h2, h3, h4, h5, h6 {
  font-weight: 500;
  line-height: 1.25;
  color: #0f2d8a;
}

h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.375rem, 3vw, 1.875rem); }
h3 { font-size: clamp(1.125rem, 2.5vw, 1.375rem); }
h4 { font-size: 1.125rem; }

p { margin-bottom: 1rem; color: #444; line-height: 1.8; }
p:last-child { margin-bottom: 0; }

/* ============================================
   LAYOUT
============================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container--narrow { max-width: 800px; }
.container--wide   { max-width: 1400px; }

.section { padding: 4rem 0; }
.section--sm { padding: 2.5rem 0; }
.section--lg { padding: 6rem 0; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.25rem; }

@media (max-width: 900px) {
  .grid-4, .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; }
}

/* ============================================
   NEWS TICKER
============================================ */
.sharks-ticker {
  background: var(--sp);
  overflow: hidden;
  height: 36px;
  display: flex;
  align-items: center;
  border-bottom: 2px solid #0a1f5e;
  position: sticky;
  top: 0;
  z-index: 100;
}

.sharks-ticker__label {
  background: #0a1f5e;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0 14px;
  height: 100%;
  display: flex;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
  gap: 6px;
}

.sharks-ticker__track {
  display: flex;
  animation: sharks-ticker 35s linear infinite;
}

.sharks-ticker__item {
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sharks-ticker__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #c5d3f5;
  flex-shrink: 0;
}

@keyframes sharks-ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================
   NAVIGATION
============================================ */
.sharks-nav {
  background: var(--spd);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  height: 60px;
  border-bottom: 2px solid var(--sp);
  position: sticky;
  top: 36px;
  z-index: 99;
}

.sharks-nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex: 1 1 auto;
  min-width: 0;
}

.sharks-nav__logo img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.sharks-nav__name {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
}

.sharks-nav__sub {
  color: var(--spl);
  font-size: 11px;
}

.sharks-nav__links {
  display: flex;
  gap: 2px;
  align-items: center;
}

.sharks-nav__link {
  color: #c5d3f5;
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.sharks-nav__link:hover,
.sharks-nav__link.current-menu-item {
  background: rgba(255,255,255,0.1);
  color: #fff;
  text-decoration: none;
}

.sharks-nav__link.current-menu-item::after {
  content: '';
  display: block;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  margin-top: 2px;
}

/* Mobile nav toggle */
.sharks-nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: #c5d3f5;
}

@media (max-width: 768px) {
  .sharks-nav__links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--spd); padding: 1rem; border-bottom: 2px solid var(--sp); }
  .sharks-nav__links.open { display: flex; }
  .sharks-nav__toggle { display: block; }
  .sharks-nav { position: relative; top: 36px; }
}

/* ============================================
   HERO
============================================ */
.sharks-hero {
  background: var(--spd);
  min-height: 380px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.sharks-hero__bg {
  position: absolute;
  inset: 0;
  background: #091e6e;
}

.sharks-hero__field {
  position: absolute;
  inset: 0;
  opacity: 0.12;
}

.sharks-hero__content {
  position: relative;
  z-index: 2;
  padding: 3rem 1.5rem 5rem;
  text-align: center;
  width: 100%;
}

.sharks-hero__eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--spl);
  margin-bottom: 0.75rem;
}

.sharks-hero__title {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 500;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.sharks-hero__title em {
  font-style: italic;
  color: #c5d3f5;
}

.sharks-hero__sub {
  font-size: 15px;
  color: #c5d3f5;
  margin-bottom: 1.5rem;
}

.sharks-hero__pills {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}

.sharks-hero__pill {
  background: rgba(255,255,255,0.1);
  color: #c5d3f5;
  font-size: 12px;
  font-weight: 500;
  padding: 5px 14px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.15);
}

.sharks-hero__diag {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  line-height: 0;
}

/* ============================================
   BUTTONS
============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 26px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  border: none;
  transition: background 0.15s, transform 0.1s;
}

.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn--primary { background: var(--sp); color: #fff; }
.btn--primary:hover { background: var(--spm); color: #fff; }

.btn--white { background: #fff; color: var(--sp); }
.btn--white:hover { background: var(--spp); color: var(--sp); }

.btn--outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.35); }
.btn--outline:hover { background: rgba(255,255,255,0.08); color: #fff; }

.btn--outline-blue { background: transparent; color: var(--sp); border: 1.5px solid var(--sp); }
.btn--outline-blue:hover { background: var(--spp); color: var(--sp); }

/* ============================================
   NEXT GAME CARD
============================================ */
.game-card-wrap {
  padding: 0 1.5rem;
  margin-top: -32px;
  position: relative;
  z-index: 5;
  margin-bottom: 2rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.game-spotlight {
  background: var(--spd);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  border: 2px solid var(--sp);
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(15,45,138,0.3);
}

.game-spotlight::before {
  content: 'NEXT GAME';
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--spl);
}

/* ============================================
   INFO BAR
============================================ */
.info-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px,1fr));
  background: #f5f7ff;
  border-bottom: 0.5px solid #d8e0f8;
}

.info-item {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-right: 0.5px solid #d8e0f8;
}

.info-item:last-child { border-right: none; }

.info-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--spp);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-label { font-size: 10px; color: var(--spl); text-transform: uppercase; letter-spacing: 0.06em; }
.info-value { font-size: 12px; font-weight: 500; color: #1a1a1a; margin-top: 1px; }

/* ============================================
   DIAGONAL SECTION DIVIDERS
============================================ */
.section--diagonal-down {
  position: relative;
  padding-bottom: 5rem;
}
.section--diagonal-down::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--color-next, #fff);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

.section--diagonal-up::after {
  clip-path: polygon(0 0, 100% 100%, 0 100%);
}

.section--blue { background: var(--sp); }
.section--navy { background: var(--spd); }
.section--light { background: #f5f7ff; }

/* ============================================
   STATS SECTION
============================================ */
.stats-row {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
}

.stat-big__num {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 500;
  color: #fff;
  line-height: 1;
}

.stat-big__lbl {
  font-size: 11px;
  color: #c5d3f5;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

/* ============================================
   TEAM CARDS
============================================ */
.team-card {
  background: #fff;
  border: 0.5px solid #d8e0f8;
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.15s, transform 0.15s;
}

.team-card:hover {
  border-color: var(--sp);
  transform: translateY(-2px);
}

.team-card__photo {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 3px solid var(--sp);
  position: relative;
}

.team-card__photo--tackle { background: var(--spd); }
.team-card__photo--flag   { background: var(--spd); border-bottom-color: var(--sp); }

.team-card__label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
  padding: 4px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
}

.team-card__label--tackle { background: var(--sp); }
.team-card__label--flag   { background: var(--sp); }

.team-card__body { padding: 1rem; }
.team-card__name { font-size: 13px; font-weight: 600; color: #1a1a1a; }
.team-card__ages { font-size: 11px; color: #666; margin-top: 2px; }

.badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
  margin-top: 6px;
}

.badge--tackle { background: var(--spp); color: var(--spd); }
.badge--flag   { background: var(--spp); color: var(--spd); }
.badge--win    { background: #EAF3DE; color: #27500A; }
.badge--loss   { background: #FCEBEB; color: #791F1F; }
.badge--home   { background: var(--spp); color: var(--spd); }
.badge--away   { background: #f1efe8; color: #444; }

/* ============================================
   VALUE CARDS (accent circle)
============================================ */
.val-card {
  background: #fff;
  border: 0.5px solid #d8e0f8;
  border-radius: 14px;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}

.val-card::before {
  content: '';
  position: absolute;
  bottom: -24px;
  right: -24px;
  width: 90px;
  height: 90px;
  background: var(--spp);
  border-radius: 50%;
}

.val-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--sp);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  position: relative;
}

.val-card__title {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 4px;
  position: relative;
}

.val-card__body {
  font-size: 13px;
  color: #555;
  line-height: 1.65;
  position: relative;
  margin: 0;
}

/* ============================================
   GALLERY
============================================ */
.gallery-mosaic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.gallery-cell {
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
}

.gallery-cell--tall {
  grid-row: span 2;
  aspect-ratio: auto;
}

.gallery-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

.gallery-cell:hover img { transform: scale(1.04); }

/* Lightbox */
.sharks-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.sharks-lightbox.open { display: flex; }

.sharks-lightbox__img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
}

/* ============================================
   SPONSOR CAROUSEL
============================================ */
.sponsor-carousel { overflow: hidden; position: relative; }
.sponsor-track { display: flex; gap: 16px; transition: transform 0.4s cubic-bezier(0.25,0.46,0.45,0.94); }
.sponsor-slide { flex-shrink: 0; }

.sponsor-tile {
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100px;
  text-decoration: none;
  border: 0.5px solid #d8e0f8;
  background: #fff;
  transition: border-color 0.15s, transform 0.15s;
}

.sponsor-tile:hover {
  border-color: var(--sp);
  transform: translateY(-2px);
  text-decoration: none;
}

.sponsor-tile--dark {
  background: #111;
  border-color: #333;
}

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

/* ============================================
   BOARD CARDS
============================================ */
.board-card {
  background: #fff;
  border: 0.5px solid #d8e0f8;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: border-color 0.15s;
}

.board-card:hover { border-color: var(--sp); }

.board-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--spp);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--spd);
  flex-shrink: 0;
}

.board-name { font-size: 14px; font-weight: 600; color: #1a1a1a; }
.board-role { font-size: 11px; color: var(--sp); margin-top: 2px; }
.board-email { font-size: 11px; color: #888; margin-top: 2px; }

/* ============================================
   FAQ ACCORDION
============================================ */
.faq-item {
  background: #fff;
  border: 0.5px solid #d8e0f8;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 10px;
}

.faq-q {
  padding: 1rem 1.25rem;
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  list-style: none;
}

.faq-q:hover { color: var(--sp); }

.faq-a {
  display: none;
  padding: 0.875rem 1.25rem 1rem;
  font-size: 13px;
  color: #555;
  line-height: 1.7;
  border-top: 0.5px solid #d8e0f8;
}

.faq-a.open { display: block; }

/* ============================================
   FOOTER
============================================ */
.sharks-footer {
  background: var(--spd);
  padding: 2.5rem 1.5rem;
  border-top: 2px solid var(--sp);
}

.sharks-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: space-between;
}

.sharks-footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0.75rem;
}

.sharks-footer__brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.sharks-footer__brand-name { color: #fff; font-size: 14px; font-weight: 600; }
.sharks-footer__tagline { font-size: 12px; color: var(--spl); line-height: 1.6; max-width: 220px; }
.sharks-footer__col-title { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--spl); font-weight: 600; margin-bottom: 0.75rem; }
.sharks-footer__links { display: flex; flex-direction: column; gap: 6px; }
.sharks-footer__link { font-size: 13px; color: #c5d3f5; text-decoration: none; }
.sharks-footer__link:hover { color: #fff; text-decoration: none; }

.sharks-footer__bottom {
  max-width: 1200px;
  margin: 1.5rem auto 0;
  padding-top: 1rem;
  border-top: 0.5px solid rgba(255,255,255,0.08);
  text-align: center;
  font-size: 12px;
  color: var(--spl);
}

/* ============================================
   WORDPRESS BLOCK EDITOR OVERRIDES
============================================ */
.wp-block-image img { border-radius: 10px; }
.wp-block-button__link { border-radius: 8px !important; }
.has-sp-color { color: var(--sp) !important; }
.has-spd-background-color { background-color: var(--spd) !important; }

/* ============================================
   UTILITY CLASSES
============================================ */
.text-center { text-align: center; }
.text-white  { color: #fff; }
.text-blue   { color: var(--sp); }
.text-navy   { color: var(--spd); }
.text-muted  { color: #666; }

.bg-white { background: #fff; }
.bg-light { background: #f5f7ff; }
.bg-blue  { background: var(--sp); }
.bg-navy  { background: var(--spd); }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}



/* ===========================================
   RESPONSIVE - MOBILE
   =========================================== */
@media (max-width: 768px) {

  .sharks-footer {
    padding: 2rem 1rem;
  }

  /* Brand + tagline stacked, centered */
  .sharks-footer__inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0;
  }

  .sharks-footer__inner > div:first-child {
    width: 100%;
    margin-bottom: 1.5rem;
  }

  .sharks-footer__brand {
    align-items: center;
    justify-content: center;
  }

  .sharks-footer__tagline {
    max-width: 100%;
    text-align: center;
  }

  /* Quick Links + Contact side by side in a flex row */
  .sharks-footer__inner > div:nth-child(2),
  .sharks-footer__inner > div:nth-child(3) {
    flex: 1 1 45%;
    min-width: 0;
    text-align: left;
  }

  .sharks-footer__inner > div:nth-child(2) {
    order: 1;
  }

  .sharks-footer__inner > div:nth-child(3) {
    order: 2;
  }

  /* Make the inner wrap so brand is full-width row 1,
     then cols 2+3 share row 2 */
  .sharks-footer__inner {
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: flex-start;
  }

  .sharks-footer__col-title {
    text-align: left;
  }

  .sharks-footer__links {
    align-items: flex-start;
  }

  .sharks-footer__bottom {
    text-align: center;
    padding-top: 1rem;
    font-size: 11px;
    width: 100%;
  }
}


/* Remove Forminator blue left border */
#forminator-module-819,
#forminator-module-823,
#forminator-module-831,
#forminator-module-834,
#forminator-module-836,
#forminator-module-839,
#forminator-module-841,
#forminator-module-844,
#forminator-module-850 {
  border-left: none !important;
  padding-left: 0 !important;
}