@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --chemoil-navy: #031B33;
    --chemoil-blue: #0A355C;
    --chemoil-accent: #031B33;
    --chemoil-gold: #031B33;
    --chemoil-light: #F8F9FA;
    --chemoil-dark: #0A192F;
    --chemoil-text-dark: #333333;
    --chemoil-text-muted: #6C757D;
    --chemoil-border: #E5E9F0;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base styles for Homepage Template */
.chemoil-homepage-wrapper {
    font-family: var(--font-body);
    color: var(--chemoil-text-dark);
    background-color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

.chemoil-homepage-wrapper h1, 
.chemoil-homepage-wrapper h2, 
.chemoil-homepage-wrapper h3, 
.chemoil-homepage-wrapper h4, 
.chemoil-homepage-wrapper h5, 
.chemoil-homepage-wrapper h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--chemoil-navy);
}

/* Hero Section */
/* Ensure header stays above hero */
#masthead, .masthead, header.main-header, .site-header, #header {
    position: relative;
    z-index: 9999 !important;
}

.chemoil-hero {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    padding: 80px 0;
    color: #ffffff;
    z-index: 1; /* Fix overlap with mega menu */
}
.chemoil-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(3,27,51,0.95) 0%, rgba(10,53,92,0.85) 100%);
    z-index: 1;
}
.chemoil-hero .container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    align-items: center;
}
.hero-subtitle {
    color: var(--chemoil-gold);
    text-transform: uppercase;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 2px;
    margin-bottom: 15px;
    display: block;
}
.chemoil-hero h1 {
    font-size: 46px;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #ffffff;
}
.hero-desc {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 30px;
    max-width: 600px;
}
.hero-badges {
    display: flex;
    gap: 20px;
    margin-bottom: 35px;
    flex-wrap: wrap;
}
.hero-badge-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.08);
    padding: 10px 15px;
    border-radius: 6px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.1);
}
.hero-badge-item svg {
    width: 24px;
    height: 24px;
    fill: var(--chemoil-gold);
}
.hero-badge-text {
    font-size: 13px;
    font-weight: 500;
}
.hero-buttons {
    display: flex;
    gap: 15px;
}
.btn-hero-explore {
    background-color: var(--chemoil-accent) !important;
    color: #ffffff !important;
    border: none !important;
    padding: 14px 28px;
    font-weight: 600;
    border-radius: 4px;
    text-decoration: none;
    transition: var(--transition);
}
.btn-hero-explore:hover {
    background-color: #ffffff !important;
    color: #031B33 !important;
    transform: translateY(-2px);
}
.btn-hero-quote {
    border: 2px solid #ffffff !important;
    color: #ffffff !important;
    background-color: transparent !important;
    padding: 12px 26px;
    font-weight: 600;
    border-radius: 4px;
    text-decoration: none;
    transition: var(--transition);
}
.btn-hero-quote:hover {
    background-color: #ffffff !important;
    color: var(--chemoil-navy) !important;
    transform: translateY(-2px);
}

/* Hero Form Card */
.hero-form-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 30px;
}
.hero-form-card h3 {
    color: #ffffff;
    font-size: 24px;
    margin-top: 0;
    margin-bottom: 20px;
}
.hero-form-group {
    margin-bottom: 15px;
}
.hero-form-group input {
    width: 100%;
    padding: 12px 15px;
    background: #ffffff !important;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 6px;
    color: #333333 !important;
    font-family: var(--font-body);
    font-size: 14px;
    box-sizing: border-box;
}
.hero-form-group select {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 6px;
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 14px;
    box-sizing: border-box;
}
.hero-form-group input::-webkit-input-placeholder {
    color: #777777 !important;
}
.hero-form-group input::-moz-placeholder {
    color: #777777 !important;
    opacity: 1 !important;
}
.hero-form-group input:-ms-input-placeholder {
    color: #777777 !important;
}
.hero-form-group input::placeholder {
    color: #777777 !important;
    opacity: 1 !important;
}
.hero-form-group select {
    color: rgba(255,255,255,0.8);
}
.hero-form-group select option {
    background-color: var(--chemoil-navy);
    color: #ffffff;
}
.hero-form-group select:focus,
.hero-form-group select:valid {
    color: #ffffff;
}
.btn-submit-hero {
    width: 100% !important;
    background-color: var(--chemoil-accent) !important;
    color: #ffffff !important;
    border: none !important;
    padding: 14px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}
.btn-submit-hero:hover {
    background-color: #0b5ed7 !important;
    color: #ffffff !important;
}

