/* Central Chemical, Inc. — site styles */
:root {
  --ink: #0e1a2b;
  --ink-2: #3a4658;
  --muted: #64707f;
  --line: #dfe5ec;
  --bg: #f4f6f9;
  --card: #ffffff;
  --brand: #1e51a4;
  --brand-dark: #143a78;
  --brand-tint: #e8effa;
  --water: #1b9ad6;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(14, 26, 43, .06), 0 8px 24px rgba(14, 26, 43, .06);
  --wrap: 1180px;
  --font: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Barlow Condensed", "Barlow", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-2);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-dark); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; margin: 0 0 .5em; }
h1, h2 { font-family: var(--font-display); font-weight: 700; letter-spacing: .005em; }
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--water); margin-bottom: .75rem;
}
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 62ch; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .8rem 1.3rem; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-outline { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }
.btn svg { width: 18px; height: 18px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.brand img { height: 52px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav > ul { display: flex; list-style: none; margin: 0; padding: 0; gap: 2px; }
.nav li { position: relative; }
.nav a.nav-link, .nav button.nav-link {
  display: block; padding: .55rem .8rem; border-radius: 8px; border: 0; background: none;
  font: inherit; font-weight: 600; font-size: .98rem; color: var(--ink); text-decoration: none; cursor: pointer;
}
.nav a.nav-link:hover, .nav button.nav-link:hover, .nav .active > .nav-link { color: var(--brand); background: var(--brand-tint); }
.nav .caret { display: inline-block; margin-left: 4px; transition: transform .15s; }
.dropdown {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 270px;
  list-style: none; margin: 0; padding: 8px; background: #fff;
  border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(4px); transition: .15s;
}
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown, .has-dropdown.open .dropdown {
  opacity: 1; visibility: visible; transform: none;
}
.dropdown a { display: block; padding: .5rem .75rem; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: .95rem; }
.dropdown a:hover, .dropdown a[aria-current="page"] { background: var(--brand-tint); color: var(--brand); }
.header-phone { white-space: nowrap; }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 8px; cursor: pointer; }
.menu-toggle svg { width: 24px; height: 24px; display: block; }

/* Hero — CSS background: photo + brand gradient + engineered grid */
.hero {
  position: relative; color: #fff; overflow: hidden; isolation: isolate;
  background: #0b1626;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  background-position: center; background-size: cover; background-repeat: no-repeat;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(100deg, rgba(8,20,40,.92) 0%, rgba(12,36,78,.72) 42%, rgba(30,81,164,.18) 100%);
  -webkit-mask-image: linear-gradient(#000, #000);
}
.hero h1, .hero h2 { color: #fff; }
.hero-home { padding: 120px 0 130px; }
.hero-home .lead { color: rgba(255,255,255,.88); font-size: 1.25rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-page { padding: 64px 0 60px; }
.hero-page .lead { color: rgba(255,255,255,.85); }
.crumbs { font-size: .9rem; margin-bottom: .9rem; color: rgba(255,255,255,.7); }
.crumbs a { color: rgba(255,255,255,.85); }

/* Wave edge under hero */
.hero .edge {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 36px; z-index: 0;
  background: var(--bg);
  clip-path: polygon(0 100%, 0 70%, 12% 45%, 30% 75%, 52% 35%, 72% 70%, 88% 40%, 100% 62%, 100% 100%);
}

/* Trust strip */
.trust { position: relative; margin-top: -54px; z-index: 2; }
.trust-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.trust-item { padding: 22px 24px; border-left: 1px solid var(--line); }
.trust-item:first-child { border-left: 0; }
.trust-item strong { display: block; font-family: var(--font-display); font-size: 1.6rem; color: var(--ink); line-height: 1.1; }
.trust-item span { font-size: .92rem; color: var(--muted); }

/* Sections */
.section { padding: 88px 0; }
.section-tight { padding: 64px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 36px; flex-wrap: wrap; }
.section-head p { margin: 0; max-width: 56ch; }
.section-alt {
  background:
    radial-gradient(1200px 400px at 85% -10%, rgba(27,154,214,.10), transparent 60%),
    radial-gradient(900px 380px at 0% 110%, rgba(30,81,164,.10), transparent 60%),
    #fff;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}

/* Category cards */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: inherit;
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #c9d5e6; color: inherit; }
.card-media { aspect-ratio: 3 / 2; overflow: hidden; background: #dfe6ef; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
a.card:hover .card-media img { transform: scale(1.04); }
.card-body { padding: 18px 20px 22px; }
.card-body h3 { margin-bottom: .35rem; }
.card-body p { font-size: .95rem; color: var(--muted); margin: 0; }
.card-more { margin-top: auto; padding: 0 20px 18px; font-weight: 600; color: var(--brand); font-size: .95rem; }

/* Split feature */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.split.reverse > :first-child { order: 2; }
.split-media { border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 3; }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.checks { list-style: none; padding: 0; margin: 1.2rem 0 1.6rem; }
.checks li { position: relative; padding-left: 32px; margin-bottom: .6rem; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .32em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--brand-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%231e51a4' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* Feature tiles */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.tile .icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--brand-tint); color: var(--brand); margin-bottom: 14px;
}
.tile .icon svg { width: 24px; height: 24px; }
.tile p { margin: 0; color: var(--muted); }

/* Product list pages */
.product-layout { display: grid; grid-template-columns: 1fr 300px; gap: 48px; align-items: start; }
.products { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.product {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 20px;
  position: relative;
}
.product::before {
  content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 3px; border-radius: 0 3px 3px 0;
  background: linear-gradient(var(--water), var(--brand));
}
.product h3 { margin-bottom: .3rem; }
.product p { margin: 0; font-size: .97rem; color: var(--ink-2); }
.product.simple { padding: 18px 22px; }
.product.simple h3 { margin: 0; font-size: 1.08rem; }
.intro-note { background: var(--brand-tint); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 24px; color: var(--ink); }
.aside { position: sticky; top: 100px; display: grid; gap: 16px; }
.aside-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.aside-card .pad { padding: 20px; }
.aside-card h3 { font-size: 1.05rem; }
.aside-nav { list-style: none; margin: 0; padding: 8px; }
.aside-nav a { display: block; padding: .45rem .7rem; border-radius: 8px; text-decoration: none; color: var(--ink-2); font-size: .95rem; }
.aside-nav a:hover { background: var(--bg); color: var(--brand); }
.aside-nav a[aria-current="page"] { background: var(--brand-tint); color: var(--brand); font-weight: 600; }
.pill-list { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.pill-list li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .45rem .95rem; font-size: .95rem; color: var(--ink); }

/* Prose (terms) */
.prose { max-width: 78ch; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 40px 44px; }
.prose h2 { font-size: 1.6rem; margin-top: 1.2em; }
.prose h2:first-child { margin-top: 0; }
.prose ol { padding-left: 1.2rem; }
.prose li { margin-bottom: 1rem; }
.prose .caps { font-size: .9rem; letter-spacing: .01em; }

/* CTA band */
.cta {
  position: relative; overflow: hidden; border-radius: 22px; color: #fff; padding: 52px 56px;
  background:
    radial-gradient(600px 260px at 100% 0%, rgba(27,154,214,.55), transparent 70%),
    linear-gradient(120deg, #0f2b5c, var(--brand));
  display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
}
.cta::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px) 0 0 / 36px 36px,
    linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px) 0 0 / 36px 36px;
  -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000);
  mask-image: linear-gradient(90deg, transparent 30%, #000);
}
.cta h2 { color: #fff; margin-bottom: .25em; }
.cta p { margin: 0; color: rgba(255,255,255,.85); }
.cta .hero-actions { margin-top: 0; position: relative; z-index: 1; }
.cta .btn-primary { background: #fff; color: var(--brand-dark); }
.cta .btn-primary:hover { background: #eaf1fc; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: start; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .92rem; color: var(--ink); margin-bottom: 6px; }
.field .req { color: #c0392b; }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: .7rem .85rem; border: 1px solid #cdd6e1; border-radius: 10px; background: #fbfcfe;
}
.field input:focus, .field textarea:focus { outline: 2px solid rgba(30,81,164,.25); border-color: var(--brand); background: #fff; }
.field textarea { min-height: 150px; resize: vertical; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { display: none; padding: 14px 16px; border-radius: 10px; margin-bottom: 16px; font-weight: 500; }
.form-status.ok { display: block; background: #e7f6ec; color: #17603a; border: 1px solid #b9e3c8; }
.form-status.err { display: block; background: #fdecec; color: #8a1f1f; border: 1px solid #f3c2c2; }
.info-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.info-list { list-style: none; margin: 0; padding: 24px; display: grid; gap: 18px; }
.info-list li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; }
.info-list .icon { width: 40px; height: 40px; border-radius: 10px; background: var(--brand-tint); color: var(--brand); display: grid; place-items: center; }
.info-list .icon svg { width: 20px; height: 20px; }
.info-list strong { display: block; color: var(--ink); }
.map { border: 0; width: 100%; height: 280px; display: block; filter: grayscale(.2); }

/* Footer */
.site-footer {
  margin-top: 0; color: rgba(255,255,255,.75);
  background:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 40px 40px,
    #0b1626;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-top: 64px; padding-bottom: 40px; }
.site-footer h4 { color: #fff; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .45rem; }
.site-footer a { color: rgba(255,255,255,.8); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-logo { background: #fff; display: inline-block; padding: 10px 14px; border-radius: 10px; margin-bottom: 16px; }
.footer-logo img { height: 44px; width: auto; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; padding-bottom: 28px; font-size: .9rem; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* 404 */
.notfound { text-align: center; padding: 120px 0; }

/* Responsive */
@media (max-width: 900px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .menu-toggle { display: block; }
  .header-phone { display: none; }
  .nav {
    position: fixed; inset: 76px 0 auto 0; background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: 12px 16px 20px; max-height: calc(100vh - 76px); overflow: auto;
    display: none; box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav > ul { flex-direction: column; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 12px; display: none; min-width: 0; }
  .has-dropdown.open .dropdown { display: block; }
  .has-dropdown:hover .dropdown { display: none; }
  .has-dropdown.open:hover .dropdown { display: block; }
  .nav .mobile-call { display: block; margin-top: 12px; text-align: center; justify-content: center; }
  .split, .product-layout, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .split.reverse > :first-child { order: 0; }
  .aside { position: static; grid-template-columns: 1fr 1fr; align-items: start; }
  .aside-card.media { display: none; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .trust-item:nth-child(3) { border-left: 0; }
  .trust-item:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (min-width: 961px) { .nav .mobile-call { display: none; } }
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .header-inner { height: 68px; }
  .nav { inset: 68px 0 auto 0; }
  .brand img { height: 44px; }
  .hero-home { padding: 80px 0 100px; }
  .section { padding: 64px 0; }
  .cards, .tiles, .products, .form-row, .aside { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr 1fr; gap: 12px; }
  .trust-item { padding: 16px; }
  .trust-item strong { font-size: 1.25rem; }
  .trust-item span { font-size: .85rem; }
  .hero-home h1 br { display: none; }
  .card-body { padding: 14px; }
  .card-body p { display: none; }
  .card-more { display: none; }
  .cta { padding: 36px 24px; }
  .prose { padding: 26px 20px; }
  .form-card { padding: 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
