<?php
if (session_status() !== PHP_SESSION_ACTIVE) {
    session_start();
}

$pageTitle = "Textile Chemicals | OPPULENT CHEMICALLS EXCELLENCE INNOVATION";

include_once __DIR__ . '/header.php';

$textileBanner = 'assets/images/textile-chemical1.jpg';
$introImage    = 'assets/images/image1.jpg';
$contactImage  = 'assets/images/building.jpg';

$textileBrands = [
    [
        'name' => 'PURESIZE',
        'icon' => 'fa-ruler-combined',
        'description' => "Solutions for textile sizing, stronger yarn and efficient weaving.",
        'target' => '#pretreatment',
        'number' => '01'
    ],
    [
        'name' => 'PUREACTIVE',
        'icon' => 'fa-droplet',
        'description' => 'Reactive dye solutions for vibrant shades and reliable performance.',
        'target' => '#dyeing',
        'number' => '02'
    ],
    [
        'name' => 'PURONAL',
        'icon' => 'fa-flask',
        'description' => 'Wet processing solutions for diverse textile applications.',
        'target' => '#finishing',
        'number' => '03'
    ],
    [
        'name' => 'PUREPRINT',
        'icon' => 'fa-palette',
        'description' => 'Printing chemicals, pigments and additives for textile printing.',
        'target' => '#chest-printing',
        'number' => '04'
    ],
    [
        'name' => 'PUREPERS',
        'icon' => 'fa-fill-drip',
        'description' => 'Disperse dye solutions for polyester dyeing applications.',
        'target' => '#pigment-emulsion',
        'number' => '05'
    ],
    [
        'name' => 'PURESOFT',
        'icon' => 'fa-shirt',
        'description' => 'Finishing solutions designed to support fabric softness and feel.',
        'target' => '#finishing',
        'number' => '06'
    ]
];

$textileProducts = [
    [
        'name' => 'Pretreatment',
        'icon' => 'fa-filter',
        'image' => 'assets/images/textile-chemicals/Pretreatmentmin.jpg',
        'url' => 'textile-chemicals/pretreatment.php',
        'id' => 'pretreatment',
        'description' => 'Prepare fibres and fabrics for consistent downstream processing.',
        'size' => 'large'
    ],
    [
        'name' => 'Dyeing',
        'icon' => 'fa-droplet',
        'image' => 'assets/images/textile-chemicals/Dyeing.jpg',
        'url' => 'textile-chemicals/dyeing.php',
        'id' => 'dyeing',
        'description' => 'Explore solutions for textile dyeing applications.',
        'size' => 'small'
    ],
    [
        'name' => 'Chest Printing',
        'icon' => 'fa-palette',
        'image' => 'assets/images/textile-chemicals/ChestPrinting.jpg',
        'url' => 'textile-chemicals/chest-printing.php',
        'id' => 'chest-printing',
        'description' => 'Solutions for specialised textile printing requirements.',
        'size' => 'small'
    ],
    [
        'name' => 'Rotary Printing',
        'icon' => 'fa-gears',
        'image' => 'assets/images/textile-chemicals/rotary.jpg',
        'url' => 'textile-chemicals/rotary-printing.php',
        'id' => 'rotary-printing',
        'description' => 'Products for rotary textile printing processes.',
        'size' => 'small'
    ],
    [
        'name' => 'Pigment Emulsion',
        'icon' => 'fa-vial',
        'image' => 'assets/images/textile-chemicals/Textile.jpg',
        'url' => 'textile-chemicals/pigment-emulsion.php',
        'id' => 'pigment-emulsion',
        'description' => 'Explore pigment and textile printing solutions.',
        'size' => 'small'
    ],
    [
        'name' => 'Finishing',
        'icon' => 'fa-shirt',
        'image' => 'assets/images/textile-chemicals/Rotaryprinting.jpg',
        'url' => 'textile-chemicals/finishing.php',
        'id' => 'finishing',
        'description' => 'Solutions to enhance fabric feel and finishing performance.',
        'size' => 'large'
    ]
];

