@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700;900&display=swap');

:root {
    /* ── Brand Colors ── */
    --color-primary: #e30613;
    --color-primary-light: #f87171;
    --color-primary-dark: #b91c1c;

    /* ── Base Colors ── */
    --color-bg-body: #ffffff;
    --color-text-body: #18181b;

    /* ── UI Components ── */
    --color-carousel-bg: #540b03;
    --color-dot-bg: rgba(255, 255, 255, 0.4);
    --color-arrow-bg: rgba(0, 0, 0, 0.45);
    --color-arrow-text: #ffffff;
    --color-whatsapp: #22c55e;
    
    /* ── Shadows ── */
    --shadow-primary: rgba(227, 6, 19, 0.18);
    --shadow-primary-hover: rgba(227, 6, 19, 0.13);
    --shadow-whatsapp: rgba(34, 197, 94, 0.45);
    --shadow-whatsapp-hover: rgba(34, 197, 94, 0.55);
}

.bg-grid-pattern {
    background-image: repeating-linear-gradient(0deg, transparent, transparent 49px, #fee2e2 49px, #fee2e2 50px),
                      repeating-linear-gradient(90deg, transparent, transparent 49px, #fee2e2 49px, #fee2e2 50px);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--color-bg-body);
    color: var(--color-text-body);
}

/* ── Navbar ── */
#navbar {
    transition: background .3s, backdrop-filter .3s, box-shadow .3s;
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 24px rgba(0, 0, 0, .06);
}

/* ── Language Selector ── */
.lang-flag {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
    filter: saturate(0);
    opacity: 0.6;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    border: 2px solid transparent;
}

.lang-flag:hover, .lang-flag.active {
    filter: saturate(1);
    opacity: 1;
    transform: scale(1.3);
    border-color: #e30613;
    box-shadow: 0 4px 12px rgba(227, 6, 19, 0.2);
}

.flag-container {
    display: flex;
    gap: 14px;
    align-items: center;
    background: rgba(255, 255, 255, 0.9);
    padding: 6px 16px;
    border-radius: 99px;
    border: 1px solid #eee;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    backdrop-filter: blur(8px);
}

/* ── Mobile menu ── */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
}

#mobile-menu.open {
    max-height: 240px;
}

/* ── Carousel ── */
.carousel-wrap {
    position: relative;
    border-radius: 1.25rem;
    overflow: hidden;
    height: 480px;
    background: var(--color-carousel-bg);
}

/* ── Floating Action Button (Mobile) ── */
.fab-mobile {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 100;
    display: none; /* Amagat per defecte */
    align-items: center;
    gap: 8px;
    background: #e30613;
    color: white;
    padding: 12px 20px;
    border-radius: 999px;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.05em;
    box-shadow: 0 10px 25px rgba(227, 6, 19, 0.4);
    transition: all 0.3s;
    animation: slideInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideInUp {
    from { transform: translateY(100px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.fab-mobile:active {
    transform: scale(0.92);
}

/* ── Process Steps ── */
.step-circle {
    width: 60px;
    height: 60px;
    background: white;
    border: 3px solid #e30613;
    color: #e30613;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 900;
    border-radius: 50%;
    margin: 0 auto 20px;
    box-shadow: 0 4px 15px rgba(227, 6, 19, 0.1);
}

/* ── FAQ Accordion ── */
.faq-item {
    border-bottom: 1px solid #eee;
}

.faq-question {
    width: 100%;
    padding: 20px 0;
    text-align: left;
    font-weight: 800;
    color: #1a1a1a;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: color 0.3s;
}

.faq-question:hover {
    color: #e30613;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

.faq-item.open .faq-answer {
    max-height: 200px;
    padding-bottom: 20px;
}

.faq-item.open .faq-icon {
    transform: rotate(180deg);
}

.faq-icon {
    transition: transform 0.3s;
    font-size: 14px;
    color: #ccc;
}

/* ── Gallery Impact ── */
.slide {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.slide img {
    transition: transform 0.8s ease;
}

.slide:hover img {
    transform: scale(1.1);
}

.slide::after {
    content: attr(data-label);
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
    padding: 40px 20px 20px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-style: italic;
    transition: bottom 0.4s;
    text-align: center;
}

.slide:hover::after {
    bottom: 0;
}

@media (max-width: 768px) {
    .fab-mobile {
        display: flex;
    }
}

@media (max-width: 640px) {
    .carousel-wrap {
        height: 300px;
    }
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .75s ease;
    pointer-events: none;
}

.slide.active {
    opacity: 1;
    pointer-events: auto;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 9999px;
    background: var(--color-dot-bg);
    border: none;
    cursor: pointer;
    transition: background .3s, width .3s;
}

.dot.active {
    background: var(--color-primary);
    width: 28px;
}

.arrow-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--color-arrow-bg);
    color: var(--color-arrow-text);
    width: 46px;
    height: 46px;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: background .2s;
}

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

/* ── Service card hover ── */
.service-card {
    transition: transform .25s, box-shadow .25s;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px var(--shadow-primary-hover);
}

/* ── Scroll reveal ── */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .6s ease, transform .6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: none;
}

/* ── WhatsApp FAB ── */
#fab-wa {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 100;
    width: 58px;
    height: 58px;
    border-radius: 9999px;
    background: var(--color-whatsapp);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 24px var(--shadow-whatsapp);
    transition: transform .2s, box-shadow .2s;
}

#fab-wa:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 32px var(--shadow-whatsapp-hover);
}
/* ── Back to Top ── */
#back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: white;
    color: #e30613;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    border: 1px solid rgba(227, 6, 19, 0.1);
}

#back-to-top.show {
    opacity: 1;
    visibility: visible;
}

#back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(227, 6, 19, 0.2);
}

@media (min-width: 769px) {
    #back-to-top {
        bottom: 24px;
        right: 24px;
    }
}

/* ── Cookie Banner ── */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(227, 6, 19, 0.1);
    padding: 24px;
    z-index: 5000;
    display: none;
    flex-direction: column;
    gap: 20px;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.08);
}

#cookie-banner.show {
    display: flex;
}

#cookie-banner .banner-text {
    font-size: 0.95rem;
    color: #4a4a4a;
    line-height: 1.6;
}

#cookie-banner .button-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

#cookie-banner button {
    width: 100%;
    justify-content: center;
    padding: 14px;
}

@media (min-width: 768px) {
    #cookie-banner {
        bottom: 24px;
        left: 50%;
        transform: translateX(-50%);
        width: calc(100% - 48px);
        max-width: 850px;
        border: 1px solid rgba(227, 6, 19, 0.15);
        border-radius: 24px;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 24px 32px;
        box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    }

    #cookie-banner .button-group {
        flex-direction: row;
        width: auto;
    }

    #cookie-banner button {
        width: auto;
        min-width: 140px;
    }
}

