/* ============================================================
   KOMUNITAS MOBIL INDONESIA - Style Utama
   ============================================================ */

:root {
    --primary: #c82333;
    --primary-dark: #a01c29;
    --dark: #1a1a2e;
    --dark-2: #16213e;
    --dark-3: #0f3460;
    --accent: #e94560;
    --gold: #f4c542;
    --light: #f8f9fa;
    --text: #333;
    --text-light: #777;
    --white: #ffffff;
    --border: #e0e0e0;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);
    --radius: 12px;
    --radius-sm: 8px;
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text);
    background: var(--light);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ================= NAVBAR ================= */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%);
    box-shadow: var(--shadow-lg);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    font-weight: 700;
    font-size: 1.25rem;
}

.brand-icon {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.3rem;
}

.brand span small {
    display: block;
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--gold);
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 6px;
}

.nav-menu a {
    color: rgba(255, 255, 255, 0.85);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--white);
    background: var(--primary);
}

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

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--white);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* ================= HERO ================= */
.hero {
    min-height: 550px;
    background: linear-gradient(rgba(10, 10, 25, 0.75), rgba(10, 10, 25, 0.75)),
        url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNjAwIiBoZWlnaHQ9IjkwMCIgdmlld0JveD0iMCAwIDE2MDAgOTAwIiBwcmVzZXJ2ZUFzcGVjdFJhdGlvPSJ4TWlkWU1pZCBtZWV0Ij48ZGVmcz48bGluZWFyR3JhZGllbnQgaWQ9ImciIHgxPSIwIiB5MT0iMCIgeDI9IjEiIHkyPSIxIj48c3RvcCBvZmZzZXQ9IjAiIHN0b3AtY29sb3I9IiMxYTFhMmUiLz48c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiMwZjM0NjAiLz48L2xpbmVhckdyYWRpZW50PjwvZGVmcz48cmVjdCB3aWR0aD0iMTYwMCIgaGVpZ2h0PSI5MDAiIGZpbGw9InVybCgjZykiLz48cGF0aCBkPSJNMCA2MDBsMjAwLTUwIDIwMCAxNTAgMjAwLTIwMCAyMDAgMTAwIDIwMC0xNTAgMjAwIDIwMCAyMDAtMTAwIDIwMCA1MCAwIDQwMC02MDAgMC02MDAgMC0yMDAtNTAtMjAwIDUweiIgZmlsbD0iI2VmZjJmNCIgb3BhY2l0eT0iMC4wNCIvPjwvc3ZnPg==');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: var(--white);
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px;
}

.hero .badge {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 6px 18px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 3rem;
    line-height: 1.15;
    margin-bottom: 20px;
}

.hero h1 .highlight {
    color: var(--gold);
}

.hero p {
    font-size: 1.15rem;
    opacity: 0.9;
    margin-bottom: 30px;
}

.btn-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(200, 35, 51, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.6);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
}

.btn-gold {
    background: var(--gold);
    color: var(--dark);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(244, 197, 66, 0.4);
}

/* ================= SECTION ================= */
.section {
    padding: 80px 0;
}

.section-alt {
    background: var(--white);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
}

.section-header .kicker {
    display: inline-block;
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.section-header h2 {
    font-size: 2.2rem;
    color: var(--dark);
    margin-bottom: 15px;
}

.section-header p {
    color: var(--text-light);
    font-size: 1rem;
}

/* ================= FEATURES ================= */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

.feature-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 35px 25px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border-bottom: 4px solid transparent;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-bottom-color: var(--primary);
}

.feature-card .icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.9rem;
    color: var(--white);
}

.feature-card h3 {
    font-size: 1.15rem;
    color: var(--dark);
    margin-bottom: 12px;
}

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

/* ================= STATS ================= */
.stats {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%);
    color: var(--white);
}

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

.stat-item .number {
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--gold);
}