/* Stats Strip */
.chemoil-stats-strip {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 80px 0;
    border-bottom: none;
    position: relative;
}
.chemoil-stats-strip .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 25px !important;
}
.stat-box {
    background: #ffffff;
    border-radius: 10px;
    padding: 40px 20px 45px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #f0f4f8;
}
.stat-box:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.18);
}
.stat-box::before {
    content: '';
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    /* removed */
    background-size: 5px 5px;
    opacity: 0.65;
}
.stat-box .stat-icon {
    width: 60px;
    height: 60px;
    background-color: #031B33;
    border: 5px solid #E6F0FA;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(13,110,253,0.15);
}
.stat-box .stat-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}
.stat-box .stat-number {
    font-size: 30px;
    font-weight: 800;
    color: var(--chemoil-navy);
    line-height: 1.1;
}
.stat-box .stat-divider {
    width: 25px;
    height: 3px;
    background-color: #031B33;
    margin: 14px 0 12px 0;
    border-radius: 2px;
}
.stat-box .stat-label {
    font-size: 13.5px;
    color: var(--chemoil-text-muted);
    font-weight: 500;
    line-height: 1.4;
}
.stat-box .arrow-tab {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 38px;
    height: 38px;
    background-color: #031B33;
    clip-path: polygon(100% 0, 0 100%, 100% 100%);
    z-index: 1;
    transition: background-color 0.3s ease;
}
.stat-box:hover .arrow-tab {
    background-color: var(--chemoil-navy);
}
.stat-box .arrow-tab-icon {
    position: absolute;
    bottom: 5px;
    right: 7px;
    color: #ffffff;
    font-size: 9px;
    font-weight: bold;
    z-index: 2;
}

/* Products Section */
.chemoil-section {
    padding: 80px 0;
}
.chemoil-section-bg {
    background-color: var(--chemoil-light);
}
.chemoil-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 45px;
}
.section-tag {
    color: var(--chemoil-accent);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 10px;
}
.section-title h2 {
    font-size: 36px;
    margin: 0;
}
.view-all-link {
    color: var(--chemoil-accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}
.view-all-link:hover {
    color: var(--chemoil-navy);
}

/* Product Cards Grid */
.chemoil-homepage-wrapper .products-grid {
    display: grid !important;
    grid-template-columns: repeat(6, 1fr) !important;
    gap: 20px !important;
}
@media (max-width: 992px) {
    .chemoil-homepage-wrapper .products-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}
.product-card {
    background: #ffffff;
    border: 1px solid #eef2f6;
    border-radius: 12px;
    padding: 22px 20px;
    text-align: left;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 15px rgba(0,0,0,0.01);
}
.product-card:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 12px 30px rgba(10, 53, 92, 0.08) !important;
    border-color: var(--chemoil-accent) !important;
}
.product-image-container {
    height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
}
.product-image-container img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}
.product-card:hover .product-image-container img {
    transform: scale(1.05);
}
.product-title {
    font-size: 16px;
    font-weight: 700;
    margin: 8px 0;
    color: var(--chemoil-navy);
}
.product-explore-btn {
    font-size: 13px;
    font-weight: 600;
    color: var(--chemoil-accent);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    margin-top: 8px;
    transition: var(--transition);
}
.product-explore-btn:hover {
    gap: 10px;
}

/* Industries Grid */
.chemoil-homepage-wrapper .industries-grid {
    display: grid !important;
    grid-template-columns: repeat(6, 1fr) !important;
    gap: 16px !important;
}
.industry-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    width: 186px !important;
    height: 180px !important;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    color: #ffffff;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.industry-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(3,27,51,0.8) 0%, rgba(3,27,51,0.1) 100%);
    transition: var(--transition);
    z-index: 1;
}
.industry-card:hover::before {
    background: linear-gradient(to top, rgba(13, 110, 253, 0.75) 0%, rgba(3,27,51,0.2) 100%);
}
.industry-card-content {
    position: absolute;
    bottom: 15px;
    left: 15px;
    z-index: 2;
    background: rgba(3, 27, 51, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 8px;
    padding: 8px 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    max-width: calc(100% - 30px);
    box-sizing: border-box;
}
.industry-card:hover .industry-card-content {
    background: var(--chemoil-accent);
    border-color: var(--chemoil-accent);
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
}
.industry-icon {
    width: 18px;
    height: 18px;
    color: #ffffff;
    fill: none;
    flex-shrink: 0;
    transition: var(--transition);
}
.industry-title {
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    white-space: normal;
    letter-spacing: 0.2px;
    word-break: keep-all;
}

/* Why Choose Section */
.chemoil-homepage-wrapper .why-choose-grid {
    display: grid !important;
    grid-template-columns: repeat(6, 1fr) !important;
    gap: 16px !important;
}
.why-choose-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    background: #ffffff;
    padding: 20px 15px;
    border-radius: 12px;
    border: 1px solid var(--chemoil-border);
    transition: var(--transition);
}
.why-choose-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-color: rgba(10, 53, 92, 0.2);
}
.why-choose-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: rgba(10, 53, 92, 0.08);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--chemoil-accent);
}
.why-choose-icon svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}
.why-choose-content h4 {
    font-size: 15px;
    margin: 0 0 6px 0;
    color: var(--chemoil-navy);
    font-weight: 700;
}
.why-choose-content p {
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
    color: var(--chemoil-text-muted);
}

/* ============================================================
   CERTIFICATIONS & TRUSTED SECTION — Reference Image Layout
   ============================================================ */
