/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600&display=swap');

:root {
    --bg-color: #FFFFFF;
    --accent-primary: #BD4A2F;
    --accent-secondary: #E0AA7C;
    --text-dark: #2c2c2c;
    --text-light: #555555;
    --white: #ffffff;
    --transition-speed: 0.3s;

    /* Fluid Typography - Increased for better mobile presence */
    --fs-h2: clamp(1.8rem, 5vw, 3rem);
    --fs-body: clamp(0.9rem, 2vw, 1.1rem);
    --fs-nav: clamp(0.8rem, 1.5vw, 1rem);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    font-family: 'Outfit', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-color);
    scroll-behavior: smooth;
    overflow-y: hidden;
    /* Hide default scrollbar for custom snap container */
}

/* Scroll Container */
.scroll-container {
    height: 100vh;
    width: 100%;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    /* Hide scrollbar */
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE 10+ */
}

.scroll-container::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

/* General Section Styles */
section {
    height: 100vh;
    /* Strict height forcing */
    width: 100%;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* Reduced top/bottom padding to ensure fit */
    padding: clamp(1rem, 5vh, 2rem) 1.5rem;
    position: relative;
    overflow: hidden;
}

/* Typography */
h1,
h2,
h3 {
    font-size: var(--fs-h2);
    font-weight: 500;
    color: var(--accent-primary);
    margin-bottom: clamp(0.5rem, 2vh, 1.5rem);
    /* Flexible margin */
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
}

p {
    font-size: var(--fs-body);
    font-weight: 400;
    line-height: 1.5;
    color: var(--text-light);
    max-width: 600px;
    text-align: center;
    width: 100%;
}

/* Section 1: Home */
.hero-section {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 2rem;
    gap: 0;
    /* Handled by flex spacing */
}

/* Container for Logo + Text (Vertically Centered relative to available space) */
.hero-main-content {
    flex: 1;
    /* Takes up all available space */
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Center usually works best, relying on margin auto if needed */
    align-items: center;
    gap: clamp(1rem, 3vh, 2rem);
    width: 100%;
    max-width: 100%;
    padding: 0 1rem;
}

/* Gallery and Arrow Wrapper */
.hero-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    /* Reduced gap to save vertical space */
    gap: clamp(1rem, 2vh, 2rem);
    flex-shrink: 0;
    /* Prevent squishing */
}

.scroll-indicator {
    margin-top: 0 !important;
    font-size: clamp(1rem, 3vh, 1.5rem) !important;
}

.logo-container img {
    /* More responsive scaling */
    width: clamp(200px, 50vw, 350px);
    max-width: 80vw;
    height: auto;
    object-fit: contain;
    /* Prevent logo from being too tall on short screens */
    max-height: 25vh;
}

.hero-text {
    text-align: center;
}

.hero-gallery-preview {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    overflow: hidden;
    margin-top: 0;
    /* Removed fixed margin */
    position: relative;
    display: flex;
    padding: 0.5rem 0;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.gallery-track {
    display: flex;
    gap: 1rem;
    width: max-content;
    animation: scroll 60s linear infinite;
}

.gallery-track:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-50% - 0.5rem));
    }
}

.hero-gallery-preview img {
    /* Smaller images on small heights */
    width: clamp(80px, 20vw, 150px);
    height: clamp(100px, 25vw, 200px);
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Section 2: Gallery */
.gallery-section {
    background-color: #fffaf5;
    padding-bottom: 3rem;
    /* Space for button */
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(0.5rem, 1.5vh, 1.5rem);
    width: 100%;
    max-width: 900px;
    min-height: 50vh;
    margin-bottom: clamp(1rem, 3vh, 3rem);
}

@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    transition: transform var(--transition-speed);
    margin-bottom: 0;
    /* remove margin, use gap */
    width: 100%;
    height: 100%;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.floating-btn {
    position: relative;
    /* Changed from absolute to flow naturally */
    bottom: auto;
    margin-top: auto;
    background-color: var(--accent-primary);
    color: var(--white);
    padding: clamp(0.8rem, 2vh, 1rem) 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(189, 74, 47, 0.4);
    transition: background-color var(--transition-speed), transform var(--transition-speed);
    z-index: 10;
}

.floating-btn:hover {
    background-color: #a33b24;
    transform: translateY(-2px);
}

/* Section 3: Social Media */
.social-section {
    background-color: var(--bg-color);
    justify-content: center;
    /* Centered looks better generally, but kept user pref for text align left if needed */
    align-items: flex-start;
    padding: clamp(2rem, 10vh, 5rem) clamp(2rem, 10vw, 8rem);
}

.social-container {
    max-width: 600px;
    width: 100%;
    text-align: left;
    margin: auto 0;
    /* vertically center */
}

.social-section h2 {
    text-align: left;
    margin-bottom: 0.5rem;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 3rem;
    width: fit-content;
}

.social-link {
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    color: var(--text-dark);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 0.5rem 0;
    transition: all var(--transition-speed);
    position: relative;
}

.social-icon {
    width: 28px;
    height: 28px;
    color: var(--accent-primary);
    transition: transform var(--transition-speed);
}

.social-link:hover .social-icon {
    transform: scale(1.2);
    color: var(--accent-secondary);
}

.social-link span {
    position: relative;
}

.social-link span::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--accent-secondary);
    transition: width var(--transition-speed);
}

.social-link:hover span::after {
    width: 100%;
}

.social-link:hover {
    color: var(--accent-primary);
}

/* Section 4: Contact */
.contact-section {
    background-color: #333;
    color: var(--bg-color);
    padding-bottom: 4rem;
    /* Space for copyright */
    justify-content: flex-start;
    /* Pack from top */
    padding-top: clamp(2rem, 6vh, 4rem);
}

.contact-section h2 {
    color: var(--accent-secondary);
    margin-bottom: clamp(0.5rem, 2vh, 1rem);
}

.contact-info {
    margin-bottom: clamp(0.5rem, 2vh, 1rem);
}

.contact-section p {
    color: #ccc;
    margin-bottom: 0.3rem;
}

.map-container {
    width: 100%;
    max-width: 800px;
    /* Replaced aspect-ratio with flex/height constraint */
    height: 40vh;
    min-height: 200px;
    flex-grow: 1;
    max-height: 50vh;
    /* Ensure it doesn't push footer out */
    margin: clamp(1rem, 2vh, 2rem) 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: relative;
}

.map-container iframe {
    position: absolute;
    top: -60px;
    left: 0;
    width: 100%;
    height: calc(100% + 60px);
    border: 0;
    filter: sepia(0.2) saturate(0.9) contrast(1.1);
    transition: filter var(--transition-speed);
}

.map-container:hover iframe {
    filter: none;
}

.action-btn {
    display: inline-block;
    background-color: var(--accent-secondary);
    color: var(--text-dark);
    padding: 0.8rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 0;
    /* Adjusted margin */
    margin-bottom: 1rem;
    transition: filter var(--transition-speed);
}

.action-btn:hover {
    filter: brightness(1.1);
}

/* Animations upon scroll */
.animate-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.footer-copyright {
    position: absolute;
    bottom: 1rem;
    left: 0;
    width: 100%;
    text-align: center;
}

.footer-copyright p {
    font-size: 0.7rem !important;
    opacity: 0.6;
    margin: 0;
    color: #888 !important;
    max-width: none;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        /* Allow content to center nicely */
        justify-content: space-evenly;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        /* On very small screens, maybe 1 col if 2 is too squeezed? 
           But user said "fit all". 2x2 is smallest fitting 4 items.
        */
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    h1 {
        font-size: 1.5rem;
    }
}