/* Industrial Laboratory Equipment Co. — recreation of the original site design */

:root {
  --header-gray: #6e6c6c;
  --charcoal: #3f3d3e;
  --red: #c6221d;
  --red-dark: #a51b17;
  --text: #333333;
  --light-bg: #fbfbfb;
  --border: #c9c9c9;
  --max: 1500px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Roboto", Arial, Helvetica, sans-serif;
  font-size: 18px;
  line-height: 1.75;
  color: var(--text);
  background: #ffffff;
}

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

a { color: var(--red); }
a:hover { color: var(--red-dark); }

/* ---------- Header ---------- */
.site-header {
  background: var(--header-gray);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo img { width: 420px; }

.header-phone {
  color: #ffffff;
  font-size: 30px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  margin-right: 160px;
}
.header-phone:hover { color: #ffffff; text-decoration: underline; }

/* ---------- Navigation ---------- */
.site-nav {
  background: var(--charcoal);
  border-bottom: 3px solid #5a5859;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.site-nav a {
  display: block;
  padding: 26px 19px;
  color: #ffffff;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-size: 19px;
  border-top: 2px solid transparent;
}

.site-nav a:hover { color: #ffffff; border-top-color: #8a8889; }
.site-nav a.active { border-top-color: var(--red); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: #c9c6c8 url("../images/hero.jpg") center top / cover no-repeat;
  min-height: 560px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.hero-banner {
  background: rgba(198, 34, 29, 0.93);
  border: 2px solid #ffffff;
  border-bottom: none;
  color: #ffffff;
  text-align: center;
  width: min(840px, 92%);
  padding: 30px 30px 40px;
  margin-top: 260px;
}

.hero-banner h2 {
  margin: 0 0 22px;
  font-size: 72px;
  line-height: 1.05;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--charcoal);
  color: #ffffff;
  font-weight: 700;
  font-size: 22px;
  text-decoration: none;
  padding: 12px 26px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.4;
}
.btn::after { content: "\203A"; margin-left: 18px; font-size: 1.15em; }
.btn:hover { background: #2b2a2b; color: #ffffff; }
.btn-small { font-size: 17px; padding: 12px 24px; }

/* ---------- Content ---------- */
.content {
  max-width: var(--max);
  margin: 0 auto;
  padding: 110px 200px 80px;
  text-align: center;
}

.content h1,
.content h2,
.contact h2 {
  color: var(--red);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.1;
  margin: 0 0 22px;
}

.content h1 { font-size: 60px; margin-bottom: 36px; }
.content h2 { font-size: 46px; margin-top: 36px; }

.content p { margin: 0 0 18px; font-size: 20px; }

.product-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin: 40px 0 26px;
  justify-items: center;
}
.product-row img { width: 360px; }

.cta-line { font-weight: 700; margin-top: 30px !important; }
.cta-btn { margin-top: 20px; }

/* Testing equipment page */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px;
  margin: 40px 0;
  text-align: left;
}

.category {
  border: 1px solid #e3e3e3;
  border-top: 4px solid var(--red);
  padding: 22px 24px;
  background: #ffffff;
}
.category h3 {
  margin: 0 0 8px;
  font-size: 22px;
  text-transform: uppercase;
  color: var(--charcoal);
}
.category p { font-size: 17px; margin: 0; }

/* ---------- Contact ---------- */
.contact {
  background: var(--light-bg);
  border-top: 1px solid #e6e6e6;
}

.contact-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 110px 200px 120px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact h2 { font-size: 46px; }

.contact-info h3 {
  margin: 0;
  font-size: 21px;
  font-weight: 700;
}
.contact-info p { margin: 0 0 34px; font-size: 21px; }
.contact-info p a { color: inherit; text-decoration: none; }

.contact-form label {
  display: block;
  font-size: 21px;
  margin-bottom: 6px;
}
.contact-form .sublabel { font-size: 17px; margin-top: 4px; }
.req { color: var(--red); }

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  background: #ffffff;
  font-family: inherit;
  font-size: 17px;
  padding: 6px 8px;
}
.contact-form input { height: 35px; }
.contact-form textarea { height: 166px; resize: vertical; }

.field { margin-bottom: 22px; }
.name-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* hidden spam trap */
.hp { position: absolute; left: -9999px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--charcoal);
  color: #ffffff;
  text-align: center;
  padding: 36px 20px 30px;
}
.site-footer .footer-name { font-size: 22px; font-weight: 700; margin: 0 0 36px; }
.site-footer nav a {
  color: #ffffff;
  text-decoration: none;
  margin: 0 19px;
  font-size: 18px;
}
.site-footer nav a:hover { text-decoration: underline; }
.site-footer p { margin: 0; font-size: 17px; line-height: 1.5; }
.site-footer .copyright { font-size: 13px; margin-top: 30px; }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .content, .contact-inner { padding-left: 60px; padding-right: 60px; }
  .header-phone { margin-right: 0; }
}

