/**
 * Components - Natural Paints & Coatings
 * Reusable UI Components
 */

/* ============================================
   NAVIGATION
   ============================================ */

.navbar {
    position: absolute;
    top: 2rem;
    left: 0;
    right: 0;
    z-index: var(--z-sticky);
    background: transparent;
    transition: all var(--transition-base);
    display: flex;
    justify-content: center;
}

.navbar.scrolled {
    /* Keep absolute to prevent sticking if user requested 'absolute' strictly */
    position: absolute;
    top: 2rem;
    /* Keep same top or adjust if needed */
    padding-top: 0;
}

.navbar-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0 2rem;
    /* Increased side padding for better esthetics on full width */
    max-width: 100%;
    /* Extended to full width */
    width: 100%;
    margin: 0 auto;
    justify-content: space-between;
    /* Logo left, Menu center/right */
}

.navbar-logo {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    font-family: var(--font-brand);
    color: var(--color-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-logo span,
.footer-modern h3 span,
.admin-logo span {
    font-family: var(--font-brand-black);
    font-weight: 900;
    /* Black weight */
}

.navbar-logo img {
    height: 48px;
    /* Slightly larger logo */
    width: auto;
}

/* The Menu itself is now the "Pill" */
.navbar-menu {
    display: flex;
    align-items: center;
    gap: 30px;
    /* ~8mm gap as requested */
    list-style: none;
    white-space: nowrap;
    /* Prevent wrapping */

    /* Glass Transparent Pill Container Styles */
    background: rgba(139, 92, 246, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 0.8rem 2.5rem;
    border-radius: 100px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(139, 92, 246, 0.2);

    margin: 0 auto;
    /* Center the menu pill if possible */
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.navbar-link {
    text-decoration: none;
    color: #1F2937;
    /* Dark Black Color */
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
    position: relative;
    font-family: 'Inter', sans-serif;
}

/* Hover & Active: Purple Glow */
.navbar-link:hover,
.navbar-link.active {
    color: #EF4444;
    /* Red */
    text-shadow: 0 0 12px rgba(220, 38, 38, 0.5);
    /* Glow Effect */
}

/* Remove old styles */
.navbar-link::after {
    display: none;
}

.navbar-cta {
    margin-left: var(--space-md);
}

/* Navbar Actions (Language + CTA) */
.navbar-actions {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    justify-self: end;
}

.language-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lang-option {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-normal);
    color: var(--color-neutral-500);
    cursor: pointer;
    transition: color var(--transition-base);
}

.lang-option.active {
    color: var(--color-neutral-800);
    font-weight: var(--font-weight-medium);
}

.lang-option:hover {
    color: var(--color-primary);
}

/* CTA Button */
.btn-cta {
    background: linear-gradient(135deg, #8B5CF6 0%, #A78BFA 100%);
    color: white;
    padding: 0.65rem 1.5rem;
    border-radius: 10px;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    text-decoration: none;
    transition: all var(--transition-base);
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.15);
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.3);
}

/* Mobile Menu Toggle */
.navbar-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    position: relative;
    z-index: 2000;
    /* High z-index to ensure clickable over hero/overlays */
}

.navbar-toggle span {
    width: 25px;
    height: 3px;
    background: var(--color-primary);
    border-radius: 2px;
    transition: all var(--transition-base);
}

.navbar-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.navbar-toggle.active span:nth-child(2) {
    opacity: 0;
}

.navbar-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

@media (max-width: 768px) {
    .navbar-container {
        padding: 0 1.5rem;
        /* Reduced padding on mobile */
    }

    .navbar-toggle {
        display: flex;
        z-index: 1001;
        /* Ensure above menu */
    }

    .navbar-menu {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        height: 100vh;
        flex-direction: column;
        justify-content: center;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        padding: 2rem;
        gap: 1.5rem;
        z-index: 1000;
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        border-radius: 0;
        margin: 0;
        width: 100%;
        box-shadow: none;
        border: none;
    }

    .navbar-menu.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .navbar-link {
        font-size: 1.5rem;
        /* Larger font for easier tapping */
        font-weight: 600;
    }

    .navbar-cta {
        margin-left: 0;
        width: 100%;
        margin-top: 1rem;
        display: flex;
        justify-content: center;
    }

    .navbar-cta .btn {
        width: auto;
        /* Changed from 100% to auto to fix big size issue */
        min-width: 200px;
        /* Optional: give it a reasonable minimum width */
        padding: 0.8rem 2rem;
        /* Adjusted padding */
        font-size: 1.1rem;
    }
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: var(--gradient-dark);
    color: var(--color-neutral-200);
    padding: var(--space-3xl) 0 var(--space-lg);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.footer-section h3 {
    color: var(--color-neutral-100);
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-md);
}

.footer-section p,
.footer-section a {
    color: var(--color-neutral-300);
    line-height: var(--line-height-relaxed);
}

.footer-section a {
    display: block;
    margin-bottom: var(--space-xs);
    transition: color var(--transition-base);
}

.footer-section a:hover {
    color: var(--color-neutral-100);
    padding-left: 5px;
}

.footer-social {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--color-neutral-100);
    transition: all var(--transition-base);
}

