/* ==========================================================================
   FragranceFiesta - Section Styles
   ========================================================================== */

/* ---- Hero Slideshow ---- */
.section-slideshow { position: relative; overflow: hidden; }

.slideshow { position: relative; }
.slideshow .slider__slide { width: 100%; position: relative; }
.slideshow .slider__slide .banner__media {
    position: relative;
    width: 100%;
    height: 550px;
    overflow: hidden;
}
@media screen and (min-width: 750px) {
    .slideshow .slider__slide .banner__media { height: auto; }
    .slideshow .slider__slide .banner__media img { position: relative; }
}

.slideshow .slider__slide .banner__media::after {
    content: "";
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.2);
    z-index: 1;
}
.slideshow .slider__slide .banner__media img {
    width: 100%; height: 100%; object-fit: cover;
    display: block;
}

.banner__content {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    z-index: 2; padding: 2rem;
}
.banner__box {
    text-align: center;
    color: #fff;
    max-width: 70rem;
}
.banner__heading {
    font-size: calc(var(--font-heading-scale) * 3rem);
    line-height: 1.15;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    color: #fff;
}
@media screen and (min-width: 750px) {
    .banner__heading { font-size: calc(var(--font-heading-scale) * 5.2rem); }
}
.banner__box .section-subtitle {
    color: #fff;
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
}
@media screen and (min-width: 750px) {
    .banner__box .section-subtitle { font-size: 2.4rem; }
}

.slideshow-btn {
    display: inline-flex; padding: 1.2rem 3.5rem;
    font-size: 1.3rem; letter-spacing: 0.2rem;
    text-transform: uppercase; font-weight: 600;
    border: 2px solid #fff; color: #fff;
    background: transparent; text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 1rem;
}
.slideshow-btn:hover { background: #fff; color: #171717; }

/* Slideshow Controls */
.slideshow-controls {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex; gap: 0.8rem;
    z-index: 5;
}
.slideshow-dot {
    width: 30px; height: 4px;
    background: rgba(255,255,255,0.4);
    border: none; cursor: pointer;
    transition: background 0.3s;
    border-radius: 2px;
}
.slideshow-dot.active { background: #fff; }

.slideshow-arrow {
    position: absolute; top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 48px; height: 48px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.6);
    border-radius: 50%;
    color: #fff; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.4s;
}
.section-slideshow:hover .slideshow-arrow { opacity: 1; }
.slideshow-arrow--prev { left: 1.5rem; }
.slideshow-arrow--next { right: 1.5rem; }
.slideshow-arrow svg { width: 14px; height: 14px; }

/* ---- Collection List ---- */
.section-collection-list .collection-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}
@media screen and (min-width: 750px) {
    .section-collection-list .collection-grid { grid-template-columns: repeat(3, 1fr); }
}
@media screen and (min-width: 990px) {
    .section-collection-list .collection-grid { grid-template-columns: repeat(5, 1fr); }
}

.collection-card {
    position: relative; overflow: hidden;
    border-radius: 4px;
    text-align: center;
}
.collection-card__media {
    position: relative;
    padding-top: 100%;
    overflow: hidden;
}
.collection-card__media img {
    position: absolute; inset: 0;
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.6s ease;
}
.collection-card:hover .collection-card__media img { transform: scale(1.08); }
.collection-card__title {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 1.5rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.5));
    color: #fff;
    font-size: 1.4rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
}
.collection-card a { position: absolute; inset: 0; z-index: 1; }

/* ---- Image With Text ---- */
.section-image-with-text {
    background-color: rgb(var(--color-background));
}
.image-with-text__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}
@media screen and (min-width: 750px) {
    .image-with-text__grid { grid-template-columns: 1fr 1fr; }
}
.image-with-text__media { border-radius: 3px; overflow: hidden; }
.image-with-text__media img { width: 100%; height: auto; display: block; }

