* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: #222;
    background: #ececec;
    overflow-x: hidden;
}

/* ── Screen reader only ── */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ── Hero Section ── */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('./assets/background.webp') center/cover no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0 20px;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 5.5rem);
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.15em;
    margin-bottom: 20px;
}

.hero-title .y-lower {
    text-transform: lowercase;
}

.hero-tagline {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.05em;
}

/* ── Features Section ── */
.features {
    padding: 80px 20px;
    background: #ececec;
}

.features-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature-card {
    text-align: center;
    padding: 30px 15px;
    opacity: 0;
    animation: fadeIn 0.6s ease-out forwards;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }

.feature-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    color: #222;
}

.feature-icon svg {
    width: 100%;
    height: 100%;
}

.feature-card h3 {
    font-size: 0.95rem;
    font-weight: 500;
    color: #222;
    line-height: 1.5;
}

/* ── Gallery / Carousel ── */
.gallery {
    padding: 0 0 60px;
    background: #ececec;
}

.carousel {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 8px;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    flex-shrink: 0;
}

.carousel-slide img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
    cursor: zoom-in;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: none;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease-in-out, opacity 0.2s ease-in-out;
    z-index: 2;
    opacity: 0;
}

.carousel:hover .carousel-btn {
    opacity: 1;
}

.carousel-btn:hover {
    background: #fff;
}

.carousel-btn svg {
    width: 20px;
    height: 20px;
    color: #222;
}

.carousel-btn-prev {
    left: 16px;
}

.carousel-btn-next {
    right: 16px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 20px 0;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: #ccc;
    cursor: pointer;
    transition: background 0.2s ease-in-out;
}

.dot.active {
    background: #222;
}

/* ── Lightbox Modal ── */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    animation: fadeIn 0.2s ease-out;
    cursor: zoom-out;
}

.lightbox[hidden] {
    display: none;
}

.lightbox-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    cursor: default;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease-in-out;
    color: #fff;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lightbox-close svg {
    width: 22px;
    height: 22px;
}

.lightbox-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease-in-out;
    color: #fff;
    z-index: 1;
}

.lightbox-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lightbox-btn svg {
    width: 22px;
    height: 22px;
}

.lightbox-btn-prev {
    left: 20px;
}

.lightbox-btn-next {
    right: 20px;
}

body.lightbox-open {
    overflow: hidden;
}

@media (max-width: 480px) {
    .lightbox {
        padding: 10px;
    }

    .lightbox-btn {
        width: 40px;
        height: 40px;
    }

    .lightbox-btn-prev {
        left: 8px;
    }

    .lightbox-btn-next {
        right: 8px;
    }
}

/* ── Social Section ── */
.social {
    padding: 40px 20px 60px;
    background: #ececec;
}

.social-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    max-width: 600px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 6px;
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background-color 0.2s ease-in-out, transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    flex: 1;
    justify-content: center;
    min-width: 150px;
}

.social-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.social-btn.facebook {
    background-color: #3b5998;
}

.social-btn.facebook:hover {
    background-color: #2d4373;
}

.social-btn.whatsapp {
    background-color: #27d061;
}

.social-btn.whatsapp:hover {
    background-color: #1fb855;
}

.social-btn.instagram {
    background-color: #f00075;
}

.social-btn.instagram:hover {
    background-color: #d10068;
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .carousel-slide img {
        height: 300px;
    }

    .carousel-btn {
        opacity: 1;
        width: 36px;
        height: 36px;
    }

    .carousel-btn svg {
        width: 16px;
        height: 16px;
    }

    .social-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .social-btn {
        min-width: unset;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 400px;
    }

    .features {
        padding: 50px 15px;
    }

    .features-grid {
        grid-template-columns: 1fr 1fr;
        gap: 5px;
    }

    .feature-card {
        padding: 20px 10px;
    }

    .carousel-slide img {
        height: 220px;
    }
}
