/*
Theme Name: Club Nissan
Description: Tailwind CSS theme for Club Nissan - NZ Nissan modification enthusiasts. Montserrat + Poppins, red/dark palette.
Version: 1.0.0
Text Domain: clubnissan
*/

/* ── Base ── */
body {
    color: #54595F;
    line-height: 1.7;
}
a {
    transition: color 0.2s ease, opacity 0.2s ease;
}
img {
    max-width: 100%;
    height: auto;
}

/* ── Navigation ── */
.cn-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    height: 70px;
}
.nav-transparent .cn-header {
    background: transparent;
}
.nav-transparent .cn-header .cn-nav-link {
    color: #fff;
}
.nav-transparent .cn-header .cn-logo-text {
    color: #fff;
}
.nav-solid .cn-header,
.nav-sticky .cn-header {
    background: #120101;
    box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}
.cn-nav-link {
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #F8F8F8;
    text-decoration: none;
    padding: 8px 16px;
    transition: color 0.2s ease;
}
.cn-nav-link:hover,
.cn-nav-link.active {
    color: #C50000;
}
.cn-logo-text {
    font-family: "Montserrat", sans-serif;
    font-weight: 800;
    font-size: 20px;
    color: #F8F8F8;
    text-decoration: none;
    letter-spacing: 1px;
}

/* ── Hamburger ── */
.cn-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 28px;
    height: 28px;
    cursor: pointer;
    padding: 0;
    background: none;
    border: none;
}
.cn-hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: #F8F8F8;
    transition: transform 0.3s ease;
}

/* ── Mobile Menu ── */
.cn-mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.cn-mobile-overlay.open {
    opacity: 1;
    visibility: visible;
}
.cn-mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 300px;
    max-width: 85vw;
    background: #120101;
    z-index: 1050;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    padding: 24px;
    overflow-y: auto;
}
.cn-mobile-menu.open {
    transform: translateX(0);
}
.cn-mobile-close {
    background: none;
    border: none;
    color: #F8F8F8;
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}
.cn-mobile-nav {
    list-style: none;
    padding: 0;
    margin: 32px 0 0;
}
.cn-mobile-nav li {
    margin-bottom: 0;
}
.cn-mobile-nav a {
    display: block;
    padding: 14px 0;
    color: #F8F8F8;
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    transition: color 0.2s ease;
}
.cn-mobile-nav a:hover {
    color: #C50000;
}

/* ── Buttons ── */
.cn-btn {
    display: inline-block;
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 14px 36px;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}
.cn-btn-primary {
    background: #C50000;
    color: #fff;
}
.cn-btn-primary:hover {
    background: #7D0000;
    color: #fff;
}
.cn-btn-outline {
    background: transparent;
    color: #F8F8F8;
    border: 2px solid #F8F8F8;
}
.cn-btn-outline:hover {
    background: #C50000;
    border-color: #C50000;
    color: #fff;
}
.cn-btn-dark {
    background: #120101;
    color: #F8F8F8;
}
.cn-btn-dark:hover {
    background: #C50000;
    color: #fff;
}

/* ── Hero ── */
.cn-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #120101;
}
.cn-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.45;
}
.cn-hero-content {
    position: relative;
    z-index: 2;
}

/* ── Page Hero Banner ── */
.cn-page-hero {
    background: linear-gradient(135deg, #120101 0%, #7D0000 100%);
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 20px 60px;
}
.cn-page-hero h1 {
    font-family: "Montserrat", sans-serif;
    font-weight: 800;
    font-size: 48px;
    color: #fff;
    margin: 0;
    letter-spacing: 1px;
}

/* ── Stats Counter ── */
.cn-counter-number {
    font-family: "Montserrat", sans-serif;
    font-weight: 800;
    font-size: 56px;
    color: #C50000;
    line-height: 1;
}
.cn-counter-label {
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #54595F;
    margin-top: 8px;
}

/* ── FAQ Accordion ── */
.cn-accordion-item {
    border: 1px solid #d5d8dc;
    margin-bottom: -1px;
}
.cn-accordion-btn {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    font-size: 15px;
    color: #120101;
    text-align: left;
    transition: color 0.2s ease;
}
.cn-accordion-btn:hover {
    color: #C50000;
}
.cn-accordion-icon {
    font-size: 20px;
    font-weight: 300;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 12px;
}
.cn-accordion-item.active .cn-accordion-icon {
    transform: rotate(45deg);
}
.cn-accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 20px;
}
.cn-accordion-item.active .cn-accordion-body {
    max-height: 500px;
    padding-bottom: 18px;
}
.cn-accordion-body p {
    font-size: 14px;
    line-height: 1.8;
    color: #7A7A7A;
    margin: 0;
}

