/* ============================================
   SJW Security — stylesheet
   Trading title of Switchlec Limited
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Michroma&family=Barlow:wght@400;500;600;700&family=Barlow+Semi+Condensed:wght@500;600&display=swap');

:root {
  --ink: #16161a;
  --ink-soft: #232328;
  --red: #c8202f;
  --red-deep: #7d1019;
  --white: #ffffff;
  --paper: #f3f2f0;
  --steel: #9aa0a6;
  --steel-light: #d7d9db;
  --text-muted: #6b6b6f;

  --display: 'Michroma', 'Arial Narrow', sans-serif;
  --body: 'Barlow', Arial, Helvetica, sans-serif;
  --label: 'Barlow Semi Condensed', Arial, sans-serif;

  --max-width: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

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

/* Skip link for keyboard users */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--red);
  color: var(--white);
  padding: 10px 16px;
  z-index: 1000;
}
.skip-link:focus { left: 12px; top: 12px; }

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

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

.logo {
  font-family: var(--display);
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  color: var(--white);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.logo span {
  font-family: var(--label);
  font-size: 0.6rem;
  letter-spacing: 0.32em;
  color: var(--red);
  font-weight: 600;
  margin-top: 2px;
}

.main-nav { display: flex; align-items: center; gap: 28px; }

.main-nav a {
  color: var(--steel-light);
  text-decoration: none;
  font-family: var(--label);
  font-weight: 600;
  letter-spacing: 0.03em;
  font-size: 0.95rem;
  transition: color .15s ease;
}
.main-nav a:hover,
.main-nav a:focus-visible,
.main-nav a[aria-current="page"] { color: var(--white); }
.main-nav a[aria-current="page"] { border-bottom: 2px solid var(--red); padding-bottom: 4px; }

.nav-phone {
  background: var(--red);
  color: var(--white) !important;
  padding: 9px 18px;
  border-radius: 3px;
  border-bottom: none !important;
  font-weight: 700;
}
.nav-phone:hover { background: var(--red-deep); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
  padding: 76px 0 96px;
}

.hero-shield {
  position: absolute;
  right: -60px;
  top: -40px;
  width: 460px;
  height: 620px;
  background: linear-gradient(160deg, var(--red) 0%, var(--red-deep) 78%);
  clip-path: polygon(50% 0%, 92% 22%, 100% 62%, 62% 100%, 38% 100%, 0% 62%, 8% 22%);
  opacity: 0.9;
}
.hero-shield::after {
  content: "";
  position: absolute;
  inset: 26px;
  clip-path: polygon(50% 0%, 92% 22%, 100% 62%, 62% 100%, 38% 100%, 0% 62%, 8% 22%);
  border: 1px solid rgba(255,255,255,0.18);
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 640px;
}

.eyebrow {
  font-family: var(--label);
  color: var(--red);
  letter-spacing: 0.28em;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  margin: 0 0 18px;
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  line-height: 1.28;
  margin: 0 0 22px;
  letter-spacing: 0.01em;
}

.hero p.lead {
  font-size: 1.08rem;
  color: var(--steel-light);
  max-width: 520px;
  margin: 0 0 32px;
}

.btn-row { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--label);
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 14px 26px;
  border-radius: 3px;
  text-decoration: none;
  font-size: 0.98rem;
  border: 2px solid transparent;
  transition: transform .12s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-deep); }

.btn-ghost {
  border-color: rgba(255,255,255,0.35);
  color: var(--white);
}
.btn-ghost:hover { border-color: var(--white); }

/* ---------- Sections ---------- */
section { padding: 72px 0; }

.section-label {
  font-family: var(--label);
  color: var(--red);
  font-weight: 700;
  letter-spacing: 0.24em;
  font-size: 0.75rem;
  text-transform: uppercase;
  margin: 0 0 12px;
}

h2 {
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  line-height: 1.35;
  margin: 0 0 20px;
  max-width: 640px;
}

.section-intro {
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 0 44px;
  font-size: 1.02rem;
}

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