$e = static function ($value) {
    return htmlspecialchars((string)$value, ENT_QUOTES, 'UTF-8');
};
?>

<!-- Bootstrap & External CSS -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/OwlCarousel2/2.3.4/assets/owl.carousel.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/OwlCarousel2/2.3.4/assets/owl.theme.default.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<link href="https://fonts.googleapis.com/css2?family=Manrope:wght@400;700;800&family=Roboto:wght@400;500;700&display=swap" rel="stylesheet">
<!-- Font Awesome: icons -->
<link rel="stylesheet"
      href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.2/css/all.min.css">

<style>
/* =========================================================
   PURE CHEMICAL | TEXTILE CHEMICALS PREMIUM UI
========================================================= */

.tc-page {
    --tc-green: #087650;
    --tc-green-dark: #064b35;
    --tc-green-light: #eaf7ef;
    --tc-ink: #142f25;
    --tc-muted: #68786f;
    --tc-border: #e2ebe5;
    --tc-bg: #f5f8f6;
    color: var(--tc-muted);
    font-family: inherit;
    overflow: clip;
}

.tc-page *,
.tc-page *::before,
.tc-page *::after {
    box-sizing: border-box;
}

.tc-page img {
    max-width: 100%;
}

.tc-container {
    width: min(1200px, calc(100% - 40px));
    margin-inline: auto;
}

.tc-section {
    padding: 86px 0;
}

.tc-section--light {
    background: var(--tc-bg);
}

.tc-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 14px;
    color: var(--tc-green);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.tc-eyebrow i {
    font-size: 14px;
}

.tc-section-title {
    margin: 0;
    color: var(--tc-ink);
    font-size: clamp(30px, 4vw, 45px);
    line-height: 1.17;
    font-weight: 850;
    letter-spacing: -1.1px;
}

.tc-section-heading {
    max-width: 760px;
    margin: 0 auto 43px;
    text-align: center;
}

.tc-section-heading p {
    max-width: 680px;
    margin: 17px auto 0;
    font-size: 15px;
    line-height: 1.9;
}

.tc-divider {
    width: 64px;
    height: 4px;
    margin: 20px auto;
    border-radius: 20px;
    background: linear-gradient(90deg, var(--tc-green), #80c79c);
}

.tc-btn {
    min-height: 49px;
    padding: 13px 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid var(--tc-green);
    border-radius: 8px;
    background: var(--tc-green);
    color: #fff !important;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.4;
    cursor: pointer;
    transition: .25s ease;
}

.tc-btn:hover {
    background: var(--tc-green-dark);
    border-color: var(--tc-green-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(8, 118, 80, .18);
}

.tc-btn--outline {
    background: transparent;
    color: var(--tc-green) !important;
}

.tc-btn--outline:hover {
    background: var(--tc-green);
    color: #fff !important;
}

/* HERO */

.tc-hero {
    min-height: 460px;
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #123a2a;
    background-position: center;
    background-size: cover;
    text-align: center;
}

.tc-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(110deg, rgba(3, 28, 19, .88), rgba(4, 58, 37, .52)),
        linear-gradient(0deg, rgba(0, 0, 0, .16), transparent);
}

.tc-hero-inner {
    width: min(950px, calc(100% - 35px));
    padding: 75px 0;
}

.tc-hero .tc-eyebrow {
    padding: 9px 15px;
    border: 1px solid rgba(255,255,255,.26);
    border-radius: 50px;
    background: rgba(255,255,255,.08);
    color: #d8f4e3;
}

.tc-hero h1 {
    margin: 12px 0 0;
    color: #fff;
    font-size: clamp(40px, 6vw, 70px);
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -2px;
}

.tc-hero-description {
    max-width: 660px;
    margin: 21px auto 0;
    color: rgba(255,255,255,.91);
    font-size: 16px;
    line-height: 1.9;
}

.tc-hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 28px;
}