.certifications-section {
    padding: 48px 0;
    background: #ffffff;
    border-top: 1px solid #e5eaf2;
    border-bottom: 1px solid #e5eaf2;
}
/* Container alignment — same as all other sections */
.certifications-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
/* Two-column flex wrapper */
.certs-trusted-wrap {
    display: flex;
    align-items: flex-start;
    gap: 0;
}
/* Each half takes equal width */
.certs-side {
    flex: 1;
    padding: 0;
}
/* Left column: space only on the right side (toward the divider) */
.certs-side:first-child {
    padding-right: 40px;
}
/* Right column: space only on the left side (away from the divider) */
.certs-side:last-child {
    padding-left: 40px;
}
/* Vertical divider between the two columns */
.certs-vdivider {
    width: 1px;
    background: #e0e6f0;
    align-self: stretch;
    flex-shrink: 0;
    margin: 0;
}
/* Header: tag + heading */
.certs-side-header {
    margin-bottom: 22px;
}
.certs-side-header .section-tag {
    color: var(--chemoil-blue);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 6px;
}
.certs-side-header h2 {
    font-size: 22px;
    font-weight: 800;
    color: var(--chemoil-navy);
    margin: 0;
    line-height: 1.2;
}

/* === CERT LOGOS ROW (ISO, CE, API, PED, SIL) === */
.certs-logos-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.cert-logo-box {
    border: 1.5px solid #dde4ee;
    border-radius: 8px;
    background: #fff;
    width: 96px;
    height: 72px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    cursor: default;
}
.cert-logo-box:hover {
    border-color: var(--chemoil-blue);
    box-shadow: 0 4px 14px rgba(10,53,92,0.12);
    transform: translateY(-2px);
}
.clb-main {
    font-size: 16px;
    font-weight: 800;
    color: var(--chemoil-navy);
    letter-spacing: 0.5px;
    line-height: 1;
    font-family: var(--font-heading);
}
.clb-main.ce-mark {
    font-size: 15px;
    font-weight: 400;
    font-family: serif;
    letter-spacing: 3px;
}
.clb-sub {
    font-size: 8px;
    font-weight: 600;
    color: var(--chemoil-text-muted);
    text-align: center;
    letter-spacing: 0.3px;
    line-height: 1.2;
}

/* === PARTNER LOGOS ROW (BFLON, MASCOT, etc.) === */
.partner-logos-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.partner-ticker-row {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
}
.partner-ticker-container {
    overflow: hidden;
    position: relative;
    max-width: 510px; /* Exactly 4 logos (4 * 120px) + 3 gaps (3 * 10px) = 510px */
    width: 100%;
    padding: 10px 0;
    display: flex;
    align-items: center;
}
.partner-ticker-track {
    display: flex;
    gap: 10px; /* 10px gap between logos */
    width: max-content;
    animation: partnerMarquee 35s linear infinite;
}
.partner-ticker-track:hover {
    animation-play-state: paused;
}
.partner-ticker-track .partner-logo-box {
    flex-shrink: 0;
    width: 120px;
    padding: 0 10px;
}
.partner-ticker-track .partner-logo-box svg {
    width: 100px;
    height: 30px;
}
@keyframes partnerMarquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}
.partner-logo-box {
    border: 1.5px solid #dde4ee;
    border-radius: 8px;
    background: #fff;
    height: 52px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    cursor: pointer;
    min-width: 90px;
}
.partner-logo-box:hover {
    border-color: var(--chemoil-blue);
    box-shadow: 0 4px 14px rgba(10,53,92,0.12);
    transform: translateY(-2px);
}
.plb-name {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
    font-family: var(--font-heading);
}
/* BFLON */
.plb-name.bflon { color: #d32f2f; }
.plb-name.bflon span { color: #0a355c; }
/* MASCOT */
.plb-name.mascot { color: #1e4620; font-size: 12px; }
.plb-name.mascot .mascot-bars { color: var(--chemoil-blue); font-weight: 900; }
/* COVA-TECH */
.plb-name.covatech {
    color: #0288d1;
    font-size: 11px;
    border-top: 2px solid #0288d1;
    border-bottom: 2px solid #0288d1;
    padding: 2px 0;
}
/* CONTROL (Arpendra) */
.plb-name.arpendra { color: #0d47a1; font-size: 11px; }
.plb-name.arpendra .ap-circle {
    border: 2px solid #0d47a1;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 800;
    flex-shrink: 0;
}
/* G FLUID */
.plb-name.gfluid { color: #555; font-size: 12px; }
.plb-name.gfluid .gf-badge {
    background: #f57c00;
    color: #fff;
    padding: 2px 5px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 900;
    flex-shrink: 0;
}
/* Next Arrow */
.partner-next-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1.5px solid #dde4ee;
    border-radius: 50%;
    background: #fff;
    color: var(--chemoil-navy);
    text-decoration: none;
    font-size: 16px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}
.partner-next-arrow:hover {
    background: var(--chemoil-blue);
    border-color: var(--chemoil-blue);
    color: #fff;
    transform: translateX(2px);
    box-shadow: 0 4px 14px rgba(10,53,92,0.2);
}

/* Old classes — kept for compatibility */
.certs-grid {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 15px;
}
.logo-card {
    background: #ffffff;
    border: 1px solid #eef2f5;
    border-radius: 8px;
    width: 95px;
    height: 70px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
    text-align: center;
    box-sizing: border-box;
    padding: 8px;
    transition: var(--transition);
}
.logo-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    border-color: rgba(10, 53, 92, 0.2);
}
.logo-card .main-txt {
    font-size: 16px;
    font-weight: 800;
    color: var(--chemoil-navy);
    line-height: 1.1;
}
.logo-card .sub-txt {
    font-size: 8px;
    font-weight: 600;
    color: var(--chemoil-text-muted);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.trusted-logos {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.trusted-logo {
    max-height: 35px;
    opacity: 0.6;
    filter: grayscale(100%);
    transition: var(--transition);
}
.trusted-logo:hover {
    opacity: 1;
    filter: none;
}

/* Responsive */
@media (max-width: 900px) {
    .certs-trusted-wrap {
        flex-direction: column;
        gap: 32px;
    }
    .certs-vdivider {
        width: 100%;
        height: 1px;
        margin: 0;
    }
    .certs-side {
        padding: 0 !important;
    }
    .certs-logos-row,
    .partner-logos-row {
        gap: 8px;
    }
    .cert-logo-box {
        width: 70px;
        height: 58px;
    }
}

/* Case Studies Grid */
.case-studies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
}
.case-study-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 240px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    padding: 20px;
    color: #ffffff;
    text-decoration: none;
    transition: var(--transition);
}
.case-study-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(3,27,51,0.95) 0%, rgba(3,27,51,0.2) 100%);
    transition: var(--transition);
}
.case-study-card:hover::before {
    background: linear-gradient(to top, rgba(13, 110, 253, 0.95) 0%, rgba(3,27,51,0.4) 100%);
}
.case-study-content {
    position: relative;
    z-index: 2;
}
.case-study-project {
    font-size: 12px;
    font-weight: 700;
    color: var(--chemoil-gold);
    text-transform: uppercase;
    margin-bottom: 5px;
}
.case-study-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 10px 0;
}
.case-study-desc {
    font-size: 13px;
    opacity: 0.8;
    margin: 0;
}

