/* ========================================
   PT Casalrico Mandiri - Premium Corporate Website
   Design System & Styles
   ======================================== */

/* ========== CSS Variables (Design Tokens) ========== */
:root {
    /* Primary Colors */
    --navy-deep: #0A1628;
    --navy-medium: #1E3A5F;
    --navy-light: #2D4A6F;

    /* Accent Colors */
    --emerald: #10B981;
    --emerald-light: #34D399;
    --emerald-dark: #059669;

    /* Brand Blue (from logo) */
    --brand-blue: #2B6CB0;
    --brand-blue-light: #4DC9E6;

    /* Neutrals */
    --white: #FFFFFF;
    --gray-50: #F8FAFC;
    --gray-100: #F1F5F9;
    --gray-200: #E2E8F0;
    --gray-300: #CBD5E1;
    --gray-400: #94A3B8;
    --gray-500: #64748B;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1E293B;
    --gray-900: #0F172A;

    /* Functional */
    --success: #22C55E;
    --warning: #F59E0B;
    --error: #EF4444;

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    --spacing-4xl: 6rem;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 200ms ease;
    --transition-slow: 300ms ease;
    --transition-slower: 500ms ease;
}

/* ========== Reset & Base ========== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-700);
    background-color: var(--white);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-base);
}

ul,
ol {
    list-style: none;
}

/* ========== Typography ========== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--navy-deep);
}

h1 {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
}

h4 {
    font-size: 1.125rem;
}

p {
    margin-bottom: var(--spacing-md);
}

/* ========== Container ========== */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

@media (min-width: 768px) {
    .container {
        padding: 0 var(--spacing-xl);
    }
}

/* ========== Buttons ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: 0.75rem 1.5rem;
    font-family: var(--font-family);
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--radius-lg);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: linear-gradient(135deg, var(--emerald) 0%, var(--emerald-dark) 100%);
    color: var(--white);
    border-color: var(--emerald);
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--emerald-light) 0%, var(--emerald) 100%);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

.btn-secondary {
    background: var(--white);
    color: var(--navy-deep);
    border-color: var(--gray-200);
}

.btn-secondary:hover {
    background: var(--gray-50);
    border-color: var(--emerald);
    color: var(--emerald);
}

.btn-outline {
    background: transparent;
    color: var(--navy-deep);
    border-color: var(--navy-deep);
}

.btn-outline:hover {
    background: var(--navy-deep);
    color: var(--white);
}

.btn-white {
    background: var(--white);
    color: var(--navy-deep);
    border-color: var(--white);
}

.btn-white:hover {
    background: var(--gray-100);
}

.btn-outline-white {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-outline-white:hover {
    background: var(--white);
    color: var(--navy-deep);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-full {
    width: 100%;
}

/* ========== Header ========== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--gray-100);
    transition: all var(--transition-base);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo img {
    height: 40px;
    width: auto;
}

.nav {
    display: none;
    gap: var(--spacing-xl);
}

@media (min-width: 1024px) {
    .nav {
        display: flex;
    }
}

.nav-link {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--gray-600);
    padding: var(--spacing-sm) 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--emerald);
    transition: width var(--transition-base);
}

.nav-link:hover {
    color: var(--navy-deep);
}

.nav-link:hover::after {
    width: 100%;
}

.header-cta {
    display: none;
}

@media (min-width: 1024px) {
    .header-cta {
        display: inline-flex;
    }
}

.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
}

@media (min-width: 1024px) {
    .mobile-menu-btn {
        display: none;
    }
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--navy-deep);
    border-radius: 2px;
    transition: all var(--transition-base);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.nav.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: var(--spacing-lg);
    gap: var(--spacing-md);
    border-bottom: 1px solid var(--gray-100);
    box-shadow: var(--shadow-lg);
}

/* ========== Hero Section ========== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 50%, #E8F5F0 100%);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background: url('images/Hero-bg.png') center/cover no-repeat;
    opacity: 0.15;
    mask-image: linear-gradient(to left, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));
    -webkit-mask-image: linear-gradient(to left, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));
}

.hero-content {
    position: relative;
    max-width: 720px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--emerald-dark);
    margin-bottom: var(--spacing-lg);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--emerald);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.hero-title {
    margin-bottom: var(--spacing-lg);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.text-gradient {
    background: linear-gradient(135deg, var(--brand-blue) 0%, var(--emerald) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray-600);
    margin-bottom: var(--spacing-2xl);
    max-width: 540px;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-3xl);
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xl);
    padding-top: var(--spacing-2xl);
    border-top: 1px solid var(--gray-200);
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--navy-deep);
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-top: var(--spacing-xs);
}

.stat-divider {
    width: 1px;
    height: 48px;
    background: var(--gray-200);
}

/* ========== Section Styles ========== */
.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto var(--spacing-3xl);
}

