/* ========================================
   Hardtack Racing - Sunset Sailing Website
   Built around the beautiful sunset logo
   ======================================== */

:root {
    /* Logo-inspired sunset palette */
    --sunset-coral: #FF8A65;
    --sunset-pink: #E91E63;
    --sunset-purple: #9C27B0;
    --sunset-teal: #00BCD4;
    --sunset-orange: #FF6B35;
    --water-blue: #4DD0E1;
    --deep-water: #0097A7;
    
    /* Neutrals */
    --white: #FFFFFF;
    --cream: #FFF8F0;
    --dark-blue: #0D47A1;
    --charcoal: #2C3E50;
    
    /* Typography */
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-broshk: 'BroshK', 'Bebas Neue', 'Impact', 'Franklin Gothic Bold', 'Arial Black', sans-serif;
    
    /* Shadows */
    --glow: 0 0 30px rgba(255, 138, 101, 0.3);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Custom Font */
@font-face {
    font-family: 'BroshK';
    src: url('./fonts/BroshK.woff') format('woff'),
         url('./fonts/BroshK.ttf') format('truetype'),
         url('./fonts/BroshK.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    line-height: 1.6;
    color: var(--charcoal);
    overflow-x: hidden;
}

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

/* ========================================
   HERO SECTION - SUNSET SCENE
   ======================================== */

.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    
    /* Balanced sunset gradient with logo colors */
    background: linear-gradient(180deg,
        rgba(255, 138, 101, 0.35) 0%,     /* Moderate coral glow */
        rgba(255, 138, 101, 0.47) 20%,    /* Medium coral midway */
        rgba(233, 30, 99, 0.48) 32%,      /* Pink area reduced midway */
        rgba(233, 30, 99, 0.55) 42%,      /* Shorter pink transition */
        rgba(156, 39, 176, 0.5) 57%,      /* Medium purple */
        rgba(156, 39, 176, 0.45) 72%,     /* Balanced purple */
        rgba(0, 188, 212, 0.3) 87%,       /* Medium teal */
        rgba(0, 188, 212, 0.25) 100%      /* Soft teal at horizon */
    );
}

/* Water layer with subtle sunset reflection */
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 45%;
    background: 
        /* Subtle sunset reflection at surface */
        radial-gradient(ellipse 100% 20% at 50% 0%, 
            rgba(255, 218, 185, 0.3) 0%,
            rgba(240, 178, 122, 0.2) 30%,
            transparent 60%
        ),
        /* Main water gradient */
        linear-gradient(180deg,
            rgba(0, 188, 212, 0.4) 0%,     /* Light blue water at surface */
            rgba(0, 188, 212, 0.6) 20%,    /* Clear blue water */
            rgba(0, 151, 167, 0.75) 50%,   /* Medium teal */
            rgba(0, 128, 128, 0.85) 75%,   /* Deeper teal */
            rgba(0, 96, 100, 0.95) 100%    /* Deep water blue */
        );
    z-index: 1;
}

/* White glow around logo transitioning to sunset colors */
.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle,
        rgba(255, 255, 255, 0.4) 0%,      /* Bright white center */
        rgba(255, 255, 255, 0.3) 10%,     /* Soft white glow */
        rgba(255, 248, 220, 0.2) 20%,     /* Warm white */
        rgba(255, 228, 181, 0.15) 30%,    /* Light peach */
        rgba(255, 182, 193, 0.1) 40%,     /* Soft pink */
        rgba(221, 160, 221, 0.05) 50%,    /* Light purple */
        transparent 60%
    );
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: var(--white);
}

.logo-container {
    margin-bottom: 2rem;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.6));
    transition: all 0.6s ease;
    transform: translateY(-20px);
    text-align: center;
    position: relative;
    z-index: 10;
}

.logo-container:hover {
    transform: translateY(-20px) scale(1.05);
    filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.8));
}

.logo {
    max-width: 432px;
    height: auto;
    width: 100%;
    display: block;
    margin: 0 auto;
}

