/* Global Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
    --primary-color: #375034;
    /* Green */
    --accent-color: #DC580C;
    /* Orange */
    --light-bg: #F5F1E8;
    /* Light Beige - assumed from "Figma-like" wedding vibes if not specified, but will default to white or match exact if I knew. Requirements say "follow Figma color styles". I'll stick to a soft beige or white. Let's use a very light beige #F9F7F2 for now as it's common.*/
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
}

.contained {
    padding-bottom: 120px; /* just enough for sticky nav */
}


body {
    font-family: var(--font-body);
    color: var(--primary-color);
    background-color: #F0EEE6;
    /* A likely background color based on typical wedding palettes */
    overflow-x: hidden;
    
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
}

.text-accent {
    color: var(--accent-color) !important;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #2a3c28;
    border-color: #2a3c28;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* Utils */
.cursor-pointer {
    cursor: pointer;
}

/* Home Page Specifics */
.audio-control {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    cursor: pointer;
}

.logo-container {
    margin-top: 60px;
    /* Space for audio button */
    text-align: center;
    margin-bottom: 2rem;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
}

.main-image-container {
    width: 100%;
    max-width: 600px;
    /* Desktop constraint */
    margin: 0 auto;
    overflow: hidden;
    border-radius: 8px;
    /* Optional softness */
    /* Placeholder background if image missing */
    min-height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Sticky Bottom Buttons for Mobile */
.sticky-bottom-nav {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 400px;
    background: #E4DFD6;
    /* Boxed background */
    backdrop-filter: blur(5px);
    padding: 15px;
    border-radius: 50px;
    /* Pill shape or rounded box */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    gap: 10px;
    z-index: 1000;
}

.sticky-bottom-nav .btn {
    flex: 1;
    border-radius: 25px;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    padding: 10px 0;
}

/* Menu Modal/Overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    /* Overlay */
    z-index: 2000;
    display: none;
    /* Hidden by default */
    align-items: center;
    justify-content: center;
}

.menu-overlay.active {
    display: flex;
}

.menu-content {
    background-color: #F0EEE6;
    padding: 2rem;
    width: 100%;
    height: 100%;
    /* Mobile full height */
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    position: relative;
    animation: slideUp 0.3s ease-out;
}

@media (min-width: 768px) {
    .menu-content {
        width: 500px;
        height: auto;
        min-height: 400px;
        border-radius: 12px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    }
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.menu-link {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    /* Large text */
    text-align: center;
    padding: 10px 0;
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s;
}

.menu-link:hover {
    font-weight: 700;
    color: var(--primary-color);
    /* Per requirements */
}

.close-btn-top {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-family: var(--font-body);
    font-size: 1rem;
    cursor: pointer;
    color: var(--primary-color);
}

/* Close button styled like menu button */
.close-btn-bottom {
    margin-top: auto;
    align-self: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px; /* space between text and icon */
    background: none; 
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 10px 24px;
    border-radius: 25px;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
}

.close-btn-bottom:hover {
    background-color: var(--primary-color);
    color: #fff;
}



/* When & Where Page Styles */
.page-bg {
    background-color: var(--light-bg);
    min-height: 100vh;
}

.close-btn-text {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--primary-color);
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    padding: 5px 10px;
    border-radius: 5px;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.close-btn-text:hover {
    border-color: var(--primary-color);
}

.detail-item ion-icon {
    font-size: 3rem;
}



/* Center the active logic? 
   CSS-only centering is handled by scroll-snap-align: center 
   and flex centering container if needed, but flex 0 0 80% + snap center works well.
*/

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.7);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    color: var(--primary-color);
}

.slider-nav.prev {
    left: 10px;
}

/* Outfits Page Styles */
.tab-item {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: #999;
    cursor: pointer;
    padding-bottom: 2px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}

.tab-item:hover {
    font-weight: 600;
    color: var(--primary-color);
}

.tab-item.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.carousel-track-wrapper {
   position: relative;
    max-width: 500px;
    margin: 0 auto;
    padding: 0; 
    overflow: hidden; 
    transition: height 0.3s ease-out;
    /* FIX: Force hardware acceleration to prevent iOS clipping */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}



.carousel-track {
    display: flex;
    width: 100%;
    transition: transform 0.4s ease-in-out;
    /* Allows horizontal swiping without triggering page vertical scroll immediately */
    touch-action: pan-y pinch-zoom; 
    user-select: none;
    -webkit-user-drag: none;
}

