/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

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

body {
    font-family: 'Oxanium', 'Arial Black', 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    background-color: #ffffff;
    color: #030213;
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.container-lg {
    max-width: 1536px;
    margin: 0 auto;
    padding: 0 1rem;
}

.container-md {
    max-width: 1024px;
    margin: 0 auto;
    padding: 0 1rem;
}

.grid {
    display: grid;
    gap: 2rem;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

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

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.z-10 {
    z-index: 10;
}

.overflow-hidden {
    overflow: hidden;
}

.object-cover {
    object-fit: cover;
}

.w-full {
    width: 100%;
}

.h-full {
    height: 100%;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.space-y-4 > * + * {
    margin-top: 1rem;
}

.space-y-6 > * + * {
    margin-top: 1.5rem;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    background-color: #003049;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    opacity: 0.15;
}

.hero-bg img,
.hero-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 1s ease-in-out;
}

#hero-video {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

#hero-image {
    opacity: 1;
}

.hero-bg.video-loaded #hero-image {
    opacity: 0;
}

.hero-bg.video-loaded #hero-video {
    opacity: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 0 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 6rem;
    font-weight: 900;
    letter-spacing: -0.05em;
    margin-bottom: 1.5rem;
    line-height: 0.9;
}

.hero .highlight {
    color: #fcbf49;
}

.hero p {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 3rem;
    letter-spacing: 0.05em;
    line-height: 1.3;
}

/* Button */
.btn {
    display: inline-block;
    font-size: 1.25rem;
    padding: 1.5rem 3rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    border: 2px solid;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.2s;
    background-color: #fcbf49;
    color: #003049;
    border-color: #fcbf49;
}

.btn:hover {
    opacity: 0.9;
}

.btn-lg {
    font-size: 1.5rem;
    padding: 2rem 4rem;
    border: 4px solid;
    box-shadow: 8px 8px 0px 0px #003049;
    background-color: #003049;
    color: #fcbf49;
    border-color: #003049;
}

/* Info Section */
.info-section {
    padding: 3rem 0;
    background-color: #eae2b7;
}

.info-cards {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 2rem;
}

.info-card {
    padding: 1.5rem;
    border: 4px solid;
    background-color: white;
    border-radius: 0.5rem;
}

.info-card.what {
    border-color: #003049;
    box-shadow: 6px 6px 0px 0px #003049;
}

.info-card.who {
    border-color: #d62828;
    box-shadow: 6px 6px 0px 0px #d62828;
}

.info-card.where {
    border-color: #f77f00;
    box-shadow: 6px 6px 0px 0px #f77f00;
}

.info-card.when {
    border-color: #fcbf49;
    box-shadow: 6px 6px 0px 0px #fcbf49;
}

.info-card h2 {
    font-size: 1.875rem;
    font-weight: 900;
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
}

.info-card.what h2 { color: #003049; }
.info-card.who h2 { color: #d62828; }
.info-card.where h2 { color: #f77f00; }
.info-card.when h2 { color: #fcbf49; }

.info-card p {
    font-weight: 700;
    color: #374151;
}

/* Why Join Section */
.why-section {
    padding: 5rem 0;
    background-color: #003049;
    color: white;
}

.why-section h2 {
    font-size: 3rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 4rem;
    letter-spacing: -0.05em;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.why-item {
    text-align: center;
}

.why-image {
    width: 100%;
    height: 16rem;
    margin-bottom: 1.5rem;
    overflow: hidden;
    border-radius: 0.5rem;
    border: 4px solid;
}

.why-image.surf { border-color: #fcbf49; }
.why-image.local { border-color: #f77f00; }
.why-image.learn { border-color: #d62828; }

.why-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.why-item h3 {
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
}

.why-item p {
    font-size: 1.125rem;
    font-weight: 500;
}

.community-callout {
    padding: 2rem;
    border-radius: 0.5rem;
    border: 4px solid white;
    background-color: #fcbf49;
    color: #003049;
}

.community-callout h3 {
    font-size: 1.875rem;
    font-weight: 900;
    margin-bottom: 1rem;
    text-align: center;
}

.community-callout p {
    font-size: 1.25rem;
    font-weight: 700;
    text-align: center;
    max-width: 1024px;
    margin: 0 auto;
}

/* CTA Section */
.cta-section {
    padding: 5rem 0;
    background-color: #eae2b7;
}

.cta-content {
    max-width: 1024px;
    margin: 0 auto;
    text-align: center;
    padding: 0 1rem;
}

.cta-section h2 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 2rem;
    letter-spacing: -0.05em;
    color: #003049;
}

.cta-section p {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: #003049;
}

.cta-section .sub-text {
    font-size: 1.125rem;
    font-weight: 500;
    margin-top: 1.5rem;
    color: #003049;
}

/* Footer */
.footer {
    padding: 4rem 0;
    background-color: #003049;
    color: white;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 3rem;
}

.footer h3 {
    font-size: 1.875rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
}

.footer p {
    font-size: 1.125rem;
    font-weight: 500;
}

.footer .highlight {
    font-weight: 700;
    color: #fcbf49;
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    text-align: center;
    border-top: 2px solid #d62828;
}

.footer-bottom p {
    font-size: 1.25rem;
    font-weight: 900;
    letter-spacing: 0.05em;
}

/* Responsive Design */
@media (min-width: 768px) {
    .info-cards {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .why-section h2 {
        font-size: 5rem;
    }

    .why-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .cta-section h2 {
        font-size: 4.5rem;
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .hero h1 {
        font-size: 9rem;
    }
}

/* Signup Overlay */
.signup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 48, 73, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.signup-overlay.show {
    display: flex;
    opacity: 1;
}

.signup-modal {
    position: relative;
    background: white;
    border-radius: 1rem;
    padding: 3rem;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s ease-in-out;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.signup-overlay.show .signup-modal {
    transform: scale(1);
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: #666;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
    padding: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    color: #003049;
}

.signup-content h2 {
    font-size: 2.5rem;
    font-weight: 900;
    color: #003049;
    margin-bottom: 1rem;
    text-align: center;
    letter-spacing: -0.05em;
}

.signup-content > p {
    font-size: 1.125rem;
    font-weight: 500;
    color: #666;
    text-align: center;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: #003049;
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

.form-group input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #eae2b7;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-family: 'Oxanium', sans-serif;
    font-weight: 500;
    transition: border-color 0.2s;
    background: white;
}

.form-group input:focus {
    outline: none;
    border-color: #fcbf49;
    box-shadow: 0 0 0 3px rgba(252, 191, 73, 0.1);
}

.signup-submit-btn {
    width: 100%;
    margin-top: 1rem;
    position: relative;
    overflow: hidden;
}

.btn-loading {
    color: #003049;
}

.success-message,
.error-message {
    text-align: center;
}

.success-message h3,
.error-message h3 {
    font-size: 1.875rem;
    font-weight: 900;
    margin-bottom: 1rem;
    color: #003049;
}

.success-message p,
.error-message p {
    font-size: 1.125rem;
    font-weight: 500;
    margin-bottom: 2rem;
    color: #666;
}

.success-message .btn,
.error-message .btn {
    margin: 0 auto;
}

/* Mobile adjustments */
@media (max-width: 767px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 2.5rem;
    }

    .btn {
        font-size: 1rem;
        padding: 1rem 2rem;
    }
    
    .signup-modal {
        padding: 2rem;
        margin: 1rem;
    }
    
    .signup-content h2 {
        font-size: 2rem;
    }
    
    .close-btn {
        top: 0.75rem;
        right: 0.75rem;
    }
}
