/* ==========================================================================
   ROVI-SUB — Full d'estils global
   Botiga especialitzada en busseig, pesca submarina i apnea
   ========================================================================== */

/* ==========================================================================
   1. RESET I VARIABLES
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Seguretat global: cap imatge desborda el contenidor */
img {
    max-width: 100%;
    height: auto;
}

:root {
    --primary: #0077be;
    --primary-dark: #005a8e;
    --secondary: #00a8cc;
    --secondary-light: #b6edfa;
    --section-bg: #ecf4fd;
    --accent: #ff6b35;
    --dark: #0a2540;
    --light: #f8f9fa;
    --gray: #6c757d;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}


/* ==========================================================================
   1B. LANGUAGE SWITCHER (dins la navbar)
   ========================================================================== */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-left: 0.75rem;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.3);
    color: var(--dark);
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition);
    line-height: 1;
}

.lang-btn:hover {
    background: #ff8c42;
    color: #ffffff;
    border-color: #ff8c42;
}

.lang-btn.active {
    background: var(--dark);
    color: #ffffff;
    border-color: var(--dark);
}


/* ==========================================================================
   2. NAVBAR
   ========================================================================== */
.navbar {
    background: linear-gradient(135deg, #fdfaf5 0%, #ffe2c2 45%, #fe8f1f 100%);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    /* ← alçada total que tindrà la navbar */
    padding: 0 20px;
    /* ← 0 vertical: tot l'espai és per al logo */
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

/* El logo omple tota l'alçada disponible */
.logo-img {
    height: 100%;
    /* màxim de gran dins la navbar */
    max-height: 80px;
    width: auto;
}

/* Navbar nav: contenidor flex d'enllaços + idioma */
.navbar nav {
    display: flex;
    align-items: center;
}

/* Nav-dropdown: a dalt de tot, amaga el padding del nav-links */
.nav-dropdown {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Enllaços */
.nav-links {
    display: flex;
    list-style: none;
    gap: 0.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    padding: 0.4rem 0.9rem;
    border-radius: 8px;
    transition: background 0.1s ease, color 0.1s ease;
}

/* Hover: taronja mitjà amb text blanc */
.nav-links a:hover {
    background: #ff8c42;
    color: #ffffff;
}

/* Enllaç actiu: taronja una mica més fosc */
.nav-links a.active {
    background: #f4711f;
    color: #ffffff;
}

/* Botó menú mòbil */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark);
}

/* ===== AVÍS ANIMAT A LA NAVBAR ===== */
.navbar-alert {
    background: #e63946;
    color: #ffffff;
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    padding: 0.45rem 1.25rem;
    border-radius: 50px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(230, 57, 70, 0.4);
    animation: alertPulseColor 1.6s ease-in-out infinite;
}

/* Pulsació + canvi de color vermell → taronja */
@keyframes alertPulseColor {

    0%,
    100% {
        transform: scale(1);
        background: #e63946;
    }

    50% {
        transform: scale(1.07);
        background: #ff6b35;
    }
}

/* ==========================================================================
   3. HERO (carrusel d'imatges de fons)
   ========================================================================== */
.hero {
    position: relative;
    height: 85vh;
    /* ← tota l'alçada de la pantalla */
    min-height: 650px;
    /* ← mai més baix d'això (pantalles petites) */
    color: var(--white);
    padding: 9rem 2rem;
    text-align: center;
    overflow: hidden;
    background: var(--dark);
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

/* Cada capa de fons del carrusel */
.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    z-index: 1;
    transition: opacity 2.5s linear;
}

/* Imatge activa: visible i amb zoom */
.hero-slide.active {
    opacity: 1;
    z-index: 2;
    animation: heroZoom 6s linear forwards;
}

/* Imatge que marxa: es fon mantenint el zoom */
.hero-slide.fading {
    opacity: 0;
    z-index: 1;
    animation: heroZoom 6s linear forwards;
}

@keyframes heroZoom {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.07);
    }
}

