/* ============================================================
   style.css — shared styles for ALL Torqsense pages
   Change something here and it updates on every page.
   ============================================================ */

/* --- Brand settings: change these once to affect everything --- */
:root {
  --brand-blue: #1240a8;
  --heading-size: 40px;
  --sidebar-width: 200px;
}

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

body {
  font-family: Arial, Helvetica, sans-serif;
  background: #f2f2f2;   /* very light grey */
  color: var(--brand-blue);
  text-align: center;
}

/* --- Sticky footer: keeps footer at the bottom on short pages --- */
html, body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
}

.layout {
  flex: 1;   /* grows to fill any spare space, pushing the footer down */
}

footer {
  flex-shrink: 0;
}


/* --- Layout: sidebar flush left + main content --- */
.layout { display: flex; }

.sidebar {
  width: var(--sidebar-width);
  flex-shrink: 0;
  text-align: left;
  padding: 40px 15px;
  border-right: 2px solid var(--brand-blue);
}

.sidebar h2 {
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--brand-blue);
}

.sidebar ul { list-style: none; }
.sidebar li { margin-bottom: 5px; }

.sidebar a {
  display: block;
  padding: 10px 12px;
  color: var(--brand-blue);
  text-decoration: none;
  font-size: 18px;
  font-weight: bold;
  border-radius: 6px;
}

.sidebar a:hover,
.sidebar a.active {
  background: var(--brand-blue);
  color: #ffffff;
}

/* --- Main content area --- */
.page {
  flex: 1;
  padding: 30px 40px 50px;
  text-align: left;
}

.logo {
  width: 300px;
  max-width: 80%;
  margin: 0 auto 30px;
  display: block;
}

h1 {
  font-size: var(--heading-size);
  font-weight: bold;
  margin-bottom: 10px;
}

.intro {
  color: #333333;
  font-size: 15px;
  margin-bottom: 30px;
}

/* --- Footer --- */
footer {
  background: var(--brand-blue);
  color: #ffffff;
  text-align: left;
  padding: 35px 0;
}

.footer-inner {
  padding: 0 30px;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  font-size: 12px;
  font-weight: bold;
  line-height: 1.6;
}

.footer-right p { margin-bottom: 25px; }
.footer-right p:last-child { margin-bottom: 0; }

