/* ============================================
   Offset Security – Main Stylesheet
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy: #0d1b3e;
  --navy-light: #162451;
  --blue: #2563eb;
  --blue-light: #3b82f6;
  --blue-pale: #dbeafe;
  --gray-900: #111827;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-300: #d1d5db;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --gray-50: #f9fafb;
  --white: #ffffff;
  --red: #dc2626;
  --green: #059669;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--gray-900);
  line-height: 1.6;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--blue);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover {
  color: var(--blue-light);
}

img {
  max-width: 100%;
  height: auto;
}

/* --- Layout --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section--gray {
  background: var(--gray-50);
}

.section--navy {
  background: var(--navy);
  color: var(--white);
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--gray-900);
}

.section--navy .section-title {
  color: var(--white);
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--gray-600);
  max-width: 640px;
  margin-bottom: 48px;
}

.section--navy .section-subtitle {
  color: var(--gray-300);
}

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

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.nav__logo:hover {
  color: var(--white);
}

.nav__logo-icon {
  width: 36px;
  height: 36px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav__links a {
  color: rgba(255,255,255,0.8);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 0.2s;
  text-decoration: none;
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--white);
}

.nav__links a.nav-cta {
  background: var(--blue);
  color: var(--white);
  padding: 8px 20px;
  border-radius: 6px;
  font-weight: 600;
}

.nav__links a.nav-cta:hover {
  background: var(--blue-light);
}

/* Mobile nav toggle */
.nav__toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
}

@media (max-width: 768px) {
  .nav__toggle {
    display: block;
  }
  .nav__links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    padding: 16px 24px 24px;
    gap: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  .nav__links.open {
    display: flex;
  }
}

/* --- Hero --- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 50%, #1e3a6e 100%);
  color: var(--white);
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(37,99,235,0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.hero__content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero__badge {
  display: inline-block;
  background: rgba(37,99,235,0.2);
  border: 1px solid rgba(37,99,235,0.4);
  color: var(--blue-light);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero p {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 520px;
}

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

.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

@media (max-width: 900px) {
  .hero__content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero h1 {
    font-size: 2.25rem;
  }
  .hero__visual {
    order: -1;
  }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-decoration: none;
}

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

.btn--outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.3);
}
.btn--outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.5);
  color: var(--white);
}

.btn--outline-dark {
  background: transparent;
  color: var(--gray-700);
  border: 1.5px solid var(--gray-300);
}
.btn--outline-dark:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.btn--sm {
  padding: 8px 18px;
  font-size: 0.875rem;
}

/* --- Product Cards --- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  transition: all 0.25s;
}

.product-card:hover {
  border-color: var(--blue);
  box-shadow: 0 8px 30px rgba(37,99,235,0.1);
  transform: translateY(-2px);
}

.product-card__image {
  width: 120px;
  height: 180px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card__model {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.product-card__name {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.product-card__desc {
  font-size: 0.875rem;
  color: var(--gray-600);
  margin-bottom: 20px;
  line-height: 1.5;
}

.product-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-bottom: 20px;
}

.tag {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 4px;
  background: var(--blue-pale);
  color: var(--blue);
}

.tag--green {
  background: #d1fae5;
  color: var(--green);
}

/* --- Features Grid --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
}

.feature {
  text-align: center;
  padding: 24px 16px;
}

.feature__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  background: var(--blue-pale);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.section--navy .feature__icon {
  background: rgba(37,99,235,0.2);
}

.feature__icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--blue);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.section--navy .feature__icon svg {
  stroke: var(--blue-light);
}

.feature h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature p {
  font-size: 0.875rem;
  color: var(--gray-600);
  line-height: 1.6;
}

.section--navy .feature p {
  color: var(--gray-300);
}

/* --- Certifications Bar --- */
.cert-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: center;
  align-items: center;
  padding: 40px 0;
}

.cert-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.7;
}

.cert-item span {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --- Spec Table --- */
.spec-table-wrap {
  overflow-x: auto;
  border-radius: 8px;
  border: 1px solid var(--gray-200);
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.spec-table th,
.spec-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--gray-200);
}

