/*
Theme Name: 4DIP Secure Platform
Theme URI: https://www.4dip.com
Author: 4DIP
Description: Secure collaboration, VPN, risk, cyber security, and command platform theme for 4DIP.
Version: 1.1.3
License: GPL-2.0-or-later
Text Domain: fourdip
*/

:root {
  --navy: #071d3a;
  --navy-2: #0b2f58;
  --sky: #4bb7e8;
  --sky-soft: #dff5ff;
  --gold: #c99a2e;
  --gold-soft: #fff3ce;
  --ivory: #fffaf0;
  --ink: #102033;
  --muted: #667789;
  --red: #d71920;
  --line: rgba(7, 29, 58, .14);
  --shadow: 0 22px 60px rgba(7, 29, 58, .18);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  font-family: "Segoe UI", Inter, Arial, sans-serif;
  background: var(--ivory);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 29, 58, .94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.nav-wrap {
  max-width: 1240px;
  margin: 0 auto;
  min-height: 78px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: white;
  font-weight: 900;
  font-size: 26px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--navy);
  background: linear-gradient(135deg, var(--gold), var(--ivory) 58%, var(--sky));
}

.primary-menu {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  padding: 0;
}

.primary-menu li { position: relative; }

.primary-menu a {
  display: flex;
  min-height: 42px;
  align-items: center;
  padding: 0 12px;
  color: rgba(255, 255, 255, .82);
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
}

.primary-menu a:hover,
.primary-menu .current-menu-item > a { color: white; background: rgba(255, 255, 255, .12); }

.primary-menu .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 210px;
  padding: 8px;
  margin: 0;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}

.primary-menu li:hover > .sub-menu { display: block; }
.primary-menu .sub-menu a { color: var(--navy); }

.get-4dip a,
.menu-item.get-4dip a,
.primary-menu a[href*="get-4dip"],
.nav-cta {
  color: white !important;
  background: var(--red) !important;
  box-shadow: 0 12px 28px rgba(215, 25, 32, .28);
}

.menu-toggle { display: none; }

.home-visual-slider {
  position: relative;
  min-height: 720px;
  color: white;
  overflow: hidden;
  background: var(--navy);
}

.home-visual-slider::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 29, 58, .96), rgba(7, 29, 58, .72) 42%, rgba(7, 29, 58, .12));
  z-index: 1;
}

.visual-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  z-index: 0;
  transition: opacity .85s ease, transform 5.2s ease;
  transform: scale(1.02);
}

.visual-slide.active {
  opacity: 1;
  z-index: 1;
  transform: scale(1.06);
}

.visual-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.visual-slide.slide-one {
  background-image: url("assets/images/hero-virtual-room.png");
}

.visual-slide.slide-two {
  background-image: url("assets/images/product-dashboard.png");
}

.visual-slide.slide-three {
  background-image: url("assets/images/secure-industries.png");
}

.home-visual-content {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  margin: 0 auto;
  padding: 120px 22px 90px;
}

.home-visual-content h1 {
  max-width: 760px;
  margin: 22px 0 18px;
  color: white;
  font-size: clamp(42px, 7vw, 88px);
  line-height: .96;
  letter-spacing: 0;
}

.home-visual-content p {
  max-width: 680px;
  color: rgba(255, 255, 255, .82);
  font-size: 20px;
  line-height: 1.55;
}

.home-visual-slider + main > .hero:first-child {
  display: none;
}

@keyframes fourdipVisualSlide {
  0% { opacity: 0; transform: scale(1.02); }
  6% { opacity: 1; }
  31% { opacity: 1; }
  38% { opacity: 0; transform: scale(1.08); }
  100% { opacity: 0; transform: scale(1.02); }
}

.hero {
  position: relative;
  min-height: 720px;
  color: white;
  overflow: hidden;
  background: var(--navy);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  z-index: 0;
  transition: opacity .85s ease, transform 5.2s ease;
  transform: scale(1.02);
}

