/* A. Rehman & Sons — B2B industrial hygiene (Ecolab-tier layout, catalog brand accents) */
:root {
  --navy: #003366;
  --blue: #0066b3;
  --blue-light: #0085ca;
  --teal: #00a3a1;
  --accent: #a83279;
  --accent-light: #c44d94;
  --white: #ffffff;
  --off-white: #f4f7fa;
  --gray-50: #f8fafc;
  --gray-100: #eef2f6;
  --gray-400: #94a3b8;
  --gray-600: #475569;
  --gray-800: #1e293b;
  --border: #dde4ec;
  --shadow-sm: 0 1px 3px rgba(0, 51, 102, 0.08);
  --shadow-md: 0 8px 30px rgba(0, 51, 102, 0.1);
  --radius: 6px;
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--gray-600);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
}

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--navy); }

img { max-width: 100%; height: auto; display: block; }

.container { width: min(var(--max), 92vw); margin: 0 auto; }

/* Top bar — trust signals like Ecolab */
.top-bar {
  background: var(--navy);
  color: rgba(255,255,255,0.85);
  font-size: 0.78rem;
  padding: 0.4rem 0;
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.top-bar span { opacity: 0.9; }

.top-bar a { color: #7dd3fc; font-weight: 500; }
.top-bar a:hover { color: var(--white); }

/* Header */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.85rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
}

.brand:hover { text-decoration: none; opacity: 0.92; }

.brand-logo {
  height: 72px;
  width: auto;
  object-fit: contain;
}

.brand-text h1 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.brand-text p {
  font-size: 0.68rem;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-top: 0.15rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.nav a {
  color: var(--gray-800);
  padding: 0.5rem 0.85rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius);
  transition: color 0.15s, background 0.15s;
}

.nav a:hover {
  color: var(--blue);
  background: var(--gray-50);
  text-decoration: none;
}

.nav-cta {
  background: var(--blue) !important;
  color: var(--white) !important;
  margin-left: 0.5rem;
}

.nav-cta:hover {
  background: var(--navy) !important;
  color: var(--white) !important;
}

.nav-mobile-toggle { display: none; }

/* Hero — corporate B2B */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #004080 50%, var(--blue) 100%);
  color: var(--white);
  padding: 4rem 0 3.5rem;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: -10%;
  top: -20%;
  width: 55%;
  height: 140%;
  background: radial-gradient(ellipse, rgba(0,163,161,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #7dd3fc;
  margin-bottom: 1rem;
}

.hero h2 {
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.hero-lead {
  font-size: 1.05rem;
  opacity: 0.92;
  max-width: 540px;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.15);
}

.hero-stats div strong {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}

.hero-stats div span {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.75;
  margin-top: 0.25rem;
  display: block;
}

.hero-visual {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 1.25rem;
  backdrop-filter: blur(4px);
}

.hero-visual img {
  border-radius: 4px;
  box-shadow: var(--shadow-md);
}

/* Cert strip — immediate credibility */
.cert-strip {
  background: var(--off-white);
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
}

.cert-strip-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cert-strip-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-400);
}

.cert-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--white);
  border: 1px solid var(--border);
  padding: 0.45rem 0.9rem;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--navy);
}

.cert-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.7rem 1.35rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.875rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); text-decoration: none; }

.btn-primary { background: var(--white); color: var(--navy); }
.btn-primary:hover { background: var(--gray-100); color: var(--navy); }

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.5);
}

.btn-secondary:hover { background: rgba(255,255,255,0.1); color: var(--white); border-color: var(--white); }

.btn-blue { background: var(--blue); color: var(--white); }
.btn-blue:hover { background: var(--navy); color: var(--white); }

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--border);
}

.btn-outline:hover { border-color: var(--blue); color: var(--blue); background: var(--gray-50); }