.spec-table thead th {
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.spec-table tbody tr:nth-child(even) {
  background: var(--gray-50);
}

.spec-table tbody tr:hover {
  background: var(--blue-pale);
}

.spec-table td:first-child {
  font-weight: 600;
  white-space: nowrap;
  color: var(--gray-700);
}

.spec-table td {
  color: var(--gray-600);
  min-width: 140px;
}

/* --- CTA Banner --- */
.cta-banner {
  background: linear-gradient(135deg, var(--blue) 0%, #1d4ed8 100%);
  color: var(--white);
  text-align: center;
  padding: 64px 24px;
  border-radius: 16px;
  margin: 0 24px;
}

.cta-banner h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.cta-banner p {
  font-size: 1.0625rem;
  opacity: 0.85;
  margin-bottom: 28px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Footer --- */
.footer {
  background: var(--gray-900);
  color: rgba(255,255,255,0.6);
  padding: 64px 0 32px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

@media (max-width: 768px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 480px) {
  .footer__grid {
    grid-template-columns: 1fr;
  }
}

.footer__brand p {
  font-size: 0.875rem;
  line-height: 1.7;
  margin-top: 16px;
}

.footer h4 {
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.footer ul {
  list-style: none;
}

.footer ul li {
  margin-bottom: 10px;
}

.footer ul a {
  color: rgba(255,255,255,0.6);
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer ul a:hover {
  color: var(--white);
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.8125rem;
}

/* --- Page Header --- */
.page-header {
  background: var(--navy);
  color: var(--white);
  padding: 48px 0;
}

.page-header h1 {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.page-header p {
  color: rgba(255,255,255,0.7);
  font-size: 1.0625rem;
}

/* --- About Page --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.about-grid h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.about-grid p {
  color: var(--gray-600);
  margin-bottom: 16px;
  line-height: 1.7;
}

.contact-info {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 32px;
}

.contact-info h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.contact-row {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 0.9375rem;
}

.contact-row strong {
  min-width: 80px;
  color: var(--gray-700);
}

.contact-row span,
.contact-row a {
  color: var(--gray-600);
}

/* --- Datasheet styles --- */
.ds-header {
  background: linear-gradient(135deg, var(--navy) 0%, #1e3a6e 100%);
  color: var(--white);
  padding: 40px 0;
}

.ds-header__inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.ds-label {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.6);
}

.ds-body {
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 32px 60px;
}

.ds-product-banner {
  background: var(--gray-100);
  border-radius: 12px;
  padding: 32px;
  margin-bottom: 40px;
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.ds-product-item {
  text-align: center;
}

.ds-product-item span {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--blue);
  margin-top: 8px;
}

.ds-two-col {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

@media (max-width: 768px) {
  .ds-two-col {
    grid-template-columns: 1fr;
  }
}

.ds-features {
  background: var(--gray-50);
  border-left: 3px solid var(--blue);
  padding: 24px;
  border-radius: 0 8px 8px 0;
}

.ds-features h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.ds-features ul {
  list-style: none;
  padding: 0;
}

.ds-features li {
  font-size: 0.875rem;
  color: var(--gray-700);
  padding: 4px 0;
  padding-left: 16px;
  position: relative;
}

.ds-features li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: bold;
}

.ds-description h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.ds-description p {
  font-size: 0.9375rem;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 16px;
}

.ds-section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 24px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--blue-pale);
}

.ds-footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--gray-200);
  font-size: 0.75rem;
  color: var(--gray-500);
  text-align: center;
  line-height: 1.6;
}

/* --- Downloads section --- */
.downloads-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.download-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  transition: all 0.2s;
  text-decoration: none;
  color: inherit;
}

.download-item:hover {
  border-color: var(--blue);
  background: var(--blue-pale);
  color: inherit;
}

.download-item__icon {
  width: 40px;
  height: 40px;
  background: var(--red);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
}

.download-item__info h4 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 2px;
}

.download-item__info p {
  font-size: 0.8125rem;
  color: var(--gray-500);
}

/* --- Utility --- */
.text-center { text-align: center; }
.mt-4 { margin-top: 32px; }
.mb-4 { margin-bottom: 32px; }

/* --- Print styles for datasheets --- */
@media print {
  .nav, .footer, .btn, .no-print {
    display: none !important;
  }
  .ds-header {
    background: var(--navy) !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .spec-table thead th {
    background: var(--navy) !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  body {
    font-size: 11pt;
  }
}
