/* ==========================================================================
   1. CSS VARIABLES & RESET
   ========================================================================== */
:root {
    --brand-blue: #0066FF;
    --brand-blue-dark: #0052cc;
    --brand-dark: #0A1128;
    --brand-light: #F4F8FF;
    --text-main: #333333;
    --text-muted: #666666;
    --white: #FFFFFF;

    --font-main: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

    --header-h: 80px;
    --gutter: clamp(20px, 4vw, 64px);
    --max-width: 1600px;
    --section-pad: clamp(60px, 8vw, 100px);

    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px rgba(0, 102, 255, 0.1);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.1);
    --radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-h);
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-main);
    color: var(--text-main);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

:focus-visible {
    outline: 3px solid rgba(0, 102, 255, 0.45);
    outline-offset: 2px;
}

/* ==========================================================================
   2. TYPOGRAPHY & UTILITIES
   ========================================================================== */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.section {
    padding: var(--section-pad) 0;
}

.bg-light {
    background-color: var(--brand-light);
}

.text-accent {
    color: var(--brand-blue);
}

.section-header {
    text-align: center;
    margin-bottom: clamp(36px, 5vw, 60px);
}

.section-header h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    color: var(--brand-dark);
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.divider {
    height: 4px;
    width: 60px;
    background-color: var(--brand-blue);
    margin: 15px auto 20px;
    border-radius: 2px;
}

.subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 640px;
    margin: 0 auto;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    text-align: center;
}

.btn-primary {
    background-color: var(--brand-blue);
    color: var(--white);
    box-shadow: 0 8px 20px rgba(0, 102, 255, 0.3);
}

.btn-primary:hover {
    background-color: var(--brand-blue-dark);
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(0, 102, 255, 0.4);
}

.btn-outline {
    background-color: transparent;
    color: var(--brand-dark);
    border-color: var(--brand-dark);
}

.btn-outline:hover {
    background-color: var(--brand-dark);
    color: var(--white);
    transform: translateY(-3px);
}

/* ==========================================================================
   3. LOADER
   ========================================================================== */
.loader {
    position: fixed;
    inset: 0;
    background-color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.loader-logo {
    height: 160px;
    width: auto;
    object-fit: contain;
    margin-bottom: 30px;
    animation: pulse-logo 1.5s ease-in-out infinite;
    filter: drop-shadow(0 6px 18px rgba(0, 102, 255, 0.3));
}

.loader-text {
    font-weight: 800;
    font-size: 2.2rem;
    letter-spacing: 6px;
    color: var(--brand-dark);
    text-transform: uppercase;
    animation: pulse-text 1.5s ease-in-out infinite;
}

@keyframes pulse-logo {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.08);
        opacity: 0.7;
    }
}

@keyframes pulse-text {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

/* ==========================================================================
   4. HEADER & NAVIGATION
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.site-header.scrolled {
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-h);
    gap: 20px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 0;
    flex-shrink: 0;
}

.header-logo {
    height: 55px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

.logo-area:hover .header-logo {
    transform: scale(1.03);
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo-text h1 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--brand-dark);
    letter-spacing: -0.5px;
    margin-bottom: 2px;
}

.logo-text h1 span {
    color: var(--brand-blue);
}

.logo-text p {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.header-gstin {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 14px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.6px;
    color: var(--brand-blue);
    background: rgba(0, 102, 255, 0.07);
    border: 1px solid rgba(0, 102, 255, 0.2);
    border-radius: 50px;
    white-space: nowrap;
    margin-left: auto;
    margin-right: 18px;
    flex-shrink: 0;
}

.header-gstin i {
    font-size: 0.85em;
    color: var(--brand-blue);
}

.main-nav ul {
    display: flex;
    gap: clamp(22px, 2.6vw, 40px);
}

.main-nav a {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--brand-dark);
    position: relative;
    transition: var(--transition);
    white-space: nowrap;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--brand-blue);
    transition: var(--transition);
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--brand-blue);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.main-nav a i {
    margin-right: 8px;
    font-size: 0.9em;
    color: var(--text-muted);
    transition: var(--transition);
}

.main-nav a:hover i,
.main-nav a.active i {
    color: var(--brand-blue);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--brand-dark);
    cursor: pointer;
    padding: 8px;
    line-height: 1;
}

/* ==========================================================================
   5. HERO
   ========================================================================== */
.hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: #ffffff;
    padding: calc(var(--header-h) + 40px) 0 60px;
    isolation: isolate;
}

.hero-carousel {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.4s ease-in-out, transform 9s ease-out;
    will-change: opacity, transform;
}

.carousel-slide.active {
    opacity: 1;
    transform: scale(1.04);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0.97) 0%,
            rgba(255, 255, 255, 0.92) 30%,
            rgba(255, 255, 255, 0.65) 48%,
            rgba(255, 255, 255, 0.18) 68%,
            rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
}

.hero-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 102, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 102, 255, 0.035) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
}

.hero-wrapper {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--gutter);
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.hero-content {
    width: 100%;
    max-width: 700px;
    text-align: left;
}

.hero h1 {
    font-size: clamp(2.4rem, 4.2vw, 3.6rem);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -1.5px;
    color: var(--brand-dark);
    margin-bottom: 22px;
}

.hero h1 .h1-line {
    display: block;
}

.hero h1 .calligraphy-for {
    display: block;
    font-family: 'Great Vibes', cursive;
    font-weight: 400;
    font-size: clamp(2.6rem, 4.2vw, 3.8rem);
    line-height: 0.9;
    letter-spacing: 0;
    color: #6b7280;
    margin: -2px 0 -6px clamp(80px, 9vw, 150px);
    position: relative;
    z-index: 2;
}

.hero h1 .h1-block {
    display: block;
    color: #2563eb;
}

.hero p {
    font-size: clamp(1rem, 1.25vw, 1.15rem);
    color: #4b5563;
    line-height: 1.75;
    font-weight: 400;
    max-width: 640px;
}

.hero p .highlight {
    font-weight: inherit;
    color: inherit;
    background: none;
    padding: 0;
}

/* ==========================================================================
   6. ABOUT SECTION
   ========================================================================== */
.gstin-line {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--brand-blue);
    letter-spacing: 0.5px;
    margin-top: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.gstin-line i {
    color: var(--brand-blue);
    font-size: 0.85em;
}

.section-header-with-logo {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding-bottom: 20px;
    margin-bottom: 35px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header-section-logo {
    height: 120px;
    width: auto;
    object-fit: contain;
    margin-bottom: 0;
}

.header-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.about-top-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2px;
}

.header-text h2 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.1;
    margin-bottom: 2px;
}

.header-text .subtitle {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
    text-align: left;
    margin: 0;
    max-width: 640px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: clamp(30px, 4vw, 60px);
    align-items: stretch;
}

.about-subheading {
    font-size: 1.4rem;
    color: var(--brand-dark);
    font-weight: 800;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.about-subheading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--brand-blue);
    border-radius: 2px;
}

.about-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.about-text p {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.75;
}

.mission-vision-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 25px;
    flex-grow: 1;
}

.mv-card {
    background: #ffffff;
    padding: 24px 20px;
    border-radius: 4px;
    border: 1px solid #d1d5db;
    border-top: 4px solid var(--brand-dark);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    position: relative;
    transition: all 0.3s ease;
}

.mv-card:hover {
    border-color: var(--brand-blue);
    border-top-color: var(--brand-blue);
    box-shadow: 0 8px 15px rgba(0, 102, 255, 0.1);
    transform: translateY(-2px);
}

.mv-icon {
    width: 45px;
    height: 45px;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.mv-icon i {
    font-size: 1.4rem;
    color: var(--brand-dark);
}

.mv-kicker {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--brand-blue);
    margin-bottom: 5px;
}

.mv-card h4 {
    font-size: 1.2rem;
    color: var(--brand-dark);
    margin-bottom: 10px;
    font-weight: 800;
}

