/* Design tokens */
:root{
  --ink:#101622;                /* brand navy */
  --paper:#fff;
  --rule:#ccc;
  --fs-0: clamp(14px, 1.9vw, 16px);
  --fs-1: clamp(18px, 2.6vw, 22px);
  --fs-2: clamp(22px, 3.4vw, 28px);
  --sp-1: 10px; --sp-2: 14px; --sp-3: 20px; --sp-4: 28px;
  --radius: 10px;
  --header-h: 72px;            /* mobile header height; tweak if needed */
}

/* Base */
html{ -webkit-text-size-adjust:100%; scroll-behavior:smooth; }
*,*::before,*::after{ box-sizing:border-box; }
body{
  margin:0; min-height:100vh;
  display:flex; flex-direction:column;
  font: 400 var(--fs-0)/1.45 system-ui, -apple-system, Segoe UI, Arial, sans-serif;
  color:#111; background:var(--paper);
}
img{ max-width:100%; height:auto; display:block; }

/* Skip link */
.visually-hidden-focusable{
  position:absolute; left:-9999px; top:auto; width:1px; height:1px; overflow:hidden;
}
.visually-hidden-focusable:focus{
  position:static; width:auto; height:auto; padding:6px 10px; background:#ffe9a8;
}

/* ======================
   Header (mobile-first)
   ====================== */
header.site-header{
  position:fixed; top:0; left:0; right:0; z-index:1000;
  background:var(--ink); color:#fff;
  display:flex; align-items:center; gap:8px;
  padding:8px 12px;
  box-shadow: 0 2px 5px rgba(0,0,0,.1);
}
.header-logo{ width:auto; height:40px; margin-left:auto; margin-right:auto; }

/* Mobile menu button */
#menu-toggle{
  display:flex; align-items:center; justify-content:center;
  width:36px; height:36px;
  background:#707271; border:0; color:#fff; border-radius:6px;
  font-size:20px; line-height:1; cursor:pointer;
}

/* Slide-in sidebar (mobile nav) */
.sidebar{
  position:fixed; inset:0 auto 0 0;
  left:-100%; width:100%; height:100vh; z-index:1001;
  background:var(--ink); color:#fff;
  display:flex; flex-direction:column; align-items:center; gap:10px;
  padding:20px; overflow-y:auto; transition:left .3s ease;
}
.sidebar.active{ left:0; }
.sidebar-logo{ max-width:200px; }
.sidebar .close-btn{
  position:absolute; top:16px; right:16px; background:none; border:none;
  color:#fff; font-size:30px; cursor:pointer;
}
.sidebar ul{
  list-style:none; margin:10px 0 0; padding:0;
  display:flex; flex-direction:column; align-items:center; gap:6px;
}
.sidebar a{ color:#fff; text-decoration:none; font-size:clamp(18px, 6vw, 20px); padding:8px 0; }
.sidebar-bottom-image{ max-width:80%; height:auto; margin:8px auto 0; }

/* Desktop: hand control to your desktop header; hide mobile bits */
@media (min-width:1024px){
  .header-logo, #menu-toggle, header .sidebar{ display:none !important; }
  header.site-header{ position:static; padding:0; box-shadow:none; }
}

/* Push content below fixed header on mobile */
main{ flex:1; margin-top: var(--header-h); }

/* ======================
   Intro (above carousel)
   ====================== */
.intro{ display:none; }
@media (min-width:1024px){
  .intro{ display:block; text-align:center; padding: var(--sp-3) 7% var(--sp-2); }
  .intro p, .intro h3{ font-size: clamp(18px, 2vw, 22px); font-weight:700; margin:0; }
}

/* ======================
   Carousel (no-crop, scales down, keeps sliding)
   ====================== */

/* spacing below the carousel block */
.carousel { margin: 0 0 var(--sp-2); }

/* images: scale naturally, never crop embedded text */
#imageCarousel .carousel-item img {
  display: block;
  width: 100%;
  height: auto;            /* natural scaling */
  object-fit: contain;     /* do not crop */
  object-position: center;
  max-height: 65vh;        /* adjust to taste or remove */
}

/* optional: background color behind letterbox bars */
#imageCarousel .carousel-item { background: #0b0f14; }

/* captions */
.carousel-caption h2 { font-size: var(--fs-2); font-weight: 800; }
.carousel-caption p  { font-size: var(--fs-1); }

/* header offset / no gap under fixed header */
.site-header { margin: 0; }
#imageCarousel { margin-top: 0 !important; }
main { margin-top: var(--header-h) !important; }

/* responsive caps for slide height */
@media (min-width: 768px){
  #imageCarousel .carousel-item img { max-height: 60vh; }
}
@media (min-width: 1200px){
  #imageCarousel .carousel-item img { max-height: 520px; }
}

