/* ========================================
   Components CSS - Modern Aceternity Style
   ======================================== */

/* ----------------------------------------
   Header / Navigation
   ---------------------------------------- */
.legal-layout {
  display: flex;
  gap: 2rem;
}

.legal-toc {
  position: sticky;
  top: 120px; /* adjust based on your header height */
  align-self: flex-start;
  max-width: 220px;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--space-4) 0;
    transition: all var(--transition-base);
}

.header.scrolled {
    background: rgba(15, 33, 56, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-light {
    background: var(--color-white);
    border-bottom: 1px solid var(--color-light-gray);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.logo-img {
    height: 40px;
    width: auto;
}

.logo-text {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--color-white);
    letter-spacing: -0.02em;
}

.header-light .logo-text { color: var(--color-primary); }

.nav-menu { display: flex; align-items: center; }
.nav-list { display: flex; align-items: center; gap: var(--space-1); }

.nav-link {
    position: relative;
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-sm);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.nav-link:hover,
.nav-link.active { 
    color: var(--color-white);
    background: rgba(255, 255, 255, 0.1);
}

.header-light .nav-link { color: var(--color-dark-gray); }
.header-light .nav-link:hover,
.header-light .nav-link.active { 
    color: var(--color-primary);
    background: var(--color-off-white);
}

.nav-actions { display: flex; align-items: center; gap: var(--space-4); }

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
}
.mobile-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--color-white);
    border-radius: 2px;
    transition: all var(--transition-base);
}
.header-light .mobile-toggle span { background: var(--color-primary); }
.mobile-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ----------------------------------------
   Footer
   ---------------------------------------- */
.footer {
    background: var(--color-primary);
    color: var(--color-white);
    padding: var(--space-16) 0 var(--space-8);
}

.footer-main {
    display: grid;
    grid-template-columns: 1.5fr repeat(4, 1fr);
    gap: var(--space-12);
    padding-bottom: var(--space-12);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .logo { margin-bottom: var(--space-6); }
.footer-desc {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.7;
    max-width: 280px;
}

.footer-col h4 {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: var(--space-4);
}
.footer-col ul { display: flex; flex-direction: column; gap: var(--space-2); }
.footer-col a {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.5);
    transition: color var(--transition-fast);
}
.footer-col a:hover { color: var(--color-white); }

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--space-8);
}
.footer-bottom p {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.4);
}

/* ----------------------------------------
   Product Cards - Hover Expand Style
   ---------------------------------------- */
.product-card {
    position: relative;
    background: var(--color-primary);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    overflow: hidden;
    transition: all 0.4s ease;
    min-height: 200px;
}

.product-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, transparent 50%);
    pointer-events: none;
}

.product-card:hover {
    background: rrgba(80, 100, 120, 0.95);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.product-card-title {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: var(--space-4);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.product-highlight {
    color: rgba(255, 255, 255, 0.9);
    font-size: var(--text-base);
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: var(--space-3);
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.4s ease;
}

.product-card:hover .product-highlight {
    max-height: 100px;
    opacity: 1;
    margin-bottom: var(--space-4);
}

.product-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--text-sm);
    line-height: 1.6;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.4s ease;
}

.product-card:hover .product-desc {
    max-height: 150px;
    opacity: 1;
    margin-bottom: var(--space-5);
}

.product-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    margin-top: var(--space-4);
}

.product-list li {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--text-base);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
}

.product-list li::before {
    content: '•';
    color: var(--color-accent);
    font-size: 1.2em;
    line-height: 1;
}

/* ----------------------------------------
   Industry Carousel - Enhanced
   ---------------------------------------- */
.industries-carousel {
    position: relative;
    padding: 0 var(--space-8);
    overflow: hidden;
}

.carousel-track {
    display: flex;
    gap: var(--space-6);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.industry-slide {
    flex: 0 0 340px;
    height: 480px;
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    cursor: pointer;
}

.industry-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.industry-slide:hover img {
    transform: scale(1.08);
}

.industry-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.85) 100%);
    transition: background var(--transition-base);
}

