/* =========================================================
   Ice Wall Systems - Enterprise Security Theme
   ========================================================= */

:root {
  --iws-navy: #0b1220;
  --iws-navy-light: #121c30;
  --iws-charcoal: #1b2434;
  --iws-accent: #ff6a00;
  --iws-accent-dark: #d95700;
  --iws-blue: #0d6efd;
  --iws-light-grey: #f4f6f9;
  --iws-text-muted: #8996ab;
}

* { box-sizing: border-box; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: #ffffff;
  color: #1b2434;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -0.02em;
}

a { text-decoration: none; }

/* ---------------- Header / Nav ---------------- */
.iws-header { background: var(--iws-navy); position: sticky; top: 0; z-index: 1030; box-shadow: 0 2px 12px rgba(0,0,0,0.25); }
.iws-navbar { padding: 0.6rem 0; }
.iws-brand { color: #fff !important; font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; display: flex; align-items: center; }
.iws-brand i { color: var(--iws-accent); margin-right: 6px; }

/* Logo image on a fully transparent background - no fill, no border. */
.iws-logo-badge {
  display: inline-flex;
  align-items: center;
  background: transparent;
  padding: 8px 16px;
  line-height: 0;
}
.iws-logo-img { height: 28px; width: auto; display: block; }
.iws-logo-badge.iws-logo-badge-lg { padding: 12px 20px; }
.iws-logo-badge.iws-logo-badge-lg .iws-logo-img { height: 44px; }
.iws-logo-badge.iws-logo-badge-sm { padding: 6px 12px; }
.iws-logo-badge.iws-logo-badge-sm .iws-logo-img { height: 22px; }
.iws-logo-badge.iws-logo-badge-header { padding: 8px 16px; }
.iws-logo-badge.iws-logo-badge-header .iws-logo-img { height: 34px; }

.iws-navbar .nav-link {
  color: #cfd8e3 !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  transition: color .15s ease;
}
.iws-navbar .nav-link:hover { color: #fff !important; }

.iws-mega-menu {
  background: var(--iws-navy-light);
  border: 1px solid rgba(255,255,255,0.08);
  min-width: 260px;
  padding: 0.5rem 0;
}
.iws-mega-menu .dropdown-item { color: #cfd8e3; padding: 0.6rem 1.25rem; }
.iws-mega-menu .dropdown-item:hover { background: rgba(255,106,0,0.12); color: #fff; }

.iws-btn-outline {
  border: 1px solid rgba(255,255,255,0.35);
  color: #fff;
  background: transparent;
}
.iws-btn-outline:hover { background: rgba(255,255,255,0.08); color: #fff; }

.iws-btn-accent {
  background: var(--iws-accent);
  border: 1px solid var(--iws-accent);
  color: #fff;
  font-weight: 600;
}
.iws-btn-accent:hover { background: var(--iws-accent-dark); border-color: var(--iws-accent-dark); color: #fff; }

/* ---------------- Hero ---------------- */
.iws-hero {
  position: relative;
  background: linear-gradient(135deg, var(--iws-navy) 0%, var(--iws-charcoal) 100%);
  color: #fff;
  padding: 7rem 0 6rem;
  overflow: hidden;
}
.iws-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,106,0,0.15), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(13,110,253,0.15), transparent 45%),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.03) 0, rgba(255,255,255,0.03) 1px, transparent 1px, transparent 40px);
  pointer-events: none;
}
.iws-hero .container { position: relative; z-index: 1; }
.iws-hero h1 { font-size: 3rem; max-width: 780px; }
.iws-hero p.lead { color: #b7c2d3; max-width: 620px; font-size: 1.15rem; }

/* ---------------- Sections ---------------- */
.iws-section { padding: 5rem 0; }
.iws-section-alt { background: var(--iws-light-grey); }
.iws-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--iws-accent);
}

/* ---------------- Cards ---------------- */
.iws-card {
  border: 1px solid #e6e9ef;
  border-radius: 10px;
  padding: 1.75rem;
  height: 100%;
  background: #fff;
  transition: transform .15s ease, box-shadow .15s ease;
}
.iws-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(11,18,32,0.08); }
.iws-card .iws-icon {
  width: 52px; height: 52px;
  border-radius: 10px;
  background: rgba(255,106,0,0.1);
  color: var(--iws-accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.iws-card h5 { margin-bottom: 0.6rem; }
.iws-card p { color: #5b6677; font-size: 0.95rem; }
.iws-card a.learn-more { color: var(--iws-blue); font-weight: 600; font-size: 0.9rem; }

/* ---------------- Trust bar ---------------- */
.iws-trustbar { background: var(--iws-navy); padding: 2.5rem 0; color: #97a3b8; }
.iws-trustbar .trust-logo { font-weight: 700; color: #dfe4ec; opacity: 0.7; font-size: 1.05rem; }

/* ---------------- Footer ---------------- */
.iws-footer { background: var(--iws-navy); border-top: 4px solid var(--iws-accent); }
.iws-footer-muted { color: #8996ab; }
.iws-footer-link { color: #b7c2d3; }
.iws-footer-link:hover { color: #fff; }

/* ---------------- Forms / Auth ---------------- */
.iws-auth-card {
  max-width: 460px;
  margin: 4rem auto;
  padding: 2.5rem;
  border-radius: 12px;
  border: 1px solid #e6e9ef;
  box-shadow: 0 12px 28px rgba(11,18,32,0.06);
}

/* ---------------- Admin ---------------- */
.iws-admin-card {
  border: 1px solid #e6e9ef;
  border-radius: 10px;
  padding: 1.5rem;
  height: 100%;
  background: #fff;
}
.iws-admin-sidebar { background: var(--iws-navy); min-height: 100vh; color: #cfd8e3; }
.iws-admin-sidebar a { color: #cfd8e3; display: block; padding: 0.65rem 1.25rem; }
.iws-admin-sidebar a:hover, .iws-admin-sidebar a.active { background: rgba(255,106,0,0.15); color: #fff; }

.badge-active { background: #198754; }
.badge-inactive { background: #6c757d; }

@media (max-width: 992px) {
  .iws-hero h1 { font-size: 2.1rem; }
}
