/* Basic styles for your new website */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: #f8f9fa;
  color: #222;
}
header, footer {
  background: #222;
  color: #fff;
  padding: 1em;
  text-align: center;
}
nav a {
  color: #fff;
  margin: 0 10px;
  text-decoration: none;
}
main {
  padding: 2em;
}
section {
  margin-bottom: 2em;
}
form input, form button {
  margin: 0.5em 0;
  padding: 0.5em;
}

.form-status {
  margin-top: 0.75rem;
  min-height: 1.2em;
  font-size: 0.95rem;
}
.form-status.pending {
  color: #6c757d;
}
.form-status.success {
  color: #0f7a3d;
}
.form-status.error {
  color: #c53030;
}

/* New layout styles */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1em;
}

.site-header {
  background: #0b1221;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 20;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0;
}
.brand {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  font-size: 1.25rem;
}
.nav-toggle {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.25rem;
  display: none;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.primary-nav {
  margin-left: auto;
}
.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.nav-list a, .dropdown-toggle {
  color: #fff;
  background: transparent;
  border: none;
  padding: 0.5rem 0.75rem;
  text-decoration: none;
  cursor: pointer;
}
.dropdown {
  position: relative;
}
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  color: #111;
  min-width: 200px;
  box-shadow: 0 6px 18px rgba(10,10,10,0.12);
  border-radius: 6px;
  padding: 0.5rem 0;
  display: none;
  z-index: 30;
}
.dropdown-menu li a {
  display: block;
  padding: 0.5rem 1rem;
  color: #111;
  text-decoration: none;
}
.dropdown-menu li a:hover {
  background: #f2f4f7;
}
.dropdown.open .dropdown-menu {
  display: block;
}

.hero {
  padding: 3rem 0;
  text-align: left;
}
.hero h1 {
  font-size: 2.25rem;
  margin: 0 0 0.5rem 0;
}
.lead {
  color: #4a5568;
  margin-bottom: 1rem;
}

/* Batchforge-specific hero grid (used on batchforge.html) */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 1.5rem;
  align-items: start;
}
.hero-left .brand-row{
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.company-logo{
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  padding: 6px;
  box-shadow: 0 6px 18px rgba(10,10,10,0.06);
}
.hero-title{font-size:1.6rem;margin:0}
.hero-right .hero-video{
  width: 100%;
  height: auto;
  border-radius: 12px;
  overflow: hidden;
  display: block;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

/* Make sure autoplaying videos appear crisp and don't show browser outlines */
.hero-video[autoplay] {
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

@media (max-width:480px) {
  /* On tiny screens hide video controls to save space (still playable via tap) */
  .hero-video::-webkit-media-controls { display: none !important; }
}
.btn {
  display: inline-block;
  background: #0b6efd;
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  text-decoration: none;
}

.site-footer {
  background: #091023;
  color: #cbd5e1;
  padding: 1.25rem 0;
  text-align: center;
}

/* Responsive */
@media (max-width: 720px) {
  .nav-toggle {
    display: inline-block;
    margin-left: auto;
  }
  .primary-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 64px;
    background: #0b1221;
    display: none;
    padding: 0.5rem 1rem;
  }
  .primary-nav.open {
    display: block;
  }
  .nav-list {
    flex-direction: column;
    gap: 0;
  }
  .dropdown-menu {
    position: static;
    box-shadow: none;
    background: transparent;
    color: #fff;
    padding-left: 0;
  }
  .dropdown-menu li a {
    color: #fff;
    padding-left: 0.5rem;
  }
}

/* Onlyallow feature grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin: 2rem 0;
}
.feature-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(10,10,10,0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.feature-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}
.feature-card .feature-body {
  padding: 1rem;
  text-align: center;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.feature-card h3 {
  margin: 0.5rem 0 0.5rem;
  font-size: 1.05rem;
}
.feature-card p {
  color: #4a5568;
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
}

@media (max-width: 980px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .features-grid { grid-template-columns: 1fr; }
}

/* Contacts styles */
.contacts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}
.contact-card {
  background: #fff;
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 6px 18px rgba(10,10,10,0.06);
}
.contact-card h4 { margin: 0 0 0.5rem; }
.contact-card a { color: #0b6efd; text-decoration: none; }

@media (max-width: 980px) { .contacts-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .contacts-grid { grid-template-columns: 1fr; } }

/* Social links used on company pages */
.socials { margin: 2rem 0; text-align: center; }
.socials h2 { margin-bottom: 0.75rem; color: #111; }
.social-links { display: inline-flex; gap: 0.75rem; align-items: center; }
.social-links a svg,
.social-links a svg * {
  pointer-events: none; /* let the <a> capture clicks so analytics tags fire */
}
.social { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 8px; background: #fff; color: #111; text-decoration: none; box-shadow: 0 4px 14px rgba(10,10,10,0.08); }
.social svg { width: 20px; height: 20px; fill: currentColor; }
.social-facebook { background: #1877f2; color: #fff; }
.social-instagram { background: linear-gradient(45deg,#f58529,#dd2a7b,#8134af); color: #fff; }
.social-x { background: #1d9bf0; color: #fff; }
.social-whatsapp { background: #25D366; color: #fff; }

@media (max-width: 640px) { .social-links { gap: 0.5rem; } .social { width: 40px; height: 40px; } }

/* Strong, theme-agnostic centering for socials section so it's always centered
   regardless of per-theme container/grid rules. This forces the heading and
   icon row to sit in the middle of the content area. */
.socials.container {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
.socials .social-links {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

/* Theme-scoped overrides to make sure socials are centered and rendered above
   any fixed/absolute control panels that some themes add (e.g., quirkbot). */
body.onlyallow .socials.container,
body.batchforge .socials.container,
body.quirkbot .socials.container,
body.virusfor .socials.container {
  position: relative !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  z-index: 15 !important; /* above most page content, below controls if needed */
  margin: 2rem auto !important;
}

/* Ensure the heading inherits correct color across dark themes */
.socials h2 { color: inherit !important; }
.social-links { margin: 0 auto !important; }
