/* =========================================================
   Specialty Sensor Technologies – Landing Page Styles
   ========================================================= */

/* --- Custom Properties --- */
:root {
  --red:        #CC0000;
  --red-dark:   #990000;
  --dark:       #1a1a1a;
  --dark-mid:   #2d2d2d;
  --light:      #f4f5f7;
  --white:      #ffffff;
  --text:       #1e1e1e;
  --muted:      #5a5a5a;
  --border:     #e0e0e0;
  --font:       Arial, Helvetica, sans-serif;
  --nav-h:      68px;
  --pad-v:      88px;
  --pad-h:      48px;
  --max-w:      1160px;
  --radius:     8px;
  --shadow-sm:  0 1px 4px rgba(0,0,0,0.08), 0 2px 12px rgba(0,0,0,0.06);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.12), 0 1px 4px rgba(0,0,0,0.06);
  --trans:      0.22s ease;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
address { font-style: normal; }

/* --- Container --- */
.lp-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--pad-h);
  padding-right: var(--pad-h);
}

/* --- Scroll Animations --- */
/* Only hide when JS is active — JS adds .lp-js to <html> before rendering */
.lp-js .lp-anim {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.lp-js .lp-anim.lp-visible {
  opacity: 1;
  transform: translateY(0);
}
.lp-js .lp-delay-1 { transition-delay: 0.1s; }
.lp-js .lp-delay-2 { transition-delay: 0.18s; }
.lp-js .lp-delay-3 { transition-delay: 0.26s; }
.lp-js .lp-delay-4 { transition-delay: 0.34s; }

/* --- Section layout --- */
.lp-section { padding: var(--pad-v) 0; }
.lp-bg-light { background: var(--light); }

.lp-section-hd {
  text-align: center;
  margin-bottom: 48px;
}
.lp-section-hd h2 {
  font-size: 2rem;
  font-weight: 900;
  color: var(--dark);
  line-height: 1.2;
}
.lp-section-hd h2::after {
  content: '';
  display: block;
  width: 44px;
  height: 4px;
  background: var(--red);
  border-radius: 2px;
  margin: 12px auto 0;
}
.lp-section-hd p {
  margin-top: 14px;
  font-size: 1rem;
  color: var(--muted);
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.65;
}

/* --- Buttons --- */
.lp-btn, .lp-btn-sm {
  display: inline-block;
  font-family: var(--font);
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  border-radius: var(--radius);
  transition: background var(--trans), color var(--trans), border-color var(--trans), box-shadow var(--trans);
  line-height: 1;
  white-space: nowrap;
}
.lp-btn        { font-size: 15px; padding: 14px 32px; border: 2px solid transparent; }
.lp-btn-sm     { font-size: 13px; padding: 9px 20px;  border: 2px solid transparent; }

.lp-btn-red    { background: var(--red);       color: var(--white); border-color: var(--red);  }
.lp-btn-red:hover  { background: var(--red-dark); border-color: var(--red-dark); }

.lp-btn-white  { background: var(--white);     color: var(--dark);  border-color: var(--white); }
.lp-btn-white:hover { background: transparent; color: var(--white); }

.lp-btn-ghost  { background: transparent; color: var(--red);   border-color: var(--red);   }
.lp-btn-ghost:hover  { background: var(--red);   color: var(--white); }

.lp-btn-outline-dark { background: transparent; color: var(--dark); border-color: var(--dark); }
.lp-btn-outline-dark:hover { background: var(--dark); color: var(--white); }

/* =========================================================
   NAV
   ========================================================= */
#lp-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  background: var(--dark);
  border-bottom: 3px solid var(--red);
}
#lp-nav .lp-container {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 0;
}
.lp-nav-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
  margin-right: auto;
}
.lp-nav-brand img {
  height: 36px;
  width: auto;
}
.lp-nav-brand span {
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.35;
}
.lp-nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-right: 20px;
}
.lp-nav-links a {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  padding: 7px 12px;
  border-radius: 5px;
  transition: color var(--trans), background var(--trans);
}
.lp-nav-links a:hover { color: var(--white); background: rgba(255,255,255,0.1); }
.lp-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--white);
  font-size: 22px;
  padding: 6px;
  line-height: 1;
  margin-left: auto;
}

/* =========================================================
   HERO
   ========================================================= */