footer a { color: #ffffff; text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* ============================================================
   HOME PAGE (index.html)
   ============================================================ */

.page.home {
  text-align: center;
  padding: 30px 20px 50px;
}

.home .logo {
  width: 380px;
  margin: 0 auto 40px;
}

.main {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
  margin-bottom: 50px;
}

.main h1 {
  font-size: 56px;
  line-height: 1.15;
  text-align: center;
  margin-bottom: 0;
}

.product {
  width: 270px;
  max-width: 80%;
}

.enquiries {
  font-size: 28px;
  font-weight: bold;
  line-height: 1.4;
  margin-bottom: 35px;
}

.enquiries a {
  color: var(--brand-blue);
  text-decoration: none;
}

.enquiries a:hover { text-decoration: underline; }

.coming-soon {
  font-size: 30px;
  font-weight: bold;
}

/* ============================================================
   CONTACT PAGE (contact.html)
   ============================================================ */

form { max-width: 560px; }

.field { margin-bottom: 22px; }

.field > label {
  display: block;
  font-weight: bold;
  font-size: 14px;
  color: #333333;
  margin-bottom: 6px;
}

.req { color: #cc0000; }

.hint {
  font-size: 13px;
  color: #333333;
  margin-bottom: 8px;
  line-height: 1.5;
}

.input-group { display: flex; }

.input-group .icon {
  width: 42px;
  flex-shrink: 0;
  border: 1px solid #aaaaaa;
  border-right: none;
  background: #f2f2f2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #555555;
}

.input-group input,
.input-group textarea {
  flex: 1;
  border: 1px solid #aaaaaa;
  padding: 10px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  color: #333333;
  width: 100%;
}

.input-group textarea { min-height: 90px; resize: vertical; }

.input-group input:focus,
.input-group textarea:focus {
  outline: none;
  border-color: var(--brand-blue);
}

.phone-flag {
  border: 1px solid #aaaaaa;
  border-left: none;
  border-right: none;
  background: #ffffff;
  display: flex;
  align-items: center;
  padding: 0 8px;
  font-size: 14px;
  color: #555555;
  gap: 5px;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
}

.checkbox-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
}

.checkbox-row label {
  font-size: 14px;
  color: #333333;
  font-weight: normal;
}

.brochure-options {
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
}

.check-block { margin-bottom: 22px; }

.check-block p {
  font-size: 13px;
  color: #333333;
  line-height: 1.5;
  margin-top: 4px;
}

button.submit {
  background: #2e6da4;
  color: #ffffff;
  border: 1px solid #245580;
  border-radius: 4px;
  padding: 10px 25px;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
}

button.submit:hover { background: #245580; }

.form-note {
  font-size: 12px;
  color: #777777;
  margin-top: 15px;
  line-height: 1.5;
}

/* ============================================================
   SOFTWARE PAGE (software.html)
   ============================================================ */

.downloads {
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.download-link {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 25px;
  border: 2px solid var(--brand-blue);
  border-radius: 8px;
  text-decoration: none;
  color: var(--brand-blue);
  transition: background 0.15s, color 0.15s;
}

.download-link:hover {
  background: var(--brand-blue);
  color: #ffffff;
}

.download-link .icon {
  font-size: 30px;
  flex-shrink: 0;
}

.download-link .text strong {
  display: block;
  font-size: 20px;
  margin-bottom: 3px;
}

.download-link .text span {
  font-size: 13px;
  color: #777777;
}

.download-link:hover .text span {
  color: #dce6f5;
}

.note {
  font-size: 13px;
  color: #777777;
  margin-top: 30px;
  line-height: 1.5;
  max-width: 560px;
}

.note a { color: var(--brand-blue); }

/* ============================================================
   PRODUCTS PAGE (test_products.html)
   ============================================================ */

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  margin-top: 30px;
}

.product-card {
  background: #eef3fa;
  border-radius: 6px;
  padding: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
}

.product-card h3 {
  font-size: 16px;
  font-weight: bold;
  color: var(--brand-blue);
  text-decoration: underline;
  line-height: 1.4;
  margin-bottom: 15px;
  min-height: 66px;
}

/* Grey placeholder — replace the div with an <img> when photos are ready */
.product-image-placeholder {
  background: #d9d9d9;
  border: 1px dashed #aaaaaa;
  height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #777777;
  font-size: 13px;
  margin-bottom: 15px;
}

/* Style for the real image once you swap it in */
.product-card img.product-image {
  width: 100%;
  height: 170px;
  object-fit: contain;
  margin-bottom: 15px;
}

.product-card p.description {
  font-size: 13px;
  color: #333333;
  line-height: 1.6;
  text-align: justify;
  margin-bottom: 15px;
}

.product-card p.range {
  font-size: 14px;
  font-weight: bold;
  color: #333333;
  text-align: left;
  margin-bottom: 20px;
}

.view-details {
  display: block;
  margin-top: auto;
  background: #29abe2;
  color: #ffffff;
  font-weight: bold;
  font-size: 14px;
  text-decoration: none;
  padding: 12px;
  border-radius: 5px;
}

.view-details:hover { background: var(--brand-blue); }

@media (max-width: 1200px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   MOBILE / SMALL SCREENS (applies to all pages)
   ============================================================ */

@media (max-width: 800px) {
  .layout { flex-direction: column; }

  .sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 2px solid var(--brand-blue);
    padding: 20px;
  }

  .sidebar ul { display: flex; flex-wrap: wrap; gap: 5px; }

  .page { padding: 20px; }
  h1 { font-size: 30px; }
  .main h1 { font-size: 38px; }
  .enquiries { font-size: 20px; }
  .coming-soon { font-size: 22px; }
  .footer-inner { font-size: 16px; }
  .product-grid { grid-template-columns: 1fr; }
}