.section-badge {
    display: inline-block;
    padding: var(--spacing-xs) var(--spacing-md);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(43, 108, 176, 0.1) 100%);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--emerald-dark);
    margin-bottom: var(--spacing-md);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.section-title {
    margin-bottom: var(--spacing-md);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--gray-500);
    margin-bottom: 0;
}

/* ========== Why Us Section ========== */
.why-us {
    padding: var(--spacing-4xl) 0;
    background: var(--white);
}

.value-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
}

@media (min-width: 768px) {
    .value-cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

.value-card {
    position: relative;
    padding: var(--spacing-2xl);
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    transition: all var(--transition-slow);
}

.value-card:hover {
    border-color: var(--emerald);
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
}

.value-card.featured {
    background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy-medium) 100%);
    border-color: transparent;
}

.value-card.featured .value-title,
.value-card.featured .value-desc,
.value-card.featured .value-list li {
    color: var(--white);
}

.value-card.featured .value-icon {
    background: rgba(16, 185, 129, 0.2);
}

.value-card.featured .value-icon svg {
    stroke: var(--emerald-light);
}

.featured-badge {
    position: absolute;
    top: -12px;
    right: 24px;
    padding: var(--spacing-xs) var(--spacing-md);
    background: var(--emerald);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.value-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-lg);
}

.value-icon svg {
    stroke: var(--emerald);
}

.value-title {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
}

.value-desc {
    color: var(--gray-500);
    margin-bottom: var(--spacing-lg);
}

.value-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.value-list li {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 0.9375rem;
    color: var(--gray-600);
}

.value-list li::before {
    content: '✓';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--emerald);
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
}

.value-card.featured .value-list li::before {
    background: rgba(16, 185, 129, 0.2);
}

/* ========== Products Section ========== */
.products {
    padding: var(--spacing-4xl) 0;
    background: var(--gray-50);
}

.product-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
}

@media (min-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.product-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-slow);
}

.product-card:hover {
    box-shadow: var(--shadow-2xl);
    transform: translateY(-8px);
}

.product-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slower);
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-overlay {
    position: absolute;
    top: var(--spacing-md);
    left: var(--spacing-md);
}

.eco-badge,
.quality-badge,
.custom-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.eco-badge {
    background: rgba(16, 185, 129, 0.9);
    color: var(--white);
}

.quality-badge {
    background: rgba(245, 158, 11, 0.9);
    color: var(--white);
}

.custom-badge {
    background: rgba(43, 108, 176, 0.9);
    color: var(--white);
}

.product-content {
    padding: var(--spacing-xl);
}

.product-title {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
}

.product-desc {
    color: var(--gray-500);
    font-size: 0.9375rem;
    margin-bottom: var(--spacing-lg);
}

.product-items {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-xl);
}

.product-items li {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 0.875rem;
    color: var(--gray-600);
}

.product-items li::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--emerald);
    border-radius: 50%;
}

/* ========== Product Cards Pro (B2B Catalog) ========== */
.product-grid-4 {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
}

@media (min-width: 768px) {
    .product-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1280px) {
    .product-grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

.product-card-pro {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-slow);
    display: flex;
    flex-direction: column;
}

.product-card-pro:hover {
    box-shadow: var(--shadow-2xl);
    transform: translateY(-8px);
}

.product-image-pro {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.product-image-pro img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slower);
}

.product-card-pro:hover .product-image-pro img {
    transform: scale(1.05);
}

/* Trust Badges */
.trust-badges {
    position: absolute;
    top: var(--spacing-sm);
    left: var(--spacing-sm);
    right: var(--spacing-sm);
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: var(--radius-full);
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.trust-badge.msds {
    background: rgba(43, 108, 176, 0.95);
    color: var(--white);
}

.trust-badge.faktur {
    background: rgba(16, 185, 129, 0.95);
    color: var(--white);
}

.trust-badge.eco {
    background: rgba(5, 150, 105, 0.95);
    color: var(--white);
}

.trust-badge.quality {
    background: rgba(245, 158, 11, 0.95);
    color: var(--white);
}

/* Product Content Pro */
.product-content-pro {
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-title-pro {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy-deep);
    margin-bottom: var(--spacing-sm);
    line-height: 1.3;
}

.product-desc-pro {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-bottom: var(--spacing-md);
    line-height: 1.5;
    flex-grow: 1;
}

/* Tier Comparison Table */
.tier-comparison {
    background: var(--gray-50);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: var(--spacing-md);
    border: 1px solid var(--gray-200);
}

.tier-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    align-items: center;
    font-size: 0.75rem;
}