.hero-slide.active {
  opacity: 1;
  z-index: 1;
  transform: scale(1.06);
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 29, 58, .96), rgba(7, 29, 58, .72) 42%, rgba(7, 29, 58, .12));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  margin: 0 auto;
  padding: 120px 22px 90px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, .26);
  border-radius: 999px;
  color: var(--gold-soft);
  background: rgba(255, 255, 255, .1);
  font-size: 13px;
  font-weight: 800;
}

.hero h1 {
  max-width: 760px;
  margin: 22px 0 18px;
  font-size: clamp(42px, 7vw, 88px);
  line-height: .96;
  letter-spacing: 0;
}

.hero p {
  max-width: 680px;
  color: rgba(255, 255, 255, .82);
  font-size: 20px;
  line-height: 1.55;
}

.hero-actions,
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 8px;
  border: 1px solid var(--line);
  color: var(--navy);
  background: white;
  font-weight: 900;
}

.button.primary { color: white; background: linear-gradient(135deg, var(--navy), var(--sky)); }
.button.gold { color: var(--navy); background: linear-gradient(135deg, #f8d982, var(--gold)); }
.button.red { color: white; background: var(--red); border-color: rgba(215, 25, 32, .5); }

.section {
  padding: 84px 22px;
}

.section.alt { background: linear-gradient(180deg, #f5fbff, var(--ivory)); }
.section.dark { color: white; background: var(--navy); }

.container {
  max-width: 1240px;
  margin: 0 auto;
}

.section-head {
  max-width: 780px;
  margin-bottom: 34px;
}

.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.section h2,
.page-hero h1 {
  margin: 0 0 14px;
  color: var(--navy);
  font-size: clamp(32px, 4.5vw, 58px);
  line-height: 1.02;
}

.section.dark h2 { color: white; }

.lead {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.section.dark .lead { color: rgba(255, 255, 255, .76); }

.grid {
  display: grid;
  gap: 18px;
}

.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 14px 34px rgba(7, 29, 58, .08);
}

.card h3 { margin: 0 0 10px; color: var(--navy); font-size: 22px; }
.card p, .card li { color: var(--muted); line-height: 1.55; }
.card ul { margin: 12px 0 0; padding-left: 18px; }

.image-card {
  overflow: hidden;
  padding: 0;
}

.image-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.image-card .card-body { padding: 22px; }

.comparison {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}

.comparison th,
.comparison td {
  padding: 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

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

.comparison td:first-child { font-weight: 900; color: var(--navy); }
.check { color: #0f8f70; font-weight: 900; }
.gap { color: var(--red); font-weight: 900; }

.page-hero {
  padding: 90px 22px;
  color: white;
  background:
    linear-gradient(120deg, rgba(7, 29, 58, .96), rgba(11, 47, 88, .9), rgba(75, 183, 232, .5)),
    url("assets/images/secure-industries.png") center/cover;
}

.page-hero h1 { color: white; }
.page-hero p { max-width: 760px; color: rgba(255, 255, 255, .8); font-size: 20px; line-height: 1.55; }

.industry-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.industry-band span {
  min-height: 48px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 8px;
  color: white;
  background: rgba(75, 183, 232, .18);
  border: 1px solid rgba(255, 255, 255, .18);
}

.site-footer {
  color: rgba(255, 255, 255, .72);
  background: #04152c;
  padding: 38px 22px;
}

.footer-grid {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
}

@media (max-width: 920px) {
  .nav-wrap { flex-wrap: wrap; padding: 14px 18px; }
  .primary-menu { width: 100%; flex-wrap: wrap; margin-left: 0; }
  .primary-menu .sub-menu { position: static; box-shadow: none; }
  .grid.three, .grid.two, .grid.four, .grid.five, .industry-band, .footer-grid { grid-template-columns: 1fr; }
  .hero { min-height: 640px; }
}
