/* Complex Hockey - Final Version */
/* Based on Version 3: Bold Dynamic Theme with enhancements */

/* Fallback font with adjusted metrics to reduce CLS during font swap */
@font-face {
    font-family: 'Bebas Neue Fallback';
    src: local('Arial Narrow'), local('Arial');
    size-adjust: 75%;
    ascent-override: 100%;
    descent-override: 25%;
}

:root {
    --color-bg: #0a0a0a;
    --color-bg-elevated: #141414;
    --color-bg-card: #1a1a1a;
    --color-primary: #DC3545;
    --color-primary-glow: rgba(220, 53, 69, 0.4);
    --color-text: #ffffff;
    --color-text-muted: #8a8a8a;
    --color-border: #2a2a2a;
    --font-display: 'Bebas Neue', 'Bebas Neue Fallback', sans-serif;
    --font-body: 'Roboto', sans-serif;
    --container-max: 1200px;
    --spacing-section: 120px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
}

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

/* Typography */
h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 400;
    letter-spacing: 2px;
}

/* Explicit h1 sizing to prevent browser default scaling deprecation warning */
h1 {
    font-size: 2.5rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
    clip-path: polygon(0 0, 100% 0, 95% 100%, 0 100%);
}

.btn-primary:hover {
    background-color: #e84555;
    box-shadow: 0 0 30px var(--color-primary-glow);
    transform: translateX(5px);
}

.btn-cta {
    background-color: transparent;
    color: white;
    border: 2px solid var(--color-primary);
    padding: 12px 24px;
}

.btn-cta:hover {
    background-color: var(--color-primary);
}

.btn-event {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    padding: 12px 24px;
}

.btn-event:hover {
    background-color: var(--color-primary);
    color: white;
}

.btn-large {
    padding: 20px 40px;
    font-size: 15px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

/* Larger logo */
.logo img,
.logo-large {
    height: 85px;
    width: auto;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 48px;
}

.nav-list a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: color 0.3s ease;
    position: relative;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width 0.3s ease;
}

.nav-list a:hover {
    color: white;
}

.nav-list a:hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    width: 30px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
}

.mobile-menu-toggle span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: white;
    transition: all 0.3s ease;
}

.mobile-menu-toggle span:first-child {
    top: 0;
}

.mobile-menu-toggle span:last-child {
    bottom: 0;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(30%);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(10, 10, 10, 0.95) 0%,
        rgba(10, 10, 10, 0.7) 50%,
        rgba(10, 10, 10, 0.9) 100%
    );
}

.diagonal-accent {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, var(--color-primary) 100%);
    opacity: 0.1;
    clip-path: polygon(50% 0, 100% 0, 100% 100%, 0% 100%);
}

.hero .container {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding-top: 120px;
    padding-bottom: 80px;
    width: 100%;
}

.hero-content {
    max-width: 700px;
}

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--color-primary);
    margin-bottom: 30px;
}

.pulse {
    width: 8px;
    height: 8px;
    background-color: var(--color-primary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.5); }
}

.hero-title {
    font-size: clamp(60px, 12vw, 120px);
    line-height: 0.95;
    margin-bottom: 30px;
    min-height: 200px; /* Prevent CLS during font load */
}

/* CSS-based hero title animation (replaces JS to avoid forced reflows) */
.title-line {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

.title-line:nth-child(1) { animation-delay: 0s; }
.title-line:nth-child(2) { animation-delay: 0.15s; }
.title-line:nth-child(3) { animation-delay: 0.3s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.title-line {
    display: block;
}

.title-line.highlight {
    color: var(--color-primary);
    -webkit-text-stroke: 2px var(--color-primary);
    -webkit-text-fill-color: transparent;
}

.hero-text {
    font-size: 18px;
    color: var(--color-text-muted);
    margin-bottom: 40px;
    max-width: 450px;
}

.hero-services {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-bottom: 20px;
}

.mini-service {
    display: flex;
    align-items: center;
    gap: 16px;
}

.service-num {
    font-family: var(--font-display);
    font-size: 24px;
    color: var(--color-primary);
}

.service-name {
    font-size: 14px;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.scroll-indicator span {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-text-muted);
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--color-primary), transparent);
    animation: scrollLine 2s infinite;
}

@keyframes scrollLine {
    0% { opacity: 0; transform: scaleY(0); transform-origin: top; }
    50% { opacity: 1; transform: scaleY(1); }
    100% { opacity: 0; transform: scaleY(0); transform-origin: bottom; }
}

/* Section Styles */
.section-header {
    margin-bottom: 60px;
}

.section-header.centered {
    text-align: center;
}

.section-number {
    display: block;
    font-family: var(--font-display);
    font-size: 14px;
    color: var(--color-primary);
    letter-spacing: 3px;
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(40px, 6vw, 64px);
    text-transform: uppercase;
}

