/* Disc Tumbler Locks — shared stylesheet */

:root {
  --navy: #0f2740;
  --navy-dark: #0a1a2c;
  --teal: #0d7c66;
  --teal-dark: #095c4b;
  --steel: #5b6b78;
  --steel-light: #eef1f3;
  --bg: #f7f8fa;
  --white: #ffffff;
  --ink: #1c2b36;
  --ink-soft: #4a5964;
  --border: #dde3e7;
  --radius: 10px;
  --shadow: 0 4px 16px rgba(15, 39, 64, 0.08);
  --shadow-lg: 0 12px 32px rgba(15, 39, 64, 0.14);
  --max-width: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

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

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 { line-height: 1.2; color: var(--navy); font-weight: 700; }
h1 { font-size: clamp(2rem, 4vw, 2.9rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; }

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 10px;
}

.lede { font-size: 1.1rem; color: var(--ink-soft); max-width: 640px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary { background: var(--teal); color: var(--white); }
.btn-primary:hover { background: var(--teal-dark); color: var(--white); }

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

.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-dark); color: var(--white); }

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

.btn-sm { padding: 9px 18px; font-size: 0.85rem; }

.btn-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

/* ---------- Header ---------- */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 3px solid var(--teal);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}

.logo {
  display: flex;
  flex-direction: column;
  color: var(--white);
  text-decoration: none;
  line-height: 1.1;
}
.logo:hover { text-decoration: none; }
.logo .logo-main {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.logo .logo-main span { color: var(--teal); }
.logo .logo-sub {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9fb2c2;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-links a {
  color: #d8e2ea;
  font-weight: 600;
  font-size: 0.95rem;
}
.nav-links a:hover { color: var(--white); text-decoration: none; }
.nav-links a.current { color: var(--white); border-bottom: 2px solid var(--teal); padding-bottom: 4px; }

.nav-cta {
  background: var(--teal);
  color: var(--white) !important;
  padding: 9px 18px;
  border-radius: 6px;
}
.nav-cta:hover { background: var(--teal-dark); color: var(--white) !important; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 6px;
  color: var(--white);
  font-size: 1.3rem;
  line-height: 1;
  padding: 8px 12px;
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(120deg, var(--navy) 0%, #163553 60%, var(--navy-dark) 100%);
  color: var(--white);
  padding: 84px 0 96px;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero h1 { color: var(--white); margin: 0 0 18px; }
.error-code {
  font-size: clamp(4rem, 12vw, 7rem);
  font-weight: 800;
  color: var(--teal);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}
.hero .lede { color: #cbd8e2; }
.hero-art {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 30px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  height: 320px;
  overflow: hidden;
}
.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ---------- Trust bar ---------- */
.trust-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.trust-bar .wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 20px;
  padding: 26px 24px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.trust-item .dot {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--steel-light);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-head { max-width: 700px; margin-bottom: 44px; }
.section-alt { background: var(--white); }

/* ---------- Category / product cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card-img {
  background: var(--steel-light);
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.card-img img { max-height: 160px; }
.card-body { padding: 22px 22px 26px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin: 0 0 8px; }
.card-body p { color: var(--ink-soft); font-size: 0.94rem; flex: 1; }
.card-body .btn { margin-top: 14px; align-self: flex-start; }

/* ---------- Feature list ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 40px;
}
.feature {
  display: flex;
  gap: 16px;
}
.feature .num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--navy);
  color: var(--white);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature h4 { margin: 0 0 6px; color: var(--navy); }
.feature p { margin: 0; color: var(--ink-soft); font-size: 0.94rem; }

/* ---------- Cross-reference callout ---------- */
.callout-replace {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 6px solid var(--teal);
  border-radius: var(--radius);
  padding: 40px 44px;
  box-shadow: var(--shadow);
}
.callout-replace h2 { margin: 8px 0 14px; }
.callout-replace p { color: var(--ink-soft); max-width: 680px; margin-bottom: 22px; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--teal);
  color: var(--white);
  padding: 56px 0;
  text-align: center;
}
.cta-banner h2 { color: var(--white); margin-bottom: 10px; }
.cta-banner p { color: #d7f0ea; max-width: 560px; margin: 0 auto; }
.cta-banner .btn-row { justify-content: center; }

/* ---------- Product family sections ---------- */
.family {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  padding: 40px;
  margin-bottom: 40px;
  scroll-margin-top: 96px;
}
.family-head {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 36px;
  margin-bottom: 30px;
}
.family-photos {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.family-photos img {
  background: var(--steel-light);
  border-radius: 8px;
  padding: 14px;
  height: 150px;
  width: auto;
  object-fit: contain;
  flex: 1;
}
.family-intro .eyebrow { margin-bottom: 6px; }
.family-intro h2 { margin: 0 0 12px; }
.family-intro p { color: var(--ink-soft); }
.tag-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.tag {
  background: var(--steel-light);
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
}
a.tag:hover {
  background: var(--teal);
  color: var(--white);
  text-decoration: none;
}

.spec-table-wrap { overflow-x: auto; margin-bottom: 24px; }
table.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 560px;
}
table.spec-table th, table.spec-table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
table.spec-table th {
  background: var(--steel-light);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
table.spec-table tr:hover td { background: #fbfcfd; }

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-bottom: 24px;
}
.detail-block h4 {
  color: var(--navy);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 10px;
}
.detail-block ul { margin: 0; padding-left: 18px; color: var(--ink-soft); font-size: 0.9rem; }
.detail-block ul li { margin-bottom: 5px; }
.detail-block p { margin: 0; color: var(--ink-soft); font-size: 0.9rem; }

.family-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 40px;
  align-items: start;
}
.contact-info {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 34px;
}
.contact-info h3 { color: var(--white); }
.contact-info p { color: #cbd8e2; }
.contact-info ul { list-style: none; padding: 0; margin: 22px 0 0; }
.contact-info li { padding: 10px 0; border-top: 1px solid rgba(255,255,255,0.14); font-size: 0.94rem; }
.contact-info li strong { display: block; color: var(--white); margin-bottom: 2px; }
.contact-info li a { color: #9fe0cf; }

.tally-embed-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px;
  box-shadow: var(--shadow);
  min-height: 560px;
}
.tally-placeholder {
  min-height: 540px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
  color: var(--ink-soft);
}
.tally-placeholder .icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--steel-light); color: var(--teal);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px; font-size: 1.5rem; font-weight: 800;
}
.tally-placeholder code {
  display: block;
  background: var(--steel-light);
  padding: 10px 14px;
  border-radius: 6px;
  margin-top: 14px;
  font-size: 0.82rem;
  color: var(--navy);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-dark);
  color: #a9b8c4;
  padding: 48px 0 26px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
.footer-grid h4 { color: var(--white); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; margin: 0 0 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 9px; }
.footer-grid a { color: #a9b8c4; font-size: 0.92rem; }
.footer-grid a:hover { color: var(--white); }
.footer-brand .logo-main { color: var(--white); font-weight: 800; font-size: 1.15rem; }
.footer-brand .logo-main span { color: var(--teal); }
.footer-brand p { max-width: 360px; font-size: 0.88rem; color: #8ea0ae; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 22px;
  font-size: 0.8rem;
  color: #758a98;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Page header (non-home) ---------- */
.page-header {
  background: var(--navy);
  color: var(--white);
  padding: 56px 0;
}
.page-header h1 { color: var(--white); margin: 0 0 10px; }
.page-header p { color: #cbd8e2; max-width: 640px; margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { order: -1; height: 240px; }
  .trust-bar .wrap { grid-template-columns: repeat(2, 1fr); }
  .card-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .family-head { grid-template-columns: 1fr; }
  .family-photos { order: -1; }
  .detail-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .nav-links {
    display: none;
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 10px 24px 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  .nav-links a { padding: 12px 0; width: 100%; }
  .nav-links.nav-links-open { display: flex; }
  .nav-toggle { display: block; }
}