.stat-item .label {
    font-size: 0.95rem;
    opacity: 0.85;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ================= EVENTS ================= */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.event-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.event-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.event-date {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--white);
    text-align: center;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.event-date .day {
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1;
}

.event-date .month {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: left;
}

.event-body {
    padding: 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.event-body h3 {
    font-size: 1.15rem;
    color: var(--dark);
    margin-bottom: 10px;
}

.event-body .desc {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 15px;
    flex: 1;
}

.event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.82rem;
    color: var(--text-light);
    margin-bottom: 18px;
}

.event-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-sm {
    padding: 8px 22px;
    font-size: 0.85rem;
    border-radius: 20px;
    align-self: flex-start;
}

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

.gallery-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    height: 220px;
    cursor: pointer;
    box-shadow: var(--shadow);
}

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

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

.gallery-item .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 26, 46, 0.85), transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.gallery-item .overlay .title {
    color: var(--white);
    font-weight: 600;
    font-size: 0.95rem;
}

/* ================= LIGHTBOX ================= */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.lightbox.open {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 82vh;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

.lightbox .close {
    position: absolute;
    top: 20px;
    right: 25px;
    background: none;
    border: none;
    color: var(--white);
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
}

.lightbox .caption {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    text-align: center;
    color: var(--white);
    font-size: 1rem;
}

/* ================= CTA ================= */
.cta-section {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--white);
    text-align: center;
    padding: 70px 20px;
}

.cta-section h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.cta-section p {
    font-size: 1.1rem;
    opacity: 0.92;
    margin-bottom: 25px;
}

/* ================= MEMBERS (Komunitas) ================= */
.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 25px;
}

.member-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 25px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.member-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.member-card .avatar {
    width: 90px;
    height: 90px;
    margin: 0 auto 15px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--dark-3), var(--accent));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
}

.member-card h4 {
    color: var(--dark);
    margin-bottom: 3px;
}

.member-card .role {
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.member-card .car {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 12px;
}

.member-card .social {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.member-card .social a {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: var(--dark-2);
    transition: all 0.3s ease;
}

.member-card .social a:hover {
    background: var(--primary);
    color: var(--white);
}

/* ================= VALUES / KOMUNITAS ================= */
.values {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.value-card {
    background: var(--light);
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
    border: 2px solid var(--border);
    transition: all 0.3s ease;
}

.value-card:hover {
    border-color: var(--primary);
    background: var(--white);
}

.value-card .icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.value-card h4 {
    color: var(--dark);
    margin-bottom: 8px;
}

.value-card p {
    font-size: 0.87rem;
    color: var(--text-light);
}

/* ================= FACILITIES / GALLERY PAGE ================= */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

.info-box {
    background: var(--white);
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow);
}

.info-box h3 {
    color: var(--dark);
    margin-bottom: 15px;
    font-size: 1.2rem;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--light);
}

.info-box ul {
    list-style: none;
}

.info-box ul li {
    padding: 8px 0;
    border-bottom: 1px dashed var(--border);
    font-size: 0.92rem;
}

.info-box ul li:last-child {
    border-bottom: none;
}

.info-box ul li strong {
    color: var(--dark);
}

/* ================= LIST EVENT (Event Page) ================= */
.event-list {
    display: grid;
    gap: 20px;
}

.event-list-item {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    display: grid;
    grid-template-columns: 160px 1fr;
    transition: all 0.3s ease;
}

.event-list-item:hover {
    box-shadow: var(--shadow-lg);
    transform: translateX(4px);
}

.event-list-item .event-date {
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    padding: 15px;
}

.event-list-item .event-date .day {
    font-size: 2.6rem;
}

.event-body-inline {
    padding: 22px 25px;
}

.event-body-inline h3 {
    color: var(--dark);
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.event-body-inline p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.event-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    background: var(--light);
    color: var(--dark-2);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 15px;
}

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

/* ================= CONTACT ================= */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 30px;
}

