/* ============================================================
   DSSNT — Digital Security Systems NT
   ============================================================ */

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

:root {
  --navy:    #111111;
  --navy-2:  #1a1a1a;
  --blue:    #dc2626;
  --blue-lt: #ef4444;
  --accent:  #dc2626;
  --white:   #ffffff;
  --grey-50: #f8fafc;
  --grey-100:#f1f5f9;
  --grey-300:#cbd5e1;
  --grey-500:#64748b;
  --grey-700:#334155;
  --text:    #1e293b;
  --radius:  8px;
  --shadow:  0 4px 24px rgba(0,0,0,.08);
  --transition: .2s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  line-height: 1.65;
}

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

a { color: inherit; text-decoration: none; }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section { padding: 5rem 0; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .75rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}
.btn-primary:hover { background: var(--blue-lt); border-color: var(--blue-lt); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.5);
}
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,.08); }

.btn-sm { padding: .5rem 1.1rem; font-size: .875rem; }
.btn-full { width: 100%; }

/* ── Nav ── */
.nav-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: .04em;
}
.logo span { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  color: rgba(255,255,255,.8);
  font-size: .9rem;
  font-weight: 500;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--white); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  background: url('https://images.unsplash.com/photo-1558618666-fcd25c85cd64?w=1600&q=80') center/cover no-repeat;
  color: var(--white);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(11,26,46,.92) 0%, rgba(17,34,64,.75) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  padding: 4rem 1.5rem;
}

.hero-eyebrow {
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

.hero-sub {
  font-size: 1.125rem;
  color: rgba(255,255,255,.8);
  margin-bottom: 2rem;
  max-width: 540px;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ── Section headers ── */
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: .75rem;
}
.section-header p {
  font-size: 1.05rem;
  color: var(--grey-500);
  max-width: 540px;
  margin: 0 auto;
}
.section-header--light h2 { color: var(--white); }
.section-header--light p  { color: rgba(255,255,255,.7); }

.section-eyebrow {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: .75rem;
}

/* ── Services ── */
.services { background: var(--grey-50); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--white);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
}

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: #fff1f1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--blue);
}
.service-icon svg { width: 26px; height: 26px; }

.service-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: .6rem;
}
.service-card p { font-size: .9rem; color: var(--grey-500); }

/* ── About ── */
.about { background: var(--white); }

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-text h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 1rem;
  line-height: 1.2;
}
.about-text p {
  color: var(--grey-500);
  margin-bottom: 1rem;
}

.about-list {
  list-style: none;
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.about-list li {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .95rem;
  font-weight: 500;
  color: var(--grey-700);
}
.about-list svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--blue);
}

.about-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.about-stat-card {
  background: var(--navy);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.about-stat-card:nth-child(even) { background: var(--blue); border: 2px solid var(--blue); }

.stat-number {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}
.stat-label {
  margin-top: .4rem;
  font-size: .8rem;
  font-weight: 600;
  color: rgba(255,255,255,.7);
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* ── Contact ── */
.contact { background: var(--navy-2); color: var(--white); }

.contact-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.contact-item {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 1rem 3rem;
  border-right: 1px solid rgba(255,255,255,.12);
}
.contact-item:last-child { border-right: none; }
.contact-item svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  color: var(--accent);
}
.contact-item div { display: flex; flex-direction: column; gap: .2rem; }
.contact-item strong { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.45); }
.contact-item a, .contact-item span { font-size: 1rem; color: var(--white); }
.contact-item a:hover { color: var(--accent); }

/* ── Form ── */
.contact-form {
  background: var(--white);
  border-radius: 12px;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.form-group {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

label {
  font-size: .85rem;
  font-weight: 600;
  color: var(--grey-700);
}

input, select, textarea {
  width: 100%;
  padding: .7rem 1rem;
  border: 1.5px solid var(--grey-300);
  border-radius: var(--radius);
  font-size: .95rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition);
  font-family: inherit;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(29,78,216,.1);
}

textarea { resize: vertical; min-height: 100px; }

.form-feedback {
  padding: .85rem 1rem;
  border-radius: var(--radius);
  font-size: .9rem;
  font-weight: 500;
}
.form-feedback--success {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}
.form-feedback--error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}
.form-feedback--error a { color: #991b1b; text-decoration: underline; }

/* ── Footer ── */
.footer {
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 2rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer p { font-size: .875rem; color: rgba(255,255,255,.4); }

.footer-links {
  display: flex;
  gap: 1.5rem;
}
.footer-links a {
  font-size: .875rem;
  color: rgba(255,255,255,.5);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--white); }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 900px) {
  .about-inner { grid-template-columns: 1fr; gap: 3rem; }
  .contact-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,.12); padding: 1.25rem 1.5rem; width: 100%; }
  .contact-item:last-child { border-bottom: none; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.5rem 1.5rem;
    gap: .25rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .65rem 0; border-bottom: 1px solid rgba(255,255,255,.06); }
  .nav-links .btn { margin-top: .5rem; }

  .nav-header { position: relative; }

  .form-row { grid-template-columns: 1fr; }
  .about-visual { grid-template-columns: 1fr 1fr; }
  .contact-form { padding: 1.75rem; }

  .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .about-visual { grid-template-columns: 1fr 1fr; gap: .75rem; }
  .about-stat-card { padding: 1.5rem 1rem; }
  .stat-number { font-size: 1.75rem; }
}
