/* Ontario Custom Chemical Formulations — site styles */
:root {
  --navy: #0e2a3a;
  --navy-2: #123448;
  --teal: #0e7c86;
  --teal-light: #e6f4f5;
  --ink: #1d2b33;
  --muted: #5b6b74;
  --line: #dbe5e9;
  --bg: #f7fafb;
  --white: #ffffff;
  --accent: #d97706;
  --radius: 10px;
  --max: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
}

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

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

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

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--navy);
  border-bottom: 3px solid var(--teal);
}
.nav-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; max-width: var(--max); margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--white); }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 40px; height: 40px; flex: none;
  display: grid; place-items: center;
  background: var(--teal); color: var(--white);
  border-radius: 8px; font-weight: 700; font-size: 15px;
}
.brand-logo {
  width: 40px; height: 40px; flex: none;
  background: var(--white); border-radius: 8px; padding: 3px;
}
.brand-text { line-height: 1.2; }
.brand-text strong { display: block; font-size: 15px; letter-spacing: .2px; }
.brand-text span { font-size: 12px; color: #9fb8c4; }

.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; }
.nav-links a { color: #d7e5ea; font-size: 15px; font-weight: 500; }
.nav-links a:hover { color: var(--white); text-decoration: none; }
.nav-links a.active { color: var(--white); border-bottom: 2px solid var(--teal); padding-bottom: 4px; }
.nav-cta {
  background: var(--teal); color: var(--white) !important;
  padding: 9px 18px; border-radius: 6px; font-weight: 600;
}
.nav-cta:hover { background: #0b6870; }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  color: var(--white); font-size: 26px; line-height: 1;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 55%, #14505a 100%);
  color: var(--white);
  padding: 88px 0 84px;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero h1 { font-size: 42px; line-height: 1.15; margin-bottom: 18px; letter-spacing: -.5px; }
.hero p.lede { font-size: 18px; color: #c6d9e0; max-width: 34em; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-block; padding: 13px 26px; border-radius: 6px;
  font-weight: 600; font-size: 15px; cursor: pointer; border: 0;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--teal); color: var(--white); }
.btn-primary:hover { background: #0b6870; }
.btn-outline { background: transparent; color: var(--white); border: 2px solid #5d7d8c; }
.btn-outline:hover { border-color: var(--white); }

.hero-panel {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius);
  padding: 26px 28px;
}
.hero-panel h2 { font-size: 15px; text-transform: uppercase; letter-spacing: 1.5px; color: #8fc7cd; margin-bottom: 16px; }
.hero-panel ul { list-style: none; }
.hero-panel li {
  padding: 10px 0 10px 30px; position: relative;
  color: #e3eef2; font-size: 15px;
  border-bottom: 1px solid rgba(255,255,255,.09);
}
.hero-panel li:last-child { border-bottom: 0; }
.hero-panel li::before {
  content: ""; position: absolute; left: 2px; top: 16px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--teal);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section.alt { background: var(--bg); }
.section-head { max-width: 46em; margin-bottom: 44px; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.6px;
  color: var(--teal); margin-bottom: 10px;
}
.section-head h2, .section h2 { font-size: 32px; line-height: 1.2; letter-spacing: -.4px; color: var(--navy); margin-bottom: 12px; }
.section-head p { color: var(--muted); font-size: 17px; }

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px 26px;
}
.card:hover { border-color: var(--teal); box-shadow: 0 6px 22px rgba(14,42,58,.07); }
.card-icon {
  width: 48px; height: 48px; border-radius: 10px;
  background: var(--teal-light); color: var(--teal);
  display: grid; place-items: center; margin-bottom: 18px;
}
.card-icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 18px; color: var(--navy); margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15px; }

/* ---------- Spec table ---------- */
.spec-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.spec-table th, .spec-table td { text-align: left; padding: 14px 20px; font-size: 15px; }
.spec-table th { background: var(--navy); color: var(--white); font-weight: 600; }
.spec-table tr:nth-child(even) td { background: var(--bg); }
.spec-table td:first-child { font-weight: 600; color: var(--navy); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; counter-reset: step; }
.step { position: relative; padding: 26px 22px 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--navy); color: var(--white);
  font-weight: 700; margin-bottom: 16px;
}
.step h3 { font-size: 17px; color: var(--navy); margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 14.5px; }

