/* ================= Extra styles layered on top of styles.css ================= */

/* Services dropdown in nav */
.nav-links li.has-dropdown { position: relative; }
.nav-links .dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #12151D;
  border: 1px solid rgba(245,244,240,0.12);
  border-radius: 10px;
  min-width: 260px;
  padding: 8px;
  list-style: none;
  z-index: 50;
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
}
.nav-links li.has-dropdown:hover .dropdown,
.nav-links li.has-dropdown:focus-within .dropdown { display: block; }
.nav-links .dropdown li a {
  display: block;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 14px;
  white-space: normal;
}
.nav-links .dropdown li a:hover { background: rgba(245,244,240,0.08); }

@media (max-width: 900px) {
  .nav-links .dropdown {
    position: static;
    display: none;
    border: none;
    background: transparent;
    box-shadow: none;
    padding-left: 12px;
  }
  .nav-links li.has-dropdown.open .dropdown { display: block; }
}

/* Service box grid (homepage + services listing page) */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 34px;
}
@media (max-width: 900px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .service-grid { grid-template-columns: 1fr; } }

.service-box {
  display: flex;
  flex-direction: column;
  background: #12151D;
  border: 1px solid rgba(245,244,240,0.1);
  border-radius: 14px;
  padding: 28px 24px;
  text-decoration: none;
  color: inherit;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  position: relative;
  overflow: hidden;
}
.service-box::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 0%, rgba(231,169,60,0.09), transparent 60%);
  opacity: 0; transition: opacity .3s ease;
}
.service-box:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  border-color: rgba(231,169,60,0.45);
}
.service-box:hover::before { opacity: 1; }
.service-box.featured { border-color: rgba(53,193,160,0.5); }

.service-box-icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(231,169,60,0.12);
  color: #E7A93C;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  transition: transform .3s ease, background .3s ease;
}
.service-box-icon svg { width: 26px; height: 26px; }
.service-box:hover .service-box-icon { transform: scale(1.12) rotate(-4deg); background: rgba(231,169,60,0.22); }

.service-box h3 { font-size: 18px; margin: 0 0 10px; line-height: 1.35; position: relative; z-index: 1; }
.service-box p { font-size: 14px; color: var(--text-muted); margin: 0 0 16px; flex-grow: 1; position: relative; z-index: 1; }
.service-box-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; position: relative; z-index: 1; }
.service-box-tags span {
  font-size: 11.5px; padding: 4px 10px; border-radius: 20px;
  background: rgba(245,244,240,0.07); color: var(--text-muted);
}
.service-box-arrow {
  font-size: 13.5px; font-weight: 600; color: #E7A93C;
  position: relative; z-index: 1;
  transition: letter-spacing .3s ease;
}
.service-box:hover .service-box-arrow { letter-spacing: 0.5px; }

/* Full services listing page (services.php with no slug) */
.services-index-grid .service-grid { margin-top: 0; }

/* Blog grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 30px;
}
.blog-grid-full { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) {
  .blog-grid, .blog-grid-full { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .blog-grid, .blog-grid-full { grid-template-columns: 1fr; }
}
.blog-card {
  display: block;
  background: #12151D;
  border: 1px solid rgba(245,244,240,0.1);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 34px rgba(0,0,0,0.35);
  border-color: rgba(231,169,60,0.4);
}
.blog-card img { width: 100%; height: 180px; object-fit: cover; display: block; }
.blog-card-body { padding: 18px 20px 22px; }
.blog-card-body .tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #E7A93C;
  margin-bottom: 8px;
}
.blog-card-body h3 { font-size: 18px; margin: 0 0 8px; line-height: 1.35; }
.blog-card-body p { font-size: 14px; color: var(--text-muted); margin: 0 0 12px; }
.blog-date { font-size: 12.5px; color: var(--text-muted); }

/* Client logos strip */
.clients-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  margin-top: 30px;
}
.clients-strip img {
  max-height: 54px;
  width: auto;
  filter: grayscale(1) brightness(1.6);
  opacity: 0.75;
  transition: opacity 0.25s ease, filter 0.25s ease, transform 0.25s ease;
}
.clients-strip img:hover {
  filter: grayscale(0) brightness(1);
  opacity: 1;
  transform: scale(1.05);
}

/* Captcha field */
.captcha-field input { max-width: 180px; }

/* Inline form error banner */
.form-error-banner {
  background: rgba(220,60,60,0.12);
  border: 1px solid rgba(220,60,60,0.4);
  color: #ff8a8a;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 14px;
}

/* Subtle fade/slide animation reused across dynamic sections */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* Make sure long DB-driven content stays responsive */
.article-body img, .article-body iframe { max-width: 100%; height: auto; }
.article-body { line-height: 1.8; }
.article-body h2 { margin-top: 34px; }
.article-body ul { padding-left: 20px; }