/* Global Presence */
.chemoil-homepage-wrapper .global-presence-container {
    display: grid !important;
    grid-template-columns: 1fr 1.3fr 0.8fr !important;
    gap: 30px !important;
    align-items: center;
}
.presence-info h3 {
    font-size: 32px;
    margin-bottom: 20px;
}
.presence-info p {
    color: var(--chemoil-text-muted);
    margin-bottom: 30px;
    font-size: 15px;
}
.presence-info a.btn-primary-solid,
.global-presence-container a.btn-primary-solid {
    background-color: #0A355C !important;
    color: #ffffff !important;
    border: none !important;
    padding: 11.5px 22px !important;
    border-radius: 4px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    text-decoration: none !important;
    display: inline-block !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}
.presence-info a.btn-primary-solid:hover,
.global-presence-container a.btn-primary-solid:hover {
    background-color: #031B33 !important;
    color: #ffffff !important;
    text-decoration: none !important;
}
.presence-stats {
    display: flex;
    gap: 40px;
    margin-top: 30px;
}
.presence-stat-num {
    font-size: 32px;
    font-weight: 800;
    color: var(--chemoil-accent);
}
.presence-stat-lbl {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--chemoil-text-muted);
    font-weight: 600;
}
.map-wrapper {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    border-radius: 12px;
    background-color: rgba(255, 255, 255, 0.02);
}
.map-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.25, 1);
    transform-origin: center center;
}
.map-visual {
    width: 100%;
    height: 100%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: brightness(0.92) contrast(0.9) opacity(0.35);
}

/* Region-Specific Zooms - Ultra High Specificity */
body .global-presence-container .map-wrapper.zoom-na .map-inner { transform-origin: 22% 32% !important; transform: scale(2.2) !important; }
body .global-presence-container .map-wrapper.zoom-sa .map-inner { transform-origin: 34% 65% !important; transform: scale(2.2) !important; }
body .global-presence-container .map-wrapper.zoom-eu .map-inner { transform-origin: 51% 25% !important; transform: scale(2.5) !important; }
body .global-presence-container .map-wrapper.zoom-af .map-inner { transform-origin: 51% 50% !important; transform: scale(2.0) !important; }
body .global-presence-container .map-wrapper.zoom-me .map-inner { transform-origin: 58% 38% !important; transform: scale(2.6) !important; }
body .global-presence-container .map-wrapper.zoom-ap .map-inner { transform-origin: 78% 52% !important; transform: scale(2.4) !important; }

