﻿/* Global Reset and Base Styles */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


#collection-section {
    padding: 50px 0;
    background-color: var(--color-bg-dark); /* Ensure it uses your dark blue background */
}

/* 1. Desktop / Large Screen Layout (Using CSS Grid) */
#collection-grid {
    display: grid;
    /* Define 4 equal columns for the large screen layout */
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto;
    gap: 10px; /* Space between grid items */
    max-width: 1400px; /* Limit max width like your other containers */
    margin: 30px auto;
}

/* Image Item Styling */
.grid-item {
    overflow: hidden;
    border-radius: 5px; /* Optional: adds a subtle rounding */
}

.collection-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures images cover the container without distortion */
    display: block;
}

/* Specific Grid Sizing for Desktop Layout */
.grid-item-large {
    /* Span the large image across 2 columns and 4 rows (to match the height of 4 small images) */
    grid-column: span 2;
    grid-row: span 4;
}

.grid-item-small {
    /* Ensure the small images occupy 1 column and 2 rows to fill the space vertically */
    grid-column: span 2;
    grid-row: span 2;
}

.main-title-section {
    /* Set a reasonable default margin to clear the ~110px tall header */
    margin-top: 10px !important;
}
/* Button Container for Centering */
.main-title-buttons {
    display: flex;
    justify-content: center; /* Center buttons horizontally */
    gap: 30px; /* Space between the two buttons */
    margin-top: 30px; /* Space below the subtitle */
    padding: 0 15px; /* Add padding to prevent buttons hitting edges on small screens */
}

/* Base Button Styling */
.custom-button {
    font-family: 'Amatic SC', cursive; /* Use your existing header/nav font */
    font-size: 2.5rem; /* Large, bold text */
    font-weight: 600;
    text-decoration: none;
    padding: 10px 25px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    white-space: nowrap; /* Prevent button text from wrapping */
}

/* Primary Button Style (View Collection) */
.button-primary {
    background-color: var(--color-rose); /* Yellow/Gold fill */
    color: var(--color-bg-dark); /* Dark text */
    border: 2px solid var(--color-rose);
}

    .button-primary:hover {
        background-color: var(--color-gold);
        border-color: var(--color-gold);
    }

/* Secondary Button Style (Contact) */
.button-secondary {
    background-color: transparent; /* Transparent fill */
    color: var(--color-rose); /* Yellow/Gold text */
    border: 2px solid var(--color-rose);
}

    .button-secondary:hover {
        background-color: var(--color-rose);
        color: var(--color-bg-dark);
    }

/* Social Slider Styling and Positioning */
.social-slider {
    /* Make the slider stick to a position on the screen */
    position: fixed;
    top: 150px; /* Position below the header (~110px tall) */
    right: 10px;
    z-index: 1005; /* Must be higher than header (1000) and footer (1000) */
    display: flex;
    flex-direction: column; /* Stack icons vertically */
    gap: 15px; /* Spacing between icons */
    padding: 10px;
}

    .social-slider a {
        color: var(--color-rose); /* Use your existing color variable */
        font-size: 1.8rem; /* Set a readable size for the icons */
        transition: color 0.3s ease;
    }

        .social-slider a:hover {
            color: var(--color-hover);
        }

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Sue Ellen Francisco', cursive;
    font-size: 16px;
    line-height: 1.4;
    background-color: #252C58;
    color: #fec400;
    overflow-x: hidden;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

/* Color Variables */
:root {
    --color-gold: #ffdc7a;
    --color-rose: #fec400;
    --color-lightgold: #FCF7E8;
    --color-darkrose: #fec400;
    --color-bg-dark: #252C58;
    --color-text: #fec400;
    --color-hover: #ffdc7a;
}

/* Typography */
.caption {
    font-family: 'Amatic SC', cursive;
    font-size: 5rem;
    font-weight: 600;
    text-align: center;
}