/* Services Section */
.services {
    padding: var(--spacing-section) 0;
    background-color: var(--color-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    background-color: var(--color-border);
}

.service-card {
    background-color: var(--color-bg);
    padding: 50px 40px;
    position: relative;
    transition: all 0.4s ease;
    cursor: pointer;
}

.service-card::before {
    content: attr(data-index);
    position: absolute;
    top: 40px;
    right: 40px;
    font-family: var(--font-display);
    font-size: 80px;
    color: var(--color-border);
    line-height: 1;
    transition: color 0.4s ease;
}

.service-card:hover {
    background-color: var(--color-bg-elevated);
}

.service-card:hover::before {
    color: var(--color-primary);
    opacity: 0.3;
}

.service-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 30px;
}

.service-icon svg {
    width: 100%;
    height: 100%;
    color: var(--color-primary);
}

.service-card h3 {
    font-size: 28px;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.service-card p {
    color: var(--color-text-muted);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 30px;
}

.service-arrow {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.4s ease;
}

.service-arrow svg {
    color: var(--color-primary);
}

.service-card:hover .service-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Founders Section - Version 1 inspired style */
.founders {
    padding: var(--spacing-section) 0;
    background-color: var(--color-bg-elevated);
    position: relative;
    overflow: hidden;
}

.about-diagonal {
    position: absolute;
    top: 0;
    left: -10%;
    width: 120%;
    height: 100%;
    background-color: var(--color-primary);
    opacity: 0.05;
    transform: skewX(-5deg);
}

.founders-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    position: relative;
    z-index: 1;
}

.founder-card-v1 {
    background-color: var(--color-bg);
    border-radius: 16px;
    padding: 40px;
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
}

.founder-card-v1:hover {
    transform: translateY(-5px);
    border-color: var(--color-primary);
}

.founder-card-v1 .founder-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--color-primary);
    margin-bottom: 16px;
    display: block;
}

.founder-card-v1 h3 {
    font-family: var(--font-display);
    font-size: 32px;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.founder-card-v1 p {
    color: var(--color-text-muted);
    font-size: 15px;
    line-height: 1.7;
}

/* Testimonials Section */
.testimonials {
    padding: var(--spacing-section) 0;
    background-color: var(--color-bg);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial-card {
    background-color: var(--color-bg-elevated);
    padding: 50px;
    position: relative;
}

.testimonial-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 20px;
    border: 3px solid var(--color-primary);
}

.testimonial-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.quote-mark {
    font-family: var(--font-display);
    font-size: 120px;
    color: var(--color-primary);
    opacity: 0.2;
    position: absolute;
    top: 20px;
    right: 30px;
    line-height: 1;
}

.testimonial-card blockquote {
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.author-name {
    font-family: var(--font-display);
    font-size: 22px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.author-role {
    font-size: 14px;
    color: var(--color-primary);
}

/* Training Options Section */
.training-options {
    padding: var(--spacing-section) 0;
    background-color: var(--color-bg-elevated);
}

.training-intro {
    text-align: center;
    color: var(--color-text-muted);
    font-size: 16px;
    margin-bottom: 50px;
}

.training-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.training-card {
    display: block;
    background-color: var(--color-bg);
    padding: 50px;
    text-decoration: none;
    color: inherit;
    position: relative;
    transition: all 0.3s ease;
}

.training-card:hover {
    transform: translateX(10px);
}

.training-stripe {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: var(--color-primary);
}

.training-content h3 {
    font-family: var(--font-display);
    font-size: 32px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.training-content p {
    color: var(--color-text-muted);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 24px;
}

.training-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-primary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
}

/* Statistics Section */
.statistics {
    padding: var(--spacing-section) 0;
    background-color: var(--color-bg);
}

.stats-date {
    text-align: center;
    color: var(--color-text-muted);
    font-size: 16px;
    margin-bottom: 60px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: center;
}

.stat-item {
    padding: 40px 20px;
}

.stat-item .stat-number {
    font-family: var(--font-display);
    font-size: 72px;
    color: var(--color-primary);
    display: block;
    margin-bottom: 16px;
    line-height: 1;
}

.stat-item .stat-label {
    font-size: 16px;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Video Section */
.video-showcase {
    padding: var(--spacing-section) 0;
    background-color: var(--color-bg-elevated);
}

.video-wrapper {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
}

.video-wrapper video {
    width: 100%;
    height: auto;
    display: block;
}

/* Contact Section */
.contact {
    padding: var(--spacing-section) 0;
    background-color: var(--color-primary);
    position: relative;
    overflow: hidden;
}

.contact-diagonal {
    position: absolute;
    top: 0;
    right: -10%;
    width: 60%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2);
    transform: skewX(-10deg);
}

.contact-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.contact-text h2 {
    font-size: clamp(48px, 8vw, 80px);
    line-height: 1;
    text-transform: uppercase;
}

.contact-text .highlight {
    -webkit-text-stroke: 2px white;
    -webkit-text-fill-color: transparent;
}

.contact-action {
    text-align: right;
}

.contact-action p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.contact .btn-primary {
    background-color: white;
    color: var(--color-primary);
}

.contact .btn-primary:hover {
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.4);
}

/* Footer */
.footer {
    background-color: var(--color-bg);
    padding: 60px 0 30px;
    border-top: 1px solid var(--color-border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 28px;
    letter-spacing: 2px;
    color: white;
}

.footer-brand p {
    color: var(--color-text-muted);
    font-size: 14px;
    margin-top: 8px;
}

.footer-links {
    display: flex;
    gap: 40px;
}

.footer-links a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid var(--color-border);
    text-align: center;
}

.footer-bottom p {
    color: var(--color-text-muted);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== SUBPAGE STYLES ===== */

/* Subpage Hero */
.subpage-hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
}

.hero-video-bg {
    position: absolute;
    inset: 0;
}

.hero-video-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-video-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(10, 10, 10, 0.85) 0%,
        rgba(10, 10, 10, 0.6) 50%,
        rgba(10, 10, 10, 0.85) 100%
    );
}