/* ── CTA Section ── */
.cn-cta-section {
    position: relative;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    overflow: hidden;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 30px;
}
.cn-cta-overlay {
    position: absolute;
    inset: 0;
    background: rgba(18,1,1,0.75);
}

/* ── Blog Cards ── */
.cn-post-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.cn-post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}
.cn-post-card-img {
    aspect-ratio: 16/10;
    overflow: hidden;
}
.cn-post-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.cn-post-card:hover .cn-post-card-img img {
    transform: scale(1.06);
}
.cn-post-card-body {
    padding: 20px;
}
.cn-post-date {
    font-size: 11px;
    color: #bbb;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}
.cn-post-card-body h3 {
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    font-size: 17px;
    line-height: 1.4;
    margin: 0 0 8px;
}
.cn-post-card-body h3 a {
    color: #120101;
    text-decoration: none;
}
.cn-post-card-body h3 a:hover {
    color: #C50000;
}
.cn-excerpt {
    font-size: 14px;
    line-height: 1.7;
    color: #7A7A7A;
    margin-bottom: 12px;
}
.cn-learn-more {
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #C50000;
    text-decoration: none;
    transition: color 0.2s ease;
}
.cn-learn-more:hover {
    color: #7D0000;
}
.cn-category-badge {
    display: inline-block;
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #C50000;
    text-decoration: none;
    transition: color 0.2s ease;
}
.cn-category-badge:hover {
    color: #7D0000;
}

/* ── Article Single ── */
.cn-article-hero {
    position: relative;
    min-height: 450px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    padding: 100px 20px 60px;
}
.cn-article-hero img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(1.5px) brightness(0.85);
}
.cn-article-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(18,1,1,0.8) 0%, rgba(18,1,1,0.2) 100%);
}
.cn-article-hero-content {
    position: relative;
    z-index: 2;
}

/* ── Prose ── */
.cn-prose {
    max-width: 780px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.85;
    color: #54595F;
}
.cn-prose h2 {
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    font-size: 26px;
    color: #120101;
    margin: 48px 0 16px;
    line-height: 1.3;
}
.cn-prose h3 {
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: #120101;
    margin: 36px 0 12px;
    line-height: 1.3;
}
.cn-prose p {
    margin: 0 0 20px;
}
.cn-prose a {
    color: #C50000;
    text-decoration: underline;
}
.cn-prose a:hover {
    color: #7D0000;
}
.cn-prose img {
    border-radius: 8px;
    margin: 24px 0;
}
.cn-prose blockquote {
    border-left: 4px solid #C50000;
    padding: 12px 24px;
    margin: 24px 0;
    background: #F8F8F8;
    font-style: italic;
    color: #54595F;
}
.cn-prose ul, .cn-prose ol {
    padding-left: 24px;
    margin: 0 0 20px;
}
.cn-prose li {
    margin-bottom: 8px;
}
.cn-prose hr {
    border: none;
    border-top: 1px solid #d5d8dc;
    margin: 40px 0;
}

/* ── Comments ── */
.cn-comments-section {
    max-width: 780px;
    margin: 48px auto 0;
    padding-top: 32px;
    border-top: 1px solid #e5e5e5;
}
.cn-comments-section .children {
    margin-top: 1.25rem;
}

/* ── Footer ── */
.cn-footer {
    background: #120101;
    color: #CFCFCF;
}
.cn-footer a {
    color: #CFCFCF;
    text-decoration: none;
    transition: color 0.2s ease;
}
.cn-footer a:hover {
    color: #C50000;
}
.cn-footer-heading {
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: #F8F8F8;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

/* ── Footer CTA Bar ── */
.cn-footer-cta {
    background: linear-gradient(135deg, #C50000 0%, #7D0000 100%);
    padding: 40px 0;
}

/* ── Reveal Animation ── */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 991px) {
    .cn-hamburger {
        display: flex;
    }
    .cn-nav-desktop {
        display: none;
    }
    .cn-page-hero h1 {
        font-size: 36px;
    }
    .cn-counter-number {
        font-size: 42px;
    }
    .cn-article-hero {
        min-height: 350px;
    }
}

@media (max-width: 767px) {
    .cn-hero {
        min-height: 80vh;
    }
    .cn-page-hero {
        min-height: 250px;
        padding: 100px 16px 40px;
    }
    .cn-page-hero h1 {
        font-size: 28px;
    }
    .cn-counter-number {
        font-size: 36px;
    }
    .cn-article-hero {
        min-height: 280px;
        padding: 80px 16px 40px;
    }
    .cn-prose h2 {
        font-size: 22px;
    }
    .cn-prose h3 {
        font-size: 18px;
    }
}
