/* =========================================================
   SELECT NETEGES — CSS modernitzat
   Paleta basada en el logotip original (blau aigua suau)
   ========================================================= */

:root {
    --primary: #6FB3C4;          /* Blau aigua del logotip */
    --primary-dark: #4A8C9E;     /* Versió més fosca per a accents */
    --primary-light: #A8CDD6;    /* Versió clara */
    --primary-bg: #E8F2F5;       /* Fons molt clar per a seccions */

    --dark: #1F2A33;             /* Negre/blau molt fosc */
    --dark-2: #2C3A45;
    --dark-soft: #3A4954;

    --text: #2C3A45;
    --text-light: #6B7A85;
    --text-muted: #8B97A0;

    --white: #ffffff;
    --gray-50: #F8FAFB;
    --gray-100: #F1F5F7;
    --gray-200: #E5EBEF;
    --gray-300: #D1DAE0;

    --shadow-sm: 0 2px 8px rgba(31, 42, 51, 0.06);
    --shadow: 0 8px 24px rgba(31, 42, 51, 0.08);
    --shadow-lg: 0 20px 50px rgba(31, 42, 51, 0.14);
    --shadow-xl: 0 30px 80px rgba(31, 42, 51, 0.18);

    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    --container: 1200px;
    --header-h: 80px;

    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==================== RESET ==================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary-dark);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--primary);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul {
    list-style: none;
}

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.25;
    color: var(--dark);
    letter-spacing: -0.02em;
}

/* ==================== UTILS ==================== */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 30px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.02em;
    border-radius: 50px;
    transition: all var(--transition);
    cursor: pointer;
    text-align: center;
    line-height: 1;
}

.btn-primary {
    background: var(--primary);
    color: var(--white) !important;
    box-shadow: 0 8px 20px rgba(111, 179, 196, 0.4);
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: var(--white) !important;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(74, 140, 158, 0.5);
}

.btn-ghost {
    background: transparent;
    color: var(--white) !important;
    border: 2px solid rgba(255, 255, 255, 0.7);
}

.btn-ghost:hover {
    background: var(--white);
    color: var(--dark) !important;
    border-color: var(--white);
    transform: translateY(-2px);
}

.btn-block {
    width: 100%;
}

/* ==================== PRELOADER ==================== */
.preloader {
    position: fixed;
    inset: 0;
    background: var(--white);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.loaded {
    opacity: 0;
    visibility: hidden;
}

.preloader-inner {
    text-align: center;
}

.preloader-logo {
    width: 60px;
    height: auto;
    margin: 0 auto 20px;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.95); }
}

.preloader-bar {
    width: 160px;
    height: 3px;
    background: var(--gray-200);
    border-radius: 3px;
    margin: 0 auto;
    overflow: hidden;
}

.preloader-bar span {
    display: block;
    height: 100%;
    background: var(--primary);
    border-radius: 3px;
    animation: load 1.5s ease-in-out infinite;
}

@keyframes load {
    0% { width: 0; margin-left: 0; }
    50% { width: 70%; }
    100% { width: 0; margin-left: 100%; }
}

/* ==================== HEADER ==================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-h);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all var(--transition);
    border-bottom: 1px solid transparent;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-sm);
    border-bottom-color: var(--gray-200);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo-link {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo {
    height: 48px;
    width: auto;
}

.nav ul {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    color: var(--text);
    font-weight: 500;
    font-size: 15px;
    border-radius: 50px;
    transition: all var(--transition);
    position: relative;
}

.nav-link i {
    font-size: 14px;
    color: var(--primary);
    transition: color var(--transition);
}

.nav-link:hover {
    color: var(--primary-dark);
    background: var(--primary-bg);
}

.nav-link.active {
    color: var(--primary-dark);
    background: var(--primary-bg);
}

.nav-link.active i {
    color: var(--primary-dark);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--dark);
    border-radius: 2px;
    transition: all var(--transition);
}

.nav-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ==================== HERO ==================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: calc(var(--header-h) + 40px) 0 80px;
    color: var(--white);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('../img/solar-panel-maintenance.jpg');
    background-size: cover;
    background-position: center 62%;
    background-attachment: fixed;
    transform: scale(1.05);
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(31, 42, 51, 0.85) 0%,
        rgba(74, 140, 158, 0.7) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 850px;
    animation: fadeInUp 1s ease-out;
}

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

.hero-eyebrow {
    display: inline-block;
    padding: 8px 18px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 24px;
    color: var(--white);
}

.hero-title {
    color: var(--white);
    font-size: clamp(2rem, 5vw, 3.75rem);
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.15;
}

.hero-title span {
    background: linear-gradient(135deg, var(--primary-light), var(--white));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text {
    font-size: clamp(1rem, 1.6vw, 1.2rem);
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 700px;
    color: rgba(255, 255, 255, 0.92);
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: bounce 2s infinite;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-scroll:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.25);
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ==================== SECTIONS ==================== */
.section {
    padding: 100px 0;
    position: relative;
}

