/*
Theme Name: Mustang Ponycar Club
Theme URI: https://mustang-ponycar.hu
Author: Mustang Ponycar Club
Description: Official theme for Mustang Ponycar Club Hungary - dark, bold, muscle car aesthetic
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: mustang-ponycar
*/

:root {
    --red: #C8102E;
    --dark-red: #8B0000;
    --white: #F5F0E8;
    --off-white: #D4CFC4;
    --black: #0A0A0A;
    --dark: #111111;
    --mid: #1A1A1A;
    --steel: #2A2A2A;
    --gold: #C9A84C;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    background: var(--black);
    color: var(--white);
    font-family: 'Barlow', sans-serif;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
    opacity: 0.4;
}

/* ── NAV ── */
nav#site-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4vw;
    height: 70px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.95), rgba(0,0,0,0));
    transition: background 0.4s, backdrop-filter 0.4s;
}

nav#site-nav.scrolled {
    background: rgba(10,10,10,0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(200,16,46,0.3);
}

.nav-logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.4rem;
    letter-spacing: 3px;
    color: var(--white);
    text-decoration: none;
}

.nav-logo span { color: var(--red); }

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--off-white);
    text-decoration: none;
    position: relative;
    transition: color 0.3s;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 2px;
    background: var(--red);
    transition: width 0.3s;
}

.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }

.nav-burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
}

.nav-burger span {
    display: block;
    width: 24px; height: 2px;
    background: var(--white);
    transition: all 0.3s;
}

/* ── HERO ── */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 40%, rgba(200,16,46,0.12) 0%, transparent 70%),
        linear-gradient(180deg, #0A0A0A 0%, #0F0F0F 50%, #0A0A0A 100%);
}

.stripe {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--red), transparent);
    opacity: 0;
    animation: stripe-fly 4s ease-in-out infinite;
}

.stripe:nth-child(1) { width: 40%; top: 30%; left: -40%; animation-delay: 0s; }
.stripe:nth-child(2) { width: 60%; top: 45%; left: -60%; animation-delay: 0.8s; opacity: 0.6; }
.stripe:nth-child(3) { width: 50%; top: 60%; left: -50%; animation-delay: 1.6s; }
.stripe:nth-child(4) { width: 35%; top: 72%; left: -35%; animation-delay: 2.4s; opacity: 0.4; }

@keyframes stripe-fly {
    0% { transform: translateX(0); opacity: 0; }
    20% { opacity: 0.5; }
    80% { opacity: 0.3; }
    100% { transform: translateX(250vw); opacity: 0; }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    animation: hero-in 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes hero-in {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-logo {
    width: min(320px, 60vw);
    margin-bottom: 2rem;
    filter: drop-shadow(0 0 60px rgba(200,16,46,0.5));
    animation: logo-pulse 4s ease-in-out infinite;
    mix-blend-mode: screen;
}

@keyframes logo-pulse {
    0%, 100% { filter: drop-shadow(0 0 40px rgba(200,16,46,0.3)); }
    50% { filter: drop-shadow(0 0 80px rgba(200,16,46,0.6)); }
}

.hero-tagline {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(0.8rem, 2vw, 1rem);
    font-weight: 600;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: var(--off-white);
    margin-bottom: 1rem;
}

.hero-sub {
    font-size: clamp(0.75rem, 1.5vw, 0.9rem);
    color: rgba(212,207,196,0.5);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 300;
}

.hero-cta {
    margin-top: 3rem;
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── BUTTONS ── */
.btn-primary, .btn-secondary {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-decoration: none;
    padding: 14px 36px;
    clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
    transition: all 0.3s;
    display: inline-block;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--red);
    color: var(--white);
}

.btn-primary:hover {
    background: #e01232;
    transform: translateY(-2px);
    color: var(--white);
}

.btn-secondary {
    color: var(--white);
    border: 1px solid rgba(245,240,232,0.3) !important;
    background: transparent;
    padding: 13px 36px;
}

.btn-secondary:hover {
    border-color: var(--red) !important;
    background: rgba(200,16,46,0.1);
    transform: translateY(-2px);
    color: var(--white);
}

/* ── SECTION COMMON ── */
.section-label {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-label::before {
    content: '';
    display: inline-block;
    width: 30px; height: 2px;
    background: var(--red);
}

.section-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(3rem, 7vw, 6rem);
    line-height: 0.95;
    letter-spacing: 2px;
    color: var(--white);
    margin-bottom: 1.5rem;
}

.section-title em {
    font-style: normal;
    color: var(--red);
}

.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(200,16,46,0.4), transparent);
    margin: 0 4vw;
}

