/* ============================================================
   style.css — Brass Ukraine
   Encoding: UTF-8
   ============================================================ */

/* Основні змінні кольору */
:root {
    --main-color: #e8b208;
    --dark-bg: #111;
    --light-bg: #fff;
    --accent-bg: #f7f7f7;
    --section-padding: 40px 0;
}

/* Загальні стилі */

* { box-sizing: border-box; }

body {
    font-family: 'Open Sans', sans-serif;
    color: #333;
    background: var(--light-bg);
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    margin-bottom: 20px;
}

p {
    margin-bottom: 20px;
}

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

a {
    color: var(--main-color);
    text-decoration: none;
    transition: 0.3s;
}

a:hover {
    text-decoration: underline;
}

/* Анімація появи елементів (уніфіковано: використовуємо клас .visible) */
.fade-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
    padding: 40px;
}

/* Preloader */
#preloader {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: url('../img/preloader.svg') center center no-repeat #fff;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

/* Header */
#header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: var(--dark-bg);
    padding: 20px;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

#header h1 a {
    color: #fff;
    font-size: 28px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}

.nav-menu li a {
    color: #fff;
    font-weight: 500;
    padding: 8px 12px;
}

.nav-menu li a:hover,
.nav-menu .menu-active a,
.nav-menu li a.menu-active {
    color: var(--main-color);
}

/* Sections */
section {
    padding: var(--section-padding);
}

.section-title {
    text-align: center;
    font-size: 32px;
    text-transform: uppercase;
    margin-bottom: 30px;
}

.section-description {
    text-align: center;
    color: #666;
    margin-bottom: 40px;
}

/* ============================================================
   Brass / Hero
   ============================================================ */
#brass {
    height: 100vh;
    background: url('../img/brass.webp') center center / cover no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
}

#brass .brass-container {
    padding: 40px;
}

.brass-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40%;
    margin: 0 auto;
    margin-bottom: 400px;
}

.btn-get-started {
    background: var(--main-color);
    color: #fff;
    padding: 10px 24px;
    border: none;
    border-radius: 4px;
    text-transform: uppercase;
}

.btn-get-started:hover {
    background: #00b4db;
}

/* ============================================================
   About
   ============================================================ */
#about {
    margin-top: 40px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-content {
    text-align: justify;
}

@media (max-width: 768px) {
    .about-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Poster / Swiper Carousel (merged from it.html)
   ============================================================ */
#poster {
    background-color: #1a1a1a;
    color: #fff;
    padding: 50px 20px 60px;
}

#poster .section-title {
    color: #fff;
}

#poster .section-description {
    color: #aaa;
}

.poster-swiper {
    width: 100%;
    padding-bottom: 50px;
}

.poster-slide {
    text-align: center;
    font-size: 18px;
    background: #282828;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    height: 400px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

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

.poster-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 15px;
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.poster-slide:hover .poster-info {
    opacity: 1;
}

.poster-info h3 {
    margin: 0 0 5px;
    font-size: 16px;
}

.poster-info p {
    margin: 0;
    font-size: 13px;
}

/* Кнопки навігації каруселі */
.poster-button-next,
.poster-button-prev {
    color: var(--main-color) !important;
    transition: color 0.3s ease;
}

.poster-button-next:hover,
.poster-button-prev:hover {
    color: #fff !important;
}

/* ============================================================
   Subscribe / Tickets
   ============================================================ */
#subscribe,
#tickets {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
                url('../img/subscribe-bg1.jpg') center / cover;
    color: #fff;
    text-align: center;
    padding: 40px 40px;
    margin-top: 40px;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 5px;
    margin-top: 30px;
}

.social-item {
    display: flex;
    justify-content: center;
}

/* Font Awesome іконки в кнопках підписки */
.social-icon-fa {
    font-size: 22px;
    flex-shrink: 0;
    display: inline-block;
    transition: transform 0.5s ease;
}

.subscribe-btn:hover .social-icon-fa {
    transform: rotate(360deg);
}

.subscribe-btn {
    background: transparent;
    border-radius: 30px;
    border: 2px solid #fff;
    padding: 10px 20px;
    color: #fff;
    text-transform: uppercase;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    transform: scale(1);
    white-space: nowrap;
}

.subscribe-btn:hover {
    background: var(--main-color);
    border-color: var(--main-color);
    color: #fff;
    transform: scale(1.05);
    box-shadow: 0 0 15px var(--main-color);
    text-decoration: none;
}

/* === Мобільна версія: лише іконки без написів та рамки === */
@media (max-width: 600px) {
    .social-grid {
        grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
        gap: 8px;
    }

    .subscribe-btn {
        border: none;
        background: transparent;
        padding: 10px;
        border-radius: 50%;
        justify-content: center;
        min-width: 50px;
        min-height: 50px;
    }

    .subscribe-btn:hover {
        background: var(--main-color);
        border: none;
        box-shadow: 0 0 15px var(--main-color);
        transform: scale(1.1);
    }

    .social-label {
        display: none; /* Приховуємо текст на мобільних */
    }

    .social-icon-fa {
        font-size: 20px;
    }
}

/* ============================================================
   Gallery
   ============================================================ */
#gallery {
    padding: 50px 20px;
    background-color: #fdfdfd;
    color: #222;
    text-align: center;
}

.gm-grid {
    display: flex;
    flex-wrap: wrap;
    margin: 0 auto;
    justify-content: center;
    max-width: 1200px;
}

.gm-grid .item {
    width: 250px;
    margin: 12px;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gm-grid .item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.gm-grid img {
    width: 100%;
    display: block;
    border-bottom: 4px solid var(--main-color);
}

/* ============================================================
   Team (flip cards)
   ============================================================ */
#team {
    padding: 50px 20px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    text-align: center;
    padding: 20px;
}

.team-member {
    width: 200px;
    height: 250px;
    margin: 1rem auto;
    perspective: 1000px;
    cursor: pointer;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.team-member:hover .card-inner,
.card-inner.is-flipped {
    transform: rotateY(180deg);
}

.card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 1rem;
    overflow: hidden;
    top: 0;
    left: 0;
}

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

.card-front {
    z-index: 2;
}

.card-back {
    transform: rotateY(180deg);
    z-index: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-back .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(16, 15, 15, 0.7), rgba(228, 217, 217, 0.3));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1px;
    text-align: center;
    color: #fff;
}

.card-back .overlay p,
.card-back .overlay i {
    margin: 5px 0;
}

@media (hover: none) {
    .team-member:active .card-inner {
        transform: rotateY(180deg);
    }
}

/* ============================================================
   Contact
   ============================================================ */
#contact {
    padding: 50px 20px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 3fr 1fr;
    gap: 40px;
    align-items: start;
}

@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.contact-form button {
    background: var(--main-color);
    border: none;
    padding: 10px 20px;
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
}

.contact-form button:hover {
    background: var(--dark-bg);
}

.map-container iframe {
    width: 100%;
    height: 250px;
    border-radius: 8px;
}

/* ============================================================
   Footer
   ============================================================ */
#footer {
    background: var(--dark-bg);
    color: #fff;
    padding: 20px 0;
    text-align: center;
    font-size: 14px;
}

/* ============================================================
   Back to top button
   ============================================================ */
.back-to-top {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 10px 16px;
    border: none;
    background: var(--main-color);
    color: #fff;
    border-radius: 4px;
    font-size: 18px;
    cursor: pointer;
    z-index: 998;
    transition: background 0.3s ease;
}

.back-to-top:hover {
    background: var(--dark-bg);
}
