/*
Theme Name: CarCierge India Blog Theme
Theme URI: https://carciergeindia.com
Author: Antigravity AI
Author URI: https://carciergeindia.com
Description: A custom premium dark-mode luxury theme for CarCierge India blog, designed to integrate seamlessly with the main React website.
Version: 1.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: carcierge-theme
*/

/* ==========================================
   WORDPRESS DEFAULT OVERRIDES
   Neutralize WP block/global styles that break custom layouts
   ========================================== */
body .wp-site-blocks,
body .entry-content,
body .wp-block-post-content {
    padding: 0 !important;
    margin: 0 !important;
}

/* Reset WordPress admin bar spacing */
html.wp-toolbar {
    padding-top: 0 !important;
}

/* ==========================================
   GLOBAL RESET & FONTS
   ========================================== */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    background-color: #0a0a0a !important;
    color: #fafafa !important;
    font-family: "DM Sans", sans-serif !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Playfair Display", serif !important;
    color: #ffffff !important;
    font-weight: 700;
    line-height: 1.3;
    margin-top: 0;
    letter-spacing: -0.01em;
}

/* ==========================================
   LAYOUT
   ========================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    box-sizing: border-box;
}

.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }

/* Grid Layout */
.grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
    .grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
}

/* ==========================================
   LINKS & BUTTONS
   ========================================== */
a {
    color: #dca932;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}

a:hover {
    color: #c59424;
}

.btn-accent {
    background-color: #dca932;
    color: #0a0a0a !important;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.625rem 1.25rem;
    border-radius: 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
    text-decoration: none;
    box-sizing: border-box;
}

.btn-accent:hover {
    background-color: #c59424;
}

.btn-outline {
    background-color: transparent;
    color: #fafafa !important;
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.625rem 1.25rem;
    border-radius: 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: 1px solid rgba(250, 250, 250, 0.2);
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    box-sizing: border-box;
    width: 100%;
}

.btn-outline:hover {
    background-color: #dca932;
    color: #0a0a0a !important;
    border-color: #dca932;
}

/* ==========================================
   HEADER NAVBAR STYLING (MATCHES REACT HEADER)
   ========================================== */
.custom-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 999 !important;
    width: 100% !important;
    border-bottom: 1px solid rgba(38, 38, 38, 0.8) !important;
    background-color: rgba(10, 10, 10, 0.85) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    box-sizing: border-box !important;
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
}

.header-container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 1.5rem !important;
    height: 4rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
}

.header-logo {
    display: flex !important;
    flex-direction: column !important;
    text-decoration: none !important;
    flex-shrink: 0 !important;
}

.logo-main {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.01em;
}

.logo-sub {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.7rem;
    color: #999999;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.header-nav {
    display: none !important;
}

@media (min-width: 768px) {
    .header-nav {
        display: flex !important;
        align-items: center !important;
        gap: 2rem !important;
    }
}

.nav-item {
    font-size: 0.875rem;
    font-weight: 500;
    color: #999999;
    text-decoration: none;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.2s;
}

.nav-item:hover, .nav-item.active {
    color: #ffffff;
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #dca932;
}

.header-cta {
    display: none !important;
}

@media (min-width: 768px) {
    .header-cta {
        display: block !important;
    }
}

.btn-whatsapp {
    background-color: #dca932;
    color: #0a0a0a !important;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.5rem 1.25rem;
    border-radius: 0.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
    text-decoration: none;
}

.btn-whatsapp:hover {
    background-color: #c59424;
    color: #0a0a0a !important;
}

/* ==========================================
   BLOG GRID & CARDS
   ========================================== */