#lp-hero {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: center;
  background-image: url('images/gears.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  margin-top: var(--nav-h);
}
.lp-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(130deg, rgba(8,8,8,0.85) 0%, rgba(140,0,0,0.22) 100%);
}
.lp-hero-inner {
  position: relative;
  z-index: 1;
  padding: 72px 0;
  max-width: 700px;
}
.lp-hero-tag {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 3px;
  margin-bottom: 22px;
}
#lp-hero h1 {
  font-size: 3.4rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1.12;
  margin-bottom: 22px;
}
#lp-hero h1 em {
  font-style: normal;
  color: var(--red);
}
.lp-hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.80);
  line-height: 1.7;
  margin-bottom: 38px;
  max-width: 540px;
}
.lp-hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* =========================================================
   VALUE PROPS
   ========================================================= */
.lp-values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.lp-value-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--red);
  padding: 32px 22px 28px;
  text-align: center;
  transition: box-shadow var(--trans), transform var(--trans);
}
.lp-value-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.lp-val-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(204,0,0,0.09);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  color: var(--red);
}
.lp-val-icon svg { width: 26px; height: 26px; }
.lp-value-card h3 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.lp-value-card p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.65;
}

/* =========================================================
   PRODUCT CARDS (shared)
   ========================================================= */
.lp-grid {
  display: grid;
  gap: 20px;
}
.lp-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  transition: box-shadow var(--trans), transform var(--trans);
}
.lp-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.lp-card-photo {
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
  padding: 20px;
  border-bottom: 1px solid var(--border);
}
.lp-card-photo img {
  max-height: 160px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}
.lp-card-body {
  padding: 20px 22px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.lp-card-body h3 {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--red);
  margin-bottom: 4px;
}
.lp-card-sub {
  font-size: 0.82rem;
  color: var(--muted);
  font-style: italic;
  margin-bottom: 10px;
}
.lp-card-body p {
  font-size: 0.875rem;
  color: var(--text);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 14px;
}
.lp-card-features {
  margin: 4px 0 12px 16px;
  flex: 1;
}
.lp-card-features li {
  font-size: 0.85rem;
  color: var(--muted);
  list-style: disc;
  line-height: 1.6;
  margin-bottom: 2px;
}
.lp-badge {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 6px;
  width: fit-content;
}
.lp-cta-row {
  text-align: center;
  margin-top: 40px;
}

/* =========================================================
   MAGSTRIPE — 4-col grid, TA500 spans 2 cols horizontally
   ========================================================= */
#lp-magstripe .lp-grid {
  grid-template-columns: repeat(4, 1fr);
}
/* TA500 flagship — full row, horizontal layout */
.lp-card-wide {
  grid-column: 1 / -1;
  flex-direction: row;
}
.lp-card-wide .lp-card-photo {
  width: 34%;
  flex-shrink: 0;
  height: auto;
  min-height: 300px;
  border-bottom: none;
  border-right: 1px solid var(--border);
}
.lp-card-wide .lp-card-body {
  padding: 32px 36px;
}
.lp-card-wide .lp-card-body h3 { font-size: 1.6rem; }

/* =========================================================
   INDUSTRIAL — 3-col grid
   ========================================================= */
#lp-industrial .lp-grid {
  grid-template-columns: repeat(3, 1fr);
}

/* =========================================================
   WHY SST
   ========================================================= */
.lp-about-wrap {
  display: grid;
  grid-template-columns: 1fr 1.9fr;
  gap: 56px;
  align-items: start;
}
.lp-about-copy h2 {
  font-size: 2rem;
  font-weight: 900;
  color: var(--dark);
  line-height: 1.2;
  margin-bottom: 6px;
}
.lp-about-copy h2::after {
  content: '';
  display: block;
  width: 44px;
  height: 4px;
  background: var(--red);
  border-radius: 2px;
  margin-top: 12px;
  margin-bottom: 20px;
}
.lp-about-copy p {
  font-size: 0.975rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 14px;
}
.lp-trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.lp-trust-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 22px 18px;
  transition: box-shadow var(--trans), transform var(--trans);
}
.lp-trust-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.lp-trust-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: var(--light);
  border-radius: 10px;
  font-size: 1.25rem;
  margin-bottom: 14px;
  line-height: 1;
}
.lp-trust-card h4 {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 5px;
}
.lp-trust-card p {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.55;
}