.hero-subtitle {
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 1rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    opacity: 0.95;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    transform: translateY(-5rem);
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    transform: translateY(-4rem);
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.4s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(45deg, var(--sunset-coral), var(--sunset-pink));
    color: var(--white);
    box-shadow: 0 4px 20px rgba(233, 30, 99, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(233, 30, 99, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
}

.btn-wide {
    min-width: 250px;
    padding: 1.2rem 3rem;
    justify-content: center;
    text-align: center;
}

/* Scroll indicator */
.scroll-indicator {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 1000;
    animation: bounce 2s infinite;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.scroll-indicator:hover {
    transform: scale(1.1);
}

.chevron-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.chevron-left,
.chevron-right {
    width: 15px;
    height: 2px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 1px;
    position: absolute;
}

.chevron-left {
    transform: rotate(-135deg);
    left: -0.8em;
}

.chevron-right {
    transform: rotate(-45deg);
    right: -0.8em;
}

.chevron-container:nth-child(1) {
    animation: chevronPulse 1.5s infinite;
    animation-delay: 0s;
}

.chevron-container:nth-child(2) {
    animation: chevronPulse 1.5s infinite;
    animation-delay: 0.2s;
}

.chevron-container:nth-child(3) {
    animation: chevronPulse 1.5s infinite;
    animation-delay: 0.4s;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes chevronPulse {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

/* ========================================
   SECTIONS
   ======================================== */

section {
    padding: 4rem 0;
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

section h2 {
    font-family: var(--font-broshk);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    text-align: center;
    margin-bottom: 0.1rem;
    color: var(--white);
    text-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.5),
        0 4px 8px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(255, 255, 255, 0.2);
    font-weight: normal;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Section-specific header colors - opposing colors for contrast */
.fun-facts h2 {
    color: #FCE4EC;
}

.trophy-case h2 {
    color: #E0F2F1;
}

.racing-gallery h2 {
    color: #FCE4EC;
}

.join-section h2 {
    color: #E0F7FA;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.85);
    margin-top: -0.5rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Fun Facts Section */
.fun-facts {
    background: linear-gradient(180deg,
        rgba(0, 96, 100, 0.8) 0%,
        rgba(0, 128, 128, 0.7) 30%,
        rgba(0, 151, 167, 0.6) 70%,
        rgba(0, 188, 212, 0.5) 100%
    );
}

.facts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.fact-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    padding: 2rem 1.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

/* All fact cards have same light glass appearance by default */

.fact-card:nth-child(1):hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 15px 50px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    background: rgba(255, 138, 101, 0.3);
    backdrop-filter: blur(25px);
}

.fact-card:nth-child(2):hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 15px 50px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    background: rgba(233, 30, 99, 0.3);
    backdrop-filter: blur(25px);
}

.fact-card:nth-child(3):hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 15px 50px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    background: rgba(156, 39, 176, 0.3);
    backdrop-filter: blur(25px);
}

.fact-card:nth-child(4):hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 15px 50px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    background: rgba(0, 188, 212, 0.3);
    backdrop-filter: blur(25px);
}

.fact-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.fact-card h3 {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    color: var(--white);
    margin-bottom: 1rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.fact-card p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.skipper-photo {
    margin-bottom: 1rem;
}

.skipper-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--sunset-pink);
    transition: all 0.3s ease;
}

.skipper-card:hover .skipper-image {
    transform: scale(1.05);
    border-color: var(--sunset-coral);
}

.skipper-card p a {
    color: var(--sunset-pink);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.skipper-card p a:hover {
    color: var(--sunset-coral);
    text-decoration: underline;
}

.boat-photo {
    margin-bottom: 1rem;
}

.boat-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 40%;
    border: 3px solid var(--sunset-coral);
    transition: all 0.3s ease;
}

.boat-card:hover .boat-image {
    transform: scale(1.05);
    border-color: var(--sunset-pink);
}

.motto-photo, .homeport-photo {
    margin-bottom: 1rem;
}

.motto-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--sunset-coral);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    margin: 0 auto;
}

.homeport-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    border: 3px solid var(--sunset-coral);
    transition: all 0.3s ease;
}

.motto-card:hover .motto-placeholder {
    transform: scale(1.05);
    border-color: var(--sunset-pink);
}

.homeport-card:hover .homeport-image {
    transform: scale(1.05);
    border-color: var(--sunset-pink);
}

/* Trophy Case */
.trophy-case {
    background: linear-gradient(180deg,
        rgba(156, 39, 176, 0.6) 0%,
        rgba(233, 30, 99, 0.55) 30%,
        rgba(255, 138, 101, 0.5) 70%,
        rgba(255, 182, 193, 0.45) 100%
    );
}

.trophies-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.trophy-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    padding: 2rem 1.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

/* All trophy cards have same light glass appearance by default */

.trophy-card:nth-child(1):hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 15px 50px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    background: rgba(0, 188, 212, 0.3);
    backdrop-filter: blur(25px);
}

.trophy-card:nth-child(2):hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 15px 50px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    background: rgba(255, 138, 101, 0.3);
    backdrop-filter: blur(25px);
}

.trophy-card:nth-child(3):hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 15px 50px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    background: rgba(233, 30, 99, 0.3);
    backdrop-filter: blur(25px);
}

.trophy-card:nth-child(4):hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 15px 50px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    background: rgba(156, 39, 176, 0.3);
    backdrop-filter: blur(25px);
}