.pin {
    position: absolute;
    width: 12px;
    height: 12px;
    background-color: var(--chemoil-accent);
    border: 2px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(10, 53, 92, 0.4);
    cursor: pointer;
    z-index: 5;
    transition: transform 0.4s ease, background-color 0.4s ease, border-color 0.4s ease;
}
.pin::before {
    content: attr(data-title);
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    background: rgba(3, 27, 51, 0.95);
    color: #ffffff;
    padding: 5px 10px;
    font-size: 11px;
    font-family: var(--font-body);
    font-weight: 600;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 12;
    border: 1px solid rgba(255, 255, 255, 0.15);
}
.pin:hover::before,
.pin.highlighted::before {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.pin::after {
    content: '';
    position: absolute;
    top: -6px;
    left: -6px;
    width: 20px;
    height: 20px;
    border: 2px solid var(--chemoil-accent);
    border-radius: 50%;
    animation: pin-pulse 1.8s infinite ease-out;
    opacity: 0;
}
.pin.highlighted {
    background-color: #ffc107 !important;
    border-color: #ffffff !important;
    transform: scale(1.6);
    box-shadow: 0 0 15px rgba(255, 193, 7, 0.8) !important;
    z-index: 10;
}
.pin.highlighted::after {
    border-color: #ffc107 !important;
    width: 24px;
    height: 24px;
    top: -8px;
    left: -8px;
}
@keyframes pin-pulse {
    0% { transform: scale(0.6); opacity: 0.8; }
    100% { transform: scale(1.8); opacity: 0; }
}
.pin:hover {
    transform: scale(1.3);
    background-color: var(--chemoil-navy);
    border-color: #ffc107;
}
.key-markets-card {
    background-color: var(--chemoil-navy);
    color: #ffffff;
    padding: 30px;
    border-radius: 8px;
}
.key-markets-card h4 {
    color: #ffffff;
    font-size: 20px;
    margin-top: 0;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 10px;
}
.markets-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.markets-list li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}
.markets-list li a {
    color: #ffffff !important;
    text-decoration: none !important;
    display: block;
    width: 100%;
    transition: var(--transition);
}
.markets-list li.active a,
.markets-list li a:hover {
    color: #ffc107 !important;
    font-weight: 700;
}

/* Banner CTA */
.chemoil-cta-banner {
    background-color: var(--chemoil-blue);
    background-size: cover;
    background-position: center;
    color: #ffffff;
    padding: 60px 0;
    position: relative;
}
.chemoil-cta-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(3,27,51,0.9);
}
.chemoil-cta-banner .container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}
.cta-text h3 {
    color: #ffffff;
    font-size: 28px;
    margin: 0 0 10px 0;
}
.cta-text p {
    margin: 0;
    opacity: 0.9;
}
.cta-buttons {
    display: flex;
    gap: 15px;
}

/* News & Insights */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 25px;
}
.news-card {
    background: #ffffff;
    border: 1px solid var(--chemoil-border);
    border-radius: 8px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
}
.news-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-color: var(--chemoil-accent);
}
.news-date {
    font-size: 12px;
    color: var(--chemoil-text-muted);
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
}
.news-card h4 {
    font-size: 16px;
    margin: 0 0 15px 0;
    line-height: 1.4;
}
.news-more {
    font-size: 13px;
    color: var(--chemoil-accent);
    text-decoration: none;
    font-weight: 600;
}

/* Footer Custom Styling — Light Theme */

.chemoil-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #c8d8ee, transparent);
}

.footer-brand h4 {
    margin-bottom: 15px;
    color: var(--chemoil-navy);
}

.footer-brand p {
    color: var(--chemoil-text-muted);
    line-height: 1.7;
    margin-bottom: 22px;
    font-size: 13.5px;
}
.footer-socials {
    display: flex;
    gap: 10px;
}
.footer-socials a {
    color: var(--chemoil-blue);
    background: #e8eef6;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    border: 1.5px solid #d0dce8;
}
.footer-socials a:hover {
    background: var(--chemoil-blue);
    color: #ffffff;
    border-color: var(--chemoil-blue);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(10, 53, 92, 0.2);
}
.footer-socials a svg {
    fill: currentColor;
    stroke: currentColor;
}
.footer-col h4 {
    color: var(--chemoil-navy);
    font-size: 15px;
    margin-top: 0;
    margin-bottom: 20px;
    font-weight: 700;
    position: relative;
    padding-bottom: 10px;
}
.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 28px;
    height: 2.5px;
    background: var(--chemoil-gold);
    border-radius: 2px;
}
.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-col ul li {
    margin-bottom: 11px;
}
.footer-col ul li a {
    color: var(--chemoil-text-muted);
    text-decoration: none;
    transition: var(--transition);
    font-size: 13.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.footer-col ul li a::before {
    content: '›';
    color: var(--chemoil-blue);
    font-size: 16px;
    font-weight: 700;
    opacity: 0;
    transition: var(--transition);
    margin-right: -2px;
}
.footer-col ul li a:hover {
    color: var(--chemoil-blue);
    padding-left: 4px;
}
.footer-col ul li a:hover::before {
    opacity: 1;
}
.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px !important;
    color: var(--chemoil-text-muted);
    font-size: 13px;
    line-height: 1.6;
}
.footer-contact li svg {
    flex-shrink: 0;
    fill: var(--chemoil-blue);
    width: 16px;
    height: 16px;
    margin-top: 3px;
}

/* Footer Divider */
.footer-divider {
    border: none;
    border-top: 1px solid #dde5f0;
    margin: 0;
}

/* Footer Bottom — Light Theme */





/* Scroll To Top button */
.scroll-to-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: var(--chemoil-accent);
    color: #ffffff;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    text-decoration: none;
    z-index: 999;
    transition: var(--transition);
}
.scroll-to-top:hover {
    background-color: var(--chemoil-navy);
    transform: translateY(-3px);
}

