/* ============================================================
   Convergent — OPNsense partner page styles
   Inherits site.css + dark-theme.css variables
   ============================================================ */

/* ── Hero ────────────────────────────────────────────────────── */
.ops-hero {
  background:
    radial-gradient(ellipse at 10% 50%, rgba(212,175,55,.06) 0%, transparent 55%),
    radial-gradient(ellipse at 90% 20%, rgba(0,82,204,.05) 0%, transparent 50%),
    var(--bg-white);
  padding: 5rem 0 4rem;
  border-bottom: 1px solid var(--border);
}
.ops-hero-inner {
  display: flex;
  align-items: center;
  gap: 3rem;
  justify-content: space-between;
}
.ops-hero-text { flex: 1; min-width: 0; }
.ops-hero-logo {
  flex-shrink: 0;
  opacity: .85;
  filter: drop-shadow(0 4px 24px rgba(0,82,204,.12));
}
.ops-hero-logo img { width: 140px; height: 140px; object-fit: contain; }

.ops-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--bg-light);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  padding: .3rem .8rem;
  font-size: .75rem; font-weight: 600; color: var(--text-mid);
  text-transform: uppercase; letter-spacing: .05em;
  margin-bottom: 1.2rem;
}
.ops-badge img { width: 18px; height: 18px; object-fit: contain; }

.ops-hero-text h1 {
  font-family: 'Bebas Neue', 'Impact', sans-serif;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: .03em;
  color: var(--navy);
  margin-bottom: 1.2rem;
}
.ops-hero-text h1 em {
  font-style: normal;
  color: var(--primary);
}
.ops-sub {
  font-size: 1rem; line-height: 1.65;
  color: var(--text-mid);
  max-width: 540px;
  margin-bottom: 2rem;
}
.ops-hero-cta { display: flex; gap: .75rem; flex-wrap: wrap; }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn-ops-primary {
  display: inline-flex; align-items: center;
  padding: .65rem 1.5rem;
  background: var(--primary); color: #fff;
  border-radius: var(--radius); font-weight: 600; font-size: .9rem;
  text-decoration: none;
  transition: background .2s, box-shadow .2s, transform .15s;
  box-shadow: 0 2px 12px rgba(0,82,204,.20);
}
.btn-ops-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 4px 20px rgba(0,82,204,.30);
  transform: translateY(-1px);
}
.btn-ops-secondary {
  display: inline-flex; align-items: center;
  padding: .65rem 1.5rem;
  border: 1.5px solid var(--border-strong);
  color: var(--navy); border-radius: var(--radius);
  font-weight: 500; font-size: .9rem; text-decoration: none;
  transition: border-color .2s, color .2s;
}
.btn-ops-secondary:hover { border-color: var(--primary); color: var(--primary); }

/* ── Offer grid ──────────────────────────────────────────────── */
.ops-offer {
  background: var(--bg-light);
  padding: 4rem 0;
}
.ops-offer .section-title { margin-bottom: 2rem; }
.ops-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}
.ops-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex; flex-direction: column; gap: .6rem;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.ops-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 20px rgba(0,82,204,.08);
  transform: translateY(-2px);
}
.ops-card-icon {
  width: 44px; height: 44px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  margin-bottom: .25rem;
}
.ops-card h3 {
  font-size: 1rem; font-weight: 600;
  color: var(--navy); margin: 0;
}
.ops-card p {
  font-size: .88rem; line-height: 1.6;
  color: var(--text-mid); margin: 0; flex: 1;
}
.ops-card-link {
  font-size: .8rem; font-weight: 600;
  color: var(--primary); text-decoration: none;
  margin-top: auto;
  transition: color .15s;
}
.ops-card-link:hover { color: var(--primary-dark); }

/* ── Why OPNsense ────────────────────────────────────────────── */
.ops-why {
  background: var(--bg-white);
  padding: 4rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.ops-why-inner {
  display: flex;
  align-items: flex-start;
  gap: 3rem;
}
.ops-why-text { flex: 1; }
.ops-why-text h2 {
  font-family: 'Bebas Neue', 'Impact', sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 400; letter-spacing: .03em;
  color: var(--navy); margin-bottom: 1.5rem;
}
.ops-why-list {
  list-style: none; padding: 0; margin: 0 0 1.5rem;
  display: flex; flex-direction: column; gap: .85rem;
}
.ops-why-list li {
  padding-left: 1.2rem;
  position: relative;
  font-size: .92rem; line-height: 1.6;
  color: var(--text-mid);
}
.ops-why-list li::before {
  content: '→';
  position: absolute; left: 0;
  color: var(--primary); font-weight: 700;
}
.ops-why-list strong { color: var(--navy); }
.ops-attribution {
  font-size: .78rem; color: var(--text-light);
}
.ops-attribution a { color: var(--text-light); }
.ops-attribution a:hover { color: var(--primary); }

.ops-why-img {
  flex-shrink: 0;
  display: flex; align-items: center;
}
.ops-why-img img {
  width: 220px; height: auto;
  object-fit: contain;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-light);
  padding: 1rem;
}

/* ── Region band ─────────────────────────────────────────────── */