.trophy-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.trophy-card h3 {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    color: var(--white);
    margin-bottom: 1rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.trophy-card p {
    color: var(--white);
    font-style: italic;
    line-height: 1.6;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Racing Gallery */
.racing-gallery {
    background: linear-gradient(180deg,
        rgba(0, 151, 167, 0.5) 0%,
        rgba(0, 188, 212, 0.4) 30%,
        rgba(77, 208, 225, 0.35) 70%,
        rgba(135, 206, 235, 0.3) 100%
    );
    min-height: 100vh;
    display: block;
    align-items: flex-start;
    padding: 2rem 0;
}

/* Instagram Widget Feed */
.instagram-widget-container {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 1.5rem;
    margin: 1rem auto;
    width: 85%;
    max-width: 900px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    transition: all 0.4s ease;
    overflow: hidden;
}

/* Scroll indicator */
.instagram-widget-container::after {
    content: "↕ Scroll for more";
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    opacity: 0.8;
    pointer-events: none;
    z-index: 10;
    animation: scrollHint 3s ease-in-out infinite;
}

@keyframes scrollHint {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 0.4; }
}

.instagram-widget-container:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 15px 50px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.lightwidget-widget {
    width: 100% !important;
    height: 400px !important;
    border-radius: 15px !important;
    overflow: auto !important;
    display: block !important;
    scrollbar-width: auto;
    scrollbar-color: rgba(255, 255, 255, 0.5) rgba(255, 255, 255, 0.1);
    scrollbar-gutter: stable;
}

.lightwidget-widget::-webkit-scrollbar {
    width: 10px;
    -webkit-appearance: none;
}

.lightwidget-widget::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    margin: 5px 0;
}

.lightwidget-widget::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.lightwidget-widget::-webkit-scrollbar-thumb:hover {
    background-color: rgba(255, 255, 255, 0.7);
}

/* Placeholder styling until widget is configured */
.instagram-placeholder {
    text-align: center;
}

.placeholder-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.placeholder-post {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2rem 1rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    font-size: 2rem;
}

.placeholder-post:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.placeholder-post p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-top: 1rem;
    margin-bottom: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.placeholder-text {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    font-style: italic;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.instagram-footer {
    text-align: center;
    padding: 2rem 0 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 2rem;
    clear: both;
    width: 100%;
}

.instagram-footer p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.instagram-footer a {
    color: var(--sunset-coral);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.instagram-footer a:hover {
    color: var(--sunset-pink);
    text-decoration: underline;
}


.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

.gallery-item {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.4s ease;
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
}

.gallery-placeholder {
    height: 200px;
    background: linear-gradient(45deg, var(--sunset-teal), var(--water-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--white);
}

.gallery-item p {
    padding: 1.5rem;
    text-align: center;
    font-weight: 500;
    color: var(--charcoal);
}

.gallery-link {
    text-align: center;
    margin-top: 2rem;
}

/* Join Section */
.join-section {
    background: linear-gradient(135deg,
        var(--sunset-purple) 0%,
        var(--deep-water) 100%
    );
    color: var(--white);
}

.join-section h2 {
    color: var(--white);
    background: none;
    -webkit-text-fill-color: var(--white);
}

.join-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
    align-items: start;
}

.join-requirements h3,
.join-contact h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.join-requirements ul {
    list-style: none;
}

.join-requirements li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    text-decoration: none;
    color: var(--white);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.contact-method:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
}

/* Footer */
.footer {
    background: var(--charcoal);
    color: var(--white);
    padding: 3rem 0 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-logo-img {
    max-width: 120px;
    height: auto;
    margin-bottom: 0.2rem;
    filter: opacity(0.9);
}
.footer-address p {
    margin: 0.2rem 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    line-height: 1.4;
}
.footer-logo h3 {
    font-family: var(--font-serif);
    background: linear-gradient(45deg, var(--sunset-coral), var(--sunset-teal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 8rem;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a:hover {
    color: var(--sunset-coral);
}
.footer-links svg {
    flex-shrink: 0;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    opacity: 0.7;
    font-style: italic;
}
.footer-credit {
    margin-top: 0.2rem;
    font-size: 0.8rem;
    opacity: 0.6;
}
.footer-credit a {
    color: var(--sunset-coral);
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer-credit a:hover {
    color: var(--sunset-pink);
}
.blessing-flags {
    position: relative;
    top: -1rem;
    margin-bottom: 3rem;
    text-align: center;
    opacity: 0.9;
    line-height: 1;
}

.flag-line {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    width: 100%;
    padding: 0 1rem;
}

.flag-line::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--sunset-coral);
    z-index: 0;
}

.signal-flag {
    width: 12px;
    height: 18px;
    display: block;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
    animation: flag-wave 4s ease-in-out infinite;
    transform-origin: top center;
    box-sizing: border-box;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    filter: drop-shadow(0 0 4px rgba(255, 138, 101, 0.3));
}

.signal-flag:nth-child(1n) { animation-delay: 0s; }
.signal-flag:nth-child(2n) { animation-delay: -1s; }
.signal-flag:nth-child(3n) { animation-delay: -2s; }
.signal-flag:nth-child(4n) { animation-delay: -3s; }

@keyframes flag-wave {
    0%, 100% { 
        transform: translateY(2px) rotateZ(-1deg);
    }
    25% { 
        transform: translateY(2px) rotateZ(1deg);
    }
    50% { 
        transform: translateY(2px) rotateZ(0deg);
    }
    75% { 
        transform: translateY(2px) rotateZ(0.5deg);
    }
}

.flag-pattern {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.flag-spacer {
    width: 4px;
    background: transparent;
    flex-shrink: 0;
}

/* International Maritime Signal Flags */
/* Swallowtail flags - double-peaked cutout at the bottom edge */
.alpha-pattern,
.bravo-pattern {
    clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 50% 85%, 0% 100%);
}

.alpha-pattern {
    background: white;
    position: relative;
}
.alpha-pattern::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 54%;
    background: #0044bb;
}

.delta-pattern {
    background: 
        linear-gradient(90deg, 
            #ffcc00 0%, #ffcc00 25%, 
            #0044bb 25%, #0044bb 75%, 
            #ffcc00 75%, #ffcc00 100%);
}

.echo-pattern {
    background: #0044bb;
    position: relative;
}
.echo-pattern::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: #ee0000;
}

.foxtrot-pattern {
    background: white;
}
.foxtrot-pattern::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    background: #ee0000;
    transform: translate(-50%, -50%) rotate(45deg);
}

.golf-pattern {
    background: 
        linear-gradient(180deg, 
            #ffcc00 0%, #ffcc00 16.66%, 
            #0044bb 16.66%, #0044bb 33.33%,
            #ffcc00 33.33%, #ffcc00 50%,
            #0044bb 50%, #0044bb 66.66%,
            #ffcc00 66.66%, #ffcc00 83.33%,
            #0044bb 83.33%, #0044bb 100%);
}

.india-pattern {
    background: #ffcc00;
}
.india-pattern::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6px;
    height: 6px;
    background: #000000;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.lima-pattern {
    background: #ffcc00;
}
.lima-pattern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 50%;
    background: #000000;
}
.lima-pattern::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50%;
    height: 50%;
    background: #000000;
}