.subpage-hero .hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
}

.subpage-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(48px, 10vw, 96px);
    text-transform: uppercase;
    margin-bottom: 16px;
}

.subpage-hero .hero-subtitle {
    font-size: 24px;
    color: var(--color-text-muted);
}

/* Subpage Content */
.subpage-content {
    padding: var(--spacing-section) 0;
    background-color: var(--color-bg);
}

.content-intro {
    max-width: 800px;
    margin: 0 auto 60px;
    text-align: center;
}

.content-intro .lead {
    font-size: 24px;
    line-height: 1.6;
    color: var(--color-text);
}

.content-block {
    max-width: 800px;
    margin: 0 auto 50px;
}

.content-block h2 {
    font-family: var(--font-display);
    font-size: 36px;
    text-transform: uppercase;
    margin-bottom: 24px;
    color: var(--color-primary);
}

.content-block h3 {
    font-family: var(--font-display);
    font-size: 24px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.content-block p {
    font-size: 17px;
    line-height: 1.8;
    color: var(--color-text-muted);
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 20px;
    font-size: 17px;
    line-height: 1.7;
    color: var(--color-text-muted);
}

.feature-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 12px;
    height: 12px;
    background-color: var(--color-primary);
}

.feature-list li strong {
    color: var(--color-text);
}

/* Contact CTA */
.subpage-cta {
    text-align: center;
    margin-top: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.contact-reveal-btn {
    background-color: var(--color-primary);
    color: white;
    border: none;
    padding: 20px 40px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.contact-reveal-btn:hover {
    background-color: #e84555;
    box-shadow: 0 0 30px var(--color-primary-glow);
}

.contact-options {
    display: none;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.contact-options.active {
    display: flex;
}

.contact-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 30px;
    background-color: var(--color-bg-elevated);
    border: 2px solid var(--color-border);
    color: var(--color-text);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    min-width: 140px;
}

.contact-option:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.contact-option svg {
    color: var(--color-primary);
}

/* Contact options styling for the red contact section */
.contact .contact-options {
    margin-top: 20px;
}

.contact .contact-option {
    background-color: white;
    border: 2px solid white;
    color: var(--color-primary);
}

.contact .contact-option:hover {
    background-color: transparent;
    border-color: white;
    color: white;
}

.contact .contact-option svg {
    color: var(--color-primary);
}

.contact .contact-option:hover svg {
    color: white;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .founders-grid {
        grid-template-columns: 1fr;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .training-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    :root {
        --spacing-section: 80px;
    }

    .header .container {
        height: 70px;
    }

    .logo img,
    .logo-large {
        height: 55px;
    }

    .nav {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: var(--color-bg);
        padding: 0;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }

    .nav.active {
        opacity: 1;
        pointer-events: auto;
    }

    .nav-list {
        flex-direction: column;
        gap: 0;
        background-color: var(--color-bg);
        padding: 60px 0 0 0;
        width: 100%;
    }

    .nav-list li {
        background-color: var(--color-bg);
        width: 100%;
    }

    .nav-list li a {
        display: block;
        padding: 20px 24px;
        background-color: var(--color-bg);
        width: 100%;
    }

    .nav-list a {
        font-size: 24px;
    }

    .btn-cta {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .hero .container {
        flex-direction: column;
        align-items: flex-start;
        padding-bottom: 120px;
    }

    .hero-services {
        display: none;
    }

    .scroll-indicator {
        display: none;
    }

    .service-card::before {
        font-size: 50px;
        top: 30px;
        right: 30px;
    }

    .service-card {
        padding: 40px 30px;
    }

    .founder-card-v1 {
        padding: 30px;
    }

    .testimonial-card {
        padding: 40px 30px;
    }

    .training-card {
        padding: 40px 30px;
    }

    .stat-item .stat-number {
        font-size: 56px;
    }

    .contact-content {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .contact-action {
        text-align: center;
    }

    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }

    /* Subpage mobile */
    .subpage-hero {
        min-height: 50vh;
    }

    .content-intro .lead {
        font-size: 20px;
    }

    .content-block h2 {
        font-size: 28px;
    }

    .contact-options {
        flex-direction: column;
        align-items: center;
    }

    .contact-option {
        width: 100%;
        max-width: 300px;
    }
}