.tc-hero .tc-btn--white {
    background: #fff;
    border-color: #fff;
    color: var(--tc-green-dark) !important;
}

.tc-hero .tc-btn--white:hover {
    background: #eaf7ef;
    border-color: #eaf7ef;
}

.tc-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 11px;
    margin-top: 25px;
    color: #fff;
    font-size: 12px;
}

.tc-breadcrumb a {
    color: #fff;
    text-decoration: none;
}

.tc-breadcrumb a:hover {
    color: #d8f4e3;
}

.tc-breadcrumb .tc-current {
    color: #c8f0d7;
    font-weight: 800;
}

/* INTRO */

.tc-intro {
    background: #fff;
}

.tc-intro-grid {
    display: grid;
    grid-template-columns: 1.08fr .92fr;
    align-items: center;
    gap: 55px;
}

.tc-intro-content h2 {
    margin: 0 0 22px;
    color: var(--tc-ink);
    font-size: clamp(29px, 3.8vw, 44px);
    line-height: 1.2;
    font-weight: 850;
    letter-spacing: -.8px;
}

.tc-intro-content p {
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 2;
}

.tc-intro-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 27px;
}

.tc-intro-image {
    min-height: 410px;
    position: relative;
    overflow: hidden;
    border: 8px solid #fff;
    border-radius: 22px;
    background: #e1eee5;
    box-shadow: 0 18px 48px rgba(18, 60, 42, .13);
}

.tc-intro-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tc-image-note {
    position: absolute;
    right: 18px;
    bottom: 18px;
    left: 18px;
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 13px;
    border: 1px solid rgba(255,255,255,.65);
    border-radius: 12px;
    background: rgba(255,255,255,.95);
    color: var(--tc-ink);
    font-size: 13px;
    font-weight: 750;
    line-height: 1.7;
    box-shadow: 0 8px 25px rgba(0,0,0,.06);
}

.tc-image-note i {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: var(--tc-green-light);
    color: var(--tc-green);
    font-size: 18px;
}

/* BRAND CARDS */

.tc-brand-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.tc-brand-card {
    min-width: 0;
    position: relative;
    padding: 28px 25px;
    overflow: hidden;
    border: 1px solid var(--tc-border);
    border-radius: 15px;
    background: #fff;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.tc-brand-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--tc-green), #8ccba5);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s ease;
}

.tc-brand-card:hover {
    transform: translateY(-5px);
    border-color: #c7dfd0;
    box-shadow: 0 16px 36px rgba(22, 61, 43, .09);
}

.tc-brand-card:hover::before {
    transform: scaleX(1);
}

.tc-brand-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 23px;
}

.tc-brand-icon {
    width: 49px;
    height: 49px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: var(--tc-green-light);
    color: var(--tc-green);
    font-size: 19px;
}

.tc-brand-number {
    color: #c6d8cd;
    font-size: 26px;
    font-weight: 900;
}

.tc-brand-card h3 {
    margin: 0 0 12px;
    font-size: 19px;
    font-weight: 900;
    letter-spacing: .3px;
}

.tc-brand-card h3 a {
    color: var(--tc-ink);
    text-decoration: none;
}

.tc-brand-card h3 a:hover {
    color: var(--tc-green);
}

.tc-brand-card p {
    margin: 0;
    font-size: 13px;
    line-height: 1.9;
}

.tc-brand-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 20px;
    color: var(--tc-green);
    font-size: 12px;
    font-weight: 850;
    text-decoration: none;
}

.tc-brand-link i {
    transition: transform .2s ease;
}

.tc-brand-link:hover {
    color: var(--tc-green-dark);
}

.tc-brand-link:hover i {
    transform: translateX(4px);
}

/* PRODUCT GRID */

.tc-products {
    background: #fff;
}

.tc-products-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 22px;
}