/* ======================
   Value Statement (intro2)
   ====================== */
.intro2{
  text-align:center; background:#fff; padding: var(--sp-3) 4%;
}
.intro2 p{ margin:6px auto; font-size: clamp(16px, 4.5vw, 18px); }
.intro2 .cta{
  display:inline-block; margin-top: 6px;
  padding:10px 14px; background:var(--ink); color:#fff; border-radius:var(--radius);
  text-decoration:none; font-weight:600;
}
@media (min-width:1024px){
  .intro2 p{ font-size: clamp(16px, 1.6vw, 18px); }
}

/* ======================
   “Keep Informed” band
   ====================== */
.center-container{
  display:flex; flex-direction:column; align-items:center; text-align:center;
  background:#d3d3d3; padding: 8px 0 16px;
  border-top:3px solid var(--rule); border-bottom:3px solid var(--rule);
}
.games_1{ font-size: var(--fs-2); font-weight:800; margin: 10px 0 4px; color:#242424; }
.center-container p{ margin:6px 5% 0; color:#242424; font-size: clamp(14px, 4.2vw, 18px); }
.games{
  width: min(92%, 420px); margin: 14px auto 4px;
  border-radius:8px; border:1px solid #ccc;
}

/* Desktop: text + image row */
@media (min-width:1024px){
  .center-container{ background:#fff; border-color:transparent; padding: 20px 0 10px; }
  .content-container{ display:flex; align-items:center; gap:20px; width:100%; padding: 0 7%; }
  .center-container p{ font-size: clamp(16px, 1.8vw, 20px); margin:0; flex:1; }
  .games{ width: 30%; min-width: 280px; margin:0; }
}

/* ======================
   Promo tiles (3-up)
   ====================== */
.index_add_container{
  display:grid; grid-template-columns: repeat(3, 1fr);
  gap:12px; padding: 10px 5% 16px;
  background:#f5f5f5;
}
.index_add_container a{ display:block; }
.add_1,.add_2,.add_3{
  width:100%; aspect-ratio:1/1; object-fit:cover;
  border-radius:6px; border:1px solid #cfcfcf;
}
@media (min-width:1024px){
  .index_add_container{ padding: 20px 15%; gap:16px; }
}

/* ======================
   Footer
   ====================== */
footer{ 
background:var(--ink); color:#fff; margin-top:auto;
}


.footer_container{
  display:flex; align-items:center; justify-content:space-between;
  gap:12px; padding: 14px 16px;
}
.footer_text{ display:flex; flex-direction:column; gap:4px; }
.footer_text p{
  margin:0; line-height:1.35; text-align:left;
  font-size: clamp(12px, 3.2vw, 14px);
}
.image-right{ width:120px; height:auto; }

.footer_copy{ text-align:center; padding: 6px 10px 14px; }
.footer_copy p{ margin:4px 0 0; font-size: clamp(12px, 2.8vw, 13px); opacity:.9; }

/* Stack on very small screens */
@media (max-width:420px){
  .footer_container{ flex-direction:column; align-items:flex-start; }
  .image-right{ align-self:center; }
}

.footer_social p {
  color: #f4f7fb;
  margin-bottom: 0.4rem;
}

.footer_social a {
  color: #f4f7fb;
  font-size: 0.4rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer_social p a {
  font-size: inherit !important;
  font-weight: inherit;
  line-height: inherit;
}

.footer_social a:hover {
  color: #00aaff; /* accent */
}

footer a {
  color: #f4f7fb !important;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
  color: #ffffff;
}














/* 1) Hide desktop header pieces on mobile */
.desktop.header,
.logo_d,
.navbar_menu_d,
.image-links_d { display: none !important; }

@media (min-width: 1024px){
  /* turn desktop header back on for large screens */
  .desktop.header { display: block !important; }
}

/* 2) Sidebar cleanup (no bullets, sane spacing) */
.sidebar > ul { 
  list-style: none !important; 
  padding: 0 !important; 
  margin: 10px 0 0 !important; 
}
.sidebar > ul > li { margin: 0 !important; }
.sidebar a { text-decoration: none; }

/* 3) Keep random header images from blowing up on mobile */
header img { height: auto; max-width: 100%; }

/* 4) Make sure the mobile header centers the small logo */
.header-logo { display: block; margin-left: auto; margin-right: auto; height: 40px; width: auto; }













/* === Footer spacing fix === */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* main grows to fill, footer sticks to bottom without extra gap */
main {
  flex: 1;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* normalize footer */
footer {
  margin-top: 0 !important;
  padding-top: 20px;
  padding-bottom: 20px;
  color: #f4f7fb;
}














/* ===== workshops.html scoped fixes ===== */

/* Kill horizontal overflow just on this page (belt + suspenders) */
.page-workshops, .page-workshops body, .page-workshops html { overflow-x: hidden; }

/* Rows outside a .container cause negative side margins -> overflow.
   You added .container in HTML (best), but keep this as safety. */
.page-workshops .event_container .row { margin-left: 0; margin-right: 0; }

/* Cap any wide elements to the viewport on this page */
.page-workshops * { max-width: 100%; }

/* Media safety */
.page-workshops img, .page-workshops video, .page-workshops iframe {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Some desktop styles used 100vw on header/logo images — that can overflow.
   Force 100% width on this page. */
@media (min-width: 1024px){
  .page-workshops .site-header,
  .page-workshops .desktop.header,
  .page-workshops .navbar_menu_d,
  .page-workshops .logo_d img,
  .page-workshops .header-logo {
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* ===== keep the top nav “stuck” on desktop too ===== */
@media (min-width: 1024px){
  .page-workshops .site-header{
    position: fixed !important;
    top: 0; left: 0; right: 0;
    z-index: 1000;
  }

  /* Make room for the fixed header */
  .page-workshops main{ margin-top: var(--header-h) !important; }
}

/* --- Workshops: keep the top CCT logo small on mobile --- */
.page-workshops .site-header { padding: 6px 12px; }

.page-workshops .header-logo {
  height: 44px;         /* lock the visual size */
  width: auto;          /* don't stretch */
  max-width: 180px;     /* safety cap */
  display: block;
}

/* if any global rule makes header images 100% wide, neutralize it here */
.page-workshops .site-header img.header-logo { width: auto !important; }








/* Workshops hero layout */
.workshop-hero .hero-media {
  background: #0f1a26;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,.15);
}

/* keep the image contained and not full-page tall */
.workshop-hero .hero-media img {
  display: block;
  width: 100%;
  height: clamp(220px, 36vh, 380px); /* smaller, responsive box */
  object-fit: cover;
  object-position: center;
}

/* article card */
.workshop-hero .hero-article {
  background: #fff;
  border: 1px solid #e7e7e7;
  border-radius: 12px;
  padding: 16px 18px;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

/* tighten things a bit on large screens */
@media (min-width: 992px){
  .workshop-hero .hero-article { padding: 22px; }
}


.page-workshops .site-header {
  border-bottom: 1px solid transparent;
}


















/* === Event Container Styling === */
.event_container article.row {
  position: relative;
  background: #fff;
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 1.5rem;
  border: 2px solid #cfd9e0;
  box-shadow:
	inset 8px 0 0 #101622,
	inset 10px 0 8px rgba(0,0,0,0.2),
	0 3px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.25s ease;
}

/* Hover effect */
.event_container article.row:hover {
  box-shadow:
    inset 8px 0 0 #0077b6, /* lighter blue stripe on hover */
    0 6px 16px rgba(0, 95, 140, 0.25);
  transform: translateY(-2px);
}

/* Event images */
.event_container .event-img {
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

/* Headings */
.event_container h3 {
  font-weight: 600;
  color: #0f1a26;
  margin-bottom: 0.25rem;
}

/* Text */
.event_container p {
  color: #444;
  line-height: 1.4;
  margin-bottom: 0;
}

/* Optional section background */
.event_container {
  background: #f8f9fb;
  border-radius: 12px;
  padding: 1.5rem;
}

/* === Date Badge === */
.event_container .date-badge {
  position: absolute;
  top: 12px;
  right: 16px;
  background: #005f8c;
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 6px 10px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  letter-spacing: 0.5px;
  transition: background 0.2s ease;
}

.event_container article.row:hover .date-badge {
  background: #0077b6;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .event_container article.row {
    padding: 14px 16px;
  }

  .event_container .date-badge {
    top: 8px;
    right: 12px;
    font-size: 0.8rem;
    padding: 5px 8px;
  }
}

/* Mobile layout fixes */
@media (max-width: 576px) {
  /* give the badge a place to live */
  .event_container article.row {
    padding-top: 48px;              /* reserve space for badge */
  }

  /* move badge away from the spine, make it smaller */
  .event_container .date-badge {
    top: 10px;
    right: 12px;                    /* keep on the right */
    left: auto;                     /* ensure not stretching */
    font-size: 0.8rem;
    padding: 5px 10px;
    border-radius: 999px;           /* pill */
    max-width: calc(100% - 24px);   /* prevent overflow */
    white-space: nowrap;
  }
}


















/* --- Repairs & Upgrades Page Styling --- */
.page-repairs main {
  overflow-x: hidden;
}

/* Hero */
.page-repairs section.text-center {
  background: #0f1a26;
  color: #fff;
  padding: 3rem 1rem;
}
.page-repairs section.text-center h1 {
  font-weight: 700;
  font-size: 1.6rem;
}
.page-repairs section.text-center p {
  font-size: 1rem;
  opacity: 0.9;
}

/* Cards / grids */
.page-repairs .bg-light {
  background-color: #f7f8fa !important;
}
.page-repairs .p-3.bg-white.border.rounded {
  transition: all 0.2s ease-in-out;
}
.page-repairs .p-3.bg-white.border.rounded:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Section titles */
.page-repairs h2.h4 {
  font-weight: 700;
  color: #0f1a26;
}
.page-repairs h3.h6 {
  color: #0f1a26;
}

/* Process boxes */
.page-repairs .border.rounded.h-100 {
  background: #fff;
  transition: all 0.2s ease;
}
.page-repairs .border.rounded.h-100:hover {
  background: #f9fafb;
  transform: translateY(-2px);
}

/* CTA buttons */
.page-repairs .btn-dark {
  background: #0f1a26;
  border: none;
}
.page-repairs .btn-dark:hover {
  background: #142335;
}

/* Footer CTA section */
.page-repairs section[style*="background:#0f1a26"] {
  padding: 2rem 1rem;
}
.page-repairs section[style*="background:#0f1a26"] .btn {
  border-radius: 50px;
}

/* Responsive tweaks */
@media (min-width: 768px) {
  .page-repairs section.text-center h1 {
    font-size: 2rem;
  }
  .page-repairs .p-3.bg-white.border.rounded {
    padding: 2rem;
  }
}

/* Fix any horizontal scroll */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

.page-repairs h3.h6 i.bi {
  color: #0f1a26;
  font-size: 1.2rem;
  vertical-align: middle;
}
.page-repairs h3.h6 {
  display: flex;
  align-items: center;
  gap: 6px;
}
.page-repairs .btn i.bi {
  vertical-align: middle;
  font-size: 1.1rem;
}

/* --- Repair Status Section --- */
.page-repairs .status-form input.form-control {
  border-radius: 8px 0 0 8px;
}
.page-repairs .status-form .btn {
  border-radius: 0 8px 8px 0;
}
.page-repairs #statusResult {
  color: #666;
}
.page-repairs .input-group-text i.bi {
  color: #0f1a26;
}
.page-repairs .input-group-text {
  border-right: none;
}
.page-repairs .form-control {
  border-left: none;
}


























/* ============================
   Desktop top nav: FIXED + visible
   ============================ */
@media (min-width: 1024px){

  /* Make sure the container can reorder children */
  .desktop.header{
    display: flex;
    flex-direction: column;
    /* Add top padding equal to nav height so images don't hide under it */
    padding-top: var(--desk-nav-h, 64px);
  }

  /* Put the nav bar at the top and keep it there */
  .navbar_menu_d{
    order: -1;                 /* nav above the images */
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1100;
    width: 100%;               /* avoid 100vw scroll issues */
    background: #101622 !important;
    box-shadow: 0 2px 6px rgba(0,0,0,.15);

    /* In case any earlier mobile rules hid it */
    display: flex !important;
    align-items: center;
    justify-content: space-between;
  }

  /* Prevent horizontal scrollbars from full-bleed images */
  html, body { overflow-x: hidden; }

  /* Make banner images behave and not exceed the viewport width */
  .logo_d img{
    width: 100%;
    height: auto;
    display: block;
  }

  /* Tidy nav list spacing */
  .navbar_d ul{
    margin: 0;
    padding: 0;
  }
}

@media (min-width:1024px){
  :root{ --desk-nav-h: 64px; }

  html, body { overflow-x: hidden; }

  /* only desktop gets this */
  body { padding-top: var(--desk-nav-h); }

  .desktop.header { padding-top: 0; }

  .navbar_menu_d{
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--desk-nav-h);
    z-index: 1100;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: #1f1f1f;
    color: #f4f4f4;
    padding: 8px 24px;
    box-shadow: 0 2px 6px rgba(0,0,0,.15);
  }

  .navbar-logo_d img{
    height: 40px;
    width: auto;
    display: block;
  }

  .navbar_d ul{
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
  }

  .navbar_d a{
    color: #f4f4f4;
    text-decoration: none;
    font-weight: 600;
  }
  .navbar_d a:hover{ text-decoration: underline; }

  .image-links_d {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .image-links_d img{
    height: 24px;
    width: auto;
    border-radius: 50%;
    display: block;
  }

  .logo_d, .logo_d img{
    max-width: 100%;
    width: 100%;
    height: auto;
    display: block;
  }
}

/* make sure mobile sidebar stays normal */
@media (max-width:1023px){
  .navbar_menu_d { display:none !important; }
}