.btn-whatsapp { background: #128c41; color: var(--white); }
.btn-whatsapp:hover { background: #0e7335; color: var(--white); }

.btn-download { background: var(--teal); color: var(--white); }
.btn-download:hover { background: #008584; color: var(--white); }

.btn-sm { padding: 0.45rem 1rem; font-size: 0.8rem; }

.btn svg { width: 16px; height: 16px; flex-shrink: 0; }

/* Sections */
section { padding: 4rem 0; }

.section-head {
  margin-bottom: 2.5rem;
}

.section-head.center { text-align: center; }
.section-head.center p { margin-left: auto; margin-right: auto; }

.section-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--blue);
  margin-bottom: 0.5rem;
}

.section-head h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.section-head p {
  color: var(--gray-600);
  max-width: 640px;
  font-size: 1rem;
}

/* Industries — Ecolab-style sectors */
.industries-section { background: var(--white); }

.industries-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

.industry-card {
  background: var(--gray-50);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1rem;
  text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.industry-card:hover {
  border-color: var(--blue-light);
  box-shadow: var(--shadow-sm);
}

.industry-card svg {
  width: 36px;
  height: 36px;
  color: var(--blue);
  margin: 0 auto 0.75rem;
}

.industry-card h3 {
  font-size: 0.85rem;
  color: var(--navy);
  font-weight: 600;
  line-height: 1.3;
}

/* About */
.about-section { background: var(--off-white); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.about-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.about-card h3 {
  color: var(--navy);
  font-size: 1.1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--teal);
}

.about-list {
  list-style: none;
  display: grid;
  gap: 0.6rem;
}

.about-list li {
  padding-left: 1.25rem;
  position: relative;
  font-size: 0.925rem;
}

.about-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
}

/* Catalog download banner */
.catalog-banner {
  background: var(--navy);
  color: var(--white);
  padding: 2.5rem 0;
}

.catalog-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.catalog-banner h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.catalog-banner p {
  opacity: 0.85;
  font-size: 0.95rem;
  max-width: 520px;
}

.catalog-banner-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Certificates */
.certificates-section { background: var(--white); }

.cert-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.cert-card {
  background: var(--gray-50);
  border: 1px solid var(--border);
  padding: 1.25rem 1rem;
  border-radius: var(--radius);
  text-align: center;
  border-top: 3px solid var(--blue);
}

.cert-card strong {
  display: block;
  color: var(--navy);
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
}

.cert-card span {
  font-size: 0.75rem;
  color: var(--gray-400);
}

.cert-image {
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

/* Clients — logo wall */
.clients-logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.client-logo-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1rem;
  text-align: center;
  transition: box-shadow 0.2s, border-color 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  min-height: 140px;
}

.client-logo-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--blue-light);
}

.client-logo-card__img {
  height: 56px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.client-logo-card__img img {
  max-height: 56px;
  max-width: 160px;
  width: auto;
  object-fit: contain;
  filter: grayscale(20%);
  transition: filter 0.2s;
}

.client-logo-card:hover .client-logo-card__img img {
  filter: grayscale(0%);
}

.client-logo-card__text strong {
  display: block;
  font-size: 0.85rem;
  color: var(--navy);
  line-height: 1.3;
}

.client-logo-card__text span {
  display: block;
  font-size: 0.72rem;
  color: var(--gray-400);
  margin-top: 0.2rem;
  line-height: 1.35;
}

/* Certificates — 5 separate cards */
#certificates-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
  margin-bottom: 1rem;
}

.certificate-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.certificate-card:hover {
  box-shadow: var(--shadow-md);
}

.certificate-card__frame {
  background: var(--gray-50);
  padding: 0.75rem;
  border-bottom: 1px solid var(--border);
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.certificate-card__frame img {
  max-height: 200px;
  width: 100%;
  object-fit: contain;
}

.certificate-card__info {
  padding: 0.85rem 0.75rem;
  text-align: center;
}

.certificate-card__info strong {
  display: block;
  font-size: 0.82rem;
  color: var(--navy);
  margin-bottom: 0.2rem;
}

.certificate-card__info span {
  font-size: 0.72rem;
  color: var(--gray-400);
  line-height: 1.35;
}

.cert-note {
  text-align: center;
  font-size: 0.78rem;
  color: var(--gray-400);
  margin-top: 0.5rem;
}

.cert-note code {
  background: var(--gray-100);
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  font-size: 0.75rem;
}

/* Products — gallon image */
.product-card__image {
  background: linear-gradient(180deg, #eef4fa 0%, #f8fafc 100%);
  border-radius: var(--radius);
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  margin-bottom: 0.25rem;
}

.product-card__image img {
  height: 100px;
  width: auto;
}

.clients-section { background: var(--off-white); }

/* Products */
.products-section { background: var(--white); }

.filter-bar {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.filter-btn {
  padding: 0.5rem 1.1rem;
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gray-600);
  transition: all 0.15s;
}

.filter-btn:hover,
.filter-btn.active {
  border-color: var(--blue);
  background: var(--blue);
  color: var(--white);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.product-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--blue-light);
}

.product-card__cat {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--teal);
  font-weight: 700;
}