.tc-product-card {
    grid-column: span 4;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--tc-border);
    border-radius: 15px;
    background: #fff;
    transition: transform .25s ease, box-shadow .25s ease;
}

.tc-product-card--large {
    grid-column: span 6;
}

.tc-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 40px rgba(19, 58, 41, .10);
}

.tc-product-image {
    height: 220px;
    position: relative;
    overflow: hidden;
    background: #e6eee8;
}

.tc-product-card--large .tc-product-image {
    height: 270px;
}

.tc-product-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .45s ease;
}

.tc-product-card:hover .tc-product-image img {
    transform: scale(1.05);
}

.tc-product-icon {
    position: absolute;
    right: 16px;
    bottom: 16px;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.6);
    border-radius: 12px;
    background: rgba(255,255,255,.95);
    color: var(--tc-green);
    font-size: 17px;
    box-shadow: 0 6px 18px rgba(0,0,0,.08);
}

.tc-product-info {
    padding: 24px;
}

.tc-product-info h3 {
    margin: 0 0 9px;
    color: var(--tc-ink);
    font-size: 18px;
    font-weight: 850;
}

.tc-product-info p {
    margin: 0 0 19px;
    font-size: 13px;
    line-height: 1.8;
}

.tc-product-info .tc-btn {
    min-height: 41px;
    padding: 10px 15px;
    font-size: 12px;
}

/* STATS */

.tc-stats {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: var(--tc-green-dark);
    color: #fff;
}

.tc-stats::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: .12;
    background-image: radial-gradient(#fff 1px, transparent 1px);
    background-size: 22px 22px;
}

.tc-stats-grid {
    display: grid;
    grid-template-columns: 1.1fr 1.9fr;
    align-items: center;
    gap: 55px;
}

.tc-stats-intro .tc-eyebrow {
    color: #bde9ce;
}

.tc-stats-intro h2 {
    margin: 0 0 17px;
    color: #fff;
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.22;
    font-weight: 900;
}

.tc-stats-intro p {
    margin: 0 0 25px;
    color: rgba(255,255,255,.79);
    font-size: 14px;
    line-height: 1.9;
}

.tc-stats .tc-btn {
    background: #fff;
    color: var(--tc-green-dark) !important;
    border-color: #fff;
}

.tc-stats .tc-btn:hover {
    background: #eaf7ef;
    border-color: #eaf7ef;
}

.tc-stats-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.tc-stat-card {
    padding: 28px 17px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 13px;
    background: rgba(255,255,255,.075);
    text-align: center;
    transition: background .2s ease, transform .2s ease;
}

.tc-stat-card:hover {
    transform: translateY(-3px);
    background: rgba(255,255,255,.12);
}

.tc-stat-card:last-child {
    grid-column: 1 / -1;
}

.tc-stat-icon {
    margin-bottom: 14px;
    color: #bde9ce;
    font-size: 21px;
}

.tc-stat-card h3 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 42px;
    font-weight: 900;
    line-height: 1.1;
}

.tc-stat-card p {
    margin: 0;
    color: rgba(255,255,255,.82);
    font-size: 12px;
    line-height: 1.7;
}

/* CONTACT */

.tc-contact {
    background: var(--tc-bg);
}

.tc-contact-grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    align-items: stretch;
    gap: 42px;
}

.tc-contact-form-wrap {
    min-width: 0;
}

.tc-contact-form-wrap h2 {
    margin: 0 0 14px;
    color: var(--tc-ink);
    font-size: clamp(30px, 4vw, 42px);
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: -.8px;
}

.tc-contact-intro {
    margin: 0 0 25px;
    font-size: 14px;
    line-height: 1.9;
}

.tc-form-card {
    padding: 27px;
    border: 1px solid var(--tc-border);
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 13px 35px rgba(18, 60, 42, .055);
}

.tc-form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
}

.tc-field {
    min-width: 0;
    margin-bottom: 16px;
}

.tc-field label {
    display: block;
    margin-bottom: 7px;
    color: #294538;
    font-size: 12px;
    font-weight: 850;
}

