/* Hawkins Scientific — modern site stylesheet
   Replaces legacy WordPress-theme-era CSS/JS. No external dependencies. */

:root {
  --navy: #1a3a5c;
  --navy-dark: #122943;
  --teal: #2a9d8f;
  --teal-dark: #21867a;
  --ink: #2d3436;
  --gray: #5a6a74;
  --light: #f5f7f9;
  --border: #e1e7ea;
  --white: #ffffff;
  --radius: 6px;
  --shadow: 0 2px 10px rgba(26, 58, 92, 0.08);
  --shadow-lg: 0 8px 30px rgba(26, 58, 92, 0.14);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

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

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3, h4 { color: var(--navy); line-height: 1.25; margin: 0 0 16px; }
h1 { font-size: 2.2rem; }
h2 { font-size: 1.6rem; margin-top: 2.2rem; }
h3 { font-size: 1.25rem; margin-top: 1.6rem; }
p { margin: 0 0 16px; }
ul { margin: 0 0 16px; padding-left: 22px; }

/* ---------- Top utility bar ---------- */
.top-bar {
  background: var(--navy-dark);
  color: #cfe0ec;
  font-size: 0.88rem;
}
.top-bar .container {
  display: flex;
  justify-content: flex-end;
  gap: 24px;
  padding-top: 7px;
  padding-bottom: 7px;
}
.top-bar a { color: #cfe0ec; }
.top-bar a:hover { color: var(--white); }

/* ---------- Header ---------- */
header.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 20px;
}
.logo img { height: 46px; width: auto; }

nav.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 2px;
  align-items: center;
}
nav.main-nav > ul > li { position: relative; }
nav.main-nav > ul > li > a {
  display: block;
  padding: 10px 12px;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.93rem;
  border-radius: var(--radius);
  white-space: nowrap;
}
nav.main-nav > ul > li > a:hover,
nav.main-nav > ul > li.active > a {
  background: var(--light);
  text-decoration: none;
  color: var(--teal-dark);
}
nav.main-nav .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 220px;
  padding: 6px;
  list-style: none;
  margin: 4px 0 0;
}
nav.main-nav li:hover > .sub-menu { display: block; }
nav.main-nav .sub-menu li a {
  display: block;
  padding: 9px 12px;
  border-radius: 4px;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 400;
}
nav.main-nav .sub-menu li a:hover { background: var(--light); text-decoration: none; }

.header-cta {
  display: flex;
  align-items: center;
  gap: 14px;
}
.header-phone {
  font-weight: 700;
  color: var(--navy);
  font-size: 1.02rem;
  white-space: nowrap;
}
.header-phone span { display: block; font-size: 0.72rem; font-weight: 400; color: var(--gray); }

.btn {
  display: inline-block;
  background: var(--teal);
  color: var(--white);
  padding: 11px 20px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.93rem;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { background: var(--teal-dark); color: var(--white); text-decoration: none; }
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}
.btn-outline:hover { background: var(--white); color: var(--navy); }
.btn-lg { padding: 14px 28px; font-size: 1.02rem; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 10px;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  padding: 64px 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero h1 { color: var(--white); font-size: 2.5rem; margin-bottom: 14px; }
.hero .eyebrow {
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #7fd8c9;
  margin-bottom: 10px;
}
.hero p.lead { font-size: 1.12rem; color: #d9e6ee; margin-bottom: 26px; max-width: 54ch; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-image img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.hero-trust {
  margin-top: 30px;
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  color: #b9cedb;
  font-size: 0.9rem;
}
.hero-trust strong { color: var(--white); display: block; font-size: 1.4rem; }

/* ---------- Page header (interior pages) ---------- */
.page-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  padding: 40px 0;
}
.page-header h1 { color: var(--white); margin: 0; }
.page-header .breadcrumb { color: #aac3d4; font-size: 0.88rem; margin-bottom: 8px; }
.page-header .breadcrumb a { color: #cfe0ec; }

/* ---------- Sections ---------- */
section { padding: 56px 0; }
section.alt { background: var(--light); }
.section-head { max-width: 680px; margin: 0 auto 36px; text-align: center; }
.section-head h2 { margin-top: 0; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
.card h3 { margin-top: 0; }
.card img { border-radius: 4px; margin-bottom: 14px; }

/* ---------- Service/product strip ---------- */
.service-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.service-strip a {
  display: block;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 12px;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.92rem;
}
.service-strip a:hover {
  border-color: var(--teal);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--teal-dark);
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--teal);
  color: var(--white);
  padding: 44px 0;
  text-align: center;
}
.cta-band h2 { color: var(--white); margin: 0 0 10px; }
.cta-band p { color: #e3f5f1; margin-bottom: 22px; }
.cta-band .btn { background: var(--white); color: var(--teal-dark); }
.cta-band .btn:hover { background: var(--navy); color: var(--white); }

/* ---------- Testimonial ---------- */
.testimonial {
  border-left: 4px solid var(--teal);
  padding: 18px 24px;
  background: var(--light);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--ink);
}
.testimonial cite {
  display: block;
  margin-top: 10px;
  font-style: normal;
  font-weight: 700;
  color: var(--navy);
  font-size: 0.92rem;
}

/* ---------- Form ---------- */
.form-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.form-row { margin-bottom: 18px; }
.form-row label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
  margin-bottom: 6px;
}
.form-row .req { color: #c0392b; }
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.96rem;
  font-family: inherit;
  color: var(--ink);
  background: var(--white);
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: 2px solid var(--teal);
  outline-offset: 1px;
  border-color: var(--teal);
}
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-note { font-size: 0.84rem; color: var(--gray); margin-top: 10px; }
.hp-field { position: absolute; left: -9999px; top: -9999px; }

.alert {
  padding: 16px 18px;
  border-radius: var(--radius);
  margin-bottom: 22px;
  font-weight: 600;
}
.alert-success { background: #e6f7f2; color: #1b6e5c; border: 1px solid #b8e6d8; }
.alert-error { background: #fdecea; color: #a0342a; border: 1px solid #f3c6c1; }

/* ---------- Contact info cards ---------- */
.contact-info-list { list-style: none; margin: 0; padding: 0; }
.contact-info-list li {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.contact-info-list li:last-child { border-bottom: none; }
.contact-info-list .label { color: var(--gray); font-size: 0.85rem; min-width: 70px; }

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--navy-dark);
  color: #b9cedb;
  padding: 44px 0 24px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 30px;
}
footer.site-footer h4 { color: var(--white); font-size: 1rem; margin-bottom: 14px; }
footer.site-footer ul { list-style: none; padding: 0; margin: 0; }
footer.site-footer li { margin-bottom: 8px; font-size: 0.9rem; }
footer.site-footer a { color: #b9cedb; }
footer.site-footer a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 18px;
  font-size: 0.82rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  color: #8ba7b8;
}
.footer-bottom a { color: #8ba7b8; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .service-strip { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  nav.main-nav { display: none; }
  .nav-toggle { display: inline-block; }
  nav.main-nav.open {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    padding: 10px;
  }
  nav.main-nav.open ul { flex-direction: column; align-items: stretch; }
  nav.main-nav.open .sub-menu { position: static; box-shadow: none; display: block; border: none; padding-left: 14px; }
  .header-phone { display: none; }
  .top-bar .container { justify-content: center; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .service-strip { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 22px; }
  .hero h1 { font-size: 1.8rem; }
  h1 { font-size: 1.7rem; }
}
