/* =====================================================
   SOAP MAKING MACHINERY PAGE — SELF-CONTAINED STYLESHEET
   Reuses the same design tokens as the main site so it
   matches your existing look. Safe to use standalone or
   alongside your site's main.css / style.css.
===================================================== */

/* ---------- TOKENS ---------- */
:root {
  --orange: #ff5b2e;
  --red: #ff3d57;
  --blue: #2d6cff;
  --purple: #8b5cf6;
  --white: #ffffff;
  --dark: #0f172a;
  --dark-2: #1e293b;
  --light-bg: #f8fafc;
  --grad-warm: linear-gradient(135deg, #ff6b35, #ff3d57);
  --grad-cool: linear-gradient(135deg, #2563eb, #8b5cf6);
  --grad-bg: linear-gradient(180deg, #ffffff, #f8fbff);
  --font-head: "Poppins", sans-serif;
  --font-body: "Inter", sans-serif;
  --shadow-lg: 0 20px 60px rgba(15, 23, 42, 0.12);
  --shadow-glow: 0 10px 40px rgba(255, 91, 46, 0.25);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--dark);
  background: var(--grad-bg);
  margin: 0;
  overflow-x: hidden;
  max-width: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-head);
  font-weight: 800;
  margin: 0;
}
p {
  margin: 0;
}
a {
  text-decoration: none;
  color: inherit;
}
ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
img,
svg,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Simple container helpers (no Bootstrap dependency) */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.container-fluid {
  width: 100%;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.px-3 {
  padding-left: 1rem;
  padding-right: 1rem;
}
.px-lg-4 {
}
@media (min-width: 992px) {
  .px-lg-4 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}
.mb-5 {
  margin-bottom: 3rem;
}
.mx-auto {
  margin-left: auto;
  margin-right: auto;
}
.text-center {
  text-align: center;
}
.text-white {
  color: #fff;
}
.text-light-70 {
  color: rgba(255, 255, 255, 0.7);
}
.ms-2 {
  margin-left: 0.5rem;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.7rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    background 0.3s ease;
}
.btn-gradient-cta {
  background: var(--grad-warm);
  color: #fff;
  box-shadow: var(--shadow-glow);
}
.btn-gradient-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 46px rgba(255, 61, 87, 0.35);
  color: #fff;
}
.btn-outline-glow {
  border: 2px solid var(--dark);
  color: var(--dark);
  background: transparent;
}
.btn-outline-glow:hover {
  background: var(--dark);
  color: #fff;
}
.btn-white-cta {
  background: #fff;
  color: var(--red);
  padding: 0.85rem 2.2rem;
  font-weight: 700;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}
.btn-white-cta:hover {
  transform: translateY(-4px) scale(1.03);
}

/* ---------- SECTION SHARED ---------- */
.section {
  padding: 100px 0;
}
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--orange), var(--red));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 14px;
}
.justify-content-center {
  justify-content: center;
  width: 100%;
}
.section-title {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  margin-bottom: 18px;
  line-height: 1.2;
}
.section-desc {
  color: #64748b;
  font-size: 1.03rem;
  line-height: 1.7;
}

/* ---------- HEADER ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 2px 20px rgba(15, 23, 42, 0.08);
  transition:
    background 0.35s ease,
    box-shadow 0.35s ease,
    padding 0.35s ease;
  padding: 14px 0;
}
.site-header.scrolled {
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.12);
  padding: 1px 0;
}

.navbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}
.navbar > .container-fluid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 10px;
  width: 100%;
}

.navbar-brand {
  display: flex;
  align-items: center;
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
}
.brand-name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(0.72rem, 3.6vw, 1.1rem);
  color: var(--dark);
  letter-spacing: 0.3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  display: block;
}
.brand-name .highlight {
  color: var(--orange);
}

.navbar-toggler {
  border: none;
  background: none;
  padding: 6px 4px;
  margin-left: auto;
  flex: 0 0 auto;
  cursor: pointer;
  display: none;
}
.toggler-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  margin: 5px 0;
  border-radius: 2px;
  transition: all 0.3s ease;
}
.navbar-toggler.active .toggler-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.navbar-toggler.active .toggler-bar:nth-child(2) {
  opacity: 0;
}
.navbar-toggler.active .toggler-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.navbar-collapse {
  flex: 0 0 auto;
}
.navbar-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.navbar-nav .nav-link {
  display: block;
  font-weight: 600;
  color: #1e293b;
  padding: 0.5rem 1rem;
  position: relative;
  transition: color 0.25s ease;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--orange);
}

@media (max-width: 991px) {
  .navbar-toggler {
    display: block;
  }
  .navbar-collapse {
    display: none;
    width: 100%;
    background: #fff;
    margin-top: 10px;
    padding: 14px 18px 18px;
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
    border: 1px solid #f1f5f9;
    order: 3;
  }
  .navbar-collapse.show {
    display: block;
  }
  .navbar-nav {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  .navbar-nav .nav-link {
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid #f1f5f9;
  }
  .navbar-nav li:last-child .nav-link {
    border-bottom: none;
  }
}

/* ---------- PAGE HERO (banner) ---------- */
.page-hero {
  position: relative;
  padding: 150px 0 70px;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #f3f6ff 60%, #ffffff 100%);
}
.page-hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(#0f172a08 1px, transparent 1px),
    linear-gradient(90deg, #0f172a08 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 20%, black 10%, transparent 70%);
}
.breadcrumb {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 18px;
}
.breadcrumb a {
  color: var(--orange);
}
.breadcrumb i {
  font-size: 0.7rem;
}
.page-hero-title {
  position: relative;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  margin-bottom: 20px;
  max-width: 900px;
}
.page-hero-sub {
  position: relative;
  font-size: 1.05rem;
  color: #475569;
  line-height: 1.75;
  margin-bottom: 16px;
  max-width: 820px;
}
.page-hero-btns {
  position: relative;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 26px;
}

/* ---------- PRODUCTS ---------- */
.products-section {
  background: var(--light-bg);
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.product-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 26px 60px rgba(15, 23, 42, 0.16);
}
.product-card-img {
  position: relative;
  overflow: hidden;
  height: 220px;
}
.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.product-card:hover .product-card-img img {
  transform: scale(1.08);
}
.product-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(15, 23, 42, 0.55));
}
.product-card-body {
  padding: 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-card-body h5 {
  font-size: 1.02rem;
  line-height: 1.4;
  margin-bottom: 10px;
}
.product-card-body p {
  font-size: 0.88rem;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
}
.read-more {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--orange);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.3s ease;
}
.read-more:hover {
  gap: 14px;
  color: var(--red);
}

