/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Skip Navigation Link for ADA Compliance */
.skip-nav {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100000;
    border-radius: 0 0 4px 0;
}

.skip-nav:focus {
    top: 0;
}

/* Enhanced Focus Indicators for ADA Compliance */
*:focus {
    outline: 2px solid #4A90E2;
    outline-offset: 2px;
}

/* Navigation links - more subtle focus state */
.nav-menu a:focus,
.btn-nav:focus {
    outline: 2px solid rgba(74, 144, 226, 0.5);
    outline-offset: 0;
    border-radius: 4px;
}

button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #4A90E2;
    outline-offset: 2px;
}

/* Regular links keep standard focus for ADA */
a:focus:not(.nav-menu a):not(.btn-nav) {
    outline: 2px solid #4A90E2;
    outline-offset: 2px;
}

:root {
    --primary-color: #2c5282;
    --secondary-color: #1a1a1a;
    --accent-color: #5fa3f0;
    --text-light: #ffffff;
    --text-dark: #333333;
    --gray-light: #f5f5f5;
    --gray-medium: #999999;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-hover: 0 5px 20px rgba(0,0,0,0.15);
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background: var(--secondary-color);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-light);
}

.logo-img {
    width: 85px;
    height: 85px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

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

.logo-text-wrapper {
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.logo-subtext {
    font-size: 0.8rem;
    color: var(--accent-color);
    letter-spacing: 2px;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2rem;
}

.nav-menu a {
    color: var(--text-light);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
}

.btn-nav {
    background: var(--primary-color);
    padding: 0.5rem 1.5rem;
    border-radius: 5px;
    color: var(--text-light) !important;
}

.btn-nav:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
}

.mobile-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-light);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    background-image: url('/assets/images/IMG_6427.jpg');
    background-size: cover;
    background-position: center 30%;
    background-repeat: no-repeat;
    padding-top: 95px;
    transition: background-image 1.5s ease-in-out;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(1px);
}

/* Main content adjustment for fixed navbar */
main {
    padding-top: 0;
}

/* Only add padding-top for pages that aren't the homepage */
main:not(.homepage-main) {
    padding-top: 95px;
}

/* Page content sections to account for fixed nav */
.page-header,
.page-hero {
    padding-top: 120px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(1px);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--text-light);
    padding: 2rem 0;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.8);
}

.hero-title .accent {
    color: var(--accent-color);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    animation: fadeInUp 1s ease 0.2s both;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    animation: fadeInUp 1s ease 0.4s both;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    display: inline-block;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--text-light);
}

.btn-primary:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(196, 30, 58, 0.3);
}

.btn-secondary {
    background: var(--secondary-color);
    color: var(--text-light);
    border: 2px solid var(--secondary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Benefits Section */
.benefits {
    padding: 5rem 0;
    background: var(--gray-light);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--secondary-color);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.benefit-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.benefit-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.benefit-icon svg {
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease;
}

.benefit-card:hover .benefit-icon svg {
    transform: scale(1.1);
}

.benefit-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

/* Programs Preview */
.programs-preview {
    padding: 5rem 0;
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.program-card {
    background: var(--secondary-color);
    color: var(--text-light);
    padding: 2rem;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.program-card:hover {
    transform: scale(1.05);
    background: var(--primary-color);
}

.program-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.program-card p {
    margin-bottom: 1rem;
    opacity: 0.9;
}

.btn-link {
    color: var(--text-light);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.btn-link:hover {
    transform: translateX(5px);
}

/* CTA Section */
.cta {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: var(--text-light);
}

.cta-content {
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.calendly-inline-widget {
    margin: 0 auto;
    max-width: 600px;
}

/* Location Section */
.location {
    padding: 5rem 0;
    background: var(--gray-light);
}

.location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.location-info h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

.location-info address {
    font-style: normal;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.location-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.hours-list {
    list-style: none;
    line-height: 2;
}

/* Social Media Icons */
.social-links a i,
.social-icons a i {
    font-size: 1.5rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-links a:hover i,
.social-icons a:hover i {
    transform: translateY(-3px) scale(1.1);
    color: var(--accent-color);
}

/* Footer */
.footer {
    background: var(--secondary-color);
    color: var(--text-light);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--text-light);
    opacity: 0.8;
}

.footer-section a:hover {
    opacity: 1;
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    font-size: 1.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    opacity: 0.7;
}

/* Footer Logo */
.footer-logo {
    margin-bottom: 1.5rem;
}

.footer-logo img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    border-radius: 50%;
    opacity: 0.9;
    transition: opacity 0.3s ease, transform 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.footer-logo img:hover {
    opacity: 1;
    transform: scale(1.05);
}

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

/* Mobile Responsive */
@media (max-width: 768px) {
    .logo-img {
        width: 70px;
        height: 70px;
    }
    
    .footer-logo img {
        width: 100px;
        height: 100px;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background: var(--secondary-color);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .mobile-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .benefits-grid,
    .programs-grid {
        grid-template-columns: 1fr;
    }

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

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
}

/* Facility Gallery Styles */
.facility-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.facility-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.facility-image:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

/* Lightbox for full image view */
.lightbox {
    display: none;
    position: fixed;
    z-index: 10000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 4px;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    line-height: 1;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: #f1f1f1;
    transform: scale(1.1);
}

/* Improved image display for program images */
.program-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    object-position: center 40%;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.program-image img:hover {
    transform: scale(1.02);
}

/* Specific positioning for better face visibility */
.schedule-image {
    object-position: center 35% !important;
}

.instructor-image img {
    object-position: center 30% !important;
}

@media (max-width: 768px) {
    .facility-gallery {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .facility-image {
        height: 200px;
    }
    
    .program-image img {
        height: 250px;
    }
    
    /* Adjust main content for mobile fixed nav */
    main {
        padding-top: 80px;
    }
    
    .page-header,
    .page-hero {
        padding-top: 100px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
}