.tc-field input,
.tc-field select,
.tc-field textarea {
    display: block;
    width: 100%;
    max-width: 100%;
    padding: 13px 14px;
    border: 1px solid #dbe6de;
    border-radius: 8px;
    background: #fff;
    color: #21392d;
    font-family: inherit;
    font-size: 13px;
    line-height: 1.5;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}

.tc-field input:focus,
.tc-field select:focus,
.tc-field textarea:focus {
    border-color: var(--tc-green);
    box-shadow: 0 0 0 3px rgba(13, 107, 77, .09);
}

.tc-field textarea {
    min-height: 110px;
    resize: vertical;
}

.tc-submit {
    width: 100%;
    border: 0;
}

.tc-submit i {
    font-size: 17px;
}

.tc-whatsapp-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 14px 0 0;
    color: #6a7a70;
    font-size: 11px;
    line-height: 1.8;
}

.tc-whatsapp-note i {
    margin-top: 3px;
    color: var(--tc-green);
}

/* RIGHT IMAGE */

.tc-contact-visual {
    min-height: 620px;
    position: relative;
    overflow: hidden;
    border-radius: 17px;
    background: #dfeae2;
    box-shadow: 0 18px 45px rgba(18, 60, 42, .12);
}

.tc-contact-visual > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform .5s ease;
}

.tc-contact-visual:hover > img {
    transform: scale(1.035);
}

.tc-contact-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(4,28,19,.02) 20%,
        rgba(4,28,19,.88) 100%
    );
}

.tc-contact-caption {
    position: absolute;
    z-index: 2;
    right: 27px;
    bottom: 30px;
    left: 27px;
    color: #fff;
}

.tc-contact-caption span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #d6efdf;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 2px;
}

.tc-contact-caption h3 {
    margin: 13px 0 0;
    color: #fff;
    font-size: clamp(27px, 3.4vw, 38px);
    line-height: 1.3;
    font-weight: 900;
}

/* BROCHURE MODAL */

.tc-modal .modal-content {
    overflow: hidden;
    border: 1px solid var(--tc-border);
    border-radius: 16px;
}

.tc-modal .modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--tc-border);
    background: #f6faf7;
}

.tc-modal .modal-title {
    color: var(--tc-ink);
    font-weight: 900;
}

.tc-modal .modal-body {
    padding: 25px;
}

.tc-modal-copy {
    margin: 0 0 20px;
    font-size: 13px;
    line-height: 1.8;
}

/* RESPONSIVE */

@media (max-width: 1000px) {
    .tc-intro-grid {
        gap: 30px;
    }

    .tc-brand-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tc-stats-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .tc-contact-grid {
        gap: 25px;
    }

    .tc-contact-visual {
        min-height: 680px;
    }
}

@media (max-width: 760px) {
    .tc-section {
        padding: 62px 0;
    }

    .tc-container {
        width: calc(100% - 32px);
    }

    .tc-hero {
        min-height: 370px;
    }

    .tc-hero h1 {
        letter-spacing: -1px;
    }

    .tc-intro-grid {
        grid-template-columns: 1fr;
    }

    .tc-intro-image {
        min-height: 330px;
    }

    .tc-products-grid {
        gap: 15px;
    }

    .tc-product-card,
    .tc-product-card--large {
        grid-column: span 6;
    }

    .tc-product-card--large .tc-product-image,
    .tc-product-image {
        height: 190px;
    }

    .tc-product-info {
        padding: 18px;
    }

    .tc-contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .tc-contact-visual {
        min-height: 430px;
    }
}