.contact-info {
    background: linear-gradient(135deg, var(--dark), var(--dark-2));
    color: var(--white);
    border-radius: var(--radius);
    padding: 35px;
    box-shadow: var(--shadow);
}

.contact-info h3 {
    margin-bottom: 20px;
    font-size: 1.3rem;
    color: var(--gold);
}

.contact-info .info-item {
    display: flex;
    gap: 12px;
    margin-bottom: 22px;
    align-items: flex-start;
}

.contact-info .info-item .cicon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-info .info-item p {
    font-size: 0.92rem;
    opacity: 0.92;
}

.contact-info .info-item strong {
    display: block;
    margin-bottom: 3px;
    color: var(--white);
}

.contact-form {
    background: var(--white);
    border-radius: var(--radius);
    padding: 35px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--dark);
    margin-bottom: 7px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.92rem;
    transition: border-color 0.3s ease;
    background: var(--light);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
}

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

.alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 18px;
    font-size: 0.92rem;
    font-weight: 500;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ================= FOOTER ================= */
.footer {
    background: var(--dark-3);
    color: rgba(255, 255, 255, 0.8);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 30px;
    padding-bottom: 40px;
}

.footer h4 {
    color: var(--white);
    margin-bottom: 18px;
    font-size: 1.05rem;
}

.footer p {
    font-size: 0.88rem;
    line-height: 1.7;
}

.footer ul {
    list-style: none;
}

.footer ul li {
    margin-bottom: 10px;
}

.footer ul a {
    font-size: 0.88rem;
    transition: all 0.3s ease;
}

.footer ul a:hover {
    color: var(--gold);
    padding-left: 5px;
}

.footer .brand {
    margin-bottom: 15px;
}

.social-links {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.social-links a {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 18px 0;
    text-align: center;
    font-size: 0.82rem;
}

.footer-bottom a {
    color: var(--gold);
}

/* ================= PAGE HERO (inner pages) ================= */
.page-hero {
    background: linear-gradient(rgba(10, 10, 25, 0.8), rgba(10, 10, 25, 0.8)),
        url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNjAwIiBoZWlnaHQ9IjQwMCIgdmlld0JveD0iMCAwIDE2MDAgNDAwIiBwcmVzZXJ2ZUFzcGVjdFJhdGlvPSJ4TWlkWU1pZCBtZWV0Ij48cmVjdCB3aWR0aD0iMTYwMCIgaGVpZ2h0PSI0MDAiIGZpbGw9IiMxYTFhMmUiLz48cGF0aCBkPSJNMCAzMDBsMjAwLTQwIDIwMCAxMjAgMjAwLTE4MCAyMDAgODAgMjAwLTEyMCAyMDAgMTQwIDIwMC04MCAyMDAgOTB2MjUwSDB6IiBmaWxsPSIjMGYzNDYwIiBvcGFjaXR5PSIwLjYiLz48L3N2Zz4=');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.page-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.page-hero .kicker {
    color: var(--gold);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    margin-bottom: 10px;
    display: block;
}

.page-hero p {
    font-size: 1.05rem;
    opacity: 0.9;
    max-width: 650px;
    margin: 0 auto;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        background: var(--dark-2);
        flex-direction: column;
        padding: 15px 20px;
        gap: 4px;
        display: none;
        box-shadow: var(--shadow-lg);
    }

    .nav-menu.open {
        display: flex;
    }

    .nav-menu a {
        display: block;
        padding: 12px 16px;
        border-radius: var(--radius-sm);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .two-col {
        grid-template-columns: 1fr;
    }

    .event-list-item {
        grid-template-columns: 1fr;
    }

    .event-list-item .event-date {
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        gap: 12px;
    }
}

@media (max-width: 560px) {
    .hero h1 {
        font-size: 2.1rem;
    }

    .section {
        padding: 55px 0;
    }

    .section-header h2 {
        font-size: 1.7rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .btn-group {
        flex-direction: column;
        align-items: center;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Animasi muncul */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.7s ease both;
}