.footer-social-link:hover {
    background: var(--color-primary);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-lg);
    text-align: center;
    color: var(--color-neutral-400);
    font-size: var(--font-size-sm);
}

/* ============================================
   PRODUCT CARD
   ============================================ */

.product-card {
    background: var(--color-neutral-100);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    cursor: pointer;
    position: relative;
}

.product-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-8px);
}

.product-card-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: var(--color-neutral-200);
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease-out);
}

.product-card:hover .product-card-image img {
    transform: scale(1.1);
}

.product-card-badge {
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    background: var(--gradient-secondary);
    color: var(--color-neutral-100);
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-card-body {
    padding: var(--space-lg);
}

.product-card-category {
    color: var(--color-primary);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--space-xs);
}

.product-card-title {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    color: var(--color-neutral-900);
    margin-bottom: var(--space-sm);
    line-height: var(--line-height-tight);
}

.product-card-description {
    color: var(--color-neutral-600);
    font-size: var(--font-size-sm);
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--space-md);
}

.product-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-sm);
}

.product-card-features {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin-bottom: var(--space-md);
}

.product-card-feature {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.625rem;
    background: var(--color-neutral-200);
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    color: var(--color-neutral-700);
}

/* ============================================
   FEATURE CARD
   ============================================ */

.feature-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-2xl);
    padding: var(--space-xl);
    text-align: center;
    transition: all var(--transition-base);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-2xl);
    border-color: var(--color-primary);
}

.feature-card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-lg);
    background: var(--gradient-primary);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--color-neutral-100);
    transition: transform var(--transition-base);
}

.feature-card:hover .feature-card-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-card-title {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-neutral-900);
    margin-bottom: var(--space-sm);
}

.feature-card-description {
    color: var(--color-neutral-600);
    line-height: var(--line-height-relaxed);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: var(--space-xl);
}

.hero-title {
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-black);
    color: var(--color-neutral-900);
    margin-bottom: var(--space-lg);
    line-height: var(--line-height-tight);
}

.hero-subtitle {
    font-size: var(--font-size-xl);
    color: var(--color-neutral-700);
    margin-bottom: var(--space-xl);
    line-height: var(--line-height-relaxed);
}

.hero-cta {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: var(--font-size-3xl);
    }

    .hero-subtitle {
        font-size: var(--font-size-lg);
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .hero-cta .btn {
        width: 100%;
        max-width: 300px;
    }
}

/* ============================================
   SECTION HEADER
   ============================================ */

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--space-3xl);
}

.section-subtitle {
    color: var(--color-primary);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--space-sm);
}

.section-title {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-neutral-900);
    margin-bottom: var(--space-md);
}

.section-description {
    font-size: var(--font-size-lg);
    color: var(--color-neutral-600);
    line-height: var(--line-height-relaxed);
}

/* ============================================
   MODAL
   ============================================ */

.modal {
    position: fixed;
    inset: 0;
    z-index: var(--z-modal);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-md);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-base);
}

.modal.active {
    opacity: 1;
    pointer-events: all;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background: var(--color-neutral-100);
    border-radius: var(--radius-2xl);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-2xl);
    transform: scale(0.9);
    transition: transform var(--transition-base);
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-header {
    padding: var(--space-lg);
    border-bottom: 1px solid var(--color-neutral-300);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-neutral-900);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--color-neutral-600);
    cursor: pointer;
    padding: 0.5rem;
    transition: color var(--transition-base);
}

.modal-close:hover {
    color: var(--color-neutral-900);
}

.modal-body {
    padding: var(--space-lg);
}

.modal-footer {
    padding: var(--space-lg);
    border-top: 1px solid var(--color-neutral-300);
    display: flex;
    gap: var(--space-sm);
    justify-content: flex-end;
}

/* ============================================
   BREADCRUMB
   ============================================ */

.breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-md) 0;
    font-size: var(--font-size-sm);
}

.breadcrumb-item {
    color: var(--color-neutral-600);
}

.breadcrumb-item a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-base);
}

.breadcrumb-item a:hover {
    color: var(--color-primary-dark);
}

.breadcrumb-separator {
    color: var(--color-neutral-400);
}

/* ============================================
   BADGE
   ============================================ */

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-semibold);
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-primary {
    background: var(--color-primary);
    color: var(--color-neutral-100);
}

.badge-secondary {
    background: var(--color-secondary);
    color: var(--color-neutral-100);
}

.badge-success {
    background: #10B981;
    color: var(--color-neutral-100);
}

.badge-warning {
    background: #F59E0B;
    color: var(--color-neutral-100);
}

.badge-danger {
    background: #EF4444;
    color: var(--color-neutral-100);
}

/* ============================================
   MODERN FOOTER
   ============================================ */
.footer-modern {
    position: relative;
    background: transparent;
    padding: 4rem 0 0;
    overflow: hidden;
}

.footer-floating-island {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 40px 40px 0 0;
    padding: 4rem 4rem 2rem 4rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-bottom: none;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 2;
    margin-bottom: 0;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.footer-grid-4 {
    display: grid;
    grid-template-columns: 1.3fr 0.9fr 1fr 1.1fr;
    gap: 2.5rem;
}

@media (max-width: 992px) {
    .footer-grid-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 640px) {
    .footer-grid-4 {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

.footer-brand-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.brand-icon-box {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #EF4444, #B91C1C);
    color: white;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 8px 16px rgba(220, 38, 38, 0.2);
}

.footer-section-title h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-neutral-900);
    margin-bottom: 0.5rem;
}

.title-line {
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #EF4444, transparent);
    border-radius: 2px;
}

.product-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.product-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.625rem 1.25rem;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 100px;
    text-decoration: none;
    color: var(--color-neutral-700);
    font-weight: 500;
    font-size: 0.9375rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-pill:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.15);
    color: var(--color-primary);
    border-color: rgba(220, 38, 38, 0.2);
}

.footer-social-modern {
    display: flex;
    gap: 0.75rem;
}

.social-bubble {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #EF4444;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-bubble:hover {
    background: white;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.2);
}

.contact-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-card-mini {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.contact-card-mini:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateX(5px);
}

.icon-circle {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.contact-card-mini .label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-neutral-500);
    margin-bottom: 0.125rem;
    font-weight: 600;
}

.contact-card-mini .value {
    font-size: 0.9375rem;
    color: var(--color-neutral-800);
    font-weight: 500;
}

@media (max-width: 992px) {
    .footer-grid-4 {
        grid-template-columns: 1fr 1fr;
    }

    .footer-floating-island {
        padding: 3rem 2rem;
    }
}

@media (max-width: 768px) {
    .footer-grid-4 {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-floating-island {
        padding: 2.5rem 1.5rem 1.5rem 1.5rem;
        border-radius: 24px 24px 0 0;
    }

    .footer-modern {
        padding-top: 2rem;
    }

    .brand-icon-box {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
}

/* ============================================
   COMPARISON GRID REDESIGN
   ============================================ */

.comparison-grid-redesign {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

/* VS Badge Logic for Stacked View */
.vs-badge {
    order: 2;
    /* Place in middle */
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    margin: -2rem auto;
    /* Vertical Overlap */
    z-index: 10;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #DC2626 0%, #8B4789 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    border: 4px solid white;
}

.vs-badge span {
    color: white;
    font-size: 1.75rem;
    font-weight: 900;
    letter-spacing: 1px;
}

/* Ensure children order */
.comparison-grid-redesign> :nth-child(1) {
    order: 2;
}

/* Correct logic below */
/* DOM structure: 1:VS, 2:Card1, 3:Card2 */
/* We want: Card1(order1), VS(order2), Card2(order3) */

.comparison-grid-redesign> :nth-child(2) {
    order: 1;
    /* First Card */
    margin-bottom: 0;
}

.comparison-grid-redesign> :nth-child(1) {
    order: 2;
    /* Badge */
}

.comparison-grid-redesign> :nth-child(3) {
    order: 3;
    /* Second Card */
    margin-top: 0;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .vs-badge {
        width: 60px;
        height: 60px;
        margin: -1.5rem auto;
        border-width: 3px;
    }

    .vs-badge span {
        font-size: 1.25rem;
    }
}