.nav-link, .footer-item li a {
    font-family: 'Amatic SC', cursive;
    font-weight: 600;
    text-decoration: none;
    color: var(--color-text);
    transition: color 0.3s ease;
}

    .nav-link:hover, .footer-item li a:hover {
        color: var(--color-hover);
    }

/* Layout Containers */
.container {
    max-width: 100vw;
    margin: 0 auto;
    padding: 0 15px;
}

#main-container {
    padding: 15px;
    min-height: 70vw;
    margin: 110px auto 3% auto;
    max-width: 1700px;
}

/* Header */
header {
    background-color: var(--color-bg-dark);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 20px;
}

#nav-bar ul {
    list-style: none;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

#nav-bar li {
    margin: 0 10px;
}

.nav-link {
    font-size: 2.8rem;
    padding: 5px 10px;
}

    .nav-link:hover {
        border-bottom: 1px solid var(--color-rose);
    }

#header-img {
    background-size: contain;
    background-repeat: no-repeat;
    height: 100px;
    width: 150px;
    margin-right: 20px;
}

.separator {
    font-family: 'Caesar Dressing', cursive;
    font-size: 1.8rem;
    margin: 0 4rem 0.8rem 4rem;
    display: flex;
    align-items: center;
    text-align: center;
}

    .separator::before,
    .separator::after {
        border-bottom: 1px solid var(--color-gold);
        content: '';
        flex: 1;
    }

    .separator::before {
        margin-right: 0.3em;
    }

    .separator::after {
        margin-left: 0.3em;
    }

/* Hamburger Menu for Mobile */
.hamburger {
    display: none;
    font-size: 28px;
    cursor: pointer;
    padding: 10px;
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: var(--color-bg-dark);
    color: var(--color-text);
    z-index: 1001;
}

#nav-bar.show {
    transform: translateX(0);
}

/* Intro Section */
#intro-container {
    background-color: var(--color-lightgold);
}

#intro-flex-container {
    display: flex;
    align-items: flex-start;
    max-width: 1450px;
    margin: 0 auto;
    padding: 30px 0;
}

#intro-text-container {
    margin-left: 20px;
    max-width: 800px;
    width: 100%;
}

#intro-img {
    max-width: 650px;
    width: 100%;
    height: auto;
}

/* Collection Section */
#collection-caption {
    text-align: center;
}

#collection-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.collection-item {
    position: relative;
    flex: 1 1 300px;
    margin: 5px;
}

.collection-img {
    max-width: 100%;
    width: 100%;
}

.collection-button {
    position: absolute;
    top: 83%;
    left: 35%;
    border: none;
    border-radius: 2px;
    background-color: var(--color-rose);
    color: var(--color-darkrose);
    font-size: 2.4rem;
    opacity: 0.8;
    padding: 8px 18px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

    .collection-button:hover {
        background-color: var(--color-lightgold);
        opacity: 0.6;
    }

/* Video Section */
#video-section {
    margin-top: 5rem;
}

#video-container {
    background-color: var(--color-lightgold);
}

#video-flex-container {
    display: flex;
    flex-direction: row-reverse;
    align-items: flex-start;
    max-width: 1450px;
    margin: 0 auto;
    padding: 30px 0;
}

#video-text-container {
    margin-right: 20px;
    max-width: 900px;
    width: 100%;
}

#video-text-title {
    text-align: center;
}

#video {
    max-width: 550px;
    width: 100%;
    height: auto;
}

/* About Section */
#about-container {
    max-width: 1450px;
    margin: 0 auto;
}

#about-caption-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

#about-logo {
    width: 90px;
    height: auto;
    margin-right: 10px;
}

/* Footer */
footer {
    margin-top: 70px;
}

#footer-container {
    background: var(--color-rose);
    color: var(--color-bg-dark);
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
    padding: 20px;
}

.footer-caption {
    font: bold italic 18px arial, verdana;
    font-size: 2.2rem;
    margin-top: 2rem;
    margin-bottom: 0;
    text-align: center;
    text-decoration: underline;
    width: 100%;
}