.blog-header {
    background: linear-gradient(180deg, #121212 0%, #0a0a0a 100%);
    text-align: center;
    border-bottom: 1px solid rgba(38, 38, 38, 0.5);
}

.blog-badge {
    border: 1px solid rgba(220, 169, 50, 0.3);
    color: #dca932;
    background-color: rgba(220, 169, 50, 0.05);
    display: inline-flex;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.blog-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.blog-subtitle {
    color: #999999;
    font-size: 1.125rem;
    max-width: 650px;
    margin: 0 auto;
}

.card {
    background-color: #141414;
    border: 1px solid rgba(38, 38, 38, 0.5);
    border-radius: 1rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
    height: 100%;
    box-sizing: border-box;
}

.card:hover {
    border-color: rgba(220, 169, 50, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.card-img-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden;
    background-color: #1a1a1a;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease-out;
}

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

.card-date-badge {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background-color: rgba(10, 10, 10, 0.9);
    border: 1px solid rgba(38, 38, 38, 0.8);
    padding: 0.375rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: #ffffff;
}

.card-content {
    padding: 1.5rem;
    flex-grow: 1;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.card-title a {
    color: #ffffff;
}

.card-title a:hover {
    color: #dca932;
}

.card-excerpt {
    color: #999999;
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 0;
}

.card-footer {
    padding: 1.5rem;
    padding-top: 0;
    margin-top: auto;
}

/* ==========================================
   PAGINATION
   ========================================== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(38, 38, 38, 0.3);
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.5rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(250, 250, 250, 0.1);
    font-size: 0.875rem;
    font-weight: 500;
    color: #fafafa;
    transition: all 0.2s;
}

.pagination .page-numbers.current {
    background-color: #dca932;
    color: #0a0a0a;
    border-color: #dca932;
}

.pagination .page-numbers:hover:not(.current) {
    background-color: rgba(250, 250, 250, 0.05);
    border-color: rgba(250, 250, 250, 0.2);
}

/* ==========================================
   SINGLE POST
   ========================================== */
.post-breadcrumbs {
    font-size: 0.875rem;
    color: #999999;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.post-breadcrumbs a {
    color: #999999;
}

.post-breadcrumbs a:hover {
    color: #ffffff;
}

.post-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #dca932;
    margin-bottom: 1.5rem;
}

.post-header {
    margin-bottom: 2rem;
}

.post-meta-info {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.875rem;
    color: #999999;
    margin-top: 1rem;
}

.post-meta-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.post-hero-image {
    position: relative;
    aspect-ratio: 16 / 9;
    width: 100%;
    border-radius: 1rem;
    overflow: hidden;
    margin-bottom: 3rem;
    border: 1px solid rgba(38, 38, 38, 0.4);
}

.post-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Article Content - Prose Styles */
.post-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.125rem;
    line-height: 1.8;
    color: rgba(250, 250, 250, 0.8);
}

.post-content h2 {
    font-size: 1.75rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.post-content h3 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: #ffffff;
}

.post-content p {
    margin-bottom: 1.5rem;
}

.post-content ul, .post-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    color: rgba(250, 250, 250, 0.85);
}

.post-content li {
    margin-bottom: 0.5rem;
}

.post-content blockquote {
    border-left: 4px solid #dca932;
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #ffffff;
    background-color: rgba(250, 250, 250, 0.02);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.75rem;
    margin: 2rem 0;
}

/* ==========================================
   CTA CARD
   ========================================== */
.cta-card {
    background-color: #141414;
    border: 1px solid rgba(38, 38, 38, 0.8);
    border-radius: 1rem;
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: 4rem;
    box-sizing: border-box;
}

.cta-card::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 6rem;
    height: 6rem;
    background-color: rgba(220, 169, 50, 0.03);
    border-bottom-left-radius: 100%;
    pointer-events: none;
}

.cta-card h3 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}

.cta-card p {
    color: #999999;
    font-size: 0.875rem;
    max-width: 550px;
    margin: 0 auto 1.5rem auto;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
}

@media (min-width: 640px) {
    .cta-buttons {
        flex-direction: row;
    }
    .cta-buttons .btn-outline {
        width: auto;
    }
}

/* ==========================================
   FOOTER STYLING (MATCHES REACT FOOTER)
   ========================================== */
.custom-footer {
    background-color: #040404 !important;
    color: #fafafa !important;
    border-top: 1px solid rgba(38, 38, 38, 0.8) !important;
    padding: 4rem 0 2rem 0 !important;
    margin-top: 5rem !important;
    display: block !important;
}

.footer-container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 1.5rem !important;
}

.footer-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

.footer-brand {
    display: flex;
    flex-direction: column;
}

.footer-brand-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
}

.footer-brand-subtitle {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.75rem;
    color: rgba(250, 250, 250, 0.7);
    letter-spacing: 0.05em;
    margin-top: 0.25rem;
    text-transform: uppercase;
}

.footer-brand-desc {
    font-size: 0.875rem;
    color: rgba(250, 250, 250, 0.8);
    line-height: 1.6;
    margin-top: 1rem;
    max-width: 400px;
}

.footer-section-title {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    display: block;
    color: #ffffff;
}

.footer-links-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-link {
    font-size: 0.875rem;
    color: rgba(250, 250, 250, 0.8);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-link:hover {
    color: #dca932;
}

.footer-contact-info {
    font-size: 0.875rem;
    color: rgba(250, 250, 250, 0.8);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-contact-info span {
    font-weight: 500;
}

.footer-socials {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.footer-social-icon {
    color: rgba(250, 250, 250, 0.7);
    transition: color 0.2s;
}

.footer-social-icon:hover {
    color: #dca932;
}

.footer-bottom {
    border-top: 1px solid rgba(250, 250, 250, 0.1);
    margin-top: 3rem;
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

@media (min-width: 640px) {
    .footer-bottom {
        flex-direction: row;
    }
}

.footer-copyright {
    font-size: 0.875rem;
    color: rgba(250, 250, 250, 0.7);
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}

.footer-bottom-link {
    font-size: 0.875rem;
    color: rgba(250, 250, 250, 0.7);
    text-decoration: none;
}

.footer-bottom-link:hover {
    color: #dca932;
}

/* ==========================================
   MOBILE NAVIGATION MENU & DRAWER
   ========================================== */
.mobile-menu-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    transition: color 0.2s;
}

@media (min-width: 768px) {
    .mobile-menu-trigger {
        display: none;
    }
}

.mobile-drawer {
    position: fixed;
    top: 4rem; /* height of header */
    right: -300px;
    width: 300px;
    height: calc(100vh - 4rem);
    background-color: #0a0a0a;
    border-left: 1px solid rgba(38, 38, 38, 0.8);
    transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    padding: 2rem;
    box-sizing: border-box;
}

.mobile-drawer.open {
    right: 0;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-nav-item {
    font-size: 1.125rem;
    font-weight: 500;
    color: #999999;
    text-decoration: none;
    padding: 0.5rem 0;
    transition: color 0.2s;
}

.mobile-nav-item:hover, .mobile-nav-item.active {
    color: #ffffff;
}

.mobile-nav-item.active {
    border-left: 2px solid #dca932;
    padding-left: 1rem;
}

.mobile-cta {
    margin-top: 1rem;
    width: 100%;
}