/* ---- Overlapping Images ---- */
.section-overlapping {
    padding: 36px 0 0;
}
.overlapping-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}
@media screen and (min-width: 750px) {
    .overlapping-grid { grid-template-columns: 1fr 1fr; }
}
.overlapping-images {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.overlapping-images img {
    width: 100%; border-radius: 14px 0 0 14px;
    display: block;
}
.overlapping-images img:last-child { border-radius: 0 14px 14px 0; margin-top: 2rem; }

/* ---- Scrolling Text / Marquee ---- */
.section-scrolling-text {
    overflow: hidden;
    padding: 20px 0 24px;
    margin: 44px 0;
}
.scrolling-text__inner {
    display: flex;
    animation: marquee-scroll 25s linear infinite;
    white-space: nowrap;
}
.scrolling-text__item {
    display: inline-flex; align-items: center; gap: 1.5rem;
    padding: 0 3rem; flex-shrink: 0;
    font-size: 2.4rem; font-weight: 700;
    font-family: var(--font-heading-family);
    text-transform: uppercase;
}
@media screen and (min-width: 750px) {
    .scrolling-text__item { font-size: 6rem; }
}
.scrolling-text__icon { width: 40px; height: 40px; }
@media screen and (min-width: 750px) {
    .scrolling-text__icon { width: 60px; height: 60px; }
}

/* ---- Product Tabs ---- */
.section-product-tabs .tabs-nav {
    display: flex; justify-content: center;
    gap: 1rem; flex-wrap: wrap;
    margin-bottom: 3rem;
}
.tab-btn {
    padding: 0.8rem 2rem;
    background: transparent;
    border: 1px solid rgba(var(--color-foreground), 0.15);
    border-radius: var(--buttons-radius);
    cursor: pointer;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.15rem;
    font-weight: 600;
    color: rgb(var(--color-foreground));
    transition: all 0.3s ease;
}
.tab-btn.active,
.tab-btn:hover {
    background: rgb(var(--color-base-accent-1));
    border-color: rgb(var(--color-base-accent-1));
    color: rgb(var(--color-base-solid-button-labels));
}

.tab-content { display: none; }
.tab-content.active { display: block; }

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}
@media screen and (min-width: 750px) {
    .products-grid { grid-template-columns: repeat(3, 1fr); }
}
@media screen and (min-width: 990px) {
    .products-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ---- Gallery Banners ---- */
.section-gallery .gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
@media screen and (min-width: 750px) {
    .section-gallery .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}
.gallery-item__media img {
    width: 100%; display: block;
    transition: transform 0.6s ease;
}
.gallery-item:hover .gallery-item__media img { transform: scale(1.05); }
.gallery-item__content {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 3rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.45));
    color: #fff;
}
.gallery-item__subtitle { font-size: 1.4rem; margin-bottom: 0.3rem; }
.gallery-item__description { font-size: 1.4rem; margin-bottom: 1rem; opacity: 0.85; }
.gallery-item__btn {
    display: inline-flex; padding: 0.8rem 2rem;
    background: #fff; color: #000;
    font-size: 1.2rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.1rem;
    text-decoration: none; border-radius: var(--buttons-radius);
    transition: all 0.3s;
}
.gallery-item__btn:hover { background: rgb(var(--color-base-accent-1)); color: #171717; }

/* ---- Featured Blog ---- */
.section-blog .blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
@media screen and (min-width: 750px) {
    .section-blog .blog-grid { grid-template-columns: repeat(3, 1fr); }
}
.blog-card__media { overflow: hidden; border-radius: 4px; margin-bottom: 1.2rem; }
.blog-card__media img {
    width: 100%; display: block;
    transition: transform 0.6s ease;
}
.blog-card:hover .blog-card__media img { transform: scale(1.05); }
.blog-card__date {
    font-size: 1.1rem; text-transform: uppercase;
    letter-spacing: 0.1rem; color: rgba(var(--color-foreground), 0.5);
    margin-bottom: 0.5rem;
}
.blog-card__title { font-size: 1.8rem; margin-bottom: 0.8rem; line-height: 1.3; }
.blog-card__title a { color: rgb(var(--color-foreground)); text-decoration: none; }
.blog-card__title a:hover { color: rgba(var(--color-foreground), 0.7); }
.blog-card__excerpt { font-size: 1.4rem; color: rgba(var(--color-foreground), 0.65); line-height: 1.6; }

/* ---- Trust Badges / Multicolumn ---- */
.section-trust-badges .trust-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
}
@media screen and (min-width: 750px) {
    .section-trust-badges .trust-grid { grid-template-columns: repeat(3, 1fr); }
}
.trust-item { padding: 2rem; }
.trust-item__icon { margin: 0 auto 1.5rem; width: 50px; height: 50px; }
.trust-item__icon img { width: 100%; height: auto; }
.trust-item__title {
    font-size: 1.4rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.1rem; margin-bottom: 0.5rem;
}
.trust-item__text { font-size: 1.3rem; color: rgba(var(--color-foreground), 0.65); }