@media (max-width: 520px) {
    .tc-section {
        padding: 50px 0;
    }

    .tc-hero {
        min-height: 330px;
    }

    .tc-hero-inner {
        padding: 48px 0;
    }

    .tc-hero-description {
        font-size: 14px;
    }

    .tc-hero-actions .tc-btn {
        width: 100%;
    }

    .tc-brand-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .tc-brand-card {
        padding: 23px;
    }

    .tc-products-grid {
        grid-template-columns: 1fr;
    }

    .tc-product-card,
    .tc-product-card--large {
        grid-column: auto;
    }

    .tc-product-card--large .tc-product-image,
    .tc-product-image {
        height: 220px;
    }

    .tc-stats-cards {
        gap: 10px;
    }

    .tc-stat-card {
        padding: 22px 10px;
    }

    .tc-stat-card h3 {
        font-size: 34px;
    }

    .tc-form-card {
        padding: 20px 16px;
    }

    .tc-form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .tc-contact-visual {
        min-height: 350px;
    }

    .tc-contact-caption {
        right: 20px;
        bottom: 22px;
        left: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tc-page *,
    .tc-page *::before,
    .tc-page *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }
}
</style>

<main class="tc-page">

    <!-- PREMIUM HERO -->
    <section
        class="tc-hero"
        style="background-image:url('<?php echo $e($textileBanner); ?>');"
    >
        <div class="tc-hero-inner">
            <span class="tc-eyebrow">
                <i class="fa-solid fa-atom"></i>
                Advanced Textile Solutions
            </span>

            <h1>Textile Chemicals</h1>

            <p class="tc-hero-description">
                Innovative chemical solutions for textile pretreatment,
                dyeing, printing and finishing — designed around your
                industrial processing requirements.
            </p>

            <div class="tc-hero-actions">
                <a href="#explore-products" class="tc-btn tc-btn--white">
                    <i class="fa-solid fa-flask"></i>
                    Explore Products
                </a>

                <a href="#getInTouchSection" class="tc-btn">
                    <i class="fa-regular fa-paper-plane"></i>
                    Send Enquiry
                </a>
            </div>

            <nav class="tc-breadcrumb" aria-label="Breadcrumb">
                <a href="index.php">Home</a>
                <i class="fa-solid fa-chevron-right"></i>
                <a href="performance-chemicals.php">Performance Chemicals</a>
                <i class="fa-solid fa-chevron-right"></i>
                <span class="tc-current">Textile Chemicals</span>
            </nav>
        </div>
    </section>

    <!-- INTRO -->
    <section class="tc-section tc-intro">
        <div class="tc-container">
            <div class="tc-intro-grid">

                <div class="tc-intro-content">
                    <span class="tc-eyebrow">
                        <i class="fa-solid fa-leaf"></i>
                        About Our Division
                    </span>

                    <h2>Smart Chemistry for Better Textiles</h2>

                    <p>
                        Our speciality textile chemicals portfolio supports
                        a range of processing stages, from fibre preparation
                        to dyeing, printing and finishing.
                    </p>

                    <p>
                        The portfolio includes pretreatment products,
                        antifoaming agents, dye-fixing agents, optical
                        brightening agents, peroxide stabilisers and
                        specialised processing solutions.
                    </p>

                    <p>
                        Our team works with customers to understand
                        application needs and identify suitable products
                        for their textile processing requirements.
                    </p>

                    <div class="tc-intro-actions">
                        <a href="contact-us.php" class="tc-btn">
                            <i class="fa-regular fa-envelope"></i>
                            Contact Our Team
                        </a>

                        <a href="#getInTouchSection" class="tc-btn tc-btn--outline">
                            <i class="fa-brands fa-whatsapp"></i>
                            Enquire on WhatsApp
                        </a>
                    </div>
                </div>

                <div class="tc-intro-image">
                    <img
                        src="<?php echo $e($introImage); ?>"
                        alt="Textile chemical processing solutions"
                        loading="lazy"
                    >

                    <div class="tc-image-note">
                        <i class="fa-solid fa-shield-halved"></i>
                        <span>
                            Application-focused chemical solutions for
                            textile processing and finishing.
                        </span>
                    </div>
                </div>

            </div>
        </div>
    </section>

    <!-- TEXTILE BRANDS -->
    <section class="tc-section tc-section--light">
        <div class="tc-container">

            <div class="tc-section-heading">
                <span class="tc-eyebrow">
                    <i class="fa-solid fa-layer-group"></i>
                    Our Product Portfolio
                </span>

                <h2 class="tc-section-title">
                    Solutions for Every Process
                </h2>

                <div class="tc-divider"></div>

                <p>
                    Explore our textile product brands and discover
                    solutions for different industrial applications.
                </p>
            </div>

            <div class="tc-brand-grid">
                <?php foreach ($textileBrands as $brand): ?>
                    <article class="tc-brand-card">

                        <div class="tc-brand-top">
                            <span class="tc-brand-icon">
                                <i class="fa-solid <?php echo $e($brand['icon']); ?>"></i>
                            </span>

                            <span class="tc-brand-number">
                                <?php echo $e($brand['number']); ?>
                            </span>
                        </div>

                        <h3>
                            <a href="<?php echo $e($brand['target']); ?>">
                                <?php echo $e($brand['name']); ?>
                            </a>
                        </h3>

                        <p>
                            <?php echo $e($brand['description']); ?>
                        </p>

                        <a
                            class="tc-brand-link"
                            href="<?php echo $e($brand['target']); ?>"
                        >
                            Explore Products
                            <i class="fa-solid fa-arrow-right"></i>
                        </a>

                    </article>
                <?php endforeach; ?>
            </div>

        </div>
    </section>

    

    <!-- COMPANY STATISTICS -->
    <section class="tc-section tc-stats">
        <div class="tc-container">
            <div class="tc-stats-grid">

                <div class="tc-stats-intro">
                    <span class="tc-eyebrow">
                        <i class="fa-solid fa-award"></i>
                        Experience You Can Trust
                    </span>

                    <h2>
                        Since 2026,<br>
                        Catalysing Your Growth
                    </h2>

                    <p>
                        A chemical solutions partner focused on industrial
                        expertise, customer service and long-term business
                        relationships.
                    </p>

                    <a href="#getInTouchSection" class="tc-btn">
                        Discuss Your Requirements
                        <i class="fa-solid fa-arrow-right"></i>
                    </a>
                </div>

                <div class="tc-stats-cards">
                    <div class="tc-stat-card">
                        <div class="tc-stat-icon">
                            <i class="fa-solid fa-warehouse"></i>
                        </div>
                        <h3>28</h3>
                        <p>Branches &amp; Warehouses</p>
                    </div>

                    <div class="tc-stat-card">
                        <div class="tc-stat-icon">
                            <i class="fa-solid fa-industry"></i>
                        </div>
                        <h3>4</h3>
                        <p>Manufacturing Units</p>
                    </div>

                    <div class="tc-stat-card">
                        <div class="tc-stat-icon">
                            <i class="fa-solid fa-earth-asia"></i>
                        </div>
                        <h3>5</h3>
                        <p>Overseas Branches</p>
                    </div>
                </div>

            </div>
        </div>
    </section>

    <!-- CONTACT / WHATSAPP ENQUIRY -->
    <section class="tc-section tc-contact" id="getInTouchSection">
        <div class="tc-container">
            <div class="tc-contact-grid">

                <div class="tc-contact-form-wrap">
                    <span class="tc-eyebrow">
                        <i class="fa-regular fa-comments"></i>
                        Let's Connect
                    </span>

                    <h2>Get In Touch With Us</h2>

                    <p class="tc-contact-intro">
                        Share your textile chemical requirements.
                        Your submitted details will be included in a
                        WhatsApp enquiry message.
                    </p>

                    <form id="tcEnquiryForm" class="tc-form-card">

                        <div class="tc-form-row">
                            <div class="tc-field">
                                <label for="tcName">
                                    <i class="fa-regular fa-user"></i>
                                    Full Name *
                                </label>

                                <input
                                    type="text"
                                    id="tcName"
                                    name="Name"
                                    placeholder="Enter your full name"
                                    autocomplete="name"
                                    required
                                >
                            </div>

                            <div class="tc-field">
                                <label for="tcEmail">
                                    <i class="fa-regular fa-envelope"></i>
                                    Email Address *
                                </label>

                                <input
                                    type="email"
                                    id="tcEmail"
                                    name="Email"
                                    placeholder="you@example.com"
                                    autocomplete="email"
                                    required
                                >
                            </div>
                        </div>

                        <div class="tc-form-row">
                            <div class="tc-field">
                                <label for="tcMobile">
                                    <i class="fa-solid fa-phone"></i>
                                    Mobile Number *
                                </label>

                                <input
                                    type="tel"
                                    id="tcMobile"
                                    name="Mobile"
                                    placeholder="Enter mobile number"
                                    autocomplete="tel"
                                    required
                                >
                            </div>

                            <div class="tc-field">
                                <label for="tcLocation">
                                    <i class="fa-solid fa-location-dot"></i>
                                    Location *
                                </label>

                                <input
                                    type="text"
                                    id="tcLocation"
                                    name="Location"
                                    placeholder="City / Country"
                                    required
                                >
                            </div>
                        </div>

                        <div class="tc-form-row">
                            <div class="tc-field">
                                <label for="tcCompany">
                                    <i class="fa-solid fa-building"></i>
                                    Company *
                                </label>

                                <input
                                    type="text"
                                    id="tcCompany"
                                    name="Company"
                                    placeholder="Company name"
                                    autocomplete="organization"
                                    required
                                >
                            </div>

                            <div class="tc-field">
                                <label for="tcProduct">
                                    <i class="fa-solid fa-flask"></i>
                                    Required Product *
                                </label>

                                <select id="tcProduct" name="Product" required>
                                    <option value="">Select a product category</option>
                                    <?php foreach ($textileProducts as $product): ?>
                                        <option value="<?php echo $e($product['name']); ?>">
                                            <?php echo $e($product['name']); ?>
                                        </option>
                                    <?php endforeach; ?>
                                    <option value="Other Textile Chemical">
                                        Other Textile Chemical
                                    </option>
                                </select>
                            </div>
                        </div>

                        <div class="tc-field">
                            <label for="tcQuantity">
                                <i class="fa-solid fa-box"></i>
                                Required Quantity *
                            </label>

                            <input
                                type="text"
                                id="tcQuantity"
                                name="Quantity"
                                placeholder="e.g. 100 kg, 500 litres"
                                required
                            >
                        </div>

                        <div class="tc-field">
                            <label for="tcMessage">
                                <i class="fa-regular fa-message"></i>
                                Your Message
                            </label>

                            <textarea
                                id="tcMessage"
                                name="Message"
                                placeholder="Describe your application or requirements..."
                            ></textarea>
                        </div>

                        <button class="tc-btn tc-submit" type="submit">
                            <i class="fa-brands fa-whatsapp"></i>
                            Send Enquiry on WhatsApp
                            <i class="fa-solid fa-arrow-right"></i>
                        </button>

                        <p class="tc-whatsapp-note">
                            <i class="fa-solid fa-circle-info"></i>
                            WhatsApp will open with your enquiry details.
                            Review the message and press Send in WhatsApp.
                        </p>

                    </form>
                </div>

                <div class="tc-contact-visual">
                    <img
                        src="<?php echo $e($contactImage); ?>"
                        alt="Contact the textile chemicals team"
                        loading="lazy"
                    >

                    <div class="tc-contact-caption">
                        <span>
                            <i class="fa-solid fa-circle-check"></i>
                            QUALITY · TRUST · INNOVATION
                        </span>

                        <h3>
                            Your Partner in Textile Chemical Solutions
                        </h3>
                    </div>
                </div>

            </div>
        </div>
    </section>

   
<?php
include_once __DIR__ . '/footer.php';
?>