/* =========================================================
   CONTACT
   ========================================================= */
.lp-contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 52px;
  align-items: start;
}
.lp-contact-info h2 {
  font-size: 2rem;
  font-weight: 900;
  color: var(--dark);
  margin-bottom: 6px;
}
.lp-contact-info h2::after {
  content: '';
  display: block;
  width: 44px;
  height: 4px;
  background: var(--red);
  border-radius: 2px;
  margin-top: 12px;
  margin-bottom: 22px;
}
.lp-contact-info > p {
  font-size: 0.975rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 24px;
}
.lp-contact-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 26px;
}
.lp-contact-list li {
  font-size: 0.925rem;
  color: var(--text);
  display: flex;
  gap: 10px;
}
.lp-contact-list li strong {
  color: var(--red);
  min-width: 68px;
  flex-shrink: 0;
}
.lp-contact-list a { text-decoration: underline; }
.lp-contact-list a:hover { color: var(--red); }
.lp-contact-addr {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.8;
  border-top: 1px solid var(--border);
  padding-top: 18px;
}

/* Form */
.lp-form-box {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  padding: 36px 32px;
}
.lp-frow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}
.lp-fg {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 16px;
}
.lp-fg:last-of-type { margin-bottom: 0; }
.lp-fg label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.lp-req { color: var(--red); }
.lp-fg input,
.lp-fg textarea {
  width: 100%;
  padding: 10px 13px;
  border: 1.5px solid #cccccc;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 14px;
  color: var(--text);
  background: #fcfcfc;
  transition: border-color var(--trans), box-shadow var(--trans), background var(--trans);
}
.lp-fg input:focus, .lp-fg textarea:focus {
  border-color: var(--red);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(204,0,0,0.10);
  outline: none;
}
.lp-fg input.lp-err, .lp-fg textarea.lp-err {
  border-color: #c62828;
  box-shadow: 0 0 0 3px rgba(198,40,40,0.10);
}
.lp-fg textarea { resize: vertical; min-height: 120px; }
.lp-msg {
  display: none;
  padding: 11px 14px;
  border-radius: var(--radius);
  font-size: 14px;
  line-height: 1.5;
  margin-top: 12px;
  margin-bottom: 4px;
}
.lp-msg-ok  { display: block; background: #e8f5e9; color: #2e7d32; border: 1px solid #a5d6a7; }
.lp-msg-err { display: block; background: #ffebee; color: #b71c1c; border: 1px solid #ef9a9a; }
.lp-form-btn {
  margin-top: 18px;
  width: 100%;
  padding: 14px;
  background: var(--red);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--trans);
  letter-spacing: 0.2px;
}
.lp-form-btn:hover:not(:disabled) { background: var(--red-dark); }
.lp-form-btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* =========================================================
   FOOTER
   ========================================================= */
#lp-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.65);
  padding: 56px 0 28px;
}
.lp-foot-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.5fr;
  gap: 36px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.lp-foot-brand img {
  height: 40px;
  width: auto;
  margin-bottom: 12px;
}
.lp-foot-brand p {
  font-size: 0.85rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.5);
}
#lp-footer h4 {
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 1.4px;
  margin-bottom: 14px;
}
.lp-foot-links li + li { margin-top: 9px; }
.lp-foot-links a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--trans);
}
.lp-foot-links a:hover { color: var(--red); }
.lp-foot-contact p {
  font-size: 0.875rem;
  line-height: 1.9;
  color: rgba(255,255,255,0.6);
}
.lp-foot-contact a { color: rgba(255,255,255,0.6); }
.lp-foot-contact a:hover { color: var(--red); }
.lp-foot-bottom {
  padding-top: 22px;
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.3);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1040px) {
  :root { --pad-h: 36px; }
  .lp-values-grid { grid-template-columns: repeat(2, 1fr); }
  #lp-magstripe .lp-grid  { grid-template-columns: repeat(2, 1fr); }
  .lp-card-wide           { grid-column: 1 / -1; }
  #lp-industrial .lp-grid { grid-template-columns: repeat(2, 1fr); }
  .lp-about-wrap          { grid-template-columns: 1fr; gap: 40px; }
  .lp-trust-grid          { grid-template-columns: repeat(3, 1fr); }
  .lp-foot-grid           { grid-template-columns: repeat(2, 1fr); }
  #lp-hero h1             { font-size: 2.8rem; }
}

