/* ── Main ────────────────────────────────────────────────────────────────── */

main {
    max-width: 980px;
    margin: 0 auto;
    padding: 3rem 2rem 6rem;
}

@media (max-width: 680px) {
    header {
        padding: 0 1.25rem;
        /* was 0 2.5rem → much tighter on phones */
    }

    main {
        padding: 2rem 1rem 4rem;
        /* was 3rem 2rem 6rem → less side padding */
        max-width: 100%;
        /* optional but nice: full width on very small screens */
    }
}

/* ── Gallery banner ──────────────────────────────────────────────────────── */

.gallery-banner {
    position: relative;
    width: 100%;
    background: var(--bg);
    line-height: 0;
    overflow: hidden;
}

.gallery-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.gallery-track::-webkit-scrollbar {
    display: none;
}

.gallery-slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
    min-height: 180px;
    max-height: 340px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.gallery-slide-inner {
    width: 100%;
    height: 100%;
    animation: gallery-zoom 84s ease-in-out infinite;
    animation-play-state: running;
}

.gallery-banner.gallery-paused .gallery-slide-inner {
    animation-play-state: paused;
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    animation: gallery-pan 84s linear infinite;
    animation-play-state: running;
}

.gallery-banner.gallery-paused .gallery-slide img {
    animation-play-state: paused;
}

@keyframes gallery-zoom {
    0% {
        transform: scale(1.1);
    }

    50% {
        transform: scale(1.4);
    }

    100% {
        transform: scale(1.1);
    }
}

@keyframes gallery-pan {
    0% {
        object-position: 0% 0%;
    }

    50% {
        object-position: 100% 100%;
    }

    100% {
        object-position: 0% 0%;
    }
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.78);
    color: var(--accent);
    font-size: 1.55rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
    transition: background 0.15s, box-shadow 0.15s;
    padding: 0;
}

.gallery-arrow:hover {
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.25);
}

.gallery-prev {
    left: 0.75rem;
}

.gallery-next {
    right: 0.75rem;
}

.gallery-dots {
    position: absolute;
    bottom: 0.55rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.38rem;
    z-index: 2;
}

.gallery-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    border: none;
    padding: 0;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.18s, transform 0.18s;
}

.gallery-dot.active {
    background: #fff;
    transform: scale(1.3);
}

.gallery-dot:hover:not(.active) {
    background: rgba(255, 255, 255, 0.78);
}

/* ── Header ──────────────────────────────────────────────────────────────── */

header {
    border-bottom: 2px solid var(--border);
    padding: 0 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--header);
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 2px 12px rgba(90, 154, 197, 0.10);
    flex-wrap: wrap;
    gap: 1rem;
    min-height: 75px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex: 1 1;
    min-width: 0;
}

header h1 {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.45rem;
    letter-spacing: 0.01em;
    color: var(--accent);
}

header .tagline {
    font-size: 0.74rem;
    color: var(--muted);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 700;
    white-space: normal;
    line-height: 1.35;
    flex: 1 1;
}

/* mobile */
@media (max-width: 680px) {
    header .tagline {
        display: none;
    }
}

/* ── Header right — logo ─────────────────────────────────────────────────── */

.header-right {
    display: flex;
    align-items: center;
    align-self: stretch;
    height: 75px;
}

.header-logo {
    height: 90%;
    width: auto;
    display: block;
    object-fit: contain;
}

/* ── Header center — WhatsApp contact link ───────────────────────────────── */

.header-center {
    height: 100%;
    min-width: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 0.5rem;
}

.wa-contact-link {
    height: 80%;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--muted);
    background: rgba(37, 211, 102, 0.08);
    text-decoration: none;
    letter-spacing: 0.04em;
    white-space: nowrap;
    padding: 0.3rem 0.6rem;
    border-radius: 20px;
    transition: color 0.13s, background 0.13s;
}

.wa-contact-link:hover {
    color: #25D366;
    background: rgba(37, 211, 102, 0.16);
}

.wa-contact-link .wa-icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
    flex-shrink: 0;
}

.wa-contact-long {
    display: inline;
}

.wa-contact-short {
    display: none;
}

@media (max-width: 680px) {
    .wa-contact-long {
        display: none;
    }

    .wa-contact-short {
        display: inline;
    }
}

/* ── Tab bar ─────────────────────────────────────────────────────────────── */

.tab-bar {
    display: flex;
    gap: 0.4rem;
    margin-bottom: 2.5rem;
    border-bottom: 2px solid var(--border);
}

.tab-btn {
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    padding: 0.5rem 1.1rem 0.65rem;
    font-family: var(--font-head);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
    cursor: pointer;
    transition: color 0.13s, border-color 0.13s;
}

.tab-btn:hover {
    color: var(--accent);
}

.tab-btn.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}