/*
Theme Name: DynaSec
Theme URI: https://dynasec.ge/
Author: DynaSec
Description: DynaSec WordPress theme with HIVIDEO-style structure and DynaSec colors.
Version: 2.2.0
Text Domain: dynasec
*/

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: Arial, Helvetica, sans-serif;
  background: #f4f6f8;
  color: #1f2937;
  line-height: 1.6;
}
.container { width: 92%; max-width: 1200px; margin: 0 auto; }

.header {
  background: #111827;
  color: #ffffff;
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}
.brand-area {
  display: flex;
  align-items: center;
  gap: 28px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: #ffffff;
  min-width: 280px;
}
.logo img {
  width: 76px;
  height: 76px;
  object-fit: contain;
}
.logo h1 {
  font-size: 30px;
  line-height: 1.1;
}
.logo span {
  font-size: 15px;
  color: #9ca3af;
  letter-spacing: 1px;
}
.partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000000;
  padding: 8px 14px;
  border-radius: 12px;
}
.partner-logo img {
  width: 170px;
  max-height: 54px;
  object-fit: contain;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
}
.nav a,
.nav button {
  color: #ffffff;
  text-decoration: none;
  font-size: 15px;
  font-weight: bold;
  transition: 0.2s;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.nav a:hover,
.nav button:hover { color: #38bdf8; }

.nav-item { position: relative; }
.mega-menu {
  position: absolute;
  top: calc(100% + 18px);
  right: 0;
  width: 760px;
  display: none;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  background: #ffffff;
  color: #111827;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 20px 45px rgba(0,0,0,0.28);
  z-index: 2000;
}
.nav-item:hover .mega-menu,
.nav-item:focus-within .mega-menu,
.nav-item.open .mega-menu {
  display: grid;
}
.mega-group h4 {
  color: #0284c7;
  margin-bottom: 10px;
  font-size: 16px;
}
.mega-group a {
  display: block;
  color: #1f2937;
  padding: 8px 0;
  font-weight: bold;
  text-decoration: none;
}
.mega-group a:hover { color: #0284c7; padding-left: 4px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 20px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.2s;
  text-align: center;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.btn.primary { background: #0284c7; color: #ffffff; }
.btn.primary:hover { background: #0369a1; }
.btn.secondary { background: #ffffff; color: #111827; }
.btn.secondary:hover { background: #e5e7eb; }
.btn.whatsapp { background: #22c55e; color: #ffffff; }
.btn.whatsapp:hover { background: #16a34a; }
.btn.small { background: #111827; color: #ffffff; padding: 10px 16px; font-size: 14px; }
.btn.small:hover { background: #374151; }

.hero {
  background: linear-gradient(135deg, #111827, #1e3a8a);
  color: #ffffff;
  padding: 0;
}
.home-slider {
  position: relative;
  width: 100%;
  min-height: 490px;
  overflow: hidden;
  background: #111827;
}
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
}
.slide.active { opacity: 1; z-index: 1; }
.slide img {
  width: 100%;
  height: 100%;
  min-height: 490px;
  object-fit: cover;
  display: block;
  filter: brightness(0.58);
}
.slide-caption {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  color: #ffffff;
}
.slide-caption-inner { max-width: 760px; }
.slide-caption h2 {
  font-size: 52px;
  line-height: 1.15;
  margin-bottom: 16px;
}
.slide-caption p {
  font-size: 19px;
  color: #e5e7eb;
  margin-bottom: 24px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.phone-icon { font-size: 18px; }

.slider-btn {
  position: absolute;
  top: 50%;
  z-index: 3;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 999px;
  background: rgba(255,255,255,0.86);
  color: #111827;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
}
.slider-btn.prev { left: 22px; }
.slider-btn.next { right: 22px; }
.slider-dots {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}
.dot {
  width: 11px;
  height: 11px;
  border: none;
  border-radius: 999px;
  background: rgba(255,255,255,0.55);
  cursor: pointer;
}
.dot.active { background: #ffffff; }

.section { padding: 70px 0; }
.section.light { background: #ffffff; }
.section-title { text-align: center; margin-bottom: 40px; }
.section-title h2 { font-size: 34px; margin-bottom: 10px; color: #111827; }
.section-title p { color: #6b7280; }

.about-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 36px;
  align-items: center;
}
.about-image {
  background: linear-gradient(135deg, #111827, #1e3a8a);
  min-height: 320px;
  border-radius: 18px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}
.about-text h2 {
  font-size: 34px;
  margin-bottom: 14px;
  color: #111827;
}
.about-text p { color: #6b7280; margin-bottom: 16px; }

.product-center-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}
.product-center-card {
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  text-decoration: none;
  color: inherit;
  transition: 0.2s;
}
.product-center-card:hover { transform: translateY(-5px); }
.product-center-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  background: #e5e7eb;
}
.product-center-body { padding: 22px; }
.product-center-body h3 { font-size: 21px; margin-bottom: 8px; color: #111827; }
.product-center-body p { color: #6b7280; margin-bottom: 14px; }
.view-more { color: #0284c7; font-weight: bold; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}
.service-box {
  background: #f4f6f8;
  padding: 28px;
  border-radius: 18px;
  border: 1px solid #e5e7eb;
}
.service-box h3 { font-size: 22px; margin-bottom: 10px; color: #111827; }
.service-box p { color: #6b7280; }

.contact-section {
  background: #111827;
  color: #ffffff;
}
.contact-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.contact-box h2 { font-size: 32px; margin-bottom: 8px; }
.contact-box p { color: #d1d5db; }
.contact-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.footer {
  background: #030712;
  color: #9ca3af;
  padding: 38px 0 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 28px;
}
.footer h3, .footer h4 { color: #ffffff; margin-bottom: 12px; }
.footer a {
  color: #9ca3af;
  display: block;
  text-decoration: none;
  margin-bottom: 8px;
}
.footer a:hover { color: #38bdf8; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 15px;
}

/* Category pages */
.category-page-hero {
  background: linear-gradient(135deg, #111827, #1e3a8a);
  color: #ffffff;
  padding: 70px 0;
}
.category-page-hero h1 { font-size: 42px; margin-bottom: 10px; }
.category-page-hero p { color: #d1d5db; font-size: 18px; }
.sample-product-section { padding: 60px 0; background: #f4f6f8; }
.sample-product-card {
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  display: grid;
  grid-template-columns: 380px 1fr;
  max-width: 920px;
}
.sample-product-card img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
  background: #e5e7eb;
}
.sample-product-body { padding: 30px; }
.sample-product-body h2 { color: #111827; font-size: 28px; margin-bottom: 10px; }
.sample-product-body p { color: #6b7280; margin-bottom: 14px; }
.sample-product-body ul { margin: 0 0 18px 0; list-style: none; }
.sample-product-body li { color: #4b5563; margin-bottom: 7px; }
.sample-product-body li::before { content: "✓ "; color: #0284c7; font-weight: bold; }
.price { font-size: 22px; font-weight: bold; color: #111827; margin-bottom: 16px; }

@media (max-width: 1100px) {
  .header-inner { flex-direction: column; align-items: flex-start; }
  .nav { flex-wrap: wrap; }
  .mega-menu { right: auto; left: 0; width: min(92vw, 760px); }
}
@media (max-width: 900px) {
  .about-layout { grid-template-columns: 1fr; }
  .product-center-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: 1fr; }
  .contact-box { flex-direction: column; text-align: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .sample-product-card { grid-template-columns: 1fr; }
  .slide-caption h2 { font-size: 38px; }
}
@media (max-width: 650px) {
  .brand-area { flex-direction: column; align-items: flex-start; gap: 12px; }
  .logo { min-width: auto; }
  .logo img { width: 64px; height: 64px; }
  .partner-logo img { width: 145px; max-height: 46px; }
  .nav { gap: 14px; }
  .mega-menu {
    position: static;
    width: 100%;
    grid-template-columns: 1fr;
    margin-top: 12px;
  }
  .home-slider, .slide img { min-height: 420px; }
  .slide-caption h2 { font-size: 31px; }
  .slide-caption p { font-size: 16px; }
  .hero-actions, .btn { width: 100%; }
  .product-center-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}



/* v2 fixes: menu order, stable mega menu, initial-style slider */

.nav {
  order: 1;
}

.mega-nav-item {
  padding: 18px 0;
  margin: -18px 0;
}

.mega-menu {
  top: calc(100% + 2px);
  right: auto;
  left: 0;
}

.mega-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -18px;
  height: 18px;
}

.nav-item:hover .mega-menu,
.nav-item:focus-within .mega-menu,
.nav-item.open .mega-menu,
.mega-menu:hover {
  display: grid;
}

.hero-intro {
  background: linear-gradient(135deg, #111827, #1e3a8a);
  color: #ffffff;
  padding: 70px 0;
}

.hero-intro .hero-text h2 {
  font-size: 44px;
  max-width: 900px;
  line-height: 1.2;
  margin-bottom: 18px;
}

.hero-intro .hero-text p {
  font-size: 18px;
  color: #d1d5db;
  max-width: 760px;
  margin-bottom: 30px;
}

.slider-section {
  background: #f4f6f8;
  padding: 55px 0 35px;
}

.rounded-slider {
  min-height: 360px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.10);
}

.rounded-slider .slide img {
  min-height: 360px;
}

.rounded-slider .slide-caption {
  position: absolute;
  left: 36px;
  right: auto;
  top: auto;
  bottom: 34px;
  transform: none;
  z-index: 2;
  color: #ffffff;
  max-width: 620px;
}

.rounded-slider .slide-caption h2 {
  font-size: 38px;
  line-height: 1.15;
  margin-bottom: 10px;
}

.rounded-slider .slide-caption p {
  font-size: 18px;
  color: #e5e7eb;
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .hero-intro {
    padding: 55px 0;
  }

  .hero-intro .hero-text h2 {
    font-size: 34px;
  }

  .rounded-slider,
  .rounded-slider .slide img {
    min-height: 300px;
  }
}

@media (max-width: 650px) {
  .mega-nav-item {
    padding: 0;
    margin: 0;
  }

  .hero-intro {
    padding: 45px 0;
  }

  .hero-intro .hero-text h2 {
    font-size: 30px;
  }

  .rounded-slider,
  .rounded-slider .slide img {
    min-height: 260px;
  }

  .rounded-slider .slide-caption {
    left: 22px;
    right: 22px;
    bottom: 28px;
  }

  .rounded-slider .slide-caption h2 {
    font-size: 25px;
  }

  .rounded-slider .slide-caption p {
    font-size: 15px;
  }
}



/* v3: narrow pre-slider bar + first-style rounded slider */

.pre-slider-bar {
  background: linear-gradient(135deg, #111827, #1e3a8a);
  color: #ffffff;
  padding: 34px 0;
}

.pre-slider-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}

.pre-slider-inner h2 {
  font-size: 34px;
  line-height: 1.2;
  margin-bottom: 6px;
  max-width: 820px;
}

.pre-slider-inner p {
  color: #d1d5db;
  font-size: 16px;
}

.pre-slider-btn {
  white-space: nowrap;
  padding: 12px 18px;
  font-size: 15px;
}

.slider-section {
  background: #f4f6f8;
  padding: 42px 0 35px;
}

.rounded-slider {
  min-height: 360px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.10);
}

.rounded-slider .slide img {
  min-height: 360px;
  filter: brightness(0.72);
}

.rounded-slider .slide-caption {
  position: absolute;
  left: 36px;
  right: auto;
  top: auto;
  bottom: 34px;
  transform: none;
  z-index: 2;
  color: #ffffff;
  max-width: 620px;
}

.rounded-slider .slide-caption h2 {
  font-size: 38px;
  line-height: 1.15;
  margin-bottom: 10px;
}

.rounded-slider .slide-caption p {
  font-size: 18px;
  color: #e5e7eb;
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .pre-slider-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .pre-slider-inner h2 {
    font-size: 28px;
  }

  .pre-slider-btn {
    width: auto;
  }

  .rounded-slider,
  .rounded-slider .slide img {
    min-height: 300px;
  }
}

@media (max-width: 650px) {
  .pre-slider-bar {
    padding: 28px 0;
  }

  .pre-slider-inner h2 {
    font-size: 24px;
  }

  .pre-slider-inner p {
    font-size: 15px;
  }

  .pre-slider-btn {
    width: 100%;
  }

  .rounded-slider,
  .rounded-slider .slide img {
    min-height: 260px;
  }

  .rounded-slider .slide-caption {
    left: 22px;
    right: 22px;
    bottom: 28px;
  }

  .rounded-slider .slide-caption h2 {
    font-size: 25px;
  }

  .rounded-slider .slide-caption p {
    font-size: 15px;
  }
}