.footer-item ul {
    list-style: none;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    width: 100%;
    padding: 0;
    margin: 0;
}

.footer-item li {
    padding: 10px 0;
    text-align: center;
}

    .footer-item li a {
        font: bold 16px arial, verdana;
        color: var(--color-bg-dark);
    }

form {
    display: flex;
    flex-direction: column;
    max-width: 300px;
    margin: 0 auto;
}

#email {
    border: none;
    border-radius: 2px;
    background-color: var(--color-lightgold);
    color: var(--color-darkrose);
    font-family: 'Sue Ellen Francisco', cursive;
    font-size: 2.3rem;
    height: 3rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding: 2px 8px;
}

    #email:focus {
        border-color: var(--color-lightgold);
        box-shadow: 0 0 1rem 0 var(--color-lightgold);
        outline: 0;
    }

#submit {
    border: none;
    border-radius: 2px;
    background-color: var(--color-rose);
    color: var(--color-darkrose);
    font-family: 'Amatic SC', cursive;
    font-size: 2.4rem;
    font-weight: 600;
    padding: 8px 18px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

    #submit:hover {
        background-color: var(--color-gold);
    }

/* Credit */
#credit {
    text-align: center;
    padding: 10px;
}

    #credit a {
        color: var(--color-darkrose);
    }

        #credit a:hover {
            color: var(--color-rose);
        }

/* Responsive Design */

/* Tablet and Smaller */
@media (max-width: 1170px) {
    #collection-grid {
        /* Switch to a 2-column layout for better balance */
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    /* Reset large item spanning since we only have 2 columns now */
    .grid-item-large {
        grid-column: span 2; /* Full width (2 columns) */
        grid-row: auto;
    }

    .grid-item-small {
        grid-column: span 1; /* Half width (1 column) */
        grid-row: auto;
    }
    #intro-flex-container, #video-flex-container {
        flex-direction: column;
        align-items: center;
    }

    #intro-text-container, #video-text-container {
        margin: 0;
    }

    .caption {
        font-size: 4rem;
    }

    body {
        font-size: 2.3rem;
    }

    .collection-button {
        top: 80%;
        left: 27%;
        font-size: 2.3rem;
        padding: 6px 14px;
    }

    #video {
        max-width: 100%;
    }

    .footer-item li a {
        font-size: 2rem; /* Adjusted for tablet size based on your body font-size of 2.3rem */
    }
}