.mv-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: 100%;
    min-width: 0;
}

.core-values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: 1fr 1fr;
    gap: 12px;
    flex-grow: 1;
}

.feature-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 10px;
    height: 100%;
    background: #ffffff;
    padding: 20px;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
    border-left: 4px solid var(--brand-blue);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
}

.feature-card:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    border-left-color: var(--brand-dark);
    transform: translateX(5px);
}

.feature-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-dark);
    font-size: 1.2rem;
}

.feature-card h3 {
    font-size: 1rem;
    color: var(--brand-dark);
    margin: 5px 0 4px;
    font-weight: 700;
}

.feature-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

.core-values-grid .feature-card:not(:last-child) .feature-icon {
    margin-bottom: auto;
}

.core-values-grid .feature-card:last-child {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    gap: 16px;
}

.core-values-grid .feature-card:last-child .feature-icon {
    margin-bottom: 0;
}

/* ==========================================================================
   7. SERVICES
   ========================================================================== */
#services {
    padding: 40px 0;
}

#services .section-header {
    margin-bottom: 25px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.service-card {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 220px;
    min-width: 0;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, #f1f5f9 1px, transparent 1px),
        linear-gradient(to bottom, #f1f5f9 1px, transparent 1px);
    background-size: 15px 15px;
    opacity: 0.6;
    z-index: 0;
    pointer-events: none;
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: #e2e8f0;
    transition: background 0.3s ease;
}

.service-card:hover {
    border-color: var(--brand-blue);
    box-shadow: 0 8px 20px rgba(0, 102, 255, 0.08);
    transform: translateY(-2px);
}

.service-card:hover::after {
    background: var(--brand-blue);
}

.sc-icon-top {
    position: relative;
    z-index: 1;
    padding: 25px 20px 0;
}

.sc-icon-top i {
    font-size: 1.8rem;
    color: var(--brand-blue);
    transition: transform 0.2s ease;
}

.service-card:hover .sc-icon-top i {
    transform: scale(1.1);
}

.sc-body {
    position: relative;
    z-index: 1;
    padding: 15px 20px 25px;
    flex-grow: 1;
    background: rgba(255, 255, 255, 0.85);
}

.sc-body h3 {
    font-size: 1rem;
    color: var(--brand-dark);
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.sc-body p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

/* ==========================================================================
   8. CLIENTS
   ========================================================================== */
.clients-section {
    background-color: #0A1128;
    padding: 80px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    position: relative;
}

.clients-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at center, rgba(0, 102, 255, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.clients-header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.clients-header h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    color: #ffffff;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 10px;
}

.clients-header p {
    color: #a0aec0;
    font-size: 1.05rem;
    max-width: 640px;
    margin: 0 auto;
}

.clients-marquee-wrapper {
    position: relative;
    width: 100%;
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    padding: 20px 0;
}

.clients-marquee {
    display: flex;
    align-items: stretch;
    width: max-content;
    animation: scroll-marquee 30s linear infinite;
    gap: 24px;
}

.clients-marquee-wrapper:hover .clients-marquee {
    animation-play-state: paused;
}

@keyframes scroll-marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-50% - 12px));
    }
}

.client-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 280px;
    height: 160px;
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 24px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    position: relative;
    overflow: hidden;
}

.client-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--brand-blue);
    transform: scaleX(0);
    transition: transform 0.4s ease;
    transform-origin: left;
}

.client-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.client-card:hover::before {
    transform: scaleX(1);
}

.client-logo-box {
    width: 100%;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.client-logo-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.client-card:hover .client-logo-img {
    transform: scale(1.15);
}

.client-info {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.client-info strong {
    font-size: 0.9rem;
    color: var(--brand-dark);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.client-info span {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* ==========================================================================
   9. PRODUCTS
   ========================================================================== */
.products-section {
    padding: 60px 0;
    background-color: #f8fafc;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 50px;
}

.product-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    min-width: 0;
    transition: border-color 0.2s ease;
}

.product-card:hover {
    border-color: var(--brand-blue);
}

.product-img-wrapper {
    position: relative;
    width: 100%;
    height: 180px;
    background: #f1f5f9;
    overflow: hidden;
}

.product-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-body {
    padding: 20px 20px 15px;
    flex-grow: 1;
}

.product-body h3 {
    font-size: 1.1rem;
    color: var(--brand-dark);
    font-weight: 800;
    margin: 0 0 10px 0;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: -0.3px;
}

.product-body p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

.product-subtypes {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #f1f5f9;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-subtypes li {
    font-size: 0.75rem;
    color: #475569;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.3;
}

.product-subtypes li::before {
    content: '';
    display: block;
    width: 4px;
    height: 4px;
    background-color: var(--brand-blue);
    flex-shrink: 0;
}

.product-footer {
    padding: 15px 20px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    font-size: 0.75rem;
    font-family: monospace;
    color: #475569;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.spec-label {
    color: var(--brand-blue);
    font-weight: 800;
}

.brands-block {
    margin: 10px 0 50px;
}

.brands-heading {
    text-align: center;
    margin-bottom: 28px;
}

.brands-heading h3 {
    font-size: clamp(1.4rem, 2.2vw, 1.8rem);
    font-weight: 800;
    color: var(--brand-dark);
    letter-spacing: -0.4px;
    display: inline-block;
    position: relative;
    padding-bottom: 12px;
}

.brands-heading h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--brand-blue);
    border-radius: 2px;
}

.brands-heading p {
    color: var(--text-muted);
    font-size: 0.98rem;
    max-width: 620px;
    margin: 10px auto 0;
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.brand-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 28px 18px 22px;
    text-align: center;
    min-width: 0;
    position: relative;
    overflow: hidden;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.brand-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: #e2e8f0;
    transition: background 0.3s ease;
}

.brand-card:hover {
    border-color: var(--brand-blue);
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0, 102, 255, 0.08);
}

.brand-card:hover::after {
    background: var(--brand-blue);
}

.brand-logo {
    width: 100%;
    height: 70px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-logo img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.brand-logo .brand-fallback {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--brand-blue);
}

.brand-card h4 {
    font-size: 1rem;
    font-weight: 800;
    color: var(--brand-dark);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1.3;
    margin-bottom: 6px;
}

.brand-card span {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* ==========================================================================
   10. CONTACT SECTION
   ========================================================================== */
.contact-form-section {
    padding: 80px 0;
    background-color: #f8fafc;
    position: relative;
    overflow: hidden;
}

.contact-form-section .section-header {
    margin-bottom: 40px;
}

.contact-split-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(10, 17, 40, 0.08);
    border: 1px solid #e2e8f0;
    max-width: 1100px;
    margin: 0 auto;
}

.contact-info-panel {
    background-color: #fdfbf7;
    border-right: 1px solid #e2e8f0;
    padding: 50px 40px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.cip-pattern {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 102, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 102, 255, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
}

.cip-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.contact-panel-logo {
    height: 55px;
    width: auto;
    object-fit: contain;
    margin-bottom: 30px;
    align-self: flex-start;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.05));
}

.cip-kicker {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--brand-blue);
    margin-bottom: 10px;
    display: block;
}