/* ── ABOUT ── */
.about-section { padding: 100px 4vw; }

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6vw;
    align-items: center;
    max-width: 1300px;
    margin: 0 auto;
}

.about-text p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: rgba(212,207,196,0.8);
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.about-text p strong { color: var(--white); font-weight: 500; }

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    margin-top: 3rem;
}

.stat {
    background: var(--mid);
    padding: 2rem;
    border-top: 3px solid transparent;
    transition: border-color 0.3s;
}

.stat:hover { border-color: var(--red); }

.stat-num {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3.5rem;
    color: var(--red);
    line-height: 1;
    display: block;
}

.stat-label {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--off-white);
    opacity: 0.6;
    margin-top: 0.25rem;
}

.about-img-frame {
    position: relative;
    padding: 3px;
    background: linear-gradient(135deg, var(--red), transparent 50%, var(--dark-red));
}

.about-img-frame img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
}

.about-img-placeholder {
    background: var(--mid);
    height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: rgba(212,207,196,0.3);
}

/* ── EVENTS ── */
.events-section {
    padding: 100px 4vw;
    background: var(--dark);
    border-top: 1px solid rgba(200,16,46,0.2);
    border-bottom: 1px solid rgba(200,16,46,0.2);
}

.events-header {
    max-width: 1300px;
    margin: 0 auto 4rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 1rem;
}

.events-grid {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
}

.event-card {
    background: var(--mid);
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: background 0.3s;
    text-decoration: none;
    color: inherit;
    display: block;
}

.event-card::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    height: 3px; width: 0;
    background: var(--red);
    transition: width 0.4s;
}

.event-card:hover { background: #1e1e1e; color: inherit; }
.event-card:hover::before { width: 100%; }

.event-card.featured {
    grid-column: span 2;
    background: linear-gradient(135deg, #1e1010 0%, var(--mid) 100%);
    border-left: 3px solid var(--red);
}

.event-card.featured::before { display: none; }

.event-thumb {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 1.5rem;
}

.event-date {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 3px;
    color: var(--red);
    margin-bottom: 0.75rem;
}

.event-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    line-height: 1;
    margin-bottom: 1rem;
    color: var(--white);
}

.event-card.featured .event-title { font-size: 2.8rem; }

.event-location {
    font-size: 0.85rem;
    color: rgba(212,207,196,0.5);
    margin-bottom: 0.75rem;
    font-style: italic;
}

.event-desc {
    font-size: 0.9rem;
    line-height: 1.7;
    color: rgba(212,207,196,0.6);
    font-weight: 300;
}

.event-tag {
    display: inline-block;
    margin-top: 1.5rem;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    padding: 6px 14px;
    border: 1px solid rgba(200,16,46,0.5);
    color: var(--red);
}

/* ── NEWS ── */
.news-section { padding: 100px 4vw; }

.news-grid {
    max-width: 1300px;
    margin: 3rem auto 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
}

.news-card {
    background: var(--mid);
    text-decoration: none;
    color: inherit;
    display: block;
    transition: background 0.3s;
}

.news-card:hover { background: #1e1e1e; color: inherit; }

.news-thumb {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-thumb-placeholder {
    width: 100%;
    height: 200px;
    background: var(--steel);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    opacity: 0.3;
}

.news-body { padding: 2rem; }

.news-meta {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 0.75rem;
}

.news-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.6rem;
    line-height: 1.1;
    margin-bottom: 1rem;
    color: var(--white);
}

.news-excerpt {
    font-size: 0.88rem;
    line-height: 1.7;
    color: rgba(212,207,196,0.6);
    font-weight: 300;
}

.news-more {
    display: inline-block;
    margin-top: 1.25rem;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--red);
    text-decoration: none;
}

/* ── GALLERY ── */
.gallery-section { padding: 100px 4vw; }

.gallery-grid {
    max-width: 1300px;
    margin: 3rem auto 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
    background: var(--mid);
}

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

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

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(200,16,46,0.4), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

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

.gallery-item:first-child {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    min-height: 200px;
}

.gallery-placeholder span {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(212,207,196,0.2);
}

/* ── CONTACT ── */
.contact-section {
    padding: 100px 4vw;
    background: var(--dark);
    border-top: 1px solid rgba(200,16,46,0.2);
}

.contact-grid {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6vw;
    align-items: start;
}

.contact-info p {
    font-size: 1rem;
    line-height: 1.8;
    color: rgba(212,207,196,0.7);
    font-weight: 300;
    margin-bottom: 2rem;
}

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

.social-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--off-white);
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: color 0.3s;
    padding: 1rem 1.5rem;
    background: var(--mid);
    border-left: 3px solid transparent;
    transition: all 0.3s;
}