@media (max-width: 768px) {
  :root { --pad-v: 60px; --pad-h: 24px; }
  .lp-nav-links, .lp-nav-cta-btn { display: none; }
  .lp-nav-toggle { display: block; }
  .lp-nav-links.lp-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--dark-mid);
    padding: 12px 24px 18px;
    border-bottom: 2px solid var(--red);
    gap: 2px;
    z-index: 100;
  }
  .lp-nav-links.lp-open a {
    padding: 11px 0;
    font-size: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    color: rgba(255,255,255,0.85);
  }
  #lp-hero { min-height: 72vh; }
  #lp-hero h1 { font-size: 2.1rem; }
  .lp-hero-btns { flex-direction: column; gap: 10px; }
  .lp-hero-btns .lp-btn { text-align: center; }
  .lp-values-grid { grid-template-columns: repeat(2, 1fr); }
  #lp-magstripe .lp-grid  { grid-template-columns: 1fr 1fr; }
  .lp-card-wide { grid-column: 1 / -1; flex-direction: column; }
  .lp-card-wide .lp-card-photo { width: 100%; height: 220px; border-right: none; border-bottom: 1px solid var(--border); }
  #lp-industrial .lp-grid { grid-template-columns: 1fr 1fr; }
  .lp-contact-wrap { grid-template-columns: 1fr; }
  .lp-frow { grid-template-columns: 1fr; }
  .lp-trust-grid { grid-template-columns: repeat(2, 1fr); }
  .lp-foot-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 540px) {
  :root { --pad-v: 48px; --pad-h: 18px; }
  .lp-values-grid { grid-template-columns: 1fr; }
  #lp-magstripe .lp-grid  { grid-template-columns: 1fr; }
  .lp-card-wide { grid-column: 1 / -1; }
  #lp-industrial .lp-grid { grid-template-columns: 1fr; }
  .lp-trust-grid { grid-template-columns: 1fr; }
  .lp-foot-grid { grid-template-columns: 1fr; }
  .lp-form-box { padding: 24px 18px; }
}

/* =========================================================
   PRODUCT DETAIL PAGE  (product-detail.php)
   ========================================================= */
.pd-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--red);
  padding: 18px 0 0;
  text-decoration: none;
  transition: gap var(--trans);
}
.pd-back:hover { gap: 10px; }

.pd-product {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 52px;
  align-items: start;
  padding: 32px 0 56px;
}
.pd-img-wrap {
  position: sticky;
  top: calc(var(--nav-h) + 20px);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
}
.pd-img-wrap img {
  max-height: 280px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}
.pd-details .lp-badge { margin-bottom: 10px; }
.pd-details h1 {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--red);
  line-height: 1.15;
  margin-bottom: 4px;
}
.pd-details .pd-cat {
  font-size: 0.875rem;
  color: var(--muted);
  font-style: italic;
  margin-bottom: 22px;
  display: block;
}
.pd-details .pd-desc p {
  font-size: 0.975rem;
  color: var(--text);
  line-height: 1.75;
  margin-bottom: 14px;
}
.pd-cta-wrap {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.pd-specs-section {
  padding: 48px 0;
  border-top: 1px solid var(--border);
}
.pd-specs-section h2 {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--dark);
  margin-bottom: 20px;
}
.pd-specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.pd-specs-table tr:nth-child(even) td,
.pd-specs-table tr:nth-child(even) th { background: var(--light); }
.pd-specs-table th {
  text-align: left;
  padding: 11px 16px;
  font-weight: 700;
  color: var(--dark);
  width: 32%;
  border: 1px solid var(--border);
  background: var(--light);
}
.pd-specs-table td {
  padding: 11px 16px;
  color: var(--text);
  border: 1px solid var(--border);
}

.pd-quote-bar {
  background: var(--dark);
  padding: 52px 0;
  text-align: center;
}
.pd-quote-bar h2 {
  font-size: 1.9rem;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 10px;
}
.pd-quote-bar p {
  font-size: 1rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 26px;
}

@media (max-width: 768px) {
  .pd-product { grid-template-columns: 1fr; gap: 32px; }
  .pd-img-wrap { position: static; min-height: 240px; }
  .pd-details h1 { font-size: 1.7rem; }
}