.contact-info-panel h2 {
    font-size: 2.2rem;
    color: var(--brand-dark);
    font-weight: 800;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.cip-divider {
    height: 3px;
    width: 45px;
    background-color: var(--brand-dark);
    margin-bottom: 20px;
    border-radius: 2px;
}

.contact-info-panel p {
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.cip-features {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cip-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--brand-dark);
    font-size: 0.9rem;
    font-weight: 600;
}

.cip-feature i {
    color: var(--brand-blue);
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.contact-form-panel {
    padding: 50px 40px;
    background: #ffffff;
    min-width: 0;
}

.professional-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.professional-form .form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.professional-form label {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--brand-dark);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.professional-form input,
.professional-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-family: var(--font-main);
    font-size: 0.9rem;
    color: var(--text-main);
    background: #f8fafc;
    transition: all 0.2s ease;
}

.professional-form textarea {
    resize: none;
    min-height: 120px;
    max-height: 120px;
}

.professional-form input:focus,
.professional-form textarea:focus {
    outline: none;
    border-color: var(--brand-blue);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.professional-form input.invalid,
.professional-form textarea.invalid {
    border-color: #ef4444;
    background: #fef2f2;
}

.error-msg {
    display: none;
    color: #ef4444;
    font-size: 0.7rem;
    font-weight: 700;
    margin-top: 4px;
}

.error-msg.show {
    display: block;
}

.btn-submit-brand {
    width: 100%;
    background-color: var(--brand-blue);
    color: #ffffff;
    padding: 14px 20px;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.25);
}

.btn-submit-brand:hover {
    background-color: var(--brand-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(10, 17, 40, 0.3);
}

.btn-submit-brand i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.btn-submit-brand:hover i {
    transform: scale(1.15) rotate(-10deg);
}

/* ==========================================================================
   INDUSTRIES MARQUEE BAR
   ========================================================================== */
.industries-bar-section {
    background-color: var(--brand-light);
    padding: 40px 0 45px;
    border-top: 1px solid rgba(10, 17, 40, 0.06);
    overflow: hidden;
}

.industries-bar-heading {
    text-align: center;
    margin-bottom: 26px;
}

.industries-bar-heading h2 {
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    font-weight: 800;
    color: var(--brand-dark);
    letter-spacing: -0.3px;
    margin: 0;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.industries-bar-heading h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--brand-blue);
    border-radius: 2px;
}

.industries-marquee-wrapper {
    position: relative;
    width: 100%;
    -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
    mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.industries-marquee {
    display: flex;
    align-items: center;
    width: max-content;
    gap: 14px;
    animation: scroll-industries 28s linear infinite;
}

.industries-marquee-wrapper:hover .industries-marquee {
    animation-play-state: paused;
}

@keyframes scroll-industries {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-50% - 7px));
    }
}

.industry-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    padding: 11px 22px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--brand-dark);
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(10, 17, 40, 0.04);
    transition: all 0.3s ease;
}

.industry-item i {
    color: var(--brand-blue);
    font-size: 1.05rem;
}

.industry-item:hover {
    border-color: var(--brand-blue);
    color: var(--brand-blue);
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 102, 255, 0.12);
}

/* ==========================================================================
   11. FOOTER
   ========================================================================== */
.site-footer {
    background-color: #0A1128;
    color: #ffffff;
    padding: 50px 0 20px;
    border-top: 4px solid var(--brand-blue);
    position: relative;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1.2fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.footer-grid>* {
    min-width: 0;
}

.footer-brand h2 {
    font-size: 1.6rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.footer-brand h2 span {
    color: var(--brand-blue);
}

.footer-brand p {
    color: #a0aec0;
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 20px;
    max-width: 320px;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.social-links a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--brand-blue);
    border-color: var(--brand-blue);
    transform: translateY(-3px);
}

.social-links a .fa-phone-alt {
    transform: scaleX(-1);
}

.footer-links h3,
.footer-contact h3,
.footer-map h3 {
    font-size: 0.9rem;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 18px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: #a0aec0;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
}

.footer-links a i {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.8rem;
    transition: all 0.2s ease;
}

.footer-links a:hover {
    color: #ffffff;
    transform: translateX(4px);
}

.footer-links a:hover i {
    color: var(--brand-blue);
}

.footer-contact ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #a0aec0;
    font-size: 0.85rem;
    line-height: 1.5;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.footer-contact li i {
    color: var(--brand-blue);
    font-size: 1rem;
    margin-top: 3px;
    width: 16px;
    text-align: center;
    flex-shrink: 0;
}

.map-wrapper {
    width: 100%;
    height: 140px;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid #ffffff;
    margin-bottom: 12px;
    background-color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
}

.address-text {
    color: #a0aec0;
    font-size: 0.75rem;
    line-height: 1.4;
    margin: 0;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 20px;
    text-align: center;
    color: #718096;
    font-size: 0.8rem;
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.developer-link {
    color: #a0aec0;
    font-weight: 600;
    transition: color 0.2s ease;
}

.developer-link:hover {
    color: var(--brand-blue);
}

/* ==========================================================================
   12. FLOATING BUTTONS
   ========================================================================== */
.floating-whatsapp {
    position: fixed;
    bottom: 95px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    z-index: 1000;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    transition: var(--transition);
    animation: pulse-whatsapp 2s infinite;
}

.floating-whatsapp:hover {
    background-color: #1ebe5d;
    transform: scale(1.1) translateY(-5px);
    color: var(--white);
}

@keyframes pulse-whatsapp {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--brand-blue);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: 0 10px 20px rgba(0, 102, 255, 0.3);
    z-index: 100;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--brand-dark);
    transform: translateY(-5px);
}

/* ==========================================================================
   13. ANIMATIONS & SCROLLBAR
   ========================================================================== */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .fade-up {
        opacity: 1;
        transform: none;
    }
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--brand-light);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--brand-blue);
    border-radius: 10px;
    border: 2px solid var(--brand-light);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--brand-dark);
}

* {
    scrollbar-width: thin;
    scrollbar-color: var(--brand-blue) var(--brand-light);
}

/* ==========================================================================
   14. RESPONSIVE
   ========================================================================== */
@media (min-width: 901px) and (max-height: 820px) {
    .hero {
        padding-top: calc(var(--header-h) + 16px);
        padding-bottom: 30px;
    }

    .hero h1 {
        font-size: clamp(2.2rem, 3.6vw, 3.1rem);
        margin-bottom: 16px;
    }

    .hero h1 .calligraphy-for {
        font-size: clamp(2.4rem, 3.6vw, 3.3rem);
    }

    .hero p {
        line-height: 1.65;
    }
}

@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .brands-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .hp-products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .brands-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 35px 30px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-brand p {
        max-width: 560px;
    }

    .hp-products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
    }

    .hp-subcategory {
        padding: 20px;
    }
}

@media (max-width: 900px) {
    :root {
        --header-h: 70px;
    }

    .menu-toggle {
        display: block;
        padding: 8px 12px 8px 10px;
        margin-right: 4px;
    }

    .main-nav {
        position: fixed;
        top: var(--header-h);
        left: 0;
        width: 100%;
        max-height: calc(100vh - var(--header-h));
        max-height: calc(100dvh - var(--header-h));
        overflow-y: auto;
        background: var(--white);
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
        border-top: 1px solid rgba(0, 0, 0, 0.05);
        transform: translateY(-12px);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
        z-index: 999;
        padding: 2px 0 6px;
    }

    .main-nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
        padding: 0 var(--gutter);
    }

    .main-nav ul li {
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    }

    .main-nav ul li:last-child {
        border-bottom: none;
    }

    .main-nav a {
        display: flex;
        align-items: center;
        padding: 10px 0;
        font-size: 0.95rem;
        line-height: 1.3;
    }

    .main-nav a::after {
        display: none;
    }

    .main-nav a i {
        width: 24px;
        margin-right: 12px;
        text-align: center;
        font-size: 1rem;
    }

    .contact-split-wrapper {
        grid-template-columns: 1fr;
        max-width: 640px;
    }

    .contact-info-panel {
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
        padding: 40px 30px;
    }

    .contact-form-panel {
        padding: 40px 30px;
    }
}

