/* Modern, trustworthy design for Boat Builder's Championships */

:root {
    /* Primary colors */
    --primary: #1B4965;      /* Deep navy blue - trustworthy, professional */
    --secondary: #5FA8A3;    /* Teal - fresh, modern */
    --accent: #CAE9FF;       /* Light blue - friendly, approachable */
    
    /* Text colors */
    --text-dark: #2B2D42;    /* Dark blue-gray for text */
    --text-light: #FFFFFF;   /* White text */
    
    /* Background colors */
    --bg-light: #FFFFFF;     /* White background */
    --bg-dark: #1B4965;      /* Dark background */
    --bg-overlay: rgba(27, 73, 101, 0.85); /* Dark overlay for sections */
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    
    /* Typography */
    --font-primary: 'Segoe UI', system-ui, -apple-system, sans-serif;
    --font-heading: Georgia, 'Times New Roman', serif;
}

/* Base styles */
body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    margin: 0;
    padding: 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary);
    margin-bottom: var(--spacing-sm);
    line-height: 1.3;
}

h1 {
    font-size: 3rem;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: var(--spacing-md);
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--secondary);
    margin: var(--spacing-xs) auto 0;
}

h3 {
    font-size: 1.75rem;
    color: var(--primary);
    margin-top: var(--spacing-md);
}

p {
    margin-bottom: var(--spacing-sm);
    font-size: 1.1rem;
}

/* Layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-md);
}

section {
    padding: var(--spacing-xl) 0;
}

/* Hero section */
.hero-section {
    background: linear-gradient(var(--bg-overlay), var(--bg-overlay)),
                url('../assets/images/imgp6761.jpg');
    background-size: cover;
    background-position: center;
    color: var(--text-light);
    padding: var(--spacing-xl) 0;
    text-align: center;
}

.hero-section h1 {
    color: var(--text-light);
    font-size: 3.5rem;
    margin-bottom: var(--spacing-sm);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.competition-date {
    font-size: 2rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: var(--spacing-md);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    padding: var(--spacing-xs) var(--spacing-md);
    display: inline-block;
    border: 2px solid var(--accent);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

.hero-section p {
    font-size: 1.4rem;
    max-width: 800px;
    margin: 0 auto var(--spacing-lg);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Navigation */
.main-menu-bar {
    margin-top: var(--spacing-lg);
}

.main-menu-list {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    list-style: none;
    padding: 0;
    margin: 0;
    background: rgba(255, 255, 255, 0.1);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: 50px;
    backdrop-filter: blur(5px);
}

.main-menu-list li {
    margin: 0;
}

.main-menu-list .nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.main-menu-list .nav-link:hover {
    background-color: var(--accent);
    color: var(--primary);
}

/* Section with background */
.section-with-bg {
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.section-with-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-overlay);
    z-index: 1;
}

.section-with-bg .container {
    position: relative;
    z-index: 2;
    background-color: var(--bg-light);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Lists */
ul, ol {
    padding-left: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

li {
    margin-bottom: var(--spacing-xs);
    line-height: 1.6;
}

/* Cards */
.card {
    background-color: var(--bg-light);
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
}

.card-body {
    padding: var(--spacing-md);
}

/* Forms */
.form-control {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0.75rem;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 2px rgba(95, 168, 163, 0.2);
}

.form-label {
    font-weight: 500;
    margin-bottom: var(--spacing-xs);
}

/* Buttons */
.btn-primary {
    background-color: var(--primary);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
}

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

/* Gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--spacing-md);
    padding: var(--spacing-md) 0;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

/* Phone number obfuscation */
.phone-number {
    font-size: 1rem;
    color: var(--text-light);
    margin-top: var(--spacing-xs);
    cursor: pointer;
    display: inline-block;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.phone-number:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.phone-number span {
    display: inline;
    user-select: none;
}

.phone-owner {
    margin-left: var(--spacing-xs);
    opacity: 0.8;
}

/* Footer */
footer {
    background-color: var(--primary);
    color: var(--text-light);
    padding: var(--spacing-lg) 0;
    margin-top: var(--spacing-xl);
}

footer h5 {
    color: var(--text-light);
    margin-bottom: var(--spacing-sm);
    font-size: 1.2rem;
    font-weight: 600;
}

footer p {
    margin-bottom: var(--spacing-xs);
    font-size: 1rem;
}

footer a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--text-light);
    text-decoration: underline;
}

/* Responsive design */
@media (max-width: 768px) {
    :root {
        --spacing-xl: 3rem;
        --spacing-lg: 2rem;
        --spacing-md: 1.5rem;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .main-menu-list {
        flex-direction: column;
        gap: var(--spacing-xs);
        padding: var(--spacing-sm);
    }

    .container {
        padding: var(--spacing-sm);
    }

    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

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

section {
    animation: fadeIn 0.8s ease-out;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    cursor: pointer;
}

.lightbox.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 30px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
    z-index: 1001;
}

.lightbox-close:hover {
    color: var(--accent);
} 