/* --- GLOBAL VARIABLES & RESET --- */
:root {
    --slate-blue: #465561; 
    --slate-dark: #2c363e; 
    --text-light: #f5f5f5;
    --text-dark: #222222;
    --font-serif: 'Playfair Display', Georgia, serif; 
    --font-sans: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- HEADER & NAVIGATION --- */
header {
    background-color: var(--slate-blue);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 2.4rem;
    position: relative;
    z-index: 1000;
    border-bottom: 4px solid #000000;
}

header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../assets/images/website header.png');
    background-size: cover;
    background-position: center;
    opacity: 0.8;
    pointer-events: none;
    z-index: 0;
}

header > * {
    position: relative;
    z-index: 1;
}

/* Container for the logo */
.logo-container {
    display: flex;
    align-items: center;
}

/* Brand Logo */
.logo-container .brand-logo {
    height: 130px; /* The prominent size you liked */
    width: auto;
    max-width: 100%; 
    object-fit: contain; 
    display: block;
    transition: height 0.3s ease;
}

/* Compact logo for mobile/smaller screens */
@media (max-width: 768px) {
    .logo-container .brand-logo {
        height: 80px;
    }
}

/* Floating header on the home page (makes the logo and buttons float over the hero) */
body.home-page header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background-color: transparent;
    border-bottom: none;
}

body.home-page header::before {
    display: none;
}

/* Dropdown Menu Styling */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    background-color: var(--slate-dark);
    color: var(--text-light);
    font-size: 0.9rem;
    font-family: var(--font-sans);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    padding: 10px 20px;
    transition: all 0.3s ease;
}

.dropbtn:hover {
    background-color: #1a2228;
    transform: scale(1.02);
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 100%; 
    background-color: rgba(245, 245, 245, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    min-width: 200px;
    box-shadow: 0px 12px 24px 0px rgba(0,0,0,0.2);
    z-index: 9999;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    padding-top: 10px; /* Internal gap */
}

.dropdown-content a {
    color: var(--text-dark);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    border-bottom: 1px solid #ddd;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.dropdown-content a:hover {
    background-color: var(--slate-dark);
    color: var(--text-light);
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* --- HERO SECTION (COMING SOON) --- */
.hero-section {
    width: 100%;
    background-color: #2a333a; 
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 4px solid #000000;
}

body.home-page .hero-section {
    height: 41.67vw; /* 2.4:1 aspect ratio to match steelhead.png exactly */
    min-height: 41.67vw;
}

@media (max-width: 768px) {
    body.home-page .hero-section {
        height: auto;
        min-height: 500px; /* Comfortably fits the announcement on mobile */
    }
}

.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Front Page Hero Image (Can be changed independently from secondary pages) */
    background-image: url('../assets/images/steelhead.png'); 
    background-size: cover;
    background-position: center;
    transform-origin: center;
    animation: kenBurns 30s ease-in-out infinite alternate;
    z-index: 0;
}

.overlay {
    background-color: rgba(0, 0, 0, 0.45); /* Softened overlay for better contrast */
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    position: relative;
}

/* Translucent gray announcement box overlaying the trout - not needed anymore as per user request */
.announcement-box {
    display: none;
}

/* Clean, modern overlay text directly on the transparent overlay */
.hero-content {
    text-align: center;
    max-width: 560px; /* Reduced to square up the text layout */
    padding: 2.5rem;
    background-color: rgba(42, 51, 58, 0.45); /* Matched to the top button's color and transparency */
    backdrop-filter: blur(4px); /* Matched to the top button's blur */
    -webkit-backdrop-filter: blur(4px);
    border-radius: 12px;
    z-index: 2;
    margin: 20px;
}

.hero-content h2 {
    font-family: var(--font-serif);
    font-size: 3rem;
    color: var(--text-light);
    margin-bottom: 1.2rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.hero-content p {
    font-family: var(--font-sans);
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--text-light);
    font-weight: 400;
    opacity: 0.95;
}

/* Slightly transparent floating dropdown button on home page only */
body.home-page .dropbtn {
    background-color: rgba(42, 51, 58, 0.45); /* Matched to overlay opacity */
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}

body.home-page .dropbtn:hover {
    background-color: rgba(26, 34, 40, 0.75);
    transform: scale(1.02);
}

.hero-section h1 {
    color: var(--text-light);
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 5rem;
    letter-spacing: 6px;
    text-shadow: 2px 4px 10px rgba(0,0,0,0.5);
    text-align: center;
    padding: 0 20px;
    animation: slideUp 1s cubic-bezier(0.25, 1, 0.5, 1) forwards, buoyancy 6s ease-in-out infinite 1s;
}

/* Show hero titles on subpages */
body:not(.home-page) .hero-section h1 {
    display: none;
}

.mini-hero h1 {
    color: var(--text-light);
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 3.5rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    text-align: center;
    z-index: 2;
    padding: 0 20px;
    text-shadow: 2px 4px 10px rgba(0,0,0,0.5);
}

@media (max-width: 768px) {
    .mini-hero h1 {
        font-size: 2.2rem;
        letter-spacing: 2px;
    }
}

/* --- GLOBAL MINI HERO (SUBPAGES) --- */
.mini-hero {
    height: 20vh;
    background-color: #2a333a;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 4px solid #000000;
}

.mini-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.7);
    z-index: 0;
}