@media (max-width: 768px) {
    .header-logo {
        height: 44px;
    }

    .logo-text h1 {
        font-size: 1.15rem;
    }

    .logo-text p {
        font-size: 0.58rem;
        letter-spacing: 0.8px;
    }

    .header-gstin {
        display: none;
    }

    .section-header h2,
    .clients-header h2 {
        font-size: 1.75rem;
    }

    .subtitle,
    .clients-header p {
        font-size: 0.98rem;
    }

    .hero {
        min-height: auto;
        padding: calc(var(--header-h) + 44px) 0 52px;
    }

    .carousel-slide {
        background-position: center center;
    }

    .carousel-slide.active {
        transform: scale(1.02);
    }

    .hero-overlay {
        background: linear-gradient(180deg,
                rgba(255, 255, 255, 0.94) 0%,
                rgba(255, 255, 255, 0.88) 55%,
                rgba(255, 255, 255, 0.7) 100%);
    }

    .hero-wrapper {
        padding: 0 20px;
    }

    .hero-content {
        max-width: 560px;
    }

    .hero h1 {
        font-size: 2.2rem;
        letter-spacing: -1px;
        line-height: 1.12;
        margin-bottom: 16px;
    }

    .hero h1 .calligraphy-for {
        font-size: 2.4rem;
        margin: -2px 0 -4px 56px;
    }

    .hero p {
        font-size: 0.98rem;
        line-height: 1.7;
    }

    .section-header-with-logo {
        flex-direction: column;
        text-align: center;
        gap: 16px;
        padding-bottom: 24px;
        margin-bottom: 36px;
    }

    .header-section-logo {
        height: 100px;
    }

    .header-text {
        align-items: center;
        text-align: center;
    }

    .header-text h2 {
        font-size: 1.9rem;
    }

    .header-text .subtitle {
        text-align: center;
        font-size: 1rem;
    }

    .about-top-title {
        font-size: 0.9rem;
        letter-spacing: 2px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .about-subheading {
        font-size: 1.25rem;
        margin-bottom: 16px;
    }

    .about-text p {
        font-size: 1rem;
        line-height: 1.7;
        margin-bottom: 16px;
    }

    .mission-vision-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-top: 26px;
        flex-grow: 0;
    }

    .about-features {
        height: auto;
    }

    .core-values-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        flex-grow: 0;
    }

    .core-values-grid .feature-card {
        padding: 18px;
        height: auto;
    }

    .core-values-grid .feature-card:not(:last-child) .feature-icon {
        margin-bottom: 0;
    }

    .core-values-grid .feature-card:last-child {
        grid-column: auto;
        flex-direction: column;
        align-items: flex-start;
    }

    .feature-card:hover {
        transform: none;
    }

    #services {
        padding: 40px 0;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .service-card {
        min-height: 0;
    }

    .sc-icon-top {
        padding: 22px 20px 0;
    }

    .sc-body {
        padding: 14px 20px 24px;
    }

    .clients-section {
        padding: 60px 0;
    }

    .clients-header {
        margin-bottom: 30px;
    }

    .clients-marquee-wrapper {
        -webkit-mask-image: none;
        mask-image: none;
        padding: 0;
    }

    .clients-marquee {
        --cw: min(280px, 78vw);
        animation: none;
        transform: none;
        width: 100%;
        display: flex;
        gap: 16px;
        padding: 10px calc(50% - var(--cw) / 2) 24px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-padding: 0 calc(50% - var(--cw) / 2);
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .clients-marquee::-webkit-scrollbar {
        display: none;
    }

    .clients-marquee .client-card[aria-hidden="true"],
    .clients-marquee .client-card.clone,
    .clients-marquee .client-card.is-clone {
        display: none;
    }

    .client-card {
        flex: 0 0 var(--cw);
        width: var(--cw);
        height: 160px;
        padding: 24px;
        scroll-snap-align: center;
        scroll-snap-stop: always;
    }

    .client-card:hover {
        transform: none;
        box-shadow: none;
    }

    .client-card:hover .client-logo-img {
        transform: none;
    }

    .client-logo-box {
        height: 70px;
        margin-bottom: 15px;
    }

    .client-info strong {
        font-size: 0.9rem;
    }

    .client-info span {
        font-size: 0.7rem;
    }

    .products-section {
        padding: 50px 0;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 36px;
    }

    .product-img-wrapper {
        height: 200px;
    }

    .brands-block {
        margin-bottom: 36px;
    }

    .brands-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .brand-card {
        padding: 22px 12px 18px;
    }

    .brand-card:last-child {
        grid-column: 1 / -1;
    }

    .brand-logo {
        height: 48px;
        margin-bottom: 10px;
    }

    .brand-logo .brand-fallback {
        font-size: 1.2rem;
    }

    .brand-card h4 {
        font-size: 0.74rem;
        letter-spacing: 0;
        line-height: 1.25;
        margin-bottom: 0;
        min-height: 2.5em;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow-wrap: anywhere;
    }

    .brand-card span {
        display: none;
    }

    .contact-form-section {
        padding: 50px 0;
    }

    .contact-form-section .section-header {
        margin-bottom: 28px;
    }

    .contact-info-panel h2 {
        font-size: 1.9rem;
    }

    .cip-features {
        align-items: flex-start;
    }

    .contact-panel-logo {
        align-self: flex-start;
    }

    .professional-form input,
    .professional-form textarea {
        font-size: 16px;
    }

    .site-footer {
        padding: 44px 0 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px 24px;
        margin-bottom: 30px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-links {
        grid-column: 1;
    }

    .footer-contact {
        grid-column: 2;
    }

    .footer-map {
        grid-column: 1 / -1;
    }

    .map-wrapper {
        height: 200px;
    }

    .footer-bottom .container {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        gap: 6px;
    }

    .loader-logo {
        height: 120px;
    }

    .loader-text {
        font-size: 1.6rem;
        letter-spacing: 4px;
    }

    .floating-whatsapp {
        bottom: 84px;
        right: 18px;
        width: 52px;
        height: 52px;
        font-size: 1.7rem;
    }

    .back-to-top {
        bottom: 20px;
        right: 18px;
        width: 46px;
        height: 46px;
        font-size: 1.1rem;
    }

    .industries-bar-section {
        padding: 32px 0 36px;
    }

    .industries-bar-heading {
        margin-bottom: 20px;
    }

    .industries-marquee {
        animation-duration: 22s;
        gap: 10px;
    }

    .industry-item {
        padding: 9px 18px;
        font-size: 0.82rem;
        gap: 8px;
    }

    .industry-item i {
        font-size: 0.95rem;
    }

    ::-webkit-scrollbar {
        width: 0;
        height: 0;
    }

    * {
        scrollbar-width: none;
    }

    /* Static catalog responsive: see "CATALOG MOBILE FIXES" at the end of file */
}

@media (max-width: 600px) {
    .professional-form .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .contact-info-panel {
        padding: 32px 22px;
    }

    .contact-form-panel {
        padding: 32px 22px;
    }

    .contact-info-panel h2 {
        font-size: 1.7rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-brand,
    .footer-links,
    .footer-contact,
    .footer-map {
        grid-column: 1 / -1;
    }

    .footer-brand p {
        max-width: 100%;
    }

    .map-wrapper {
        height: 220px;
    }

    .client-card {
        height: 160px;
    }
}

@media (max-width: 480px) {
    .header-logo {
        height: 38px;
    }

    .logo-text h1 {
        font-size: 1.02rem;
    }

    .logo-text p {
        font-size: 0.52rem;
        letter-spacing: 0.5px;
    }

    .hero {
        padding: calc(var(--header-h) + 32px) 0 40px;
    }

    .hero-wrapper {
        padding: 0 16px;
    }

    .hero h1 {
        font-size: 1.9rem;
    }

    .hero h1 .calligraphy-for {
        font-size: 2.1rem;
        margin-left: 44px;
    }

    .hero p {
        font-size: 0.94rem;
        line-height: 1.65;
    }

    .section-header h2,
    .clients-header h2 {
        font-size: 1.6rem;
    }

    .header-text h2 {
        font-size: 1.7rem;
    }

    .header-section-logo {
        height: 85px;
    }

    .product-img-wrapper {
        height: 180px;
    }

    .brands-grid {
        gap: 10px;
    }

    .brand-card {
        padding: 18px 8px 14px;
    }

    .brand-card h4 {
        font-size: 0.7rem;
    }

    .contact-form-panel {
        padding: 28px 18px;
    }

    .contact-info-panel {
        padding: 28px 18px;
    }

    .floating-whatsapp {
        width: 48px;
        height: 48px;
        font-size: 1.55rem;
        bottom: 78px;
        right: 14px;
    }

    .back-to-top {
        width: 42px;
        height: 42px;
        font-size: 1rem;
        bottom: 18px;
        right: 14px;
    }
}

@media (max-width: 360px) {
    .hero h1 {
        font-size: 1.65rem;
    }

    .hero h1 .calligraphy-for {
        font-size: 1.9rem;
        margin-left: 34px;
    }

    .logo-text p {
        display: none;
    }

    .contact-info-panel h2 {
        font-size: 1.5rem;
    }
}

/* ==========================================================================
   HOMEPAGE PRODUCTS CATALOG — STATIC MARKUP
   ========================================================================== */

/* ---- Catalog shell ---- */
.hp-catalog {
    display: flex;
    flex-direction: column;
    gap: 28px;
    min-width: 0;
}

.hp-catalog-bar {
    position: sticky;
    top: var(--header-h);
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 0;
    background: rgba(248, 250, 252, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid #e2e8f0;
}

/* ---- Category nav (static anchor links) ---- */
.hp-cat-nav {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    overflow-x: auto;
    padding: 4px 2px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.hp-cat-nav::-webkit-scrollbar {
    display: none;
}

.hp-cat-nav a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border-radius: 50px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: var(--brand-dark);
    font-family: var(--font-main);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    flex-shrink: 0;
    text-decoration: none;
}

.hp-cat-nav a:hover {
    border-color: var(--brand-blue);
    color: var(--brand-blue);
}

.hp-cat-nav a.active {
    background: var(--brand-blue);
    border-color: var(--brand-blue);
    color: #fff;
}

/* ---- Cart button ---- */
.hp-cart-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 38px;
    padding: 0 16px;
    border: none;
    border-radius: 8px;
    background: var(--brand-blue);
    color: #fff;
    font-family: var(--font-main);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

.hp-cart-btn:hover {
    background: var(--brand-blue-dark);
}

.hp-cart-count {
    position: absolute;
    top: -7px;
    right: -7px;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    background: #ef4444;
    color: #fff;
    border: 2px solid #fff;
    border-radius: 10px;
    font-size: 0.62rem;
    font-weight: 800;
    line-height: 15px;
    text-align: center;
    box-sizing: border-box;
}

.hp-cart-count[hidden] {
    display: none;
}

/* ---- Catalog body ---- */
.hp-catalog-body {
    display: flex;
    flex-direction: column;
    gap: 40px;
    counter-reset: hp-cat-counter;
    min-width: 0;
}

/* ---- Category wrapper ---- */
.hp-category {
    counter-increment: hp-cat-counter;
    scroll-margin-top: calc(var(--header-h) + 80px);
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(10, 17, 40, 0.03);
    padding: 0;
    min-width: 0;
}

/* ---- Category title bar ---- */
.hp-cat-title {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: linear-gradient(135deg, #f8fafc 0%, #eef4ff 100%);
    border-bottom: 2px solid var(--brand-blue);
    position: relative;
    margin: 0;
    font-size: clamp(1.15rem, 1.8vw, 1.45rem);
    color: var(--brand-dark);
    font-weight: 800;
    letter-spacing: -0.3px;
    line-height: 1.2;
    min-width: 0;
    overflow-wrap: anywhere;
}

/* Numbered badge (auto via CSS counter) */
.hp-cat-title::before {
    content: counter(hp-cat-counter, decimal-leading-zero);
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: var(--brand-blue);
    color: #fff;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    box-shadow: 0 6px 16px rgba(0, 102, 255, 0.28);
}

/* ---- Subcategory wrapper ---- */
.hp-subcategory {
    padding: 24px;
    min-width: 0;
}

.hp-subcategory + .hp-subcategory {
    padding-top: 0;
}

/* ---- Subcategory title ---- */
.hp-subcat-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #475569;
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #e2e8f0;
}

.hp-subcat-title::before {
    content: '';
    display: block;
    width: 22px;
    height: 3px;
    border-radius: 2px;
    background: var(--brand-blue);
    flex-shrink: 0;
}

.hp-subcategory:not(:first-child) .hp-subcat-title {
    margin-top: 26px;
}

/* ---- Product grid ---- */
.hp-products-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 0;
}

.hp-products-grid > * {
    min-width: 0;
}

/* ---- Product card ---- */
.hp-product-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    min-width: 0;
    transition: border-color 0.2s ease;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.hp-product-card:hover {
    border-color: var(--brand-blue);
}

/* ---- Product image ---- */
.hp-product-img {
    position: relative;
    width: 100%;
    height: 180px;
    background: #f1f5f9;
    overflow: hidden;
}

.hp-product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---- Product info body ---- */
.hp-product-info {
    padding: 20px 20px 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.hp-product-info h4 {
    font-size: 0.95rem;
    color: var(--brand-dark);
    font-weight: 800;
    margin: 0 0 10px 0;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: -0.3px;
    overflow-wrap: anywhere;
}

.hp-product-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---- Add-to-quote button ---- */
.hp-add-btn {
    width: 100%;
    margin-top: auto;
    background: var(--brand-blue);
    color: #fff;
    border: none;
    padding: 9px;
    border-radius: 6px;
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: var(--transition);
}

.hp-add-btn:hover {
    background: var(--brand-blue-dark);
}

.hp-add-btn:active {
    transform: scale(0.97);
}

/* ---- Empty / loading states ---- */
.hp-empty-catalog {
    text-align: center;
    color: var(--text-muted);
    padding: 40px 10px;
}

.hp-loading {
    text-align: center;
    color: var(--text-muted);
    padding: 30px 0;
}

/* ==========================================================================
   CART DRAWER & PRODUCT DETAIL MODAL
   ========================================================================== */
.hp-overlay {
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: rgba(10, 17, 40, .5);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.hp-overlay.active {
    opacity: 1;
    visibility: visible;
}

.hp-cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 9999;
    width: 100%;
    max-width: 400px;
    height: 100%;
    height: 100dvh;
    background: #fff;
    display: flex;
    flex-direction: column;
    transform: translateX(105%);
    visibility: hidden;
    transition: transform .4s cubic-bezier(.25, .8, .25, 1), visibility .4s, box-shadow .4s;
    overscroll-behavior: contain;
}

.hp-cart-drawer.open {
    transform: translateX(0);
    visibility: visible;
    box-shadow: -10px 0 30px rgba(0, 0, 0, .12);
}

.hp-cart-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: var(--brand-dark);
    color: #fff;
    flex-shrink: 0;
}

.hp-cart-head h3 {
    margin: 0;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hp-cart-head button {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.15rem;
    cursor: pointer;
}

.hp-cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    background: #f8fafc;
}

.hp-empty {
    text-align: center;
    color: var(--text-muted);
    margin-top: 40px;
}

.hp-cart-item {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
}

.hp-cart-item-top {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.hp-cart-item-top strong {
    font-size: 0.86rem;
    color: var(--brand-dark);
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.hp-cart-item-top button {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 4px;
    background: #fee2e2;
    color: #ef4444;
    cursor: pointer;
    transition: var(--transition);
}

.hp-cart-item-top button:hover {
    background: #ef4444;
    color: #fff;
}

.hp-qty-controls {
    display: inline-flex;
    align-items: center;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
    background: #fafbfc;
}

.hp-qty-controls button {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    font-size: 1rem;
    font-weight: 700;
    color: var(--brand-dark);
    cursor: pointer;
}

.hp-qty-controls button:hover {
    background: #eef0f3;
}

.hp-qty-controls input {
    width: 48px;
    height: 32px;
    border: none;
    border-left: 1px solid #e2e8f0;
    border-right: 1px solid #e2e8f0;
    text-align: center;
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 0.9rem;
    -moz-appearance: textfield;
    appearance: textfield;
}

.hp-qty-controls input::-webkit-outer-spin-button,
.hp-qty-controls input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.hp-cart-foot {
    padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px));
    background: #fafbfc;
    border-top: 1px solid #eee;
    flex-shrink: 0;
}

.hp-cart-note {
    font-size: 0.72rem;
    color: var(--text-muted);
    display: flex;
    gap: 6px;
    align-items: flex-start;
    margin-bottom: 10px;
    line-height: 1.45;
}

.hp-cart-note i {
    color: var(--brand-blue);
    margin-top: 2px;
}

.hp-enquiry-btn {
    width: 100%;
    padding: 13px;
    border: none;
    border-radius: 8px;
    background: #25D366;
    color: #fff;
    font-family: var(--font-main);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
}

.hp-enquiry-btn:hover {
    background: #1ebe5d;
    transform: translateY(-1px);
}

/* ---- Product detail modal ---- */
.hp-pd-overlay {
    position: fixed;
    inset: 0;
    z-index: 10005;
    padding: 20px;
    background: rgba(10, 17, 40, .6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s, visibility .25s;
}

.hp-pd-overlay.active {
    opacity: 1;
    visibility: visible;
}

.hp-pd-modal {
    background: #fff;
    border-radius: 14px;
    width: 100%;
    max-width: 760px;
    max-height: 90vh;
    max-height: 90dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    transform: translateY(24px) scale(.97);
    transition: transform .3s cubic-bezier(.25, .8, .25, 1);
}

.hp-pd-overlay.active .hp-pd-modal {
    transform: none;
}

.hp-pd-close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, .95);
    color: var(--brand-dark);
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .12);
    transition: var(--transition);
}