/* Capa de tons sobre les imatges per llegibilitat del text */
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(135deg,
            rgba(0, 119, 190, 0.55),
            rgba(10, 37, 64, 0.75));
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* ===== TÍTOL DEL HERO: gran, blaus clars i ombra ===== */
.hero-content h1 {
    font-size: 4.0rem;
    font-weight: 800;
    letter-spacing: 1px;

    /* Degradat de blaus clars */
    background: linear-gradient(135deg, #eaf7ff 0%, #9adcff 45%, #0392df 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;

    /* Ombra sobre les fotos del carrusel */
    filter: drop-shadow(0 4px 12px rgba(0, 25, 50, 0.6));
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== BOTONS DEL HERO: contrast sobre les fotos ===== */

/* Primari: taronja sòlid (destaca sobre el blau de l'aigua) */
.hero-content .btn-primary {
    background: #ff6b35;
    color: var(--white);
    border: 2px solid #ff6b35;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

/* Secundari: efecte vidre amb contorn blanc */
.hero-content .btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    border: 1px solid #ffffff;
    backdrop-filter: blur(4px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

/* Hover dels dos: transparent amb contorn BLANC (llegible sobre qualsevol foto) */
.hero-content .btn-primary:hover,
.hero-content .btn-secondary:hover {
    background: transparent;
    color: #ffffff;
    border-color: #ffffff;
}

/* ==========================================================================
   4. BOTONS
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

/* ===== BOTÓ PRIMARI: blau fosc ===== */
.btn-primary {
    background: #005a8e;
    color: var(--white);
    border: 2px solid #005a8e;
}

.btn-primary:hover {
    background: transparent;
    color: #005a8e;
}

/* ===== BOTÓ SECUNDARI: turquesa clar ===== */
.btn-secondary {
    background: #00a8cc;
    color: var(--white);
    border: 2px solid #00a8cc;
}

.btn-secondary:hover {
    background: transparent;
    color: #00a8cc;
}


/* ==========================================================================
   5. SECCIONS (estils base)
   ========================================================================== */
section {
    padding: 5rem 0;
}

section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.section-subtitle {
    text-align: center;
    color: var(--gray);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}


/* ==========================================================================
   6. CAPÇALERA DE SECCIÓ (targeta horitzontal amb logotip)
   ========================================================================== */
.section-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: var(--section-bg);
    border-radius: 0;
    box-shadow: 0 8px 20px rgba(10, 37, 64, 0.18);
    padding: 1.5rem 2rem;
    margin-bottom: 3rem;
}

.section-header:hover {
    transform: none;
}

/* Logotip a l'esquerra */
.section-logo {
    width: 160px;
    height: 160px;
    flex-shrink: 0;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--primary);
    box-shadow: 0 4px 12px rgba(10, 37, 64, 0.25);
}

/* Text a la dreta */
.section-header-text h2 {
    text-align: left;
    margin-bottom: 0.25rem;
    color: var(--dark);
}

.section-header-text .section-subtitle {
    text-align: left;
    margin-bottom: 0;
}

/* Ajust de marges perquè no es dupliqui l'espaiat */
.section-header h2 {
    margin-bottom: 0.5rem;
}

.section-header .section-subtitle {
    margin-bottom: 0;
}

/* Varianta fosca (secció Sobre Nosaltres) */
.section-header--dark {
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(4px);
}

.section-header--dark h2 {
    color: var(--white);
}

.section-header--dark .section-subtitle {
    color: #cfd8e3;
}

.section-header--dark .section-logo {
    border-color: var(--white);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}


/* ==========================================================================
   7. SERVEIS
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

/* Targeta de servei com a enllaç */
a.service-card {
    display: block;
    color: var(--dark);
    text-decoration: none;
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition:
        background 0.35s ease,
        color 0.35s ease,
        transform 0.35s ease,
        box-shadow 0.35s ease;
}

/* Hover: fons blau molt clar */
a.service-card:hover {
    background: #e8f4fb;
    color: var(--dark);
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 119, 190, 0.15);
}

/* Icona */
.service-icon {
    margin-bottom: 1rem;
}

.service-icon img,
img.service-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary);
    box-shadow: 0 4px 10px rgba(10, 37, 64, 0.15);
    transition: filter 0.35s ease, transform 0.35s ease, border-color 0.35s ease;
    display: inline-block;
}

