/* ==========================================================================
   Chander Chemicals — prototype stylesheet
   Carries over unchanged into the WordPress child theme (assets/css/custom.css)
   Brand palette: deep blue / teal / white, with a strong red accent
   ========================================================================== */

:root {
  --navy: #0b2e52;
  --blue: #14508c;
  --teal: #159a8c;
  --teal-dark: #0f7568;
  --red: #d3222a;
  --ink: #1c2733;
  --muted: #5b6b7a;
  --line: #e2e8ee;
  --bg: #ffffff;
  --bg-soft: #f4f7fa;
  --bg-navy: #0b2e52;
  --radius: 10px;
  --shadow: 0 6px 22px rgba(11, 46, 82, 0.08);
  --shadow-lg: 0 14px 40px rgba(11, 46, 82, 0.14);
  --wrap: 1180px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  line-height: 1.6;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--teal-dark); }

h1, h2, h3, h4 { line-height: 1.2; color: var(--navy); margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
p { margin: 0 0 1rem; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.section { padding: 84px 0; }
.section--soft { background: var(--bg-soft); }
.section--navy { background: var(--bg-navy); color: #cdd8e4; }
.section--navy h2, .section--navy h3 { color: #fff; }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.section-head .eyebrow {
  display: inline-block; color: var(--teal-dark); font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; font-size: .8rem; margin-bottom: 10px;
}
.section-head p { color: var(--muted); font-size: 1.05rem; }
.section--navy .section-head p { color: #9fb3c8; }

/* Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-block; padding: 13px 28px; border-radius: 8px; font-weight: 600;
  cursor: pointer; border: 2px solid transparent; transition: .2s ease; font-size: 1rem;
}
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: #b41d24; color: #fff; }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn--ghost:hover { background: #fff; color: var(--navy); }
.btn--outline { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn--outline:hover { background: var(--blue); color: #fff; }

/* Header / nav ----------------------------------------------------------- */
.topbar { background: var(--navy); color: #cdd8e4; font-size: .88rem; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; padding: 8px 24px; flex-wrap: wrap; gap: 6px; }
.topbar a { color: #cdd8e4; }
.topbar a:hover { color: #fff; }
.topbar .topbar-contact span { margin-right: 18px; }

.site-header { position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: 0 2px 12px rgba(11,46,82,.06); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { height: 48px; width: auto; flex: none; display: block; }
.brand-name { font-weight: 800; color: var(--navy); font-size: 1.15rem; line-height: 1.1; }
.brand-name small { display: block; font-weight: 500; color: var(--muted); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--ink); font-weight: 600; font-size: .96rem; padding: 6px 0; position: relative; }
.nav a:hover, .nav a.active { color: var(--teal-dark); }
.nav a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--teal); }
.nav-cta { }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: var(--navy); margin: 5px 0; border-radius: 2px; transition: .2s; }

/* Hero ------------------------------------------------------------------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background: linear-gradient(120deg, #0b2e52 0%, #14508c 55%, #159a8c 130%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; opacity: .16;
  background-image: radial-gradient(circle at 15% 20%, #ff5a5f 0 12px, transparent 13px),
    radial-gradient(circle at 80% 30%, #ffd166 0 14px, transparent 15px),
    radial-gradient(circle at 65% 75%, #06d6a0 0 12px, transparent 13px),
    radial-gradient(circle at 30% 80%, #118ab2 0 16px, transparent 17px);
  background-size: 340px 340px;
}
.hero .wrap { position: relative; z-index: 2; padding: 96px 24px; max-width: 820px; }
.hero .eyebrow { color: #8ff0e2; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: .82rem; }
.hero h1 { color: #fff; margin: 14px 0 18px; }
.hero p { font-size: 1.18rem; color: #dbe7f2; max-width: 640px; }
.hero-actions { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; }

/* Certification strip ---------------------------------------------------- */
.cert-strip { background: #fff; border-bottom: 1px solid var(--line); }
.cert-strip .wrap { display: flex; align-items: center; justify-content: center; gap: 40px; flex-wrap: wrap; padding: 22px 24px; }
.cert-strip .cert { font-weight: 800; color: var(--muted); letter-spacing: .06em; opacity: .8; font-size: 1.05rem; }
.cert-strip .cert small { display:block; font-weight:600; font-size:.62rem; letter-spacing:.1em; }

/* Stats ------------------------------------------------------------------ */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat .num { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; color: #fff; }
.stat .num span { color: #8ff0e2; }
.stat .label { color: #9fb3c8; font-size: .95rem; letter-spacing: .04em; }

/* Cards / grids ---------------------------------------------------------- */
.grid { display: grid; gap: 26px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow); transition: .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card .icon {
  width: 54px; height: 54px; border-radius: 12px; display: grid; place-items: center;
  font-size: 1.5rem; margin-bottom: 16px; color: #fff;
}
.card h3 { font-size: 1.2rem; }
.card p { color: var(--muted); margin-bottom: 0; }

/* Product category card -------------------------------------------------- */
.pcat {
  display: block; border-radius: var(--radius); overflow: hidden; color: #fff;
  position: relative; min-height: 210px; box-shadow: var(--shadow); transition: .2s ease;
}
.pcat:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: #fff; }
.pcat .swatch { position: absolute; inset: 0; }
.pcat .body { position: relative; z-index: 2; padding: 26px; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; background: linear-gradient(180deg, rgba(11,46,82,0) 30%, rgba(11,46,82,.82) 100%); }
.pcat h3 { color: #fff; margin-bottom: 4px; }
.pcat .count { font-size: .9rem; color: #d6e3f0; }
.pcat .go { margin-top: 10px; font-weight: 700; font-size: .9rem; }

.sw-acid { background: linear-gradient(135deg,#d3222a,#ff8a00); }
.sw-direct { background: linear-gradient(135deg,#14508c,#06d6a0); }
.sw-reactive { background: linear-gradient(135deg,#7b2ff7,#f107a3); }
.sw-disperse { background: linear-gradient(135deg,#0f7568,#118ab2); }

/* Page banner ------------------------------------------------------------ */
.page-banner { background: linear-gradient(120deg,#0b2e52,#14508c); color: #fff; padding: 60px 0; }
.page-banner h1 { color: #fff; margin: 0 0 8px; }
.breadcrumb { color: #9fc0dd; font-size: .9rem; }
.breadcrumb a { color: #9fc0dd; }
.breadcrumb a:hover { color: #fff; }

/* Catalog tables --------------------------------------------------------- */
.dye-block { margin-bottom: 40px; }
.dye-block h3 { display: flex; align-items: center; gap: 12px; }
.dye-dot { width: 18px; height: 18px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 2px rgba(0,0,0,.08); }
.dye-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.dye-table th, .dye-table td { text-align: left; padding: 13px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.dye-table th { background: var(--bg-soft); color: var(--navy); font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; }
.dye-table tr:last-child td { border-bottom: 0; }
.dye-table .colour { font-weight: 700; color: var(--navy); white-space: nowrap; }
.ci { color: var(--muted); }
.grade-tag { display:inline-block; background:#eef4f9; color:var(--blue); border:1px solid #d7e6f2; border-radius:6px; padding:2px 9px; font-size:.82rem; font-weight:600; margin:2px 3px 0 0; }

.note { background:#fff8e6; border:1px solid #f4dfa0; border-radius:8px; padding:14px 18px; color:#7a5a12; font-size:.92rem; }

/* Feature row ------------------------------------------------------------ */
.feature { display:flex; gap:16px; align-items:flex-start; }
.feature .fi { width:44px; height:44px; border-radius:10px; flex:none; display:grid; place-items:center; background:#eaf5f3; color:var(--teal-dark); font-size:1.3rem; }
.feature h4 { margin:0 0 4px; }
.feature p { color:var(--muted); margin:0; }

/* Split / about ---------------------------------------------------------- */
.split { display:grid; grid-template-columns: 1fr 1fr; gap:50px; align-items:center; }
.split .media { border-radius:var(--radius); min-height:340px; background:linear-gradient(135deg,#14508c,#159a8c); box-shadow:var(--shadow-lg); display:grid; place-items:center; color:#fff; }
.tick { list-style:none; padding:0; margin:0; }
.tick li { padding:8px 0 8px 30px; position:relative; }
.tick li::before { content:"✓"; position:absolute; left:0; top:8px; color:var(--teal); font-weight:800; }

/* CTA band --------------------------------------------------------------- */
.cta-band { background: linear-gradient(120deg,var(--red),#ff7a45); color:#fff; text-align:center; }
.cta-band h2 { color:#fff; }
.cta-band p { color:#ffe6de; max-width:620px; margin:0 auto 26px; font-size:1.1rem; }

/* Forms ------------------------------------------------------------------ */
.form-card { background:#fff; border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow); padding:32px; }
.field { margin-bottom:18px; }
.field label { display:block; font-weight:600; margin-bottom:6px; color:var(--navy); font-size:.92rem; }
.field input, .field select, .field textarea {
  width:100%; padding:12px 14px; border:1px solid var(--line); border-radius:8px; font:inherit; color:var(--ink); background:#fff;
}
.field input:focus, .field select:focus, .field textarea:focus { outline:none; border-color:var(--teal); box-shadow:0 0 0 3px rgba(21,154,140,.15); }
.field-row { display:grid; grid-template-columns:1fr 1fr; gap:18px; }

/* Contact info ----------------------------------------------------------- */
.info-item { display:flex; gap:14px; margin-bottom:22px; }
.info-item .ii { width:44px; height:44px; border-radius:10px; flex:none; display:grid; place-items:center; background:var(--navy); color:#fff; font-size:1.2rem; }
.info-item h4 { margin:0 0 2px; }
.info-item p { margin:0; color:var(--muted); }

/* Footer ----------------------------------------------------------------- */
.site-footer { background:#08223e; color:#9fb3c8; padding:64px 0 0; }
.footer-grid { display:grid; grid-template-columns:1.6fr 1fr 1fr 1.3fr; gap:36px; }
.site-footer h4 { color:#fff; font-size:1rem; margin-bottom:16px; }
.site-footer a { color:#9fb3c8; }
.site-footer a:hover { color:#fff; }
.footer-links { list-style:none; padding:0; margin:0; }
.footer-links li { margin-bottom:10px; }
.footer-bottom { border-top:1px solid rgba(255,255,255,.1); margin-top:48px; padding:20px 0; font-size:.86rem; text-align:center; }
.placeholder { color:var(--red); font-style:italic; }
.section--navy .placeholder, .site-footer .placeholder { color:#ffb3b7; }

/* WhatsApp float --------------------------------------------------------- */
.wa-float { position:fixed; right:20px; bottom:20px; z-index:60; background:#25d366; color:#fff; width:56px; height:56px; border-radius:50%; display:grid; place-items:center; font-size:1.6rem; box-shadow:0 8px 24px rgba(37,211,102,.5); }
.wa-float:hover { color:#fff; transform:scale(1.06); }

/* Responsive ------------------------------------------------------------- */
@media (max-width: 960px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav { position:fixed; inset:0 0 0 auto; width:min(78vw,320px); background:#fff; flex-direction:column; align-items:flex-start; padding:90px 28px; gap:18px; box-shadow:-10px 0 40px rgba(0,0,0,.12); transform:translateX(100%); transition:.25s ease; }
  .nav.open { transform:translateX(0); }
  .nav-toggle { display:block; z-index:60; }
  .section { padding:60px 0; }
  .grid--4, .grid--3, .grid--2, .stats, .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .topbar .topbar-contact span { display:block; margin:2px 0; }
}