/* Default Background for Secondary Pages (Mini-Hero) */
.mini-hero:not([style*="background-image"])::before {
    background-image: url('../assets/images/beach hero.jpg');
}

/* --- FOOTER --- */
footer {
    background-color: var(--slate-blue);
    color: var(--text-light);
    padding: 2.5rem 2.4rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    position: relative;
    border-top: 4px solid #000000;
}

footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../assets/images/footer.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center top;
    opacity: 0.6;
    pointer-events: none;
    z-index: 0;
}

footer > * {
    position: relative;
    z-index: 1;
}

.footer-column {
    flex: 1;
    min-width: 200px;
    max-width: 400px;
}

.footer-column h3 {
    font-family: var(--font-sans);
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.footer-column p {
    margin-bottom: 0.5rem;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    line-height: 1.6;
    color: #e0e0e0; 
}

.footer-column.support {
    padding-top: 0;
}

.footer-column.newsletter {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

.footer-column.newsletter .gift-card-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--slate-dark);
    color: var(--text-light);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.9rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-top: 1.5rem;
    width: fit-content;
}

.footer-column.newsletter .gift-card-btn:hover {
    background-color: #1a2228;
    transform: scale(1.02);
}

.footer-column.socials {
    display: flex;
    justify-content: center;
}