.service-card .service-icon {
    transition: transform 0.35s ease;
}

.service-card:hover .service-icon {
    filter: none;
    transform: scale(1.08);
}

.service-card:hover .service-icon img,
.service-card:hover img.service-icon {
    transform: scale(1.01);
}

/* Títol */
.service-card h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    transition: color 0.35s ease;
}

.service-card:hover h3 {
    color: var(--dark);
}

/* Paràgraf */
.service-card p {
    color: #4a5568;
    transition: color 0.35s ease;
}

.service-card:hover p {
    color: #2d3748;
}


/* ==========================================================================
   8. OUTLET
   ========================================================================== */
.outlet {
    background: linear-gradient(135deg, #bddefc, #ffffff);
}

.outlet h2 {
    color: var(--accent);
}

/* Etiqueta animada d'ofertes */
.outlet-alert {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: fit-content;
    margin: 0 auto 2rem;
    padding: 0.9rem 2.25rem;
    background: linear-gradient(90deg, #1c86ff, #014271);
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-align: center;
    border-radius: 50px;
    box-shadow: 0 6px 18px rgba(10, 158, 203, 0.504);
    overflow: hidden;
    animation: alertPulse 1.6s ease-in-out infinite;
}

/* Brillat que escombra l'etiqueta */
.outlet-alert::after {
    content: '';
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.55), transparent);
    transform: skewX(-20deg);
    animation: alertShine 2.5s ease-in-out infinite;
}

@keyframes alertPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes alertShine {
    0% {
        left: -75%;
    }

    60%,
    100% {
        left: 125%;
    }
}

/* Focs que boten */
.outlet-alert-icon {
    font-size: 1.3rem;
    animation: flameBounce 0.9s ease-in-out infinite;
}

.outlet-alert-icon:last-child {
    animation-delay: 0.45s;
}

@keyframes flameBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

/* Graella de productes */
.outlet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 2rem;
}

.outlet-card {
    background: #f8f9fb;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(10, 37, 64, 0.12);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.outlet-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 30px rgba(10, 37, 64, 0.2);
}

/* Imatge amb badge de descompte */
.outlet-img {
    position: relative;
    background: #ffffff;
    height: 230px;
}

.outlet-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.discount-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: #e55a2b;
    color: #ffffff;
    font-weight: 800;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(230, 57, 70, 0.45);
}

/* Cos de la targeta */
.outlet-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
}

.outlet-body h3 {
    color: #1a4fa0;
    font-size: 1.35rem;
}

.outlet-desc {
    color: var(--gray);
    line-height: 1.6;
    flex: 1;
}

/* Preus */
.outlet-prices {
    display: flex;
    align-items: baseline;
    gap: 0.9rem;
}

.old-price {
    text-decoration: line-through;
    color: var(--gray);
    font-size: 1rem;
}

.new-price {
    color: #a33713;
    font-size: 1.7rem;
    font-weight: 800;
}