.carousel-control {
   position: absolute;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: rgba(255, 255, 255, 0.95) !important; 
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex !important; /* Ensure it stays flex */
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0,0,0,0.1);
    color: var(--primary-color);
    cursor: pointer;
    /* FIX: Higher z-index and force visibility */
    z-index: 999; 
    opacity: 1 !important;
    visibility: visible !important;
    /* FIX: Stop iOS from highlighting the button area on tap */
    -webkit-tap-highlight-color: transparent;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.carousel-control:hover {
   background: rgba(255, 255, 255, 0.9);
}

.carousel-control.prev {
    left: 10px !important;
}

.carousel-control.next {
    right: 10px !important;
}


/* Make icons bigger and darker */
.carousel-control ion-icon {
    font-size: 24px;
    display: block;
    pointer-events: none;
    color: var(--primary-color) !important;
}

.carousel-item-custom {
  /* Each slide is 100% of the wrapper width */
    min-width: 100%; 
    box-sizing: border-box;
    
    /* Add padding HERE so content doesn't touch the arrow buttons */
    padding: 0 55px; 
    
    /* Flexbox centering ensures content is dead center */
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.carousel-item-custom.active {
    display: block;
}


.no-transition {
    transition: none !important;
}


/* Improve visibility on small screens */
@media (max-width: 767px) {
    .carousel-control {
        background: rgba(255,255,255,0.95);
        box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    }
}


@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.outfit-img {
  max-width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    
    /* Force image to center */
    display: block;
    margin: 0 auto;
}


.bg-white {
    background-color: #F1EBDE !important;
    border: 1px solid #C9C4BA;
    border-radius: 10px;
}




/* when & where page: alora images */
/* Mobile image spacing */
@media (max-width: 767px) {
    #imageSlider > div {
        margin-bottom: 14px; /* adjust to taste */
    }

    #imageSlider img {
        display: block;
        width: 100%;
    }
}





/* Particle Canvas Background */
#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* stays behind everything */
    pointer-events: none; /* prevents blocking clicks */
}





/* Mobile menu: center nav vertically + horizontally */
@media (max-width: 767px) {
    .menu-content {
        display: flex;
        flex-direction: column;
        justify-content: center; /* vertical centering */
        align-items: center;     /* horizontal centering */
    }

    .menu-content h2 {
        position: absolute;
        top: 60px;
        left: 50%;
        transform: translateX(-50%);
    }

    .menu-content nav {
        flex: none;
        align-items: center;
        justify-content: center;
    }

    .close-btn-bottom {
        position: absolute;
        bottom: 40px;
    }
}



/* Desktop: add extra spacing below last nav item so it doesn't butt against the bottom button */
@media (min-width: 768px) {
    .menu-content nav .menu-link:last-child {
        margin-bottom: 40px; /* adjust spacing as needed */
    }
}





.password-overlay {
    position: fixed;
    inset: 0;
    background: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.6s ease;
}

/* Flash layer */
.flash-screen {
    position: fixed;
    inset: 0;
    background: #ffffff;
    opacity: 0;
    pointer-events: none;
    z-index: 10000;
}

/* Slow flash animation */
.flash-active {
    animation: slowFlash 1.2s ease forwards;
}

@keyframes slowFlash {
    0%   { opacity: 0; }
    40%  { opacity: 1; }
    100% { opacity: 0; }
}













.masonry-gallery {
  column-count: 3;
  column-gap: 1rem;
}

.masonry-gallery img {
  width: 100%;
  margin-bottom: 1rem;
  border-radius: 12px;
  display: block;
}

/* Tablet */
@media (max-width: 992px) {
  .masonry-gallery {
    column-count: 2;
  }
}

/* Mobile */
@media (max-width: 576px) {
  .masonry-gallery {
    column-count: 1;
  }
}


.masonry-gallery {
  line-height: 0;
}



/* Scroll To Top Button */
#scrollTopBtn {
  position: fixed;
  bottom: 30px;
  right: 30px; /* changed from left to right */
  width: 55px;
  height: 55px;
  border: none;
  border-radius: 50%;
  background-color: rgba(132, 162, 7, 0.75);
  color: #1a1a1a;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 999;
}

/* Show Button */
#scrollTopBtn.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Hover */
#scrollTopBtn:hover {
  background-color: rgba(132, 162, 7, 0.95);
  transform: translateY(-3px);
}

/* Mobile */
@media (max-width: 576px) {
  #scrollTopBtn {
    width: 45px;
    height: 45px;
    font-size: 20px;
    bottom: 20px;
    right: 20px; /* updated */
  }
}