.hp-pd-close:hover {
    background: #ef4444;
    color: #fff;
    transform: rotate(90deg);
}

.hp-pd-body {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 24px;
    padding: 26px;
    overflow-y: auto;
    min-height: 0;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.hp-pd-imgwrap {
    aspect-ratio: 1/1;
    background: #f8f9fa;
    border: 1px solid #eef0f3;
    border-radius: 12px;
    overflow: hidden;
    align-self: start;
}

.hp-pd-imgwrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hp-pd-info {
    min-width: 0;
}

.hp-pd-crumb {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--brand-blue);
    text-transform: uppercase;
    letter-spacing: .8px;
    margin-bottom: 6px;
}

.hp-pd-info h2 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--brand-dark);
    line-height: 1.3;
    margin-bottom: 12px;
    overflow-wrap: anywhere;
}

.hp-pd-desc {
    font-size: 0.92rem;
    line-height: 1.65;
    color: #4a5568;
    margin-bottom: 18px;
}

.hp-pd-qty {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.hp-pd-qty>span {
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: var(--brand-dark);
}

.hp-pd-actions {
    display: flex;
    gap: 10px;
    padding: 14px 20px;
    border-top: 1px solid #eef0f3;
    background: #fafbfc;
    flex-shrink: 0;
}

.hp-pd-secondary,
.hp-pd-primary {
    flex: 1;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    font-family: var(--font-main);
    font-size: 0.92rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
}

.hp-pd-secondary {
    background: #fff;
    border: 2px solid #e2e8f0;
    color: var(--brand-dark);
}

.hp-pd-secondary:hover {
    border-color: var(--brand-dark);
}

.hp-pd-primary {
    background: var(--brand-blue);
    border: 2px solid transparent;
    color: #fff;
}

.hp-pd-primary:hover {
    background: var(--brand-blue-dark);
}

/* ---- Toast ---- */
.hp-toast {
    position: fixed;
    left: 50%;
    bottom: 30px;
    z-index: 10020;
    transform: translate(-50%, 20px);
    opacity: 0;
    visibility: hidden;
    background: var(--brand-dark);
    color: #fff;
    padding: 12px 22px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform .3s ease, opacity .3s ease, visibility .3s;
    max-width: calc(100vw - 32px);
    text-align: center;
}

.hp-toast.show {
    transform: translate(-50%, 0);
    opacity: 1;
    visibility: visible;
}

.hp-toast i {
    color: #4ade80;
}

body.hp-noscroll {
    overflow: hidden;
}

/* ---- Cart drawer customer form ---- */
.hp-cart-scroll {
    flex: 1;
    overflow-y: auto;
    background: #f8fafc;
    -webkit-overflow-scrolling: touch;
    min-height: 0;
    overscroll-behavior: contain;
}

.hp-cart-items:empty {
    display: none;
}

.hp-customer-form {
    padding: 16px 16px 20px;
    background: #ffffff;
    border-top: 1px solid #eef0f3;
}

.hp-customer-form h4 {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--brand-dark);
    margin: 0 0 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hp-customer-form h4 i {
    color: var(--brand-blue);
}

.hp-form-note {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin: 0 0 14px;
    line-height: 1.45;
}

.hp-form-row {
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
}

.hp-form-row label {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--brand-dark);
    margin-bottom: 4px;
}