.footer-column.socials .column-inner {
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.socials .contact-info {
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.socials .social-link {
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.socials .social-link svg {
    width: 24px;
    height: 24px;
    stroke: #ffffff;
    transition: stroke 0.3s ease, transform 0.3s ease;
}

.socials .social-link:hover svg {
    stroke: #b0c4d4;
    transform: translateY(-2px);
}

.signup-form {
    display: flex;
    margin-top: 1rem;
    max-width: 380px;
    width: 100%;
    justify-content: flex-end;
}

.signup-form input {
    padding: 10px 15px;
    border: none;
    border-radius: 4px 0 0 4px;
    outline: none;
    flex: 1;
    font-family: var(--font-sans);
    font-size: 0.9rem;
}

.signup-form button {
    padding: 10px 20px;
    background-color: var(--slate-dark);
    color: var(--text-light);
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.9rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.signup-form button:hover {
    background-color: #1a2228;
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.footer-bottom {
    width: 100%;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 1.5rem;
    margin-top: 1.5rem;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    color: rgba(245, 245, 245, 0.6);
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 768px) {
    /* Keep the header on a single row on mobile to prevent stacking and save space */
    header {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 0.6rem 1.2rem !important;
        gap: 0 !important;
    }
    
    /* Shrink the logo to fit elegantly on mobile side-by-side with menu */
    .logo-container .brand-logo {
        height: 55px !important; 
    }

    /* Shrink the subpage hero titles slightly */
    .hero-section h1 {
        font-size: 2.2rem; 
    }

    /* On mobile, make the header static so it doesn't float/overlap content */
    body.home-page header {
        position: relative !important;
        background-color: var(--slate-blue) !important;
        border-bottom: 4px solid #000000 !important;
    }
    
    body.home-page header::before {
        display: block !important;
        opacity: 0.8 !important;
    }

    /* Change hero section to stack image and text vertically on mobile (prevents image clipping) */
    body.home-page .hero-section {
        display: flex;
        flex-direction: column;
        height: auto;
        min-height: auto;
        border-bottom: none;
    }

    /* The background image element becomes a relative banner at the top of the stack */
    body.home-page .hero-section::before {
        position: relative;
        display: block;
        width: 100%;
        height: 41.67vw; /* Native 2.4:1 ratio of the image, so no clipping! */
        background-size: cover;
        animation: none; /* Disable Ken Burns animation on mobile to save performance */
    }

    /* The overlay now sits below the image as a clean text container */
    body.home-page .overlay {
        position: relative;
        width: 100%;
        height: auto;
        background-color: var(--slate-dark); /* Premium dark slate background for the text */
        padding: 2.5rem 1rem;
        display: flex;
        align-items: center;
        justify-content: center;
        border-bottom: 4px solid #000000;
    }

    .hero-content {
        padding: 0;
        margin: 0;
        max-width: 90%;
        background-color: transparent !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        border-radius: 0;
    }

    .hero-content h2 {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
    }

    .hero-content p {
        font-size: 0.95rem;
        line-height: 1.65;
    }

    /* Stack the footer columns into a single vertical column */
    footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 3rem 1.5rem;
        gap: 3rem;
    }

    .footer-column {
        max-width: 100%;
        align-items: center !important;
        text-align: center !important;
    }

    .footer-column.socials .column-inner,
    .footer-column.newsletter {
        align-items: center !important;
        text-align: center !important;
    }

    /* Center the newsletter form */
    .signup-form {
        justify-content: center;
        width: 100%;
    }

    /* Reduce content section padding for mobile */
    .content-section {
        padding: 3rem 1.5rem !important;
    }

    /* Adjust waves for mobile */
    .waves {
        height: 60px;
        min-height: 60px;
    }
}

/* --- CONTENT SECTION & UI ELEMENTS --- */
.content-section {
    padding: 6rem 2.4rem;
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.8;
}

.content-section.wide {
    max-width: 1200px;
}

.signature {
    margin-top: 3rem;
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.2rem;
    color: var(--slate-dark);
}

.cta-container {
    margin-top: 4rem;
    text-align: center;
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background-color: var(--slate-dark);
    color: var(--text-light);
    text-decoration: none;
    font-family: var(--font-sans);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: 2px solid var(--slate-dark);
}

.cta-button:hover {
    background-color: transparent;
    color: var(--slate-dark);
    transform: translateY(-2px);
}

/* --- WAVE STYLING --- */
.wave-container {
    position: absolute;
    bottom: 0;
    width: 100%;
    line-height: 0;
    z-index: 2;
}

.waves {
    position: relative;
    width: 100%;
    height: 15vh;
    margin-bottom: -7px; /* Fix for safari gap */
    min-height: 100px;
    max-height: 150px;
}

/* Secondary page wave adjustments - half height and 25% more transparent */
.mini-hero .waves {
    height: 7.5vh;
    min-height: 50px;
    max-height: 75px;
}

.mini-hero .parallax > use {
    opacity: 0.75;
}

/* Animation for the waves */
.parallax > use {
    animation: move-forever 25s cubic-bezier(.55,.5,.45,.5) infinite;
}
.parallax > use:nth-child(1) {
    animation-delay: -2s;
    animation-duration: 7s;
}
.parallax > use:nth-child(2) {
    animation-delay: -3s;
    animation-duration: 10s;
}
.parallax > use:nth-child(3) {
    animation-delay: -4s;
    animation-duration: 13s;
}
.parallax > use:nth-child(4) {
    animation-delay: -5s;
    animation-duration: 20s;
}

@keyframes move-forever {
    0% { transform: translate3d(-90px,0,0); }
    100% { transform: translate3d(85px,0,0); }
}

/* --- ANIMATIONS & DYNAMIC UX --- */
.fade-in {
    animation: fadeIn 1.5s ease-in-out forwards;
    opacity: 0;
}

.slide-up {
    animation: slideUp 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    opacity: 0;
    transform: translateY(40px);
    animation-delay: 0.4s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes kenBurns {
    0% { transform: scale(1); }
    100% { transform: scale(1.1) translate(1%, 1%); }
}

@keyframes buoyancy {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Form Message Styling */
.form-message {
    margin-top: 10px;
    font-size: 0.85rem;
    color: #a8d5ba;
    animation: fadeIn 0.5s ease-in forwards;
}