.section-light {
    background: var(--gray-50);
}

.section-dark {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.85);
}

.section-dark h1, .section-dark h2,
.section-dark h3, .section-dark h4 {
    color: var(--white);
}

.section-contact {
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary-dark) 100%);
    color: var(--white);
}

.section-head {
    text-align: center;
    margin-bottom: 64px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.eyebrow {
    display: inline-block;
    color: var(--primary-dark);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.eyebrow.light {
    color: var(--primary-light);
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    margin-bottom: 18px;
}

.section-title.light {
    color: var(--white);
}

.section-divider {
    width: 60px;
    height: 4px;
    background: var(--primary);
    border-radius: 4px;
    margin: 0 auto 20px;
}

.section-divider.light {
    background: var(--primary-light);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.6;
}

.section-subtitle.light {
    color: rgba(255, 255, 255, 0.8);
}

/* ==================== GRID ==================== */
.grid {
    display: grid;
    gap: 48px;
}

.grid-2 {
    grid-template-columns: 1fr 1fr;
    align-items: center;
}

/* ==================== QUI SOM ==================== */
.grid-text p {
    font-size: 1.05rem;
    color: var(--text-light);
    margin-bottom: 18px;
    line-height: 1.75;
}

.grid-text p strong {
    color: var(--dark);
}

.grid-image {
    position: relative;
}

.grid-image img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4/5;
    object-fit: cover;
}

.grid-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100px;
    height: 100px;
    background: var(--primary);
    opacity: 0.15;
    border-radius: var(--radius);
    z-index: -1;
}

.grid-image::after {
    content: '';
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 140px;
    height: 140px;
    background: var(--primary-light);
    opacity: 0.25;
    border-radius: var(--radius);
    z-index: -1;
}

.features {
    margin-top: 36px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.feature {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.feature i {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: var(--primary-bg);
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.feature h4 {
    font-size: 1rem;
    margin-bottom: 4px;
    color: var(--dark);
}

.feature p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
    line-height: 1.5;
}

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

.service-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition);
}

.service-card:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, 0.07);
    border-color: var(--primary);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 64px;
    height: 64px;
    background: var(--primary-bg);
    color: var(--primary-dark);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 22px;
    transition: all var(--transition);
}

.service-card:hover .service-icon {
    background: var(--primary);
    color: var(--white);
    transform: scale(1.05);
}

.service-card h3 {
    color: var(--white);
    font-size: 1.4rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.service-card ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.service-card li {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.95rem;
    line-height: 1.55;
    padding-left: 22px;
    position: relative;
}

.service-card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
}

/* ==================== TREBALLS / GALERIA ==================== */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: var(--radius);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    display: block;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(31, 42, 51, 0.5) 100%);
    opacity: 0;
    transition: opacity var(--transition);
}

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

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item:hover::after {
    opacity: 1;
}

.gallery-zoom {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    opacity: 0;
    transition: all var(--transition);
    z-index: 2;
    box-shadow: var(--shadow);
}

.gallery-item:hover .gallery-zoom {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* ==================== CONTACTA ==================== */
.contact-grid {
    align-items: stretch;
    gap: 40px;
}

.contact-form-wrap {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 16px 20px;
    background: var(--gray-50);
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 15px;
    font-family: inherit;
    color: var(--text);
    transition: all var(--transition);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--text-muted);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(111, 179, 196, 0.15);
}

.contact-form textarea {
    resize: vertical;
    min-height: 130px;
    font-family: inherit;
}

.contact-info {
    display: flex;
    flex-direction: column;
    color: var(--white);
}

.contact-info h3 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.contact-intro {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 24px;
    line-height: 1.6;
}

.contact-btn {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px 22px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius);
    color: var(--white) !important;
    margin-bottom: 14px;
    transition: all var(--transition);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.contact-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(6px);
    border-color: rgba(255, 255, 255, 0.3);
}