.service-card {
  background: var(--paper);
  border-top: 4px solid var(--red);
  padding: 34px 30px;
  border-radius: 2px;
}

.service-card h3 {
  font-family: var(--display);
  font-size: 1.05rem;
  margin: 0 0 16px;
  letter-spacing: 0.01em;
}

.service-card ul {
  margin: 0;
  padding-left: 20px;
  color: var(--text-muted);
}
.service-card ul li { margin-bottom: 9px; }
.service-card ul li:last-child { margin-bottom: 0; }

/* Trust strip */
.trust {
  background: var(--ink);
  color: var(--white);
  padding: 56px 0;
}
.trust .wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.trust-item .num {
  font-family: var(--display);
  color: var(--red);
  font-size: 1.6rem;
  display: block;
  margin-bottom: 10px;
}
.trust-item p { margin: 0; color: var(--steel-light); font-size: 0.95rem; }

/* CTA band */
.cta-band {
  background: var(--red);
  color: var(--white);
  padding: 54px 0;
  text-align: center;
}
.cta-band h2 { color: var(--white); margin: 0 0 10px; max-width: none; }
.cta-band p { margin: 0 0 28px; color: rgba(255,255,255,0.9); }
.cta-band .btn-primary { background: var(--ink); }
.cta-band .btn-primary:hover { background: #000; }
.cta-band .btn-row { justify-content: center; }

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-detail {
  display: flex;
  gap: 16px;
  margin-bottom: 26px;
}
.contact-detail .icon {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 3px;
  background: var(--paper);
  border-left: 3px solid var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-size: 0.9rem;
  color: var(--red);
}
.contact-detail h3 {
  font-family: var(--label);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 4px;
}
.contact-detail a, .contact-detail p {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
  text-decoration: none;
}
.contact-detail a:hover { color: var(--red); }

form.contact-form {
  background: var(--paper);
  padding: 34px;
  border-radius: 2px;
  border-top: 4px solid var(--red);
}

.form-row { margin-bottom: 18px; }

.form-row label {
  display: block;
  font-family: var(--label);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 7px;
  color: var(--ink);
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--steel-light);
  border-radius: 2px;
  font-family: var(--body);
  font-size: 1rem;
  background: var(--white);
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(200,32,47,0.12);
}

.form-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.form-status {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 2px;
  font-family: var(--label);
  font-weight: 600;
  display: none;
}
.form-status.ok { display: block; background: #e5f3e6; color: #1e5a24; }
.form-status.err { display: block; background: #fbe4e6; color: var(--red-deep); }

/* ---------- Footer / trading notice ---------- */
.trading-notice {
  background: var(--paper);
  border-top: 1px solid var(--steel-light);
  padding: 20px 0;
  text-align: center;
}
.trading-notice p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.trading-notice a { color: var(--red); font-weight: 600; text-decoration: none; }
.trading-notice a:hover { text-decoration: underline; }

.site-footer {
  background: var(--ink);
  color: var(--steel-light);
  padding: 30px 0;
  font-size: 0.85rem;
}
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.site-footer a { color: var(--steel-light); text-decoration: none; }
.site-footer a:hover { color: var(--white); }

/* ---------- Focus visibility ---------- */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* ============================================
   Responsive breakpoints
   ============================================ */
@media (max-width: 860px) {
  .services-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .trust .wrap { grid-template-columns: 1fr; gap: 24px; }
  .hero-shield { width: 320px; height: 420px; right: -80px; }
}

@media (max-width: 640px) {
  .site-header .wrap { height: 64px; }
  .main-nav { gap: 14px; }
  .main-nav a:not(.nav-phone) { display: none; }
  .hero { padding: 52px 0 64px; }
  .hero-shield { width: 220px; height: 300px; opacity: 0.55; }
  section { padding: 52px 0; }
  .btn-row { flex-direction: column; }
  .btn { justify-content: center; }
  form.contact-form { padding: 24px; }
}