.tier-row.tier-premium {
    background: linear-gradient(135deg, rgba(43, 108, 176, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
    border-bottom: 1px solid var(--gray-200);
}

.tier-row.tier-standard {
    background: var(--white);
}

.tier-label {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: var(--radius-sm);
}

.tier-premium .tier-label {
    background: var(--brand-blue);
    color: var(--white);
}

.tier-standard .tier-label {
    background: var(--gray-400);
    color: var(--white);
}

.tier-product {
    font-weight: 500;
    color: var(--navy-deep);
    font-size: 0.75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tier-note {
    font-size: 0.65rem;
    color: var(--gray-500);
    font-style: italic;
    white-space: nowrap;
}

/* RFQ Button */
.btn-rfq {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.8rem;
    margin-top: auto;
}

.btn-rfq svg {
    width: 14px;
    height: 14px;
}

/* ========== Workflow Section ========== */
.workflow {
    padding: var(--spacing-4xl) 0;
    background: var(--white);
}

.workflow-steps {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xl);
}

@media (min-width: 1024px) {
    .workflow-steps {
        flex-direction: row;
        justify-content: center;
    }
}

.workflow-step {
    text-align: center;
    max-width: 280px;
}

.step-number {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--emerald);
    margin-bottom: var(--spacing-md);
}

.step-icon {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--white) 100%);
    border: 2px solid var(--gray-200);
    border-radius: 50%;
    margin: 0 auto var(--spacing-lg);
    transition: all var(--transition-base);
}

.workflow-step:hover .step-icon {
    border-color: var(--emerald);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, var(--white) 100%);
}

.step-icon svg {
    stroke: var(--navy-medium);
}

.step-title {
    margin-bottom: var(--spacing-sm);
}

.step-desc {
    font-size: 0.9375rem;
    color: var(--gray-500);
    margin-bottom: 0;
}

.workflow-connector {
    display: none;
    color: var(--gray-300);
}

@media (min-width: 1024px) {
    .workflow-connector {
        display: block;
    }
}

/* ========== CTA Section ========== */
.cta-section {
    padding: var(--spacing-4xl) 0;
    background: var(--gray-50);
}

.cta-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--spacing-2xl);
    padding: var(--spacing-3xl);
    background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy-medium) 100%);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-2xl);
}

@media (min-width: 1024px) {
    .cta-card {
        flex-direction: row;
        text-align: left;
        justify-content: space-between;
    }
}

.cta-title {
    color: var(--white);
    margin-bottom: var(--spacing-sm);
}

.cta-subtitle {
    color: var(--gray-400);
    font-size: 1.125rem;
    margin-bottom: 0;
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    justify-content: center;
}

@media (min-width: 1024px) {
    .cta-buttons {
        flex-shrink: 0;
    }
}

/* ========== Contact Section ========== */
.contact {
    padding: var(--spacing-4xl) 0;
    background: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-3xl);
}

@media (min-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.contact-info .section-badge {
    text-align: left;
}

.contact-info .section-title {
    text-align: left;
}

.contact-desc {
    color: var(--gray-500);
    margin-bottom: var(--spacing-2xl);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.contact-item {
    display: flex;
    gap: var(--spacing-md);
}

.contact-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    border-radius: var(--radius-lg);
    flex-shrink: 0;
}

.contact-icon svg {
    stroke: var(--emerald);
}

.contact-item h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--navy-deep);
    margin-bottom: var(--spacing-xs);
}

.contact-item p {
    font-size: 0.9375rem;
    color: var(--gray-500);
    margin-bottom: 0;
    line-height: 1.5;
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--gray-50);
    border-radius: var(--radius-xl);
    padding: var(--spacing-2xl);
}

.form-title {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xl);
    text-align: center;
}

.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: var(--spacing-sm);
}