.hp-optional {
    font-weight: 500;
    text-transform: none;
    color: var(--text-muted);
    letter-spacing: 0;
}

.hp-form-row input {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-family: var(--font-main);
    font-size: 0.85rem;
    color: var(--text-main);
    background: #f8fafc;
    transition: all 0.2s ease;
}

.hp-form-row input:focus {
    outline: none;
    border-color: var(--brand-blue);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.hp-form-row input.invalid {
    border-color: #ef4444;
    background: #fef2f2;
}

.hp-field-err {
    display: none;
    font-size: 0.68rem;
    font-weight: 700;
    color: #ef4444;
    margin-top: 3px;
}

.hp-field-err.show {
    display: block;
}

/* ---- Product detail remarks ---- */
.hp-pd-remarks {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
}

.hp-pd-remarks label {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--brand-dark);
    margin-bottom: 5px;
}

.hp-pd-remarks textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-family: var(--font-main);
    font-size: 0.85rem;
    color: var(--text-main);
    background: #f8fafc;
    resize: none;
    min-height: 56px;
    max-height: 90px;
    transition: all 0.2s ease;
}

.hp-pd-remarks textarea:focus {
    outline: none;
    border-color: var(--brand-blue);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

/* ---- Cart item remarks line ---- */
.hp-cart-item-remarks {
    font-size: 0.72rem;
    color: #475569;
    margin-top: 6px;
    font-style: italic;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

/* ---- Responsive: cart & modal ---- */
@media (max-width: 992px) {
    .hp-pd-body {
        grid-template-columns: 1fr 1fr;
        gap: 18px;
        padding: 20px;
    }

    .hp-pd-info h2 {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .hp-toast {
        bottom: 90px;
        font-size: 0.8rem;
        padding: 10px 16px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .hp-cart-drawer,
    .hp-overlay,
    .hp-pd-modal,
    .hp-pd-overlay,
    .hp-toast {
        transition-duration: .01ms !important;
    }
}



/* =========================================================
   PRODUCTS MARQUEE — IMAGE ONLY
   Matches your actual HTML structure
   ========================================================= */

.products-marquee-section {
    width: 100%;
    padding: 24px 0;
    overflow: hidden;
    background: #fff;
}

.products-marquee-section .pm-header {
    display: none !important;
}

.pm-marquee-wrapper {
    width: 100%;
    overflow: hidden;
}

.pm-marquee {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 20px;
    width: max-content;
    animation: pm-scroll 45s linear infinite;
    will-change: transform;
}

.pm-card {
    flex: 0 0 190px;
    width: 190px;
    height: 145px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 12px;
    background: #fff;
    border: 1px solid #e8edf4;
    border-radius: 15px;
}

/* Hide product names */
.products-marquee-section .pm-card-name {
    display: none !important;
}

/* Display only the product image */
.products-marquee-section .pm-card > img {
    display: block;
    width: 100%;
    height: 100%;
    min-width: 0;
    max-width: 100%;
    max-height: 100%;
    flex: 1 1 auto;
    object-fit: contain;
    object-position: center;
}

/* Seamless scrolling when the items are duplicated */
@keyframes pm-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* Pause when the pointer is over the marquee */
.pm-marquee-wrapper:hover .pm-marquee {
    animation-play-state: paused;
}

/* Tablet */
@media (max-width: 1024px) {
    .pm-card {
        flex-basis: 155px;
        width: 155px;
        height: 125px;
    }

    .pm-marquee {
        gap: 16px;
        animation-duration: 38s;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .products-marquee-section {
        padding: 16px 0;
    }

    .pm-card {
        flex-basis: 120px;
        width: 120px;
        height: 105px;
        padding: 8px;
        border-radius: 12px;
    }

    .pm-marquee {
        gap: 12px;
        animation-duration: 32s;
    }
}

/* Small mobile */
@media (max-width: 380px) {
    .pm-card {
        flex-basis: 100px;
        width: 100px;
        height: 90px;
    }
}

/* Respect reduced-motion settings */
@media (prefers-reduced-motion: reduce) {
    .pm-marquee {
        animation: none;
    }
}




/* ==========================================================================
   MOBILE NAVBAR REFINEMENT  (overrides earlier rules)
   ========================================================================== */
@media (max-width: 900px) {
    .header-gstin {
        display: none;
    }

    .header-inner {
        gap: 10px;
    }

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        margin: 0 8px 0 auto;
        padding: 0;
        font-size: 1.25rem;
        border: 1px solid rgba(10, 17, 40, 0.12);
        border-radius: 10px;
        background: #ffffff;
        box-shadow: 0 2px 6px rgba(10, 17, 40, 0.06);
        transition: var(--transition);
    }

    .menu-toggle:hover,
    .menu-toggle:active {
        color: var(--brand-blue);
        border-color: var(--brand-blue);
    }

    .main-nav {
        top: calc(var(--header-h) + 8px);
        left: 12px;
        right: 12px;
        width: auto;
        border: 1px solid rgba(10, 17, 40, 0.08);
        border-radius: 14px;
        box-shadow: 0 18px 40px rgba(10, 17, 40, 0.18);
        padding: 6px 0;
    }

    .main-nav ul {
        padding: 0 6px;
    }

    .main-nav ul li {
        border-bottom: none;
    }

    .main-nav a {
        padding: 13px 14px;
        border-radius: 10px;
        font-size: 0.98rem;
    }

    .main-nav a:hover,
    .main-nav a.active {
        background: rgba(0, 102, 255, 0.08);
    }

    .main-nav a i {
        width: 28px;
        margin-right: 10px;
        color: var(--brand-blue);
    }
}

@media (max-width: 480px) {
    .menu-toggle {
        width: 40px;
        height: 40px;
        margin-right: 6px;
    }
}


/* ==========================================================================
   9. PRODUCTS — RESPONSIVE FIXES
   ========================================================================== */

/* Tablets and smaller laptops */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 18px;
        margin-bottom: 40px;
    }

    .brands-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 16px;
    }

    .product-img-wrapper {
        height: 170px;
    }

    .product-body {
        padding: 16px;
    }

    .product-footer {
        padding: 12px 16px;
    }

    .brand-card {
        padding: 22px 14px 18px;
    }
}

/* Tablets and large phones */
@media (max-width: 768px) {
    .products-section {
        padding: 40px 0;
        overflow: hidden;
    }

    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
        margin-bottom: 32px;
    }

    .product-card {
        width: 100%;
        min-width: 0;
        border-radius: 8px;
    }

    .product-img-wrapper {
        height: clamp(115px, 25vw, 165px);
    }

    .product-img-wrapper img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .product-body {
        padding: 14px 12px;
        overflow-wrap: anywhere;
    }

    .product-body h3 {
        font-size: clamp(0.82rem, 2.4vw, 1rem);
        line-height: 1.35;
        letter-spacing: 0;
        margin-bottom: 8px;
    }

    .product-body p {
        font-size: 0.8rem;
        line-height: 1.5;
    }

    .product-subtypes {
        margin-top: 12px;
        padding-top: 12px;
        gap: 8px;
    }

    .product-subtypes li {
        font-size: 0.72rem;
        line-height: 1.4;
        align-items: flex-start;
        overflow-wrap: anywhere;
    }

    .product-subtypes li::before {
        margin-top: 5px;
    }

    .product-footer {
        padding: 11px 12px;
        font-size: 0.68rem;
        line-height: 1.5;
        gap: 5px;
    }

    .brands-block {
        margin: 8px 0 32px;
    }

    .brands-heading {
        margin-bottom: 22px;
        padding: 0 12px;
    }

    .brands-heading h3 {
        font-size: clamp(1.25rem, 4vw, 1.6rem);
        line-height: 1.3;
        padding-bottom: 10px;
    }

    .brands-heading p {
        font-size: 0.88rem;
        line-height: 1.6;
        margin-top: 10px;
    }

    .brands-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
    }

    .brand-card {
        padding: 18px 10px 16px;
        border-radius: 8px;
    }

    .brand-logo {
        height: 55px;
        margin-bottom: 12px;
    }

    .brand-logo img {
        display: block;
        max-width: 100%;
        max-height: 100%;
        width: auto;
        height: auto;
        object-fit: contain;
    }

    .brand-logo .brand-fallback {
        font-size: 1.15rem;
        overflow-wrap: anywhere;
    }

    .brand-card h4 {
        font-size: 0.82rem;
        line-height: 1.35;
        letter-spacing: 0.1px;
        overflow-wrap: anywhere;
    }

    .brand-card span {
        font-size: 0.62rem;
        line-height: 1.5;
        letter-spacing: 0.6px;
        overflow-wrap: anywhere;
    }
}