/* Responsive queries */
@media (max-width: 1024px) {
    
    .chemoil-stats-strip .container {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}
@media (max-width: 768px) {
    .chemoil-hero .container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .chemoil-top-bar .info-links span:not(:first-child) {
        display: none;
    }
    .chemoil-homepage-wrapper .global-presence-container {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
    .chemoil-homepage-wrapper .map-wrapper {
        display: none !important;
    }

    
    .why-choose-grid {
        grid-template-columns: 1fr;
    }
    .chemoil-stats-strip .container {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}
@media (max-width: 480px) {
    
    .hero-buttons {
        flex-direction: column;
    }
    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }
    .cta-buttons a {
        text-align: center;
    }
    .chemoil-stats-strip .container {
        grid-template-columns: 1fr !important;
    }
}

/* Alternating dark section styling with background image overlays */
.chemoil-industries-section,
.chemoil-case-section {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    color: #ffffff !important;
}

.chemoil-industries-section::before,
.chemoil-case-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(3, 27, 51, 0.75) 0%, rgba(10, 53, 92, 0.55) 100%);
    z-index: 1;
}

.chemoil-industries-section .container,
.chemoil-case-section .container {
    position: relative;
    z-index: 2;
}

.chemoil-industries-section h2,
.chemoil-case-section h2,
.chemoil-industries-section .section-tag,
.chemoil-case-section .section-tag,
.chemoil-industries-section .view-all-link,
.chemoil-case-section .view-all-link {
    color: #ffffff !important;
}

.chemoil-industries-section .view-all-link:hover,
.chemoil-case-section .view-all-link:hover {
    color: var(--chemoil-gold) !important;
}

/* Scroll and Hover Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Class for loading animations */
.chemoil-homepage-wrapper .chemoil-hero h1,
.chemoil-homepage-wrapper .chemoil-hero .hero-desc,
.chemoil-homepage-wrapper .chemoil-hero .hero-buttons,
.chemoil-homepage-wrapper .chemoil-hero .hero-form-card {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.chemoil-homepage-wrapper .chemoil-hero h1 { animation-delay: 0.1s; opacity: 0; }
.chemoil-homepage-wrapper .chemoil-hero .hero-desc { animation-delay: 0.25s; opacity: 0; }
.chemoil-homepage-wrapper .chemoil-hero .hero-buttons { animation-delay: 0.4s; opacity: 0; }
.chemoil-homepage-wrapper .chemoil-hero .hero-form-card { animation-delay: 0.3s; opacity: 0; }

/* Micro-animations and hover transitions */
.product-card, .industry-card, .why-choose-card, .case-study-card, .news-card, .logo-card {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.product-card:hover, .why-choose-card:hover, .news-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08) !important;
}

.industry-card:hover, .case-study-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2) !important;
}

/* CSS-only clean mobile nav toggle logic */
/* Complete responsiveness overrides */
@media (max-width: 1200px) {
    .chemoil-homepage-wrapper .products-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
    .chemoil-homepage-wrapper .industries-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
    .chemoil-homepage-wrapper .why-choose-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .chemoil-homepage-wrapper .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .chemoil-homepage-wrapper .industries-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .chemoil-homepage-wrapper .why-choose-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .case-studies-grid {
        grid-template-columns: 1fr;
    }
    .chemoil-section {
        padding: 50px 0;
    }
    .chemoil-hero {
        padding: 50px 0;
    }
    .chemoil-hero h1 {
        font-size: 32px;
    }
}

@media (max-width: 480px) {
    .chemoil-homepage-wrapper .products-grid {
        grid-template-columns: 1fr !important;
    }
    .chemoil-homepage-wrapper .industries-grid {
        grid-template-columns: 1fr !important;
    }
    .chemoil-homepage-wrapper .why-choose-grid {
        grid-template-columns: 1fr !important;
    }
    }

.certifications-row-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 50px !important;
    align-items: flex-start !important;
    width: 100% !important;
}

@media screen and (max-width: 991px) {
    .certifications-row-grid {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }
}

/* Prevent red/orange outlines or borders on click/focus */
.chemoil-homepage-wrapper a:focus,
.chemoil-homepage-wrapper a:active,
.chemoil-homepage-wrapper button:focus,
.chemoil-homepage-wrapper button:active,
.product-card:focus,
.product-card:active,
.product-card:focus-within {
    outline-color: var(--chemoil-accent) !important;
    border-color: var(--chemoil-accent) !important;
}