@media (max-width: 991px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 575px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- INDUSTRIES ---------- */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.industry-pill {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  border-radius: 16px;
  padding: 20px 24px;
  box-shadow: 0 8px 26px rgba(15, 23, 42, 0.06);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}
.industry-pill:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: var(--shadow-lg);
}
.industry-pill i {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--grad-warm);
  color: #fff;
  font-size: 1.05rem;
}
.industry-pill span {
  font-weight: 700;
  font-size: 0.95rem;
}

@media (max-width: 991px) {
  .industries-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 575px) {
  .industries-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- WHY US (dark) ---------- */
.why-us-section {
  background: var(--dark);
  position: relative;
  overflow: hidden;
}
.why-us-section::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: var(--grad-cool);
  opacity: 0.15;
  filter: blur(60px);
}
.why-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.why-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 26px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition:
    transform 0.35s ease,
    background 0.35s ease,
    border-color 0.35s ease;
}
.why-card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 107, 53, 0.4);
}
.why-card i {
  color: var(--orange);
  font-size: 1.3rem;
  flex: 0 0 auto;
}
.why-card h6 {
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.4;
}

@media (max-width: 991px) {
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 575px) {
  .why-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- GLOBAL EXPORT / COUNTRY SLIDER ---------- */
.export-section {
  background: #fff;
}
.country-slider {
  width: 100%;
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 6%,
    #000 94%,
    transparent
  );
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 6%,
    #000 94%,
    transparent
  );
}
.country-track {
  display: flex;
  gap: 16px;
  width: max-content;
  will-change: transform;
}
.country-card {
  flex: 0 0 auto;
  width: 120px;
  background: var(--light-bg);
  border-radius: 14px;
  padding: 18px 12px;
  text-align: center;
}
.country-card img {
  width: 40px;
  height: auto;
  margin: 0 auto 10px;
  border-radius: 4px;
}
.country-card h5 {
  font-size: 0.82rem;
  font-weight: 700;
}
.export-note {
  max-width: 780px;
  margin: 40px auto 0;
  text-align: center;
  color: #64748b;
  line-height: 1.7;
}

/* ---------- CTA ---------- */
.cta-section {
  background: var(--grad-warm);
  padding: 80px 0;
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  margin-bottom: 14px;
}
.cta-section p {
  font-size: 1.05rem;
  margin-bottom: 30px;
  opacity: 0.95;
  line-height: 1.7;
}

/* ---------- FOOTER ---------- */
.site-footer {
  background: #080e21;
  color: #94a3b8;
  padding: 34px 0;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.85rem;
}
@media (max-width: 575px) {
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ---------- FLOATING BUTTONS ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 26px;
  left: 26px;
  z-index: 900;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
}

.back-to-top {
  position: fixed;
  bottom: 26px;
  right: 26px;
  z-index: 900;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--grad-warm);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 26px rgba(255, 61, 87, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.35s ease;
}
.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ---------- RESPONSIVE SAFETY NET ---------- */
* {
  min-width: 0;
}
img,
svg,
video {
  max-width: 50%;
}

@media (max-width: 991px) {
  .section {
    padding: 64px 0;
  }
  .page-hero {
    padding: 110px 0 50px;
  }
}
@media (max-width: 767px) {
  .section {
    padding: 54px 0;
  }
  .page-hero {
    padding: 100px 0 40px;
  }
  .page-hero-btns .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}
@media (max-width: 575px) {
  .whatsapp-float,
  .back-to-top {
    width: 46px;
    height: 46px;
    font-size: 1.3rem;
  }
  .brand-name {
    font-size: 0.85rem;
    letter-spacing: 0;
  }
}