.form-group label span {
    color: var(--error);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    font-family: var(--font-family);
    font-size: 1rem;
    color: var(--gray-700);
    background: var(--white);
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--emerald);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray-400);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ========== Footer ========== */
.footer {
    background: var(--navy-deep);
    padding: var(--spacing-4xl) 0 var(--spacing-xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-2xl);
    margin-bottom: var(--spacing-3xl);
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1.5fr;
    }
}

.footer-logo {
    height: 48px;
    width: auto;
    margin-bottom: var(--spacing-lg);
}

.footer-desc {
    color: var(--gray-400);
    font-size: 0.9375rem;
    margin-bottom: var(--spacing-lg);
    max-width: 300px;
}

.footer-social {
    display: flex;
    gap: var(--spacing-md);
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--gray-400);
    transition: all var(--transition-base);
}

.footer-social a:hover {
    background: var(--emerald);
    color: var(--white);
}

.footer-links h4,
.footer-contact h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: var(--spacing-lg);
}

.footer-links ul,
.footer-contact ul {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.footer-links a {
    color: var(--gray-400);
    font-size: 0.9375rem;
    transition: color var(--transition-base);
}

.footer-links a:hover {
    color: var(--emerald);
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    color: var(--gray-400);
    font-size: 0.9375rem;
}

.footer-contact svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    padding-top: var(--spacing-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-bottom p {
    color: var(--gray-500);
    font-size: 0.875rem;
    margin-bottom: 0;
}

/* ========== WhatsApp Floating Button ========== */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #25D366;
    color: var(--white);
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all var(--transition-base);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}

.whatsapp-tooltip {
    position: absolute;
    right: 72px;
    background: var(--navy-deep);
    color: var(--white);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    border: 4px solid transparent;
    border-left-color: var(--navy-deep);
}

/* ========== Animations ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* Scroll Animations */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========== Responsive Adjustments ========== */
@media (max-width: 767px) {
    .hero {
        padding: 100px 0 60px;
    }

    .hero-cta {
        flex-direction: column;
    }

    .hero-cta .btn {
        width: 100%;
    }

    .hero-stats {
        flex-direction: column;
        gap: var(--spacing-lg);
    }

    .stat-divider {
        display: none;
    }

    .cta-card {
        padding: var(--spacing-xl);
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }

    .cta-buttons .btn {
        width: 100%;
    }
}

/* ========== Print Styles ========== */
@media print {

    .header,
    .whatsapp-float {
        display: none;
    }

    .hero {
        min-height: auto;
        padding: 40px 0;
    }
}

/* ========== Product Quick View Modal ========== */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(10, 22, 40, 0.9);
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s ease;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    background-color: var(--white);
    margin: auto;
    padding: 0;
    border-radius: 16px;
    width: 90%;
    max-width: 800px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
    position: relative;
}

.modal.show .modal-content {
    transform: scale(1);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    color: var(--gray-500);
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    z-index: 100;
    line-height: 1;
    transition: color var(--transition-base);
}

.close-modal:hover {
    color: var(--error);
}

.modal-body {
    display: flex;
    flex-direction: column;
}

.modal-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-info {
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-info .product-title-pro {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
}

@media (min-width: 768px) {
    .modal-body {
        flex-direction: row;
    }

    .modal-image {
        width: 50%;
        height: auto;
        min-height: 400px;
    }

    .modal-info {
        width: 50%;
        padding: 40px;
    }
}

/* ========== Caco AI Chat Widget ========== */
.ai-chat-container {
    position: fixed;
    bottom: 100px;
    right: 24px;
    width: 380px;
    max-width: calc(100vw - 48px);
    height: 500px;
    max-height: calc(100vh - 150px);
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 60px rgba(10, 22, 40, 0.25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 9998;
    transform: scale(0);
    transform-origin: bottom right;
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s ease;
    pointer-events: none;
}

.ai-chat-container.open {
    transform: scale(1);
    opacity: 1;
    pointer-events: auto;
}

/* Chat Header */
.ai-chat-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md) var(--spacing-lg);
    background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy-medium) 100%);
    color: var(--white);
}

.ai-chat-avatar {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(16, 185, 129, 0.2);
    border-radius: 50%;
}

.ai-chat-avatar svg {
    fill: var(--emerald-light);
}

.ai-chat-title {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ai-name {
    font-weight: 700;
    font-size: 1rem;
}

.ai-status {
    font-size: 0.75rem;
    color: var(--emerald-light);
}

.ai-chat-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: background var(--transition-base);
}

.ai-chat-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.ai-chat-close svg {
    stroke: var(--white);
}

/* Chat Messages Area */
.ai-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    background: var(--gray-50);
}