.industry-slide:hover .industry-slide-overlay {
    background: linear-gradient(180deg, transparent 20%, rgba(23, 48, 82, 0.95) 100%);
}

.industry-slide-badge {
    position: absolute;
    top: var(--space-5);
    left: var(--space-5);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--color-white);
    font-size: var(--text-xs);
    font-weight: 600;
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
}

.industry-slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-6);
    color: var(--color-white);
}

.industry-slide-title {
    font-size: var(--text-xl);
    font-weight: 700;
    margin-bottom: var(--space-2);
    transform: translateY(0);
    transition: transform var(--transition-base);
}

.industry-slide-desc {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    opacity: 0;
    transform: translateY(10px);
    transition: all var(--transition-base);
}

.industry-slide:hover .industry-slide-title {
    transform: translateY(-8px);
}

.industry-slide:hover .industry-slide-desc {
    opacity: 1;
    transform: translateY(0);
}

/* Carousel Navigation */
.carousel-nav {
    display: flex;
    justify-content: center;
    gap: var(--space-3);
    margin-top: var(--space-10);
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-light-gray);
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.carousel-dot:hover {
    background: var(--color-gray);
}

.carousel-dot.active {
    background: var(--color-primary);
    transform: scale(1.2);
}

/* ----------------------------------------
   Feature Icons - Clean Style
   ---------------------------------------- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-8);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-5);
    background: var(--color-white);
    border: 1px solid var(--color-light-gray);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.feature-item:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 48px;
    height: 48px;
    color: var(--color-primary);
    flex-shrink: 0;
}

.feature-title {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--color-text);
}

/* ----------------------------------------
   Values Grid (Aceternity Style)
   ---------------------------------------- */
.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-8);
}

.value-card {
    position: relative;
    padding: var(--space-8);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-xl);
    transition: all var(--transition-base);
}

.value-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
}

.value-icon {
    width: 56px;
    height: 56px;
    margin-bottom: var(--space-5);
    color: var(--color-text-light);
    opacity: 0.8;
}

.value-title {
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: var(--space-3);
}

.value-desc {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    line-height: 1.7;
}

/* ----------------------------------------
   CTA Section
   ---------------------------------------- */
.cta-section {
    background: var(--color-off-white);
    text-align: center;
}

.cta-title {
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: var(--space-4);
}

.cta-desc {
    font-size: var(--text-lg);
    color: var(--color-dark-gray);
    margin-bottom: var(--space-8);
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

/* ----------------------------------------
   Responsive
   ---------------------------------------- */
@media (max-width: 1200px) {
    .footer-main { grid-template-columns: 1fr repeat(2, 1fr); gap: var(--space-8); }
    .footer-brand { grid-column: 1 / -1; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .values-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--color-primary);
        padding: calc(var(--header-height) + var(--space-8)) var(--space-6);
        transform: translateX(100%);
        transition: transform var(--transition-base);
    }
    .nav-menu.active { transform: translateX(0); }
    .nav-list { flex-direction: column; align-items: flex-start; gap: var(--space-4); }
    .nav-link { font-size: var(--text-xl); color: var(--color-white); padding: var(--space-3) 0; }
    .nav-link:hover, .nav-link.active { background: transparent; }
    
    .mobile-toggle { display: flex; }
    .nav-actions .btn { display: none; }
    
    .industry-slide { flex: 0 0 300px; height: 420px; }
}

@media (max-width: 768px) {
    .footer-main { grid-template-columns: 1fr 1fr; }
    .footer-bottom { flex-direction: column; gap: var(--space-4); text-align: center; }
    .features-grid { grid-template-columns: 1fr; }
    .values-grid { grid-template-columns: 1fr; }
    .industry-slide { flex: 0 0 280px; height: 380px; }
    .industries-carousel { padding: 0 var(--space-4); }
}