/* --- NEW STATS CARDS SECTION --- */
.chemoil-stats-section {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 80px 0;
}
.stats-cards-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    width: 100%;
}
.stat-new-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 35px 20px 45px 20px;
    text-align: center;
    position: relative;
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    min-height: 250px;
}
.stat-new-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.25);
}
.stat-dots-pattern {
    position: absolute;
    top: 15px;
    right: 15px;
    opacity: 0.25;
}
.stat-circle-icon {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: #0A355C;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 6px 15px rgba(10, 53, 92, 0.3);
    margin-bottom: 20px;
}
.stat-circle-icon svg {
    width: 26px;
    height: 26px;
}
.stat-card-number {
    font-size: 32px;
    font-weight: 800;
    color: #031b33;
    margin-bottom: 2px;
    font-family: var(--font-heading);
}
.stat-card-line {
    width: 35px;
    height: 3.5px;
    background: #0A355C;
    margin: 8px auto 12px auto;
    border-radius: 2px;
}
.stat-card-label {
    font-size: 13.5px;
    color: #64748b;
    font-weight: 600;
    line-height: 1.4;
}
.stat-card-arrow-badge {
    position: absolute;
    bottom: -15px;
    right: -15px;
    width: 38px;
    height: 38px;
    transform: rotate(45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    transition: transform 0.3s ease;
}
.stat-card-arrow-badge span {
    transform: rotate(-45deg);
    color: #ffffff;
    font-size: 11px;
    font-weight: bold;
    margin-top: -6px;
    margin-left: -6px;
}
.stat-card-arrow-badge.btn-blue {
    background: #0A355C;
}
.stat-card-arrow-badge.btn-navy {
    background: #031b33;
}
.stat-new-card:hover .stat-card-arrow-badge {
    transform: rotate(45deg) scale(1.15);
}

/* Responsiveness for Stats Cards Grid */
@media (max-width: 1100px) {
    .stats-cards-grid {
        grid-template-columns: repeat(3, 1fr);
        justify-content: center;
    }
}
@media (max-width: 768px) {
    .stats-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 480px) {
    .stats-cards-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   HERO INDUSTRIAL IMAGE (replaces form card)
   ============================================================ */
.hero-industry-img-wrap {
    position: relative;
    width: 100%;
    height: 420px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,0.45);
    border: 3px solid rgba(255,255,255,0.15);
}
.hero-industry-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}
.hero-industry-img-wrap:hover .hero-industry-img {
    transform: scale(1.04);
}
.hero-img-overlay-badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: rgba(3, 27, 51, 0.88);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,193,7,0.3);
    border-radius: 12px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
}
.hero-img-overlay-badge .hib-icon {
    font-size: 28px;
    flex-shrink: 0;
}
.hero-img-overlay-badge strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #FFC107;
    margin-bottom: 2px;
}
.hero-img-overlay-badge small {
    font-size: 12px;
    color: rgba(255,255,255,0.75);
    line-height: 1.4;
}

/* ============================================================
   REQUEST A QUOTE MODAL
   ============================================================ */
.chemoil-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(3, 15, 30, 0.75);
    backdrop-filter: blur(6px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 20px;
}
.chemoil-modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}
.chemoil-modal {
    background: #ffffff;
    border-radius: 20px;
    width: 100%;
    max-width: 680px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 40px;
    transform: translateY(30px) scale(0.97);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 40px 100px rgba(0,0,0,0.35);
}
.chemoil-modal-overlay.active .chemoil-modal {
    transform: translateY(0) scale(1);
}
.chemoil-modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: #f0f0f0;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    line-height: 1;
}
.chemoil-modal-close:hover {
    background: var(--chemoil-navy);
    color: #fff;
    transform: rotate(90deg);
}
.chemoil-modal-header {
    margin-bottom: 28px;
}
.chemoil-modal-header .modal-tag {
    background: rgba(255, 193, 7, 0.12);
    color: #b8860b;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 5px 12px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 10px;
}
.chemoil-modal-header h3 {
    font-size: 26px;
    font-weight: 800;
    color: var(--chemoil-navy);
    margin: 0 0 8px;
}
.chemoil-modal-header p {
    font-size: 14px;
    color: var(--chemoil-text-muted);
    margin: 0;
}
.modal-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.modal-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.modal-form-full {
    grid-column: 1 / -1;
}
.modal-form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--chemoil-navy);
}
.modal-form-group .req {
    color: #e74c3c;
}
.modal-form-group input,
.modal-form-group select,
.modal-form-group textarea {
    padding: 11px 15px;
    border: 1.5px solid #e0e6ef;
    border-radius: 10px;
    font-size: 14px;
    font-family: var(--font-body);
    color: var(--chemoil-text-dark);
    background: #f8fafd;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
    width: 100%;
    box-sizing: border-box;
}
.modal-form-group input:focus,
.modal-form-group select:focus,
.modal-form-group textarea:focus {
    border-color: var(--chemoil-blue);
    box-shadow: 0 0 0 3px rgba(10, 53, 92, 0.1);
    background: #fff;
}
.modal-form-group textarea {
    resize: vertical;
    min-height: 80px;
}
.modal-form-actions {
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.btn-modal-submit {
    background: linear-gradient(135deg, var(--chemoil-blue) 0%, #1a5276 100%);
    color: #fff;
    border: none;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 700;
    font-family: var(--font-heading);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(10, 53, 92, 0.3);
    letter-spacing: 0.3px;
}
.btn-modal-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(10, 53, 92, 0.4);
}
.btn-modal-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}
.modal-form-note {
    font-size: 12px;
    color: var(--chemoil-text-muted);
    margin: 0;
    line-height: 1.5;
}
.modal-success-msg {
    text-align: center;
    padding: 40px 20px;
    animation: fadeInUp 0.5s ease;
}
.modal-success-msg .success-icon {
    font-size: 52px;
    margin-bottom: 16px;
}
.modal-success-msg h4 {
    font-size: 22px;
    font-weight: 800;
    color: var(--chemoil-navy);
    margin-bottom: 10px;
}
.modal-success-msg p {
    color: var(--chemoil-text-muted);
    font-size: 15px;
}
@keyframes fadeInUp {
    from { opacity:0; transform:translateY(20px); }
    to   { opacity:1; transform:translateY(0); }
}

/* ============================================================
   CERTIFICATIONS SECTION — Enhanced Layout
   ============================================================ */