.ai-message {
    max-width: 85%;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-lg);
    font-size: 0.9rem;
    line-height: 1.5;
    animation: messageSlide 0.3s ease;
}

@keyframes messageSlide {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ai-message.caco {
    align-self: flex-start;
    background: var(--white);
    color: var(--gray-700);
    border: 1px solid var(--gray-200);
    border-bottom-left-radius: 4px;
}

.ai-message.user {
    align-self: flex-end;
    background: linear-gradient(135deg, var(--emerald) 0%, var(--emerald-dark) 100%);
    color: var(--white);
    border-bottom-right-radius: 4px;
}

.ai-message.typing {
    background: var(--white);
    border: 1px solid var(--gray-200);
    color: var(--gray-500);
    font-style: italic;
}

.typing-dots {
    display: inline-flex;
    gap: 4px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    background: var(--gray-400);
    border-radius: 50%;
    animation: typingBounce 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: 0s;
}

.typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingBounce {

    0%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-6px);
    }
}

/* Chat Input Area */
.ai-chat-input-area {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    background: var(--white);
    border-top: 1px solid var(--gray-200);
}

.ai-chat-input-area input {
    flex: 1;
    padding: var(--spacing-sm) var(--spacing-md);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-family: var(--font-family);
    outline: none;
    transition: border-color var(--transition-base);
}

.ai-chat-input-area input:focus {
    border-color: var(--emerald);
}

.ai-chat-input-area input::placeholder {
    color: var(--gray-400);
}

.ai-chat-input-area button {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy-medium) 100%);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.ai-chat-input-area button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(10, 22, 40, 0.3);
}

.ai-chat-input-area button svg {
    fill: var(--white);
}

/* Toggle Button */
.ai-chat-toggle {
    position: fixed;
    bottom: 100px;
    right: 24px;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-lg);
    background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy-medium) 100%);
    color: var(--white);
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(10, 22, 40, 0.3);
    z-index: 9997;
    transition: all var(--transition-base);
}

.ai-chat-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(10, 22, 40, 0.4);
}

.ai-chat-toggle svg {
    fill: var(--white);
}

.ai-toggle-label {
    font-size: 0.875rem;
    font-weight: 600;
}

.ai-chat-toggle.hidden {
    transform: scale(0);
    opacity: 0;
    pointer-events: none;
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .ai-chat-container {
        bottom: 0;
        right: 0;
        left: 0;
        width: 100%;
        max-width: 100%;
        height: calc(100vh - 60px);
        max-height: calc(100vh - 60px);
        border-radius: var(--radius-xl) var(--radius-xl) 0 0;
        transform-origin: bottom center;
    }

    .ai-chat-toggle {
        bottom: 90px;
        right: 16px;
        padding: var(--spacing-sm) var(--spacing-md);
    }

    .ai-toggle-label {
        display: none;
    }
}

/* ========== Caco Avatar Styles ========== */
/* Header Avatar */
.ai-profile-wrapper {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    flex: 1;
}

.caco-header-img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(16, 185, 129, 0.5);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.ai-status-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ai-status-text .ai-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--white);
}

.ai-status-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--emerald-light);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--emerald);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

/* Message Avatar Wrapper */
.message-wrapper {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-xs);
}

.message-wrapper.ai-wrapper {
    align-items: flex-start;
    justify-content: flex-start;
}

.message-wrapper.user-wrapper {
    align-items: flex-start;
    justify-content: flex-end;
}

.caco-msg-avatar {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--gray-200);
    margin-top: 2px;
}

/* Adjust message bubble corners when avatar is present */
.message-wrapper .ai-message {
    max-width: calc(85% - 40px);
    border-bottom-left-radius: 4px;
}

.message-wrapper .ai-message.caco {
    align-self: flex-start;
}

/* ========== WhatsApp Handoff Button (Golden Bridge) ========== */
.wa-handoff-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    padding: 14px 24px;
    border-radius: var(--radius-lg);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 12px;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
    transition: all var(--transition-base);
    width: 100%;
}

.wa-handoff-btn:hover {
    background: linear-gradient(135deg, #128C7E 0%, #075E54 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
}

.wa-handoff-btn svg {
    flex-shrink: 0;
}

/* Handoff message styling */
.ai-message.handoff-message {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    max-width: 100% !important;
}

.handoff-text {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: var(--spacing-sm) var(--spacing-md);
    margin-bottom: var(--spacing-sm);
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--gray-700);
}