/* ==========================================================================
   style.css - Layout and Styling for Bedford Rowing Events
   ========================================================================== */

/* Global Reset & Typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: #f8f9fa;
    color: #333333;
    line-height: 1.6;
}

/* Integrated Black Top Band */
.club-header {
    background-color: #111111;
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid #0056b3; /* Visual connection accent line */
}

.club-brand a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 0.5px;
}

/* Hamburger Menu Icon Structure */
.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    background: transparent;
    border: none;
    z-index: 1001;
}

.menu-toggle .bar {
    height: 3px;
    width: 100%;
    background-color: #ffffff;
    border-radius: 10px;
    transition: all 0.3s ease;
}

/* Hamburger Transition to An 'X' When Active */
.menu-toggle.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}
.menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Slide-out Navigation Drawer Menu */
.nav-menu {
    position: fixed;
    top: 0;
    right: -100%; /* Hidden off-screen right by default */
    width: 260px;
    height: 100vh;
    background-color: #111111;
    padding-top: 80px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    transition: right 0.3s ease;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
}

/* Triggered State via JavaScript */
.nav-menu.active {
    right: 0;
}

/* Menu Item Link Styling */
.nav-menu a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 12px 25px;
    border-left: 4px solid transparent;
    transition: all 0.2s ease;
}

.nav-menu a:hover, 
.nav-menu a.active {
    background-color: #222222;
    border-left-color: #0056b3;
    color: #3b91ff;
}

/* General Layout Elements for Content */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('hero-rowing.jpg') center/cover no-repeat;
    color: #ffffff;
    text-align: center;
    padding: 120px 20px;
}

.hero-section h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.hero-section p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 25px;
}

.btn-primary {
    display: inline-block;
    background-color: #0056b3;
    color: #ffffff;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background 0.2s ease;
}

.btn-primary:hover {
    background-color: #004085;
}

/* Responsive Handling */
@media (max-width: 768px) {
    .hero-section h1 { font-size: 2rem; }
    .hero-section p { font-size: 1rem; }
}

/* Update Header Rules for Logo Alignment */
.club-header {
    background-color: #111111;
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid #0056b3; /* Official club blue visual accent link line */
}

.header-right-container {
    display: flex;
    align-items: center;
    gap: 25px;
}

/* Constrains the 223x250px logo beautifully inside the thin black band */
.club-logo-img {
    height: 45px;
    width: auto;
    display: block;
    transition: transform 0.2s ease;
}

.club-logo-img:hover {
    transform: scale(1.05);
}

/* Adjust slide-out drawer active border colors to use club blue */
.nav-menu a:hover, 
.nav-menu a.active {
    background-color: #222222;
    border-left-color: #0056b3; 
    color: #3b91ff; 
}

