/* 
============================================
Chemflow Global Supply - Natural & Minimal CSS
============================================
*/

:root {
    /* Natural / Earthy Color Palette */
    --bg-main: #F4F3EF;
    /* Soft sand/beige background */
    --bg-secondary: #EBE8E0;
    /* Slightly darker earthy section bg */
    --bg-deep: #1A1A1A;
    /* Charcoal for footer */

    --text-main: #2C2C2C;
    /* Deep charcoal for main text */
    --text-muted: #5A5A5A;
    /* Muted grey for secondary text */
    --text-light: #FFFFFF;
    /* White for contrast on dark sections */

    --accent-primary: #8C7B65;
    /* Warm earthy taupe/brown */
    --accent-secondary: #4A5D4E;
    /* Muted forest/olive green */
    --accent-dark: #2A2A2A;
    /* Very dark grey for strong contrast */

    /* Gradients / UI */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(0, 0, 0, 0.05);
    --glass-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    --transition-fast: all 0.2s ease;
    --transition-standard: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.3;
    color: var(--text-main);
}

.text-accent {
    color: var(--accent-primary);
    font-weight: 500;
}

.text-muted {
    color: var(--text-muted);
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 8rem 0;
    position: relative;
    z-index: 1;
}

.bg-secondary {
    background-color: var(--bg-secondary);
}

.bg-deep {
    background-color: var(--bg-deep);
    color: var(--text-light);
}

.bg-deep h1,
.bg-deep h2,
.bg-deep h3,
.bg-deep h4,
.bg-deep .text-main {
    color: var(--text-light);
}

.bg-deep .text-muted {
    color: #A0A0A0;
}

.text-center {
    text-align: center;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.mt-sm {
    margin-top: 1rem;
}

.mt-md {
    margin-top: 2rem;
}

.mt-lg {
    margin-top: 3rem;
}

.mt-xl {
    margin-top: 5rem;
}

.mb-0 {
    margin-bottom: 0 !important;
}

/* Grids */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.align-center {
    align-items: center;
}

@media (max-width: 992px) {

    .grid-2,
    .grid-4 {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (min-width: 768px) and (max-width: 992px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Divider */
.divider {
    height: 2px;
    width: 40px;
    background: var(--accent-primary);
    margin: 1.5rem 0;
}

.divider.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 1rem 2.5rem;
    font-family: var(--font-heading);
    font-weight: 400;
    letter-spacing: 1px;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.85rem;
    border-radius: 4px;
    transition: var(--transition-standard);
    cursor: pointer;
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--accent-dark);
    color: white;
}

.btn-primary:hover {
    background: var(--accent-primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--text-main);
}

.btn-secondary:hover {
    background: var(--text-main);
    color: white;
    transform: translateY(-3px);
}

.btn-light {
    border-color: white;
    color: white;
    background: transparent;
}

.btn-light:hover {
    background: white;
    color: var(--text-main);
}

.btn-lg {
    padding: 1.2rem 3rem;
}

/* Clean Cards */
.clean-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 3rem 2.5rem;
    border-radius: 8px;
    box-shadow: var(--glass-shadow);
    transition: var(--transition-standard);
    height: 100%;
}

.clean-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 100;
    transition: var(--transition-standard);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar.scrolled {
    padding: 1rem 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 500;
    color: white;
    text-decoration: none;
    letter-spacing: 2px;
    text-transform: lowercase;
    transition: color 0.3s;
}

.navbar.scrolled .logo {
    color: var(--text-main);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition-fast);
    position: relative;
    padding-bottom: 4px;
}

.navbar.scrolled .nav-link {
    color: var(--text-muted);
}

.nav-link:hover,
.nav-link.active-link {
    color: white;
}

.navbar.scrolled .nav-link:hover,
.navbar.scrolled .nav-link.active-link {
    color: var(--text-main);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 1px;
    background: white;
    transition: var(--transition-standard);
}

.navbar.scrolled .nav-link::after {
    background: var(--text-main);
}

.nav-link:hover::after,
.nav-link.active-link::after {
    width: 100%;
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: white;
    z-index: 101;
}

.navbar.scrolled .hamburger {
    color: var(--text-main);
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--bg-main);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        transition: var(--transition-standard);
        z-index: 99;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-link,
    .navbar.scrolled .nav-link {
        color: var(--text-main);
        font-size: 1.2rem;
    }

    .nav-link::after {
        background: var(--text-main);
    }

    .hamburger {
        display: block;
    }

    .navbar .logo {
        color: var(--text-main);
    }

    /* Ensure visible on mob menu */
}

/* Hero Section (Natural Minimalist) */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background-image: url('assets/hero-bg.png');
    background-size: cover;
    background-position: center;
}

/* Dark overlay to ensure text readability against the aerial image */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    color: white;
}

.hero-title {
    font-size: 4rem;
    font-weight: 300;
    letter-spacing: -1px;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    color: white;
}

.hero-subtitle {
    font-size: 1.15rem;
    font-weight: 300;
    opacity: 0.9;
    margin: 0 auto 3rem auto;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    z-index: 5;
    animation: fadeIn 2s ease 1.5s both;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: white;
    animation: scrollDrop 2s cubic-bezier(0.77, 0, 0.175, 1) infinite;
}