.contact-btn i {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.contact-btn.whatsapp i {
    background: #25D366;
    color: white;
}

.contact-btn.phone i {
    background: var(--primary);
    color: white;
}

.contact-btn.email i {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.contact-btn span {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.contact-btn strong {
    font-size: 1rem;
    font-weight: 600;
    word-break: break-word;
}

.contact-btn small {
    font-size: 0.82rem;
    opacity: 0.75;
}

.contact-location {
    margin-top: auto;
    padding-top: 22px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
}

.contact-location i {
    color: var(--primary-light);
}

/* ==================== FOOTER ==================== */
.footer {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.6);
    padding: 28px 0;
    text-align: center;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.footer-logo {
    height: 28px;
    width: auto;
    opacity: 0.85;
}

.footer p {
    font-size: 0.92rem;
    margin: 0;
}

/* ==================== LIGHTBOX ==================== */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
    padding: 20px;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox img {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: var(--radius-sm);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all var(--transition);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.lightbox-close {
    top: 20px;
    right: 20px;
}

.lightbox-prev {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-prev:hover,
.lightbox-next:hover {
    transform: translateY(-50%) scale(1.05);
}

.lightbox-counter {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--white);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
}

/* ==================== WHATSAPP FLOATING ==================== */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: #25D366;
    color: var(--white) !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all var(--transition);
    animation: whatsappPulse 2.5s ease-in-out infinite;
}

.whatsapp-float:hover {
    background: #20bd5a;
    color: var(--white) !important;
    transform: scale(1.08);
}

@keyframes whatsappPulse {
    0%, 100% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0.5); }
    50% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4), 0 0 0 14px rgba(37, 211, 102, 0); }
}

/* ==================== SCROLL TOP ==================== */
.scroll-top {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: var(--shadow);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    background: var(--primary-dark);
    transform: translateY(-4px);
}

/* ==================== RESPONSIVE ==================== */

/* Tablet */
@media (max-width: 992px) {
    :root { --header-h: 70px; }

    .section { padding: 80px 0; }
    .section-head { margin-bottom: 48px; }

    .grid-2 {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .grid-image {
        max-width: 480px;
        margin: 0 auto;
    }

    .grid-image::before,
    .grid-image::after {
        display: none;
    }

    .hero-bg {
        background-attachment: scroll;
    }
}

/* Mobile */
@media (max-width: 768px) {
    :root { --header-h: 64px; }

    .container { padding: 0 18px; }

    /* Nav mòbil */
    .nav {
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        background: var(--white);
        padding: 12px 18px 24px;
        max-height: calc(100vh - var(--header-h));
        overflow-y: auto;
        box-shadow: var(--shadow-lg);
        transform: translateY(-12px);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition);
        border-top: 1px solid var(--gray-200);
    }

    .nav.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
    }

    .nav-link {
        padding: 14px 18px;
        font-size: 16px;
        border-radius: var(--radius);
    }

    .nav-toggle {
        display: flex;
    }

    .logo {
        height: 38px;
    }

    /* Hero */
    .hero {
        min-height: 100vh;
        padding: calc(var(--header-h) + 30px) 0 90px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .hero-eyebrow {
        font-size: 11px;
        padding: 6px 14px;
    }

    /* Sections */
    .section {
        padding: 64px 0;
    }

    .section-head {
        margin-bottom: 40px;
    }

    /* Features */
    .features {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-card {
        padding: 28px 24px;
    }

    /* Galeria */
    .gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    /* Contacte */
    .contact-form-wrap {
        padding: 28px 22px;
    }

    .contact-grid {
        gap: 28px;
    }

    .contact-btn {
        padding: 14px 16px;
        gap: 14px;
    }

    .contact-btn i {
        width: 42px;
        height: 42px;
        font-size: 17px;
    }

    .contact-btn strong {
        font-size: 0.92rem;
    }

    .contact-btn small {
        font-size: 0.78rem;
    }

    /* Lightbox */
    .lightbox-close,
    .lightbox-prev,
    .lightbox-next {
        width: 42px;
        height: 42px;
        font-size: 16px;
    }

    .lightbox-prev { left: 10px; }
    .lightbox-next { right: 10px; }
    .lightbox-close { top: 12px; right: 12px; }

    /* Botons flotants */
    .whatsapp-float {
        width: 52px;
        height: 52px;
        font-size: 26px;
        bottom: 18px;
        right: 18px;
    }

    .scroll-top {
        width: 42px;
        height: 42px;
        font-size: 14px;
        bottom: 18px;
        left: 18px;
    }

    /* Footer */
    .footer-inner {
        flex-direction: column;
        gap: 10px;
    }

    .footer p {
        font-size: 0.85rem;
    }
}

/* Mòbils petits */
@media (max-width: 380px) {
    .gallery {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 1.85rem;
    }

    .section-title {
        font-size: 1.75rem;
    }
}

/* Hover lleuger en cards i imatges és l'única animació que conservem.
   Eliminem .reveal per garantir que el contingut sempre sigui visible. */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html { scroll-behavior: auto; }
}
