/* ChemVerto homepage styles (navy / teal / white). Loaded after bootstrap.css. */
:root {
  --navy-900: #061a33;
  --navy-800: #0b2545;
  --navy-700: #13315c;
  --teal-700: #0b6f6c;   /* buttons / text on white: 6:1 contrast with white */
  --teal-600: #0e8480;
  --teal-300: #5eead4;   /* accents on dark navy */
  --teal-050: #e8f6f5;
  --ink: #1b2b3f;
  --muted: #4a5b70;
  --line: #d9e3ec;
  --bg-soft: #f4f8fb;
  --white: #ffffff;
  --radius: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 120px; }
body {
  font-family: "Open Sans", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
h1, h2, h3 { color: var(--navy-800); line-height: 1.25; font-weight: 700; }
a { color: var(--teal-700); }
a:hover { color: var(--navy-800); }
:focus-visible { outline: 3px solid var(--teal-600); outline-offset: 2px; }

.icon { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--navy-800); color: #fff; padding: 10px 16px; z-index: 2000; }
.skip-link:focus { left: 8px; top: 8px; color: #fff; }

/* ---------- buttons ---------- */
.btn-quote, .btn-ghost {
  display: inline-block; font-weight: 700; font-size: 15px; line-height: 1.2;
  padding: 12px 22px; border-radius: 6px; border: 2px solid var(--teal-700);
  text-decoration: none; text-align: center; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn-quote { background: var(--teal-700); color: #fff; }
.btn-quote:hover, .btn-quote:focus { background: var(--navy-800); border-color: var(--navy-800); color: #fff; text-decoration: none; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .85); }
.btn-ghost:hover, .btn-ghost:focus { background: #fff; color: var(--navy-800); border-color: #fff; text-decoration: none; }
.btn-lg-cta { padding: 14px 28px; font-size: 16px; }
button.btn-quote:disabled { opacity: .7; cursor: not-allowed; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 1000; background: #fff; box-shadow: 0 2px 10px rgba(6, 26, 51, .12); }
.topbar { background: var(--navy-800); font-size: 14px; }
.topbar .container { display: flex; justify-content: flex-end; padding-top: 7px; padding-bottom: 7px; }
.topbar a { color: #fff; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.topbar a:hover { color: var(--teal-300); }
.topbar .icon { width: 16px; height: 16px; color: var(--teal-300); }

.site-nav { padding: 8px 0; }
.navbar-brand { display: flex; align-items: center; gap: 12px; padding: 0; margin-right: 1rem; flex: 0 1 auto; min-width: 0; }
.site-nav .navbar-toggler { margin-left: auto; flex: none; }
.navbar-brand span { font-size: 1.15rem; font-weight: 700; color: var(--navy-800); line-height: 1.2; }
.navbar-logo { width: 70px; height: 60px; object-fit: contain; }
.site-nav .nav-link { color: var(--navy-800); font-weight: 600; font-size: 15px; padding: .5rem .9rem; border-bottom: 2px solid transparent; }
.site-nav .nav-link:hover { color: var(--teal-700); }
.site-nav .nav-item.active .nav-link { color: var(--teal-700); border-bottom-color: var(--teal-700); }
.site-nav .nav-cta { margin-left: .5rem; }
.site-nav .nav-cta .btn-quote { padding: 10px 18px; white-space: nowrap; }
.site-nav .navbar-toggler { border: 1px solid var(--line); padding: .4rem .6rem; }
.site-nav .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='%230b2545' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ---------- hero ---------- */
.hero { position: relative; background: var(--navy-900); color: #fff; margin: 0; }
.hero-media { position: relative; margin: 0; }
.hero-media img { display: block; width: 100%; height: auto; }
.hero-media figcaption { font-size: 12px; color: #c4d3e3; padding: 6px 16px 10px; text-align: right; }
.hero-content { padding: 40px 0 28px; }
.hero-text { max-width: 640px; }
.eyebrow { color: var(--teal-300); font-weight: 700; letter-spacing: .04em; font-size: 15px; margin: 0 0 12px; }
.hero h1 { color: #fff; font-size: 2rem; margin: 0 0 16px; }
.lead-copy { color: #dbe6f1; font-size: 1rem; margin: 0 0 24px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* desktop: text sits over the quiet left side of the image, model stays visible on the right */
@media (min-width: 1100px) {
  .hero { display: flex; justify-content: flex-end; }
  .hero-media { width: 100%; max-width: 1600px; }
  .hero-media::before { /* fade the image's left edge into the section colour on very wide screens */
    content: ""; position: absolute; inset: 0 auto 0 0; width: 12%;
    background: linear-gradient(to right, var(--navy-900), rgba(6, 26, 51, 0)); pointer-events: none;
  }
  .hero-media figcaption { position: absolute; right: 16px; bottom: 10px; padding: 3px 8px; background: rgba(6, 26, 51, .65); border-radius: 4px; }
  .hero-content { position: absolute; inset: 0; z-index: 2; padding: 0; display: flex; align-items: center; pointer-events: none;
    background: linear-gradient(to right, rgba(6, 26, 51, .55) 0%, rgba(6, 26, 51, .25) 38%, rgba(6, 26, 51, 0) 55%); }
  .hero-text { max-width: 35%; pointer-events: auto; }
  .hero h1 { font-size: clamp(1.9rem, 2.9vw, 2.9rem); }
  .lead-copy { font-size: clamp(.9rem, 1.05vw, 1.05rem); }
  /* header and hero share the same left/right gutters so the logo and headline line up */
  .site-header .container, .hero-content .container { max-width: 1600px; width: 100%; padding-left: 5%; padding-right: 5%; }
}
@media (min-width: 1100px) and (max-width: 1299px) {
  .hero-text { max-width: 38%; }
  .hero h1 { font-size: 1.9rem; margin-bottom: 12px; }
  .lead-copy { font-size: .9rem; margin-bottom: 16px; }
  .hero-actions { gap: 10px; }
  .hero-actions .btn-lg-cta { padding: 11px 18px; font-size: 14px; }
}

/* ---------- sections ---------- */
.section { padding: 80px 0; }
.section-head { max-width: 760px; margin: 0 auto 44px; text-align: center; }
.section-head h2 { font-size: 2rem; margin-bottom: 12px; }
.section-head h2::after { content: ""; display: block; width: 56px; height: 4px; background: var(--teal-600); border-radius: 2px; margin: 14px auto 0; }
.section-head p { color: var(--muted); margin: 0; font-size: 1.05rem; }

.icon-badge { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 12px; background: var(--teal-050); color: var(--teal-700); margin-bottom: 18px; }
.icon-badge .icon { width: 28px; height: 28px; }

/* services */
.services { background: var(--bg-soft); }
.card-service { display: flex; flex-direction: column; width: 100%; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--teal-600); border-radius: var(--radius); padding: 28px 26px; margin-bottom: 28px; transition: box-shadow .2s, transform .2s; }
.card-service:hover { box-shadow: 0 10px 28px rgba(11, 37, 69, .12); transform: translateY(-3px); }
.card-service h3 { font-size: 1.15rem; margin: 0 0 10px; }
.card-service p { color: var(--muted); font-size: .95rem; flex: 1 1 auto; margin: 0 0 18px; }
.card-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .92rem; color: var(--teal-700); text-decoration: none; }
.card-link:hover { color: var(--navy-800); }
.card-link .icon { width: 16px; height: 16px; transition: transform .2s; }
.card-link:hover .icon { transform: translateX(4px); }

/* about */
.about h2 { font-size: 2rem; margin-bottom: 18px; }
.about p { color: var(--muted); }
.about .btn-quote { margin-top: 10px; }
.about-img { border-radius: var(--radius); box-shadow: 0 12px 30px rgba(11, 37, 69, .18); display: block; margin: 0 auto; max-height: 520px; width: auto; max-width: 100%; object-fit: cover; }

/* why */
.why { background: var(--navy-800); }
.why .section-head h2 { color: #fff; }
.why .section-head h2::after { background: var(--teal-300); }
.why-item { width: 100%; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius); padding: 26px 22px; margin-bottom: 24px; }
.why-item .icon-badge { background: rgba(94, 234, 212, .14); color: var(--teal-300); }
.why-item h3 { color: #fff; font-size: 1.1rem; margin: 0 0 8px; }
.why-item p { color: #cfdbe8; font-size: .95rem; margin: 0; }

/* enquiry */
.enquiry { background: var(--bg-soft); }
.enquiry-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: 0 10px 30px rgba(11, 37, 69, .08); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .92rem; color: var(--navy-800); margin-bottom: 6px; }
.field .req { color: #b42318; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: #fff; border: 1px solid #aebccb; border-radius: 6px; padding: 11px 13px; min-height: 46px; }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--teal-600); outline: 3px solid rgba(14, 132, 128, .25); outline-offset: 0; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #b42318; }
.field-error { display: block; color: #b42318; font-size: .85rem; margin-top: 4px; min-height: 0; }
.form-status { border-radius: 8px; padding: 14px 16px; margin-bottom: 20px; font-weight: 600; }
.form-status.is-success { background: #e6f6ec; color: #0b5a2b; border: 1px solid #9fd7b3; }
.form-status.is-error { background: #fdecea; color: #8a1c14; border: 1px solid #f1aaa4; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-900); color: #cfdbe8; padding: 56px 0 24px; font-size: .95rem; }
.footer-brand { color: #fff; font-weight: 700; font-size: 1.15rem; margin-bottom: 10px; }
.footer-title { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; overflow-wrap: anywhere; }
.site-footer a { color: #cfdbe8; text-decoration: none; }
.site-footer a:hover { color: var(--teal-300); text-decoration: underline; }
.copyright { border-top: 1px solid rgba(255, 255, 255, .15); margin: 36px 0 0; padding-top: 20px; font-size: .85rem; color: #9fb1c5; }

/* ---------- responsive ---------- */
@media (max-width: 991.98px) {
  .site-nav .navbar-nav { padding: 12px 0 8px; }
  .site-nav .nav-item.active .nav-link { border-bottom-color: transparent; }
  .site-nav .nav-cta { margin: 10px 0 4px; }
  .site-nav .nav-cta .btn-quote { display: block; }
  .section { padding: 60px 0; }
}
@media (max-width: 575.98px) {
  .navbar-brand { flex: 1 1 0; gap: 8px; }
  .navbar-brand span { font-size: .9rem; }
  .navbar-logo { width: 54px; height: 46px; }
  .topbar .container { justify-content: center; }
  .hero h1 { font-size: 1.75rem; }
  .hero-actions .btn-lg-cta { width: 100%; }
  .section-head h2, .about h2 { font-size: 1.6rem; }
  .enquiry-form { padding: 22px 18px; }
  .enquiry-form .btn-quote { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ---------- inner pages (About / Services / Contact) ---------- */
.page-hero { background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 60%, var(--navy-700) 100%); color: #fff; padding: 64px 0 56px; }
.page-hero h1 { color: #fff; font-size: 2.4rem; margin: 0 0 16px; max-width: 900px; }
.page-hero p { color: #dbe6f1; font-size: 1.08rem; max-width: 860px; margin: 0; }

.service-jump { margin-top: 28px; }
.service-jump ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.service-jump a { display: inline-block; padding: 8px 14px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px; color: #fff; font-size: .88rem; font-weight: 600; text-decoration: none; transition: background-color .2s, color .2s; }
.service-jump a:hover, .service-jump a:focus { background: #fff; color: var(--navy-800); text-decoration: none; }

.service-detail { background: #fff; }
.service-detail.alt, .about-block.alt { background: var(--bg-soft); }
.service-detail h2 { font-size: 1.7rem; margin-bottom: 14px; }
.service-intro { color: var(--muted); font-size: 1.02rem; }
.detail-panel { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--teal-600); border-radius: var(--radius); padding: 28px 30px; }
.detail-panel h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--teal-700); margin: 22px 0 8px; }
.detail-panel h3:first-child { margin-top: 0; }
.detail-panel p { color: var(--ink); margin: 0; }
.detail-panel .btn-quote { margin-top: 26px; }
.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li { position: relative; padding-left: 28px; margin-bottom: 8px; }
.check-list li::before { content: ""; position: absolute; left: 0; top: .5em; width: 14px; height: 8px; border-left: 3px solid var(--teal-600); border-bottom: 3px solid var(--teal-600); transform: rotate(-45deg) translateY(-50%); }

.about-block { background: #fff; padding: 64px 0; }
.prose h2 { font-size: 1.8rem; margin-bottom: 14px; }
.prose p { color: var(--muted); font-size: 1.08rem; margin: 0; max-width: 860px; }
.cta-band { background: var(--navy-800); color: #fff; text-align: center; padding: 64px 0; }
.cta-band h2 { color: #fff; font-size: 1.6rem; max-width: 820px; margin: 0 auto 26px; }

.contact-main { background: var(--bg-soft); }
.contact-card { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--teal-600); border-radius: var(--radius); padding: 28px 26px; }
.contact-card h2 { margin: 0 0 20px; }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 20px; overflow-wrap: anywhere; }
.contact-list li:last-child { margin-bottom: 0; }
.icon-badge.sm { width: 42px; height: 42px; margin: 0; border-radius: 10px; }
.icon-badge.sm .icon { width: 22px; height: 22px; }
.form-heading { font-size: 1.5rem; margin: 0 0 18px; }

@media (max-width: 575.98px) {
  .page-hero { padding: 44px 0 40px; }
  .page-hero h1 { font-size: 1.75rem; }
  .detail-panel { padding: 22px 18px; }
  .detail-panel .btn-quote { display: block; }
  .cta-band .btn-quote { width: 100%; }
  .cta-band h2 { font-size: 1.3rem; }
}

/* ---------- Day 3: breadcrumbs, service pages, FAQ, blog, legal, 404 ---------- */
.breadcrumb-bar { background: var(--bg-soft); border-bottom: 1px solid var(--line); font-size: .88rem; }
.breadcrumb-list { list-style: none; margin: 0; padding: 10px 0; display: flex; flex-wrap: wrap; gap: 2px 0; color: var(--navy-800); }
.breadcrumb-list li + li::before { content: "\203A"; margin: 0 .55em; color: var(--muted); }
.breadcrumb-list a { color: var(--teal-700); text-decoration: none; font-weight: 600; }
.breadcrumb-list a:hover, .breadcrumb-list a:focus { text-decoration: underline; color: var(--navy-800); }
.breadcrumb-list li[aria-current] { font-weight: 600; overflow-wrap: anywhere; }

.btn-outline { display: inline-block; font-weight: 700; font-size: 15px; line-height: 1.2; padding: 12px 22px; border-radius: 6px; border: 2px solid var(--teal-700); background: transparent; color: var(--teal-700); text-decoration: none; text-align: center; transition: background-color .2s, color .2s; }
.btn-outline:hover, .btn-outline:focus { background: var(--teal-700); color: #fff; text-decoration: none; }
.btn-outline.btn-lg-cta { padding: 14px 28px; font-size: 16px; }
.panel-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.panel-actions .btn-quote { margin-top: 0; }
.card-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }

.service-hero .icon-badge { background: rgba(94, 234, 212, .14); color: var(--teal-300); }
.service-hero .hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-figure { margin: 0; }
.hero-figure img { display: block; width: 100%; height: auto; border-radius: var(--radius); box-shadow: 0 12px 30px rgba(0, 0, 0, .35); }
.hero-figure figcaption { font-size: 12px; color: #c4d3e3; padding-top: 8px; text-align: right; }

.section.alt { background: var(--bg-soft); }
.card-service.static:hover { box-shadow: none; transform: none; }
.card-service.static p { margin-bottom: 0; }

.process-steps { list-style: none; counter-reset: step; margin: 0 auto; padding: 0; max-width: 820px; }
.process-steps li { counter-increment: step; position: relative; padding: 0 0 26px 70px; }
.process-steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 46px; height: 46px; border-radius: 50%; background: var(--teal-700); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.process-steps li:not(:last-child)::after { content: ""; position: absolute; left: 22px; top: 50px; bottom: 4px; width: 2px; background: var(--line); }
.process-steps h3 { font-size: 1.1rem; margin: 8px 0 6px; }
.process-steps p { color: var(--muted); margin: 0; }

.detail-panel .check-list + p { margin-top: 16px; }
.note-box { background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--teal-600); border-radius: var(--radius); padding: 26px 28px; }
.note-box h2 { font-size: 1.3rem; margin: 0 0 10px; }
.note-box p { margin: 0; color: var(--ink); }

.faq-list { max-width: 860px; margin: 0 auto; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; }
.faq.alt .faq-item { background: #fff; }
.faq-item summary { cursor: pointer; list-style: none; padding: 16px 52px 16px 20px; font-weight: 700; color: var(--navy-800); position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--teal-700); line-height: 1; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { margin: 0; padding: 0 20px 18px; color: var(--muted); }
.faq-item summary:focus-visible { outline: 3px solid var(--teal-600); outline-offset: -3px; border-radius: var(--radius); }

.cta-band h2.has-text { margin-bottom: 12px; }
.cta-band p { color: #dbe6f1; max-width: 720px; margin: 0 auto 26px; }
.related-links { background: #fff; padding: 22px 0; border-top: 1px solid var(--line); font-size: .95rem; }
.related-links p { margin: 0; color: var(--muted); }

.legal-text { max-width: 860px; margin: 0 auto; }
.legal-text h2 { font-size: 1.4rem; margin: 34px 0 12px; }
.legal-text h2:first-child { margin-top: 0; }
.legal-text h3 { font-size: 1.05rem; margin: 22px 0 8px; }
.legal-text p, .legal-text li { color: var(--ink); }
.legal-text ul { padding-left: 1.3rem; }

.blog-list { background: var(--bg-soft); min-height: 320px; }
.empty-state { max-width: 680px; margin: 0 auto; text-align: center; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--teal-600); border-radius: var(--radius); padding: 40px 28px; }
.empty-state h2 { font-size: 1.5rem; }
.empty-state p { color: var(--muted); }
.post-date { font-size: .85rem; color: var(--muted); margin: 0 0 8px; }
.card-service h3 a { color: var(--navy-800); text-decoration: none; }
.card-service h3 a:hover { color: var(--teal-700); }
.post-wrap { max-width: 780px; margin: 0 auto; }
.post-wrap h1 { font-size: 2.2rem; margin-bottom: 24px; }
.post-body { font-size: 1.08rem; }
.post-body h2 { font-size: 1.5rem; margin: 36px 0 12px; }
.post-body h3 { font-size: 1.2rem; margin: 26px 0 10px; }
.post-body p, .post-body li { color: var(--ink); }
.post-body img { border-radius: var(--radius); margin: 18px 0; }
.post-body table { width: 100%; border-collapse: collapse; margin: 18px 0; display: block; overflow-x: auto; }
.post-body th, .post-body td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }

.error-page { text-align: center; padding: 100px 0; }
.error-code { font-size: 6rem; font-weight: 700; line-height: 1; color: var(--teal-600); margin: 0 0 10px; }
.error-page h1 { font-size: 2rem; margin-bottom: 12px; }
.error-page p { color: var(--muted); }
.error-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 26px; }

.faq { background: #fff; }
@media (max-width: 575.98px) {
  .process-steps li { padding-left: 58px; }
  .process-steps li::before { width: 40px; height: 40px; }
  .process-steps li:not(:last-child)::after { left: 19px; top: 44px; }
  .service-hero .hero-actions .btn-lg-cta, .error-actions a { width: 100%; }
  .panel-actions a { display: block; width: 100%; }
  .post-wrap h1 { font-size: 1.7rem; }
  .error-code { font-size: 4.5rem; }
  .note-box { padding: 22px 18px; }
}
.contact-card h2 { font-weight: 700; }
.form-note { margin: 18px 0 0; font-size: .88rem; color: var(--muted); line-height: 1.55; }
.hero-figure img { background: #061a33; }