/* Mobile Large */
@media (max-width: 768px) {
    #collection-grid {
        /* Switch to a single column stack for clear mobile viewing */
        grid-template-columns: 1fr;
        gap: 15px;
    }

    /* All items now take the full width */
    .grid-item, .grid-item-large, .grid-item-small {
        grid-column: 1 / -1; /* Full width */
        grid-row: auto;
    }
    .hamburger {
        display: block;
    }

    .social-slider {
        /* Mobile Overrides: */
        top: 10px; /* Moves it higher up, near the top left */
        left: 5px; /* **ALIGNS TO THE LEFT EDGE ON MOBILE** */
        right: auto; /* Ensure 'right' property is cleared */
        flex-direction: row; /* Horizontal layout for mobile */
        padding: 5px;
        gap: 10px;
    }

        .social-slider a {
            font-size: 1.5rem;
        }

    #nav-bar ul {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 200px;
        background-color: var(--color-bg-dark);
        flex-direction: column;
        align-items: flex-start;
        padding: 60px 20px;
        transform: translateX(100%);
        transition: transform 0.3s ease;
    }



    #nav-bar.show ul {
        transform: translateX(0);
    }

    #nav-bar li {
        margin: 10px 0;
    }

    .nav-link {
        font-size: 0.9rem;
        width: 100%;
        padding: 8px 0;
    }

    .caption {
        font-size: 3.5rem;
    }

    body {
        font-size: 2rem;
    }

    .collection-button {
        left: 18%;
        font-size: 2rem;
    }

    .footer-item ul {
        /* OVERRIDE: Change from vertical back to horizontal */
        flex-direction: row;
        /* Allow items to wrap if absolutely necessary, but prioritize fitting */
        flex-wrap: wrap;
        justify-content: space-evenly; /* Evenly space the links */
        align-items: center;
        width: 100%;
        font-size: initial;
    }

    /* Make the individual list items compact */
    .footer-item li {
        /* Reduce vertical padding */
        padding: 5px 0;
        /* Ensure each list item is flexible enough to fit */
        flex: 1 1 auto;
        text-align: center;
        /* Add some horizontal margin to avoid links touching */
        margin: 0 3px;
    }

        /* Drastically reduce link font size to fit more links horizontally */
        .footer-item li a {
            font-size: 0.8rem !important; /* Extremely small size to fit 8 links horizontally */
            padding: 2px 2px; /* Minimal padding */
            white-space: nowrap; /* Prevent text from wrapping within a link */
            overflow: hidden;
            text-overflow: ellipsis;
        }

    /* Reduce container padding */
    #footer-container {
        display: none;
        flex-direction: column;
        align-items: center;
        padding: 5px 0; /* Minimal vertical padding */
        height: auto; /* Ensure height is determined by content */
        /* If the links still break, you may need to reduce font size further. */
    }

    .footer-caption {
        font-size: 1.5rem; /* Reduced caption size */
        margin-top: 0.5rem; /* Reduced caption margin */
    }

    #email {
        font-size: 2rem;
        height: 2.5rem;
    }

    #submit {
        font-size: 2.3rem;
        padding: 6px 15px;
    }

    .main-title-section {
        margin-top: 15vw !important; /* Use 30vw to dynamically push it down */
    }

    /* Fix the font sizes that were previously adjusted */
    #title-main {
        font-size: 8vw !important; /* Use viewport width for scaling */
        line-height: 1.1em !important;
        /* margin-top: 15vw; <-- Removing this specific one and using the .main-title-section adjustment */
    }

    #title-subtitle {
        font-size: 5vw !important; /* Use viewport width for scaling */
    }

    /* Optional: reduce the text shadow depth */
    .main-title-section span[style*="text-shadow"] {
        text-shadow: rgba(0, 0, 0, 0.4) 0px 2px 3px !important;
    }
}

/* Mobile Medium */
@media (max-width: 640px) {
    .nav-link {
        font-size: 2.3rem;
    }
    .main-title-buttons {
        flex-direction: column; /* Stack buttons vertically on small screens */
        align-items: center;
        gap: 15px;
        margin-top: 20px;
    }

    .custom-button {
        width: 80%; /* Make buttons take up most of the screen width */
        max-width: 300px;
        font-size: 2rem;
        text-align: center;
        padding: 8px 15px;
    }

    nav li {
        margin-right: 0;
    }

    #header-img {
        width: 160px;
    }

    .separator {
        font-size: 1.6rem;
    }

    .collection-button {
        top: 69%;
        left: 16%;
        padding: 3px 8px;
    }

    #email {
        font-size: 1.7rem;
        height: 2.3rem;
    }

    #submit {
        font-size: 2rem;
        padding: 6px 7px;
    }

    .footer-item li a {
        font-size: 1.5rem;
    }
}

/* Mobile Small */
@media (max-width: 480px) {
    .nav-link {
        font-size: 2.2rem;
    }

    #header-img {
        width: 150px;
    }

    .caption {
        font-size: 3.2rem;
    }

    #video {
        max-width: 240px;
    }

    .collection-button {
        top: 70%;
        font-size: 1.8rem;
        padding: 2px 6px;
    }

    #submit {
        margin-bottom: 1rem;
    }

    .footer-item li a {
        font-size: 1.4rem;
    }

    footer {
        display: none;
    }
}

/* Extra Small */
@media (max-width: 320px) {
    .caption {
        font-size: 2.5rem;
    }

    body {
        font-size: 1.5rem;
    }

    .collection-button {
        top: 71%;
        left: 18%;
        font-size: 1.5rem;
        padding: 1px 5px;
    }

    #video {
        width: 140px;
    }

    .footer-item li a {
        font-size: 1.2rem;
    }
}
/* Add these styles to keep the header fixed at the top and footer fixed at the bottom */