/* Botó de consulta */
.btn-consultar {
    display: block;
    text-align: center;
    text-decoration: none;
    color: #ffffff;
    font-weight: 700;
    padding: 0.85rem 1.5rem;
    border-radius: 50px;
    background: linear-gradient(90deg, #e55a2b, #ffb300);
    transition: filter 0.3s ease, transform 0.3s ease;
}

.btn-consultar:hover {
    filter: brightness(1.12);
    transform: translateY(-2px);
}

/* ===== TARGETES COMPACTES AMB "LLEGIR MÉS" + LLISTAT COMPACTE ===== */

/* Descripció tallada a 3 línies */
.outlet-desc {
    display: -webkit-box;
    -webkit-line-clamp: 3;          /* ← número de línies visibles */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Llistat: amagat per defecte i compacte */
.outlet-list {
    list-style: none;
    margin: 0.75rem 0 1rem;
    padding-left: 0.4rem;
    display: none;                  /* amagat fins que s'expandeix */
}

/* Items: línies juntes */
.outlet-list li {
    position: relative;
    padding-left: 1.3rem;
    margin-bottom: 0.3rem;
    line-height: 1.35;
    color: #4a5568;
    font-size: 0.92rem;
}

/* Marca ✔ de cada item */
.outlet-list li::before {
    content: '✔';
    position: absolute;
    left: 0;
    top: 0.05em;
    color: var(--secondary);
    font-weight: 700;
    font-size: 0.85em;
}

/* --- Targeta expandida --- */
.outlet-card.expanded .outlet-desc {
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
}

.outlet-card.expanded .outlet-list {
    display: block;
}

/* --- Botó Llegir més --- */
.outlet-toggle {
    background: none;
    border: none;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 0.25rem 0;
    margin: 0.25rem 0 0.5rem;
    text-align: left;
}

.outlet-toggle:hover {
    color: var(--accent);
    text-decoration: underline;
}

/* ==========================================================================
   9. ABOUT (Sobre Nosaltres)
   ========================================================================== */
.about {
    background: var(--dark);
    color: var(--white);
}

.about h2 {
    color: var(--white);
}

/* Logotip amb vora turquesa sobre fons fosc */
.about .section-logo {
    border-color: var(--secondary);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stat h3 {
    font-size: 3rem;
    color: var(--secondary);
}


/* ==========================================================================
   10. CONTACTE
   ========================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
}

/* Targeta única de contacte amb fons degradat */
.contact-card-single {
    background: linear-gradient(135deg, #fcfaf8 0%, #fff0d8 45%, #ffe1c5 100%);
    border-radius: 14px;
    box-shadow: 0 6px 16px rgba(10, 37, 64, 0.12);
    padding: 0.5rem 2rem;
}

/* Cada item = una fila (títol | contingut) */
.contact-row {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 1.25rem;
    align-items: baseline;
    padding: 1.1rem 0;
    border-bottom: 1px dashed rgba(10, 37, 64, 0.2);
}

.contact-row:last-child {
    border-bottom: none;
}

.contact-row h3 {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Colors alternats per als títols */
.contact-row:nth-child(1) h3 {
    color: var(--primary);
}

.contact-row:nth-child(2) h3 {
    color: var(--accent);
}

.contact-row:nth-child(3) h3 {
    color: var(--primary);
}

.contact-row:nth-child(4) h3 {
    color: var(--accent);
}

.contact-row p {
    color: #3d4a5c;
    line-height: 1.6;
}

.contact-row a {
    color: inherit;
    font-weight: 600;
    text-decoration: none;
}


/* ==========================================================================
   11. FOOTER (compacte en una línia)
   ========================================================================== */
.footer-minimal {
    position: relative;
    background: linear-gradient(135deg, #0a2540 0%, #1a3a5c 50%, #0d2f52 100%);
    color: #ffffff;
    padding: 1.25rem 0;
    margin-top: 4rem;
    overflow: hidden;
}

.waves-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.waves {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
}

.footer-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-brand {
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 3px;
    color: #ffffff;
    text-transform: uppercase;
}

.footer-sep {
    color: rgba(255, 255, 255, 0.4);
    font-size: 1rem;
}

/* Crèdit amb icona d'abella */
.footer-credit {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
}

.footer-credit a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: var(--transition);
}

.footer-credit a:hover {
    border-bottom-color: #ffffff;
}

/* Logotip abellot al footer */
.bee-img {
    height: 46px;
    width: 46px;
    object-fit: contain;
    padding: 4px;
    flex-shrink: 0;
}


/* ==========================================================================
   12. SUBPÀGINES (page-hero, catàleg, marques)
   ========================================================================== */
/* Capçalera de subpàgina */
.page-hero {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    text-align: center;
    padding: 5rem 2rem 4rem;
}

.page-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.page-hero p {
    font-size: 1.15rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Capçalera amb foto de fons */
.page-hero--foto {
    background-color: var(--dark);
    background-image:
        linear-gradient(rgba(10, 37, 64, 0.55), rgba(10, 37, 64, 0.78)),
        url('../img/botiga4.jpg');
    background-size: cover;
    background-position: center;
    padding: 7rem 2rem 6rem;
}

.page-content {
    padding: 4rem 0 5rem;
}

/* Graella de categories */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.category-card {
    background: var(--white);
    box-shadow: var(--shadow);
    padding: 1.75rem 1.25rem;
    text-align: center;
    transition: var(--transition);
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.category-card h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

/* Botons al peu de la subpàgina */
.page-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Graella de catàleg (foto a dalt + text a sota) */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.catalog-item {
    background: var(--white);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}

.catalog-img {
    height: 190px;
    overflow: hidden;
}

.catalog-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.catalog-body {
    padding: 1.5rem 1.5rem 2rem;
}

.catalog-body h3 {
    color: var(--dark);
    font-size: 1.45rem;
    text-align: left;
    margin-bottom: 0.75rem;
}

.catalog-body ul {
    list-style: none;
}

.catalog-body li {
    position: relative;
    color: #4a627a;
    line-height: 1.35;
    padding: 0.1rem 0 0.1rem 1.4rem;
    text-align: left;
}

/* Marca al davant de cada item */
.catalog-body li::before {
    content: '✔';
    position: absolute;
    left: 0;
    top: 0.15em;
    color: var(--secondary);
    font-weight: 700;
    font-size: 0.9em;
}

/* Nom del servei en negreta */
.catalog-body li strong {
    color: var(--dark);
    font-weight: 700;
}

/* Targeta àmplia que ocupa tota la fila */
.catalog-item--wide {
    grid-column: 1 / -1;
}

.catalog-item--wide .catalog-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    padding: 2rem;
}

.catalog-item--wide .catalog-img {
    height: 280px;
}

.catalog-group h3 {
    margin-bottom: 0.75rem;
}

/* Marques: targetes sense marge ni animació */
.brands {
    text-align: center;
    margin: 3rem 0;
}

.brands-title {
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--dark);
    margin-bottom: 1.5rem;
}

/* Fila centrada amb una sola targeta */
.brands-row {
    display: flex;
    justify-content: center;
    /* ← centra l'única targeta */
}

/* Targeta Cressi: groc molt pàl·lid */
.brand-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1.25rem 2rem;
    width: min(320px, 100%);
    /* ample màxim elegant */
    /* sense marges, sense animació (es manté) */
}

.brand-cressi {
    background: #ffffff;
    /* blanc */
}

.brand-card img {
    width: 100%;
    height: 110px;
    object-fit: contain;
    display: block;
}

.brand-name {
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--dark);
    font-size: 0.9rem;
}


/* ==========================================================================
   13. BOTÓ FLOTANT WHATSAPP
   ========================================================================== */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    z-index: 2000;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
    fill: #ffffff;
}

.whatsapp-float:hover {
    transform: scale(1.08);
    box-shadow: 0 10px 24px rgba(37, 211, 102, 0.5);
}

/* Polsació per cridar l'atenció */
.whatsapp-float::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    animation: waPulse 2s infinite;
}

@keyframes waPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55);
    }

    70% {
        box-shadow: 0 0 0 18px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* ==========================================================================
   14. RESPONSIVE (totes les media queries agrupades)
   ========================================================================== */
/* --- Mòbil (<= 768px) --- */
@media (max-width: 768px) {

    .navbar .container {
        height: 58px;
    }

    /* Dropdown: contenidor del menú + idioma */
    .nav-dropdown {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        box-shadow: var(--shadow);
        z-index: 1001;
        display: none;
    }

    .nav-dropdown.active {
        display: block;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        padding: 1rem;
    }

    /* Lang switcher: baix del menú */
    .lang-switcher {
        display: flex;
        margin-left: 0;
        padding: 0.6rem 1rem 1rem;
        justify-content: center;
        border-top: 1px solid #eee;
    }

    .menu-toggle {
        display: block;
    }

    .logo-img {
        max-height: 58px;
        margin-bottom: 0;
    }

    /* Hero */
    .hero {
        height: 80vh;
        /* abans potser 60vh → més alt al mòbil */
        min-height: 480px;
    }

    .hero-content h1 {
        font-size: 2.4rem;
        /* abans 2rem → una mica més gran */
        line-height: 1.15;
    }

    .hero-content p {
        font-size: 1rem;
    }

    /* Seccions */
    section h2 {
        font-size: 2rem;
    }

    .section-header {
        gap: 1rem;
        padding: 1rem 1.25rem;
    }

    .section-logo {
        width: 72px;
        height: 72px;
        border-width: 0px;
    }

    .section-header-text h2 {
        font-size: 1.5rem;
    }

    .section-header-text .section-subtitle {
        font-size: 0.95rem;
    }

    /* Serveis */
    .service-icon img,
    img.service-icon {
        width: 64px;
        height: 64px;
        border-width: 2px;
    }

    /* Contacte */
    .contact-grid {
        grid-template-columns: 1fr;
    }

    /* About */
    .stats {
        grid-template-columns: 1fr;
    }

    /* Subpàgines */
    .page-hero h1 {
        font-size: 1.8rem;
    }

    .catalog-item--wide .catalog-body {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .catalog-item--wide .catalog-img {
        height: 200px;
    }

    /* Marques: 2 columnes */
    .brands-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .brand-card img {
        height: 80px;
    }

    /* WhatsApp */
    .whatsapp-float {
        width: 52px;
        height: 52px;
        bottom: 16px;
        right: 16px;
    }

    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }
}

/* --- Mòbil petit (<= 640px) --- */
@media (max-width: 640px) {

    /* Contacte: títol sobre el text */
    .contact-row {
        grid-template-columns: 1fr;
        gap: 0.25rem;
        padding: 1rem 0;
    }

    .contact-card-single {
        padding: 0.5rem 1.25rem;
    }

    /* Footer: columna */
    .footer-content {
        flex-direction: column;
        gap: 0.5rem;
    }

    .footer-sep {
        display: none;
    }

    .footer-brand {
        font-size: 0.95rem;
        letter-spacing: 2px;
    }
}

/* Accessibilitat: sense animacions si l'usuari ho prefereix */
@media (prefers-reduced-motion: reduce) {
    .hero-slide {
        transition: none;
    }

    .hero-slide.active {
        animation: none;
    }

    .outlet-alert,
    .outlet-alert::after,
    .outlet-alert-icon {
        animation: none;
    }

    .whatsapp-float::after {
        animation: none;
    }
}

/* Mòbil: més petit */
@media (max-width: 968px) {
    .navbar-alert {
        font-size: 0.8rem;
        padding: 0.35rem 0.9rem;
    }
}

@media (max-width: 560px) {

    /* Permet que la navbar tingui dues files */
    .navbar .container {
        flex-wrap: wrap;
        row-gap: 0.5rem;
        padding-bottom: 0.6rem;
    }

    /* L'avís baixa a sota, centrat i a ample complet */
    .navbar-alert {
        order: 3;
        /* després del logo i el menú */
        flex-basis: 100%;
        text-align: center;
        font-size: 0.8rem;
        padding: 0.35rem 0.9rem;
    }
}

/* Sense animació si l'usuari ho prefereix */
@media (prefers-reduced-motion: reduce) {
    .navbar-alert {
        animation: none;
    }
}

/* Lang bar responsive */
@media (max-width: 768px) {
    .lang-btn {
        padding: 0.15rem 0.5rem;
        font-size: 0.7rem;
    }
}