/* Small mobile phones */
@media (max-width: 480px) {
    .products-section {
        padding: 30px 0;
    }

    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        margin-bottom: 26px;
    }

    .product-img-wrapper {
        height: 115px;
    }

    .product-body {
        padding: 11px 10px;
    }

    .product-body h3 {
        font-size: 0.8rem;
    }

    .product-body p {
        font-size: 0.74rem;
        line-height: 1.45;
    }

    .product-subtypes {
        gap: 7px;
    }

    .product-subtypes li {
        font-size: 0.68rem;
    }

    .product-footer {
        padding: 10px;
        font-size: 0.64rem;
    }

    .brands-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .brand-card {
        padding: 16px 10px 14px;
    }

    .brand-logo {
        height: 48px;
        margin-bottom: 10px;
    }

    .brand-card h4 {
        font-size: 0.78rem;
    }

    .brand-card span {
        font-size: 0.6rem;
    }
}

/* Extra-small phones */
@media (max-width: 360px) {
    .products-grid {
        gap: 8px;
    }

    .product-img-wrapper {
        height: 100px;
    }

    .product-body {
        padding: 9px 8px;
    }

    .product-body h3 {
        font-size: 0.75rem;
    }

    .product-body p {
        font-size: 0.7rem;
    }

    .product-subtypes li {
        font-size: 0.65rem;
    }

    .product-footer {
        padding: 9px 8px;
        font-size: 0.6rem;
    }

    .brands-grid {
        gap: 8px;
    }

    .brand-card {
        padding: 14px 8px 12px;
    }

    .brand-logo {
        height: 42px;
    }
}

/* Prevent grid children from forcing horizontal overflow */
.products-grid > *,
.brands-grid > * {
    min-width: 0;
    box-sizing: border-box;
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
    .product-card,
    .brand-card,
    .brand-card::after {
        transition: none;
    }
}


