/*
Theme Name: Blueband Sports
Theme URI: https://www.bluebandsports.com/
Author: Blueband Sports
Description: Lightweight theme for the Blueband Sports website. All page content, the header and the footer are built and edited with Elementor (Templates > Theme Builder).
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bbs
*/

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: "Poppins", Arial, sans-serif;
	font-size: 16px;
	line-height: 1.6;
	color: #333;
	background: #666; /* the old design shows this grey behind transparent sections */
	-webkit-font-smoothing: antialiased;
}
img, video, iframe { max-width: 100%; height: auto; }
img { border: 0; vertical-align: middle; }
a { color: #ff5a00; text-decoration: none; }
a:hover { color: #e04f00; }
h1, h2, h3, h4, h5, h6 { margin: 0 0 .5em; line-height: 1.25; font-weight: 700; }
p { margin: 0 0 1em; }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
	position: fixed; top: 8px; left: 8px; z-index: 100000; width: auto; height: auto; clip: auto;
	padding: 10px 16px; background: #fff; color: #000; font-weight: 600;
}

/* Content column: same width as the old theme (1200px content + 20px side padding) */
.bbs-container { max-width: 1240px; margin: 0 auto; padding: 0 20px; }

/* Kept from the old site's custom CSS */
.chk_color_text span { color: #000 !important; font-size: 17px !important; font-weight: 700 !important; }
.h3tit { border-left: 4px solid #00b6ef; padding-left: 8px; }
.ybut { display: inline-block; background: #00b5ed; color: #fff; padding: 10px 20px; border-radius: 10px; font-size: 18px; font-weight: 700; line-height: 1.2; }
.ybut:hover { background: #ff5a00; color: #fff; }

/* Pop-ups (team bios, club details): see assets/js/modal.js */
.bbs-modal { display: none; }
.elementor-editor-active .bbs-modal { display: block; outline: 2px dashed #ff5a00; outline-offset: 4px; }
.elementor-editor-active .bbs-modal::before { content: "Pop-up content (hidden on the page)"; display: block; font-size: 11px; color: #ff5a00; margin-bottom: 4px; }
.bbs-modal.is-open {
	display: flex; align-items: center; justify-content: center;
	position: fixed; inset: 0; z-index: 10000; margin: 0 !important; padding: 16px;
	width: 100% !important; max-width: none !important; background: rgba(0, 0, 0, .7);
}
.bbs-modal.is-open > .elementor-widget-container {
	position: relative; width: 100%; max-width: 720px; max-height: 85vh; overflow: auto;
	background: #fff; color: #222; border-radius: 10px; padding: 36px 32px 24px; text-align: left;
	font-size: 15px; line-height: 1.7; box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
}
.bbs-modal h3 { font-size: 22px; font-weight: 800; color: #000; margin: 0 0 4px; }
.bbs-modal .bbs-modal-sub { color: #ff5a20; font-weight: 700; margin-bottom: 14px; }
.bbs-modal-close {
	position: absolute; top: 8px; right: 10px; width: 36px; height: 36px; border: 0; border-radius: 50%;
	background: #f2f2f2; color: #000; font-size: 24px; line-height: 1; cursor: pointer;
}
.bbs-modal-close:hover { background: #ff5a00; color: #fff; }
html.bbs-modal-lock { overflow: hidden; }

/* Elementor header/footer templates (inc/site-templates.php) */
.bbs-site-header.is-sticky { position: sticky; top: 0; z-index: 99; }
.admin-bar .bbs-site-header.is-sticky { top: 32px; }
@media (max-width: 782px) { .admin-bar .bbs-site-header.is-sticky { top: 46px; } }
@media (max-width: 600px) { .admin-bar .bbs-site-header.is-sticky { top: 0; } }

/* Fallback header/footer: only used if no Elementor header/footer template is published */
.bbs-header { position: sticky; top: 0; z-index: 99; background: #fff; box-shadow: 0 1px 0 rgba(0,0,0,.06); }
.bbs-header__inner { max-width: 1200px; margin: 0 auto; padding: 8px 16px; display: flex; align-items: center; gap: 24px; }
.bbs-header .custom-logo { width: 125px; height: auto; }
.bbs-header nav { flex: 1; }
.bbs-header nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 20px; }
.bbs-header nav ul ul { display: none; }
.bbs-header nav a { color: #1e1e1e; font-size: 14px; font-weight: 600; }
.bbs-footer { background: #000; color: #fff; text-align: center; padding: 24px 16px; font-size: 14px; }

/* Plain (non-Elementor) pages such as a new draft */
.bbs-content { max-width: 1140px; margin: 40px auto; padding: 0 16px; }