.social-link:hover {
    border-color: var(--red);
    color: var(--white);
    background: #1e1e1e;
}

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

.form-group { display: flex; flex-direction: column; }

.form-group input,
.form-group textarea,
.form-group select {
    padding: 16px 20px;
    background: var(--mid);
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--white);
    font-family: 'Barlow', sans-serif;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.3s;
    width: 100%;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--red); }

.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(212,207,196,0.3); }

.form-group textarea { height: 140px; resize: vertical; }

.form-group select { color: rgba(212,207,196,0.7); }
.form-group select option { background: var(--mid); }

.form-submit {
    margin-top: 1rem;
    background: var(--red);
    color: var(--white);
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    padding: 16px 36px;
    border: none;
    cursor: pointer;
    clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
    transition: background 0.3s;
    align-self: flex-start;
}

.form-submit:hover { background: #e01232; }

/* ── SINGLE EVENT/NEWS ── */
.single-hero {
    padding: 140px 4vw 80px;
    max-width: 1300px;
    margin: 0 auto;
}

.single-hero img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    margin-bottom: 3rem;
}

.single-meta {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 1rem;
}

.single-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(3rem, 6vw, 5rem);
    line-height: 1;
    margin-bottom: 2rem;
}

.single-content {
    max-width: 800px;
    font-size: 1.05rem;
    line-height: 1.9;
    color: rgba(212,207,196,0.8);
    font-weight: 300;
}

.single-content p { margin-bottom: 1.5rem; }
.single-content h2, .single-content h3 {
    font-family: 'Bebas Neue', sans-serif;
    color: var(--white);
    margin: 2rem 0 1rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--red);
    text-decoration: none;
    margin-bottom: 2rem;
    transition: gap 0.3s;
}

.back-link:hover { gap: 1rem; color: var(--red); }

/* ── SCROLL REVEAL ── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ── FOOTER ── */
footer {
    padding: 60px 4vw 0;
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4vw;
    max-width: 1300px;
    margin: 0 auto;
    padding-bottom: 3rem;
}

.footer-brand p {
    font-size: 0.85rem;
    line-height: 1.7;
    color: rgba(212,207,196,0.4);
    font-weight: 300;
    max-width: 300px;
    margin-top: 1rem;
}

.footer-col h4 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--off-white);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(200,16,46,0.3);
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.75rem; }
.footer-col ul li a {
    font-size: 0.9rem;
    color: rgba(212,207,196,0.5);
    text-decoration: none;
    transition: color 0.3s;
}
.footer-col ul li a:hover { color: var(--red); }

.footer-bottom {
    max-width: 1300px;
    margin: 0 auto;
    padding: 24px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    font-size: 0.75rem;
    color: rgba(212,207,196,0.2);
    letter-spacing: 1px;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    .about-grid { grid-template-columns: 1fr; }
    .about-visual { display: none; }
    .events-grid { grid-template-columns: 1fr; }
    .event-card.featured { grid-column: span 1; }
    .news-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(2,1fr); }
    .gallery-item:first-child { grid-column: span 1; grid-row: span 1; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: span 2; }
    .nav-links { display: none; }
    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 70px; left: 0; right: 0;
        background: rgba(10,10,10,0.98);
        padding: 2rem 4vw;
        gap: 1.5rem;
        border-top: 1px solid rgba(200,16,46,0.3);
    }
    .nav-burger { display: flex; }
}

@media (max-width: 600px) {
    .gallery-grid { grid-template-columns: 1fr 1fr; }
    .footer-inner { grid-template-columns: 1fr; }
    .footer-brand { grid-column: span 1; }
}