.ops-region-text {
  text-align: center;
  color: rgba(255,255,255,.9);
  font-size: .95rem; line-height: 1.7;
  margin: 0;
}
.ops-region-text strong { color: #fff; }

/* ── Contact CTA ─────────────────────────────────────────────── */
.ops-contact {
  background: var(--bg-light);
  padding: 4.5rem 0;
  text-align: center;
}
.ops-contact h2 {
  font-family: 'Bebas Neue', 'Impact', sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 400; letter-spacing: .03em;
  color: var(--navy); margin-bottom: 1rem;
}
.ops-contact p {
  font-size: .95rem; color: var(--text-mid);
  max-width: 520px; margin: 0 auto 2rem;
  line-height: 1.65;
}
.ops-contact-cta { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }

/* ── Dark mode ───────────────────────────────────────────────── */
[data-theme="dark"] .ops-hero {
  background:
    radial-gradient(ellipse at 10% 50%, rgba(59,130,246,.08) 0%, transparent 55%),
    radial-gradient(ellipse at 90% 20%, rgba(245,158,11,.05) 0%, transparent 50%),
    #080e1a !important;
}
[data-theme="dark"] .ops-hero-text h1 { color: #f0f6ff; }
[data-theme="dark"] .ops-badge { background: #1a2540; border-color: rgba(255,255,255,.12); }
[data-theme="dark"] .ops-sub { color: #94a3b8; }
[data-theme="dark"] .ops-offer { background: #0d1525 !important; }
[data-theme="dark"] .ops-card { background: #0f1829 !important; border-color: rgba(255,255,255,.08) !important; }
[data-theme="dark"] .ops-card:hover { border-color: rgba(59,130,246,.30) !important; box-shadow: 0 4px 20px rgba(59,130,246,.10) !important; }
[data-theme="dark"] .ops-card-icon { background: rgba(59,130,246,.08); border-color: rgba(59,130,246,.15); }
[data-theme="dark"] .ops-card h3 { color: #f0f6ff; }
[data-theme="dark"] .ops-card p { color: #94a3b8; }
[data-theme="dark"] .ops-why { background: var(--bg-white) !important; border-color: var(--border) !important; }
[data-theme="dark"] .ops-why-text h2 { color: #f0f6ff; }
[data-theme="dark"] .ops-why-list li { color: #94a3b8; }
[data-theme="dark"] .ops-why-list strong { color: #f0f6ff; }
[data-theme="dark"] .ops-why-img img { background: #1a2540; border-color: rgba(255,255,255,.08); }
[data-theme="dark"] .ops-contact { background: var(--bg-light) !important; }
[data-theme="dark"] .ops-contact h2 { color: #f0f6ff; }
[data-theme="dark"] .ops-contact p { color: #94a3b8; }
[data-theme="dark"] .btn-ops-secondary { border-color: rgba(255,255,255,.16); color: #94a3b8; }
[data-theme="dark"] .btn-ops-secondary:hover { border-color: #3b82f6; color: #3b82f6; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 768px) {
  .ops-hero { padding: 3.5rem 0 2.5rem; }
  .ops-hero-inner { flex-direction: column; gap: 2rem; }
  .ops-hero-logo { display: none; }
  .ops-why-inner { flex-direction: column; }
  .ops-why-img { display: none; }
  .ops-grid { grid-template-columns: 1fr; }
}

/* ── Product / interface gallery ────────────────────────────── */
.ops-gallery {
  background: var(--bg-light);
  padding: 2.5rem 0 2rem;
  border-bottom: 1px solid var(--border);
}
.ops-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.ops-gallery-item {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #fff;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.ops-gallery-item:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 20px rgba(0,82,204,.12);
  transform: translateY(-2px);
}
.ops-gallery-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: top left;
  display: block;
  background: var(--bg-light);
}
.ops-gallery-cap {
  font-size: .72rem;
  color: var(--text-light);
  text-align: center;
  padding: .4rem .75rem .6rem;
  margin: 0;
  line-height: 1.4;
  border-top: 1px solid var(--border);
}
[data-theme="dark"] .ops-gallery { background: #0d1525; }
[data-theme="dark"] .ops-gallery-item {
  background: #111e35;
  border-color: rgba(255,255,255,.07);
}
[data-theme="dark"] .ops-gallery-item:hover {
  border-color: #3b82f6;
  box-shadow: 0 4px 20px rgba(59,130,246,.14);
}
[data-theme="dark"] .ops-gallery-cap { color: #475569; border-color: rgba(255,255,255,.06); }
[data-theme="dark"] .ops-gallery-img { background: #1a2540; }
@media (max-width: 600px) {
  .ops-gallery-grid { grid-template-columns: 1fr 1fr; }
  .ops-gallery-img { height: 140px; }
}
}

/* ── TrueNAS brand card (dark bg per brand guide) ─────────── */
.truenas-brand-card {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a1220;          /* TrueNAS-approved dark bg */
  border: 2px solid #0095D5;   /* Pantone Blue 2925 C */
  border-radius: 12px;
  padding: 2rem 1.5rem;
  min-height: 180px;
  position: relative;
  overflow: hidden;
}
.truenas-brand-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #0095D5, #31BEEC);
}
.truenas-brand-logo {
  max-width: 240px;
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* ── TrueNAS hero accent strip ────────────────────────────── */
.ops-hero--truenas {
  border-bottom: 3px solid #0095D5;
}
.ops-hero--truenas .ops-hero-logo img {
  filter: drop-shadow(0 4px 24px rgba(0,149,213,.25));
}
[data-theme="dark"] .ops-hero--truenas .ops-hero-logo img {
  filter: drop-shadow(0 4px 32px rgba(49,190,236,.35));
}

/* ── Gallery images on dark backgrounds ──────────────────── */
.ops-gallery-img--dark {
  background: #0a1220;
  object-fit: contain;
  padding: 0.5rem;
}