/* Header is already fixed in the previous CSS, but ensure it's set */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

/* Make footer fixed at the bottom */
#footer-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    /* Ensure it has a background to cover content */
    background: var(--color-rose);
    color: var(--color-bg-dark);
    /* Add padding if needed for content */
    padding: 20px;
}

/* Adjust main container to prevent overlap with fixed footer */
/* Estimate footer height; adjust '200px' based on actual footer content height */
#main-container {
    margin-bottom: 200px; /* Space for fixed footer */
    /* Ensure it can scroll if content overflows */
    overflow-y: auto;
}

/* For better responsiveness, use calc for main height if header height is fixed */
/* Assuming header height is ~110px and footer ~200px, but adjust as needed */
#main-container {
    min-height: calc(100vh - 110px - 200px);
    margin-bottom: 0; /* Remove if using min-height */
}

/* Optional: If using flexbox for body to handle layout better */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

#main-container {
    flex: 1;
    margin-top: 110px; /* Header height */
    margin-bottom: 0;
}

#footer-container {
    flex-shrink: 0;
    position: fixed; /* Override flex if needed, but if using flex, remove position: fixed */
    /* If keeping fixed, remove flex-shrink: 0 */
}
/* ... Your existing CSS ... */

/* Responsive Design */

/* Tablet and Smaller */
@media (max-width: 1170px) {
    /* ... existing styles for 1170px ... */

    /* Adjust sizes for the main title on tablets */
    #title-main {
        font-size: 50px !important; /* Smaller on tablets */
    }

    #title-subtitle {
        font-size: 28px !important; /* Smaller on tablets */
    }
}

/* Mobile Large */
@media (max-width: 768px) {
    /* ... existing styles for 768px ... */

    /* Make the title section responsive on mobile */
    #title-main {
        font-size: 8vw !important; /* Use viewport width for scaling */
        line-height: 1.1em !important;
        margin-top: 5vw;
    }

    #title-subtitle {
        font-size: 5vw !important; /* Use viewport width for scaling */
    }

    /* Optional: reduce the text shadow depth */
    .main-title-section span[style*="text-shadow"] {
        text-shadow: rgba(0, 0, 0, 0.4) 0px 2px 3px !important;
    }

    .nav-link {
        /* Fixing the size conflict. We'll rely on the more specific .footer-item li a */
        font-size: 2.2rem; /* Adjusted to a readable size, overriding the problematic 0.9rem */
        width: 100%;
        padding: 8px 0;
    }

    /* FIX 1: Ensure footer links stack vertically and are centered */
    .footer-item ul {
        flex-direction: column;
        align-items: center;
        width: 100%;
        /* FIX 2: Remove the problematic font-size: 0.5rem; */
        font-size: initial;
    }

    /* FIX 3: Set clear, readable font size for footer links on mobile */
    .footer-item li a {
        font-size: 1.8rem; /* Use a readable relative size */
        padding: 5px 0;
        text-align: center;
        width: 100%;
    }

    #footer-container {
        /* This already exists and correctly sets direction to column */
        flex-direction: column;
        align-items: center;
        padding: 15px; /* Adjust padding for mobile */
    }

    .footer-caption {
        font-size: 1.8rem; /* Slightly reduced caption size */
    }

    /* FIX 4: Adjust the overall body font size for legibility on fixed elements */
    body {
        font-size: 1.6rem; /* A slightly better base font size for fixed elements on mobile */
    }
}

/* Mobile Small */
@media (max-width: 480px) {
    /* ... existing styles for 480px ... */

    /* Ensure a minimum size on very small screens */
    #title-main {
        font-size: 6vw !important;
        margin-top: 5vw;
    }



    #title-subtitle {
        font-size: 3vw !important;
    }
}