/* ---- Newsletter ---- */
.section-newsletter {
    position: relative;
    text-align: center;
    padding: 5rem 0;
    overflow: hidden;
}
.section-newsletter__bg {
    position: absolute; inset: 0; z-index: 0;
}
.section-newsletter__bg img {
    width: 100%; height: 100%; object-fit: cover;
}
.section-newsletter__bg::after {
    content: ""; position: absolute; inset: 0;
    background: rgba(0,0,0,0.3);
}
.section-newsletter__content {
    position: relative; z-index: 1;
    max-width: 50rem; margin: 0 auto;
    color: #fff;
}
.section-newsletter__content .h1 { color: #fff; margin-bottom: 1rem; }
.section-newsletter__content p { margin-bottom: 2rem; opacity: 0.9; }
.newsletter-form { display: flex; max-width: 40rem; margin: 0 auto; }
.newsletter-form .field__input {
    border-radius: var(--inputs-radius) 0 0 var(--inputs-radius);
    border-right: none;
}
.newsletter-form .button {
    border-radius: 0 var(--buttons-radius) var(--buttons-radius) 0;
    min-width: auto; padding: 0 2rem;
}

/* ---- Instagram Feed ---- */
.section-instagram .instagram-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}
@media screen and (min-width: 750px) {
    .section-instagram .instagram-grid { grid-template-columns: repeat(6, 1fr); }
}
.instagram-item {
    position: relative; overflow: hidden;
}
.instagram-item img {
    width: 100%; aspect-ratio: 1; object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}
.instagram-item:hover img { transform: scale(1.08); }
.instagram-item__overlay {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.3);
    display: flex; align-items: center; justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}
.instagram-item:hover .instagram-item__overlay { opacity: 1; }
.instagram-item__overlay svg { width: 24px; height: 24px; color: #fff; }

/* ---- Logo List ---- */
.section-logos .logos-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    padding: 2rem 0;
}
.logo-item { max-width: 120px; opacity: 0.6; transition: opacity 0.3s; }
.logo-item:hover { opacity: 1; }
.logo-item img { width: 100%; height: auto; filter: grayscale(100%); transition: filter 0.3s; }
.logo-item:hover img { filter: grayscale(0); }

/* ---- Blog / Single Post ---- */
.section-blog-post .post-header { text-align: center; margin-bottom: 3rem; }
.section-blog-post .post-meta {
    font-size: 1.2rem; text-transform: uppercase;
    letter-spacing: 0.1rem; color: rgba(var(--color-foreground), 0.5);
    margin-bottom: 1rem;
}
.section-blog-post .post-featured-image { margin-bottom: 3rem; }
.section-blog-post .post-featured-image img { width: 100%; height: auto; border-radius: 4px; }
.section-blog-post .post-content { max-width: 72rem; margin: 0 auto; }
.section-blog-post .post-content p { margin-bottom: 1.5rem; line-height: 1.8; }

/* ---- 404 ---- */
.section-404 {
    text-align: center;
    padding: 8rem 0;
}
.section-404 h1 { font-size: 8rem; margin-bottom: 1rem; }
.section-404 p { margin-bottom: 2rem; font-size: 1.6rem; }