/* ---------- Badges / compliance ---------- */
.badge-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; }
.badge {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--white); border: 1px solid var(--line);
  border-left: 4px solid var(--teal);
  border-radius: var(--radius); padding: 22px;
}
.badge svg { width: 30px; height: 30px; flex: none; color: var(--teal); margin-top: 2px; }
.badge h3 { font-size: 16.5px; color: var(--navy); margin-bottom: 4px; }
.badge p { color: var(--muted); font-size: 14.5px; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--navy); color: var(--white); padding: 64px 0; text-align: center; }
.cta-band h2 { color: var(--white); font-size: 30px; margin-bottom: 12px; }
.cta-band p { color: #b9cdd6; max-width: 38em; margin: 0 auto 26px; }

/* ---------- Page hero (interior pages) ---------- */
.page-hero { background: linear-gradient(135deg, var(--navy), #14505a); color: var(--white); padding: 64px 0; }
.page-hero h1 { font-size: 36px; letter-spacing: -.4px; margin-bottom: 10px; }
.page-hero p { color: #c6d9e0; max-width: 42em; font-size: 17px; }

/* ---------- Two-column ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }

.check-list { list-style: none; }
.check-list li { padding: 8px 0 8px 32px; position: relative; font-size: 15.5px; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 11px;
  width: 18px; height: 18px; border-radius: 50%; background: var(--teal);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.note-box {
  background: var(--teal-light); border: 1px solid #bfe0e3;
  border-radius: var(--radius); padding: 20px 24px;
  font-size: 14.5px; color: #14484e;
}

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font-size: 14px; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
input, select, textarea {
  width: 100%; padding: 12px 14px; font-size: 15px; font-family: inherit;
  border: 1px solid var(--line); border-radius: 6px; background: var(--white); color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--teal); outline-offset: 1px; border-color: var(--teal); }
textarea { min-height: 130px; resize: vertical; }
.form-hint { font-size: 13px; color: var(--muted); margin-top: 6px; }
.form-note { font-size: 13.5px; color: var(--muted); margin-top: 14px; }
.form-status { border-radius: 6px; padding: 14px 18px; font-size: 14.5px; }
.form-status.success { background: #e8f5ec; border: 1px solid #9ed3ad; color: #1e6b3a; }
.form-status.error { background: #fdecea; border: 1px solid #e5a19a; color: #a02c22; }

/* ---------- Contact panel ---------- */
.contact-panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.contact-panel h3 { color: var(--navy); font-size: 17px; margin-bottom: 14px; }
.contact-item { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.contact-item:last-child { border-bottom: 0; }
.contact-item svg { width: 22px; height: 22px; color: var(--teal); flex: none; margin-top: 2px; }
.contact-item strong { display: block; color: var(--navy); font-size: 14px; }
.contact-item span { color: var(--muted); }

.placeholder-flag {
  display: inline-block; background: #fdf3e3; color: #8a5a00;
  border: 1px dashed #e0b25a; border-radius: 4px;
  font-size: 12.5px; padding: 2px 8px; margin-left: 8px; vertical-align: middle;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #a9bfc9; padding: 48px 0 28px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; margin-bottom: 34px; }
.site-footer h4 { color: var(--white); font-size: 15px; margin-bottom: 12px; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #a9bfc9; }
.site-footer a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- Photos ---------- */
.hero-photo {
  margin-top: 44px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 18px 48px rgba(0,0,0,.35);
}
.hero-photo img { width: 100%; height: 340px; object-fit: cover; display: block; }

.photo-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: 0 8px 26px rgba(14,42,58,.08);
}
.photo-card img { width: 100%; height: 240px; object-fit: cover; display: block; }
.photo-card .photo-caption { padding: 18px 22px; }
.photo-card .photo-caption h3 { font-size: 17px; color: var(--navy); margin-bottom: 4px; }
.photo-card .photo-caption p { color: var(--muted); font-size: 14.5px; }

.photo-band { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.inline-photo { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.inline-photo img { width: 100%; height: 300px; object-fit: cover; display: block; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .two-col { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 34px; }
  .photo-band { grid-template-columns: 1fr; }
  .hero-photo img { height: 240px; }
}
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--navy); flex-direction: column; align-items: flex-start;
    padding: 18px 24px 22px; gap: 16px; border-bottom: 3px solid var(--teal);
  }
  .nav-links.open { display: flex; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 60px 0; }
  .section { padding: 52px 0; }
}