.november-pattern {
    background: 
        repeating-conic-gradient(from 0deg, #0044bb 0deg 90deg, white 90deg 180deg) 0 0 / 4px 6px;
}

.oscar-pattern {
    background: #ffcc00;
    position: relative;
}
.oscar-pattern::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ee0000;
    clip-path: polygon(100% 0%, 100% 100%, 0% 100%);
}

.romeo-pattern {
    background: #ffcc00;
}
.romeo-pattern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(90deg, transparent 45%, #ee0000 47%, #ee0000 53%, transparent 55%),
        linear-gradient(0deg, transparent 45%, #ee0000 47%, #ee0000 53%, transparent 55%);
}

.sierra-pattern {
    background: white;
    position: relative;
}
.sierra-pattern::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    background: #0044bb;
    transform: translate(-50%, -50%);
}

.whiskey-pattern {
    background: #0044bb;
}
.whiskey-pattern::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 20%;
    right: 20%;
    bottom: 20%;
    background: white;
}
.whiskey-pattern::after {
    content: '';
    position: absolute;
    top: 35%;
    left: 35%;
    right: 35%;
    bottom: 35%;
    background: #ee0000;
}

/* Flag Tooltips */
.tooltip-flag {
    position: relative;
}
.flag-tooltip {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--charcoal);
    color: var(--white);
    padding: 4px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    font-family: var(--font-serif);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s ease;
    z-index: 1001;
    border: 1px solid var(--sunset-coral);
}
.flag-tooltip::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-bottom: 4px solid var(--charcoal);
}
.tooltip-flag:hover .flag-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(-2px);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
    .logo {
        max-width: 324px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 250px;
        justify-content: center;
    }
    
    .join-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    section {
        padding: 3rem 0;
        min-height: auto;
        display: block;
    }
    
    .facts-grid,
    .trophies-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .instagram-widget-container {
        padding: 1rem;
        margin: 1rem auto;
    }
    
    .placeholder-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .lightwidget-widget {
        height: 300px !important;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .logo {
        max-width: 270px;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .fact-card,
    .trophy-card {
        padding: 2rem 1.5rem;
    }
    
    .instagram-widget-container {
        padding: 0.5rem;
    }
    
    .lightwidget-widget {
        height: 250px !important;
    }
}