.product-card h3 {
  font-size: 0.95rem;
  color: var(--navy);
  line-height: 1.35;
  font-weight: 600;
}

.product-card__desc {
  font-size: 0.84rem;
  flex: 1;
  color: var(--gray-600);
}

.product-card__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.product-card__pack {
  font-size: 0.72rem;
  background: var(--navy);
  color: var(--white);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  font-weight: 600;
}

.qty-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray-800);
}

.qty-input {
  width: 60px;
  padding: 0.35rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  text-align: center;
  font-size: 0.875rem;
}

/* Order */
.order-section { background: var(--off-white); }

.order-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
}

.order-form {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.order-form h3 {
  color: var(--navy);
  margin-bottom: 1.25rem;
  font-size: 1.1rem;
}

.form-group { margin-bottom: 1rem; }

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 0.35rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.9rem;
  transition: border-color 0.15s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,102,179,0.12);
}

.form-group textarea { resize: vertical; min-height: 88px; }

.form-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.order-info {
  background: var(--navy);
  color: rgba(255,255,255,0.9);
  padding: 2rem;
  border-radius: var(--radius);
}

.order-info h3 {
  color: var(--white);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.order-info ol {
  padding-left: 1.2rem;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.order-info li { margin-bottom: 0.5rem; }

.order-info .contact-block {
  background: rgba(255,255,255,0.08);
  padding: 1.15rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  border: 1px solid rgba(255,255,255,0.1);
}

.order-info .contact-block p { margin-bottom: 0.4rem; }
.order-info a { color: #7dd3fc; }
.order-info a:hover { color: var(--white); }

/* Footer */
.site-footer {
  background: var(--gray-800);
  color: rgba(255,255,255,0.75);
  padding: 3rem 0 1.25rem;
  font-size: 0.875rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand img {
  height: 56px;
  width: auto;
  margin-bottom: 0.75rem;
}

.footer-grid h4 {
  color: var(--white);
  margin-bottom: 0.85rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.footer-grid a { color: rgba(255,255,255,0.75); }
.footer-grid a:hover { color: var(--white); }

.footer-grid p { margin-bottom: 0.35rem; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.25rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.78rem;
  opacity: 0.65;
}

/* Floating WhatsApp */
.fab-whatsapp {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 52px;
  height: 52px;
  background: #128c41;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(18,140,65,0.45);
  z-index: 99;
  text-decoration: none;
  transition: transform 0.2s;
}

.fab-whatsapp:hover { transform: scale(1.06); text-decoration: none; }

.fab-whatsapp svg { width: 26px; height: 26px; fill: white; }

/* Responsive */
@media (max-width: 1024px) {
  .industries-grid,
  .cert-grid { grid-template-columns: repeat(3, 1fr); }
  #certificates-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .hero-grid,
  .about-grid,
  .order-grid { grid-template-columns: 1fr; }

  .industries-grid,
  .cert-grid,
  #certificates-grid { grid-template-columns: repeat(2, 1fr); }

  .nav { display: none; }

  .nav-mobile-toggle {
    display: block;
    background: none;
    border: 1px solid var(--border);
    padding: 0.4rem 0.6rem;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 1.1rem;
  }

  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
    box-shadow: var(--shadow-md);
  }

  .header-inner { position: relative; flex-wrap: wrap; }

  .catalog-banner-inner { flex-direction: column; text-align: center; }
  .catalog-banner-actions { justify-content: center; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .industries-grid,
  .cert-grid,
  #certificates-grid { grid-template-columns: 1fr; }

  .brand-text { display: none; }
}