.certifications-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8fafd 0%, #eef2f8 100%);
}
.certifications-row-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px 60px;
    align-items: start;
}
.cert-section-panel {
    background: #ffffff;
    border-radius: 20px;
    padding: 36px 36px 30px;
    box-shadow: 0 8px 40px rgba(3, 27, 51, 0.07);
    border: 1px solid #e8edf5;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.cert-section-panel:hover {
    box-shadow: 0 16px 60px rgba(3, 27, 51, 0.12);
    transform: translateY(-4px);
}
.cert-section-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--chemoil-blue);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    margin-top: 20px;
    transition: gap 0.2s ease, color 0.2s ease;
}
.cert-section-link:hover {
    gap: 10px;
    color: var(--chemoil-navy);
}

/* Partner Logos Grid */
.partner-logos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}
.partner-logo-item {
    background: #f4f6fb;
    border: 1.5px solid #e5e9f4;
    border-radius: 12px;
    padding: 14px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.25s ease;
    cursor: default;
}
.partner-logo-item:hover {
    background: #fff;
    border-color: var(--chemoil-blue);
    box-shadow: 0 6px 20px rgba(10, 53, 92, 0.12);
    transform: translateY(-3px);
}
.partner-logo-item img {
    width: 48px;
    height: 32px;
    object-fit: contain;
    filter: grayscale(30%);
    transition: filter 0.25s ease;
}
.partner-logo-item:hover img {
    filter: grayscale(0%);
}
.partner-logo-item span {
    font-size: 10px;
    font-weight: 600;
    color: var(--chemoil-text-muted);
    text-align: center;
    line-height: 1.3;
}
.partner-logo-text-badge {
    font-size: 15px;
    font-weight: 800;
    color: #d32f2f;
    letter-spacing: 0.5px;
    line-height: 1;
    height: 32px;
    display: flex;
    align-items: center;
}
.partner-logo-text-badge span {
    color: var(--chemoil-blue);
    font-size: inherit;
    font-weight: inherit;
}

/* Certification Badge Cards */
.certs-grid-enhanced {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.cert-badge-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #f4f6fb;
    border: 1.5px solid #e5e9f4;
    border-radius: 12px;
    padding: 14px 18px;
    transition: all 0.25s ease;
}
.cert-badge-card:hover {
    background: #fff;
    border-color: var(--chemoil-gold);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.15);
    transform: translateX(4px);
}
.cert-badge-card img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 6px rgba(3,27,51,0.1));
}
.cert-badge-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.cert-badge-info strong {
    font-size: 14px;
    font-weight: 700;
    color: var(--chemoil-navy);
}
.cert-badge-info small {
    font-size: 12px;
    color: var(--chemoil-text-muted);
}

/* ============================================================
   RESPONSIVE — MODAL & CERTIFICATIONS
   ============================================================ */
@media (max-width: 768px) {
    .chemoil-modal {
        padding: 30px 20px;
        max-height: 95vh;
    }
    .modal-form-grid {
        grid-template-columns: 1fr;
    }
    .certifications-row-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .partner-logos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero-industry-img-wrap {
        height: 260px;
    }
}
@media (max-width: 480px) {
    .partner-logos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .modal-form-actions {
        flex-direction: column;
        align-items: flex-start;
    }
    .btn-modal-submit {
        width: 100%;
        text-align: center;
    }
}


/* MARINE OVERLAY FIX */
.industry-card-content {
    flex-wrap: wrap !important;
    width: calc(100% - 30px) !important;
}
.industry-title {
    flex: 1 !important;
    min-width: 0 !important;
    white-space: normal !important;
    word-break: keep-all !important;
    word-wrap: normal !important;
    overflow-wrap: normal !important;
    line-height: 1.3 !important;
}


.case-study-img-wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}
.case-study-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.case-study-card:hover .case-study-img-wrap img {
    transform: scale(1.1);
}
.case-study-card {
    background-image: none !important;
}
.case-study-card::before {
    z-index: 1;
}
.case-study-card:hover::before {
    background: rgba(255, 255, 255, 0.82) !important;
}
.case-study-card:hover .case-study-project {
    color: var(--chemoil-navy) !important;
}
.case-study-card:hover .case-study-title,
.case-study-card:hover .case-study-desc {
    color: var(--chemoil-navy) !important;
}

.case-study-title, .case-study-desc, .case-study-project {
    color: #ffffff !important;
}
.case-study-card:hover .case-study-title, .case-study-card:hover .case-study-desc {
    color: #031b33 !important;
}
.chemoil-stats-strip {
    background: transparent !important;
}

/* Force homepage main layout to stretch full width, while shortcodes use containers */
.page-template-template-homepage #main .wf-wrap {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
}
.page-template-template-homepage #main .wf-container-main {
    padding: 0 !important;
}
.page-template-template-homepage #content {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.chemoil-footer,
.footer-divider,
.footer-bottom {
    display: none !important;
}

/* Make footer contact info text, links, and icons white and readable */
.custom-contact-info,
.custom-contact-info li,
.custom-contact-info li a,
.custom-contact-info li span,
.custom-contact-info li i {
    color: rgba(255, 255, 255, 0.85) !important;
}
.custom-contact-info li a:hover {
    color: #ffffff !important;
}