/* ==========================================================================
   CATALOG MOBILE FIXES  (homepage products catalogue + cart + detail modal)
   Keep at the very end so these rules win over earlier ones.
   ========================================================================== */

/* ---- Tablet: 2 columns up to 900px ---- */
@media (max-width: 900px) {
    .hp-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }
}

/* ---- Phones & small tablets ---- */
@media (max-width: 768px) {

    .hp-catalog {
        gap: 18px;
    }

    /* Sticky category bar: full-bleed, snap-scrolling chips */
    .hp-catalog-bar {
        top: var(--header-h);
        margin: 0 calc(var(--gutter) * -1);
        padding: 8px var(--gutter);
        gap: 10px;
    }

    .hp-cat-nav {
        gap: 8px;
        padding: 4px 0;
        scroll-snap-type: x proximity;
        scroll-padding: 0 var(--gutter);
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
    }

    .hp-cat-nav a {
        font-size: 0.76rem;
        padding: 8px 13px;
        scroll-snap-align: start;
    }

    .hp-cart-btn {
        height: 38px;
        min-width: 40px;
        padding: 0 12px;
        font-size: 0.76rem;
        justify-content: center;
    }

    .hp-cart-btn .hp-cart-label {
        display: none;
    }

    .hp-cart-btn i {
        font-size: 1rem;
    }

    /* Category blocks */
    .hp-catalog-body {
        gap: 22px;
    }

    .hp-category {
        border-radius: 12px;
        scroll-margin-top: calc(var(--header-h) + 64px);
    }

    .hp-cat-title {
        padding: 12px 14px;
        gap: 12px;
        font-size: 1rem;
        line-height: 1.25;
    }

    .hp-cat-title::before {
        width: 38px;
        height: 38px;
        font-size: 0.88rem;
        border-radius: 8px;
        box-shadow: 0 4px 10px rgba(0, 102, 255, 0.25);
    }

    .hp-subcategory {
        padding: 14px 12px;
    }

    .hp-subcategory + .hp-subcategory {
        padding-top: 0;
    }

    .hp-subcat-title {
        font-size: 0.7rem;
        letter-spacing: 1px;
        margin-bottom: 10px;
        padding-bottom: 8px;
    }

    .hp-subcategory:not(:first-child) .hp-subcat-title {
        margin-top: 18px;
    }

    /* Product grid: 2 compact columns instead of one huge column */
    .hp-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .hp-product-card {
        border-radius: 8px;
    }

    .hp-product-img {
        height: auto;
        aspect-ratio: 4 / 3;
    }

    .hp-product-img img {
        object-fit: contain;
        padding: 6px;
    }

    .hp-product-info {
        padding: 10px 10px 12px;
    }

    .hp-product-info h4 {
        font-size: 0.78rem;
        line-height: 1.3;
        letter-spacing: 0;
        margin-bottom: 6px;
    }

    .hp-product-info p {
        font-size: 0.74rem;
        line-height: 1.45;
        margin-bottom: 8px;
    }

    .hp-add-btn {
        min-height: 38px;
        padding: 8px 6px;
        font-size: 0.72rem;
        gap: 5px;
        line-height: 1.2;
    }

    /* Cart drawer -> bottom sheet */
    .hp-cart-drawer {
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        height: auto;
        max-height: 88dvh;
        min-height: 260px;
        border-radius: 18px 18px 0 0;
        transform: translateY(105%);
    }

    .hp-cart-drawer.open {
        transform: translateY(0);
        box-shadow: 0 -10px 30px rgba(0, 0, 0, .18);
    }

    .hp-cart-head {
        border-radius: 18px 18px 0 0;
        padding: 14px 16px;
    }

    .hp-cart-head button {
        width: 40px;
        height: 40px;
        margin: -8px -8px -8px 0;
        font-size: 1.2rem;
    }

    /* Single scroll area inside the sheet (no nested scrolling) */
    .hp-cart-scroll {
        flex: 1 1 auto;
        min-height: 0;
    }

    .hp-cart-items {
        flex: none;
        overflow: visible;
        max-height: none;
        padding: 12px;
    }

    .hp-cart-item {
        padding: 10px;
    }

    .hp-cart-item-top button {
        width: 34px;
        height: 34px;
    }

    .hp-qty-controls button {
        width: 38px;
        height: 36px;
        font-size: 1.1rem;
    }

    .hp-qty-controls input {
        width: 52px;
        height: 36px;
        font-size: 16px;
    }

    .hp-customer-form {
        padding: 14px 12px 18px;
    }

    .hp-form-row input {
        font-size: 16px;
        padding: 11px 12px;
    }

    .hp-cart-foot {
        padding: 12px 12px calc(12px + env(safe-area-inset-bottom, 0px));
    }

    .hp-enquiry-btn {
        min-height: 46px;
    }

    /* Product detail modal -> bottom sheet */
    .hp-pd-overlay {
        padding: 0;
        align-items: flex-end;
    }

    .hp-pd-modal {
        max-width: 100%;
        max-height: 90dvh;
        border-radius: 16px 16px 0 0;
        transform: translateY(40px);
    }

    .hp-pd-overlay.active .hp-pd-modal {
        transform: translateY(0);
    }

    /* Close button stays visible on mobile */
    .hp-pd-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        top: 10px;
        right: 10px;
        width: 38px;
        height: 38px;
    }

    .hp-pd-close:hover {
        transform: none;
    }

    .hp-pd-body {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
        padding: 14px 16px 16px;
    }

    .hp-pd-imgwrap {
        aspect-ratio: 16 / 10;
        max-height: 200px;
        width: 100%;
    }

    .hp-pd-imgwrap img {
        object-fit: contain;
    }

    .hp-pd-info h2 {
        font-size: 1.1rem;
        margin-bottom: 8px;
    }

    .hp-pd-desc {
        font-size: 0.86rem;
        line-height: 1.6;
        margin-bottom: 14px;
    }

    .hp-pd-remarks textarea {
        font-size: 16px;
    }

    .hp-pd-actions {
        padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
        gap: 8px;
    }

    .hp-pd-secondary,
    .hp-pd-primary {
        min-height: 46px;
        padding: 10px;
        font-size: 0.86rem;
    }
}

/* ---- Small phones ---- */
@media (max-width: 480px) {
    .hp-catalog-bar {
        margin: 0 -16px;
        padding: 8px 16px;
    }

    .hp-cat-nav {
        scroll-padding: 0 16px;
    }

    .hp-subcategory {
        padding: 12px 10px;
    }

    .hp-subcategory + .hp-subcategory {
        padding-top: 0;
    }

    .hp-products-grid {
        gap: 8px;
    }

    .hp-product-info {
        padding: 9px 9px 11px;
    }

    .hp-product-info h4 {
        font-size: 0.74rem;
    }

    .hp-product-info p {
        font-size: 0.7rem;
    }

    .hp-add-btn {
        font-size: 0.68rem;
    }

    .hp-cat-title {
        font-size: 0.95rem;
        padding: 11px 12px;
        gap: 10px;
    }

    .hp-cat-title::before {
        width: 34px;
        height: 34px;
        font-size: 0.8rem;
    }

    .hp-pd-imgwrap {
        aspect-ratio: 16 / 9;
        max-height: 170px;
    }
}

/* ---- Very narrow phones: single column so cards never get cramped ---- */
@media (max-width: 340px) {
    .hp-products-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .hp-product-img {
        aspect-ratio: 16 / 10;
    }
}

/* ---- Touch devices: no sticky hover states / jumpy transforms ---- */
@media (hover: none) {
    .hp-product-card:hover {
        border-color: #e2e8f0;
    }

    .hp-cat-nav a:hover {
        border-color: #e2e8f0;
        color: var(--brand-dark);
    }

    .hp-cat-nav a.active:hover {
        border-color: var(--brand-blue);
        color: #fff;
    }

    .hp-enquiry-btn:hover {
        transform: none;
    }
}