@keyframes scrollDrop {
    0% {
        transform: translateY(-100%);
    }

    100% {
        transform: translateY(400%);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.8rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
}

/* Sections */
.section-title {
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-secondary);
    margin-bottom: 0.5rem;
    display: block;
}

.section-desc {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* Icon styling */
.icon-wrap {
    font-size: 2rem;
    color: var(--accent-primary);
    margin-bottom: 1.5rem;
}

/* Vision Mission & Markets Cards */
.card-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: 400;
}

.market-header {
    margin-bottom: 2.5rem;
}

.market-header h3 {
    font-size: 1.8rem;
    font-weight: 300;
}

.stat-card {
    border-top: 3px solid transparent;
}

.stat-card:nth-child(1) {
    border-top-color: var(--accent-primary);
}

.stat-card:nth-child(2) {
    border-top-color: var(--accent-secondary);
}

.stat-card:nth-child(3) {
    border-top-color: #6d6875;
}

.stat-card:nth-child(4) {
    border-top-color: #b5838d;
}

.stat-card i {
    font-size: 1.5rem;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    opacity: 0.7;
}

.stat-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
}

.img-placeholder {
    width: 100%;
    height: 100%;
    min-height: 300px;
    background: var(--bg-secondary);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--accent-secondary);
    font-size: 3rem;
    opacity: 0.5;
}

/* Minimal Stats Counter Section */
.stats-section {
    background: var(--bg-deep);
    color: var(--text-light);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.stat-block {
    text-align: center;
    padding: 2rem 0;
    position: relative;
}

.stat-block:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -1rem;
    top: 20%;
    height: 60%;
    width: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    font-weight: 300;
    line-height: 1;
    margin-bottom: 0.5rem;
    color: white;
}

.stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 992px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 4rem 2rem;
    }

    .stat-block:nth-child(2)::after {
        display: none;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-block::after {
        display: none;
    }
}

/* Value Props */
.value-list {
    list-style: none;
    margin-top: 2rem;
}

.value-list li {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.value-list .list-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border: 1px solid var(--accent-primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--accent-primary);
    font-size: 0.8rem;
    margin-top: 4px;
}

.value-list strong {
    display: block;
    margin-bottom: 0.4rem;
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 1.1rem;
}

/* Timeline Process (Minimal) */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 4rem auto 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 100%;
    width: 1px;
    background: rgba(0, 0, 0, 0.1);
}

.timeline-item {
    position: relative;
    margin-bottom: 4rem;
    width: 50%;
    padding-right: 40px;
    text-align: right;
}

.timeline-item:nth-child(even) {
    margin-left: auto;
    padding-right: 0;
    padding-left: 40px;
    text-align: left;
}

.timeline-marker {
    position: absolute;
    top: 0;
    right: -20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-main);
    border: 1px solid var(--accent-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: var(--font-heading);
    color: var(--accent-primary);
    font-size: 1rem;
    z-index: 2;
}

.timeline-item:nth-child(even) .timeline-marker {
    right: auto;
    left: -20px;
}

.nav-logo,
.footer-logo {
    height: 55px;
    width: auto;
    display: block;
}

.stage-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    display: block;
}

.timeline-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.timeline-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .timeline::before {
        left: 20px;
    }

    .timeline-item,
    .timeline-item:nth-child(even) {
        width: 100%;
        padding-left: 60px;
        padding-right: 0;
        text-align: left;
    }

    .timeline-item .timeline-marker,
    .timeline-item:nth-child(even) .timeline-marker {
        left: 0;
        right: auto;
    }
}

/* Offerings List */
.offerings-card {
    padding: 4rem 3rem;
}

.offerings-header {
    text-align: center;
    margin-bottom: 3rem;
}

.offerings-header i {
    font-size: 2.5rem;
    color: var(--accent-secondary);
    margin-bottom: 1.5rem;
}

.offerings-list {
    list-style: none;
}

.offerings-list li {
    padding: 1.2rem 0;
    border-bottom: 1px solid var(--glass-border);
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.offerings-list li:last-child {
    border-bottom: none;
}

.offerings-list li::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-primary);
}

/* Contact / CTA section */
.cta-section {
    background: var(--bg-secondary);
    text-align: center;
}

.cta-title {
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
}

.cta-desc {
    color: var(--text-muted);
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.cta-contact-info {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 4rem;
    flex-wrap: wrap;
}

.cta-info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.cta-info-item .icon-wrap {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.cta-info-item span {
    font-size: 0.95rem;
    color: var(--text-main);
}

/* Footer */
.footer {
    padding: 5rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand p {
    max-width: 300px;
    font-size: 0.95rem;
    margin-top: 1.5rem;
}

.footer h4 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: white;
}

.footer-links ul {
    list-style: none;
}

.footer-links a,
.footer p {
    color: #A0A0A0;
    text-decoration: none;
    font-size: 0.95rem;
    display: block;
    margin-bottom: 0.8rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-link {
    color: #A0A0A0;
    font-size: 1.2rem;
    transition: color 0.3s;
}

.social-link:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: #777;
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* Simple Unobtrusive Animations */
.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}