@media (max-width: 800px) {
  body { font-size: 16px; }
  .header-inner { flex-direction: column; padding: 18px 16px; text-align: center; }
  .logo img { width: 300px; }
  .header-phone { font-size: 24px; }
  .site-nav a { padding: 16px 12px; font-size: 15px; }
  .hero { min-height: 340px; }
  .hero-banner { margin-top: 140px; padding: 20px 16px 28px; }
  .hero-banner h2 { font-size: 38px; }
  .btn { font-size: 18px; }
  .content { padding: 60px 16px 50px; }
  .content h1 { font-size: 34px; }
  .content h2, .contact h2 { font-size: 30px; }
  .content p { font-size: 17px; }
  .product-row { grid-template-columns: 1fr; gap: 24px; }
  .contact-inner { grid-template-columns: 1fr; padding: 60px 16px; gap: 30px; }
  .contact-info p, .contact-form label { font-size: 18px; }
  .site-footer nav a { display: inline-block; margin: 4px 10px; }
}

/* ---------- Testing Equipment page ---------- */
.page-banner {
  height: 300px;
  background: #c9c6c8 url("../images/hero.jpg") center 30% / cover no-repeat;
}

.content.left { text-align: left; padding-top: 90px; }
.content.left h2 { margin-top: 0; }

.product {
  display: grid;
  grid-template-columns: 1fr 411px;
  gap: 60px;
  align-items: start;
  margin: 46px 0 10px;
}
.product.image-left { grid-template-columns: 411px 1fr; align-items: center; }

.dot-list { list-style: none; margin: 0 0 40px; padding: 0; }
.dot-list li { font-size: 20px; line-height: 1.75; padding-left: 14px; position: relative; }
.dot-list li::before { content: "\2022"; position: absolute; left: 0; }

.includes {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0 40px;
  margin-bottom: 46px;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 30px;
}
.spec-grid h3 { font-size: 20px; margin: 0; line-height: 1.75; }
.spec-grid .dot-list { margin: 0; }

.gallery-band {
  background: var(--light-bg);
  border-bottom: 1px solid #e3e3e3;
  padding: 100px 40px 140px;
}
.gallery {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 80px;
  flex-wrap: wrap;
}
.gallery img { width: 360px; }

@media (max-width: 1000px) {
  .product, .product.image-left { grid-template-columns: 1fr; gap: 24px; }
  .product.image-left img { order: 2; }
  .includes { grid-template-columns: 1fr; }
  .spec-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 800px) {
  .page-banner { height: 180px; }
  .content.left { padding-top: 50px; }
  .dot-list li { font-size: 17px; }
  .spec-grid { grid-template-columns: 1fr; }
  .gallery-band { padding: 50px 16px 60px; }
  .gallery { gap: 24px; }
}

/* Catalog cover link */
.product-row { align-items: center; }
.catalog-cover { display: block; transition: transform .15s ease; }
.catalog-cover img {
  width: auto;
  height: 320px;
  border: 1px solid #ddd;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}
.catalog-cover:hover { transform: translateY(-3px); }
@media (max-width: 800px) { .catalog-cover img { height: 280px; } }
.cta-btn + .cta-btn { margin-left: 14px; }
@media (max-width: 800px) { .cta-btn + .cta-btn { margin-left: 0; } .cta-btn { margin-top: 12px; } }

/* Contact form status message */
.form-status { margin: 16px 0 0; font-size: 18px; min-height: 1em; }
.form-status.ok { color: #1e7a34; font-weight: 700; }
.form-status.error { color: var(--red); font-weight: 700; }
.contact-form button[disabled] { opacity: .6; cursor: wait; }
