/* ================================================================
   ProTarp Industrial — Shared Design System
   Used across all pages: products, about, process, samples, faq, contact, inquiry
   ================================================================ */

/* ========== CSS RESET & BASE ========== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color System */
    --navy-900: #061224;
    --navy-800: #0B1F3A;
    --navy-700: #102D52;
    --navy-600: #1B4D7E;
    --blue-500: #2563EB;
    --blue-400: #3B82F6;
    --blue-100: #DBEAFE;
    --gray-900: #1A202C;
    --gray-700: #2D3748;
    --gray-600: #4A5568;
    --gray-500: #718096;
    --gray-400: #A0AEC0;
    --gray-300: #CBD5E0;
    --gray-200: #E2E8F0;
    --gray-100: #F1F5F9;
    --gray-50: #F8FAFC;
    --white: #FFFFFF;
    --orange-500: #F97316;
    --orange-600: #EA580C;
    --orange-100: #FFEDD5;
    --green-500: #10B981;
    --green-100: #D1FAE5;
    --red-500: #EF4444;

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

    /* Spacing */
    --section-padding: 100px 0;
    --container-max: 1280px;
    --container-padding: 0 24px;

    /* Transitions */
    --ease-premium: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: 0.2s var(--ease-smooth);
    --transition-base: 0.35s var(--ease-premium);
    --transition-slow: 0.6s var(--ease-premium);

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 32px rgba(0,0,0,0.10);
    --shadow-xl: 0 24px 48px rgba(0,0,0,0.12);
    --shadow-navy: 0 12px 40px rgba(11, 31, 58, 0.15);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    color: var(--gray-700);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ========== UTILITY ========== */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: var(--container-padding);
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--blue-500);
    margin-bottom: 12px;
}

.section-label::before {
    content: '';
    width: 24px;
    height: 2px;
    background: var(--orange-500);
    border-radius: 1px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--navy-800);
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--gray-500);
    max-width: 640px;
    line-height: 1.7;
}

.text-center { text-align: center; }
.text-center .section-subtitle { margin: 0 auto; }

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
    font-family: inherit;
}

.btn-primary {
    background: var(--orange-500);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(249, 115, 22, 0.35);
}

.btn-primary:hover {
    background: var(--orange-600);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(249, 115, 22, 0.4);
}

.btn-secondary {
    background: var(--navy-800);
    color: var(--white);
}

.btn-secondary:hover {
    background: var(--navy-700);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--navy-800);
    border: 2px solid var(--gray-300);
}

.btn-outline:hover {
    border-color: var(--navy-600);
    background: var(--navy-800);
    color: var(--white);
}

.btn-ghost-light {
    background: rgba(255,255,255,0.1);
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.2);
}

.btn-ghost-light:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.btn-lg { padding: 16px 40px; font-size: 1rem; }

/* ========== NAVIGATION ========== */
.nav {
    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-200);
    transition: all var(--transition-base);
}

.nav.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    background: rgba(255, 255, 255, 0.98);
}

.nav-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--navy-800);
    letter-spacing: -0.02em;
}

.nav-logo-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--navy-700), var(--navy-600));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.nav-logo span { color: var(--orange-500); }

.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-menu a {
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-600);
    border-radius: 6px;
    transition: all var(--transition-fast);
}

.nav-menu a:hover {
    color: var(--navy-800);
    background: var(--gray-100);
}

.nav-menu a.active {
    color: var(--navy-800);
    font-weight: 700;
}

.nav-cta-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-contact {
    font-size: 0.85rem;
    color: var(--gray-500);
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-contact strong {
    color: var(--navy-700);
    font-weight: 700;
}

.nav-cta { padding: 10px 24px; font-size: 0.9rem; }

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-toggle span {
    display: block;
    width: 24px;
    height: 3px;
    background: var(--navy-800);
    border-radius: 2px;
    margin: 4px 0;
    transition: all var(--transition-fast);
}

/* ========== PAGE HEADER (for subpages) ========== */
.page-hero {
    position: relative;
    padding: 160px 0 80px;
    background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 50%, var(--navy-700) 100%);
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.15;
}

.page-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(6,18,36,0.3) 0%, rgba(6,18,36,0.7) 100%);
}

.page-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.page-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    line-height: 1.2;
}

.page-hero p {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.7);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
}

.breadcrumb a { color: rgba(255,255,255,0.7); transition: color var(--transition-fast); }
.breadcrumb a:hover { color: var(--orange-500); }

/* ========== FOOTER ========== */
.footer {
    background: var(--navy-900);
    color: rgba(255, 255, 255, 0.6);
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 56px;
}

.footer-brand .nav-logo {
    color: var(--white);
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 0.88rem;
    line-height: 1.7;
    margin-bottom: 24px;
    max-width: 320px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    transition: all var(--transition-fast);
}

.footer-social a:hover {
    background: var(--orange-500);
    border-color: var(--orange-500);
    color: var(--white);
    transform: translateY(-2px);
}

.footer-col h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
}

.footer-col ul li { margin-bottom: 10px; }

.footer-col ul li a {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.5);
    transition: color var(--transition-fast);
}

.footer-col ul li a:hover { color: var(--orange-500); }

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-contact-item svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--orange-500);
}

.footer-bottom {
    padding: 24px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.4);
}

.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom-links a:hover { color: var(--white); }

/* ========== FLOATING BUTTONS ========== */
.float-cta {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.float-quote-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    background: var(--orange-500);
    color: var(--white);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(249, 115, 22, 0.4);
    cursor: pointer;
    border: none;
    font-family: inherit;
    transition: all var(--transition-base);
    animation: float-pulse 3s ease-in-out infinite;
}

@keyframes float-pulse {
    0%, 100% { box-shadow: 0 8px 24px rgba(249, 115, 22, 0.4); }
    50% { box-shadow: 0 8px 32px rgba(249, 115, 22, 0.6); }
}

.float-quote-btn:hover {
    background: var(--orange-600);
    transform: scale(1.05);
}

.float-whatsapp-btn {
    width: 56px;
    height: 56px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
    cursor: pointer;
    transition: all var(--transition-base);
    align-self: flex-end;
}

.float-whatsapp-btn:hover { transform: scale(1.1); }

/* ========== SCROLL ANIMATIONS ========== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s var(--ease-premium), transform 0.7s var(--ease-premium);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
}

@media (max-width: 768px) {
    :root { --section-padding: 64px 0; }

    .nav-menu,
    .nav-contact { display: none; }

    .mobile-toggle { display: block; }

    .nav-cta-group .btn { display: none; }

    .section-title { font-size: 1.8rem; }
    .page-hero h1 { font-size: 2rem; }
    .page-hero { padding: 120px 0 60px; }

    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}
