/* Voltage Security — Design System v2 (OpenClaw-inspired) */

/* ============================================================
   Base
   ============================================================ */
html {
  scroll-behavior: smooth;
  height: auto;
  min-height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
body {
  height: auto;
  min-height: 100vh;
}

/* ============================================================
   Form Inputs
   ============================================================ */
.form-input {
  display: block;
  width: 100%;
  padding: 0.625rem 0.875rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #0f172a;
  background-color: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.625rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-input::placeholder {
  color: #94a3b8;
}
.form-input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.form-input:disabled {
  background-color: #f1f5f9;
  color: #94a3b8;
  cursor: not-allowed;
}

/* ============================================================
   Grid Background + Glow (hero)
   ============================================================ */
.bg-grid {
  background-image:
    linear-gradient(to right, rgba(0, 0, 0, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
}

.bg-grid-fade {
  mask-image: radial-gradient(ellipse 80% 70% at 50% 45%, black 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 45%, black 10%, transparent 70%);
}

.bg-grid-blur {
  background-image:
    linear-gradient(to right, rgba(0, 0, 0, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
  background-size: 56px 56px;
  filter: blur(6px);
  mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, black 0%, transparent 65%);
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, black 0%, transparent 65%);
}

.bg-hero-glow {
  background: radial-gradient(ellipse 50% 40% at 50% 52%, rgba(37, 99, 235, 0.06) 0%, transparent 70%);
}

/* ============================================================
   Section Dividers
   ============================================================ */
.section-divider {
  border-top: 1px solid #e2e8f0;
}

/* ============================================================
   OpenClaw-Inspired Component Utilities
   ============================================================ */

/* Checklist Item */
.checklist-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.875rem;
  color: #475569;
}
.checklist-item__circle {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background-color: #dbeafe;
  color: #086bff;
}
.checklist-item__circle svg {
  width: 0.75rem;
  height: 0.75rem;
}

/* Feature Tag */
.feature-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.625rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1;
}
.feature-tag--blue {
  background-color: #eff6ff;
  color: #086bff;
}
.feature-tag--warm {
  background-color: #f1f5f9;
  color: #475569;
}
.feature-tag--slate {
  background-color: #f1f5f9;
  color: #475569;
}

/* Testimonial Card */
.testimonial-card {
  border-radius: 1rem;
  padding: 1.5rem;
  border: 1px solid;
}
@media (min-width: 640px) {
  .testimonial-card {
    padding: 2rem;
    border-radius: 1.25rem;
  }
}
.testimonial-card--blue {
  background-color: rgba(239, 246, 255, 0.5);
  border-color: #dbeafe;
}
.testimonial-card--warm {
  background-color: rgba(248, 250, 252, 0.5);
  border-color: #dbe4f0;
}
.testimonial-card--neutral {
  background-color: rgba(248, 250, 252, 0.5);
  border-color: #dbe4f0;
}

/* FAQ Accordion */
.faq-item {
  border: 1px solid #dbe4f0;
  border-radius: 0.75rem;
  overflow: hidden;
  background-color: #fff;
  transition: background-color 0.2s ease;
}
.faq-item.is-open {
  background-color: #f8fafc;
}
.faq-trigger {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  text-align: left;
  font-weight: 500;
  color: #071426;
  background: none;
  border: none;
  cursor: pointer;
}
.faq-trigger__icon {
  color: #086bff;
  flex-shrink: 0;
}
.faq-trigger__chevron {
  color: #94a3b8;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.faq-item.is-open .faq-trigger__chevron {
  transform: rotate(180deg);
}
.faq-content {
  padding: 0 1.5rem 1.25rem;
  padding-left: 3.5rem;
  font-size: 0.875rem;
  line-height: 1.75;
  color: #475569;
}

/* Contact CTA Box */
.contact-cta-box {
  border-radius: 1rem;
  background-color: #eff6ff;
  border: 1px solid #dbeafe;
  padding: 2rem;
}

/* ============================================================
   Icon Circles
   ============================================================ */
.icon-circle {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-circle-primary {
  background-color: #eff6ff;
  color: #2563eb;
  border: 1px solid #dbeafe;
}

.icon-circle-accent {
  background-color: #faf5ff;
  color: #9333ea;
  border: 1px solid #f3e8ff;
}

.icon-circle-slate {
  background-color: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.icon-circle-warm {
  background-color: #fff7ed;
  color: #ea580c;
  border: 1px solid #ffedd5;
}

/* ============================================================
   Feature Tags
   ============================================================ */
.feature-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.625rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1;
}

.feature-tag-primary {
  background-color: #eff6ff;
  color: #2563eb;
}

.feature-tag-accent {
  background-color: #faf5ff;
  color: #9333ea;
}

.feature-tag-slate {
  background-color: #f1f5f9;
  color: #475569;
}

/* ============================================================
   Fade-in animation via IntersectionObserver
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   Fade-in keyframe for form sections
   ============================================================ */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   Custom scrollbar
   ============================================================ */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* ============================================================
   Mapael tooltip styling
   ============================================================ */
.mapTooltip {
  position: absolute;
  z-index: 50;
  background: rgba(15, 23, 42, 0.95);
  color: #fff;
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  pointer-events: none;
  white-space: nowrap;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* ============================================================
   Partner carousel boxes
   ============================================================ */
.partner-box {
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* ============================================================
   Bootstrap Grid Compatibility Shim (subpages)
   ============================================================ */
.container {
  width: 100%;
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}
.container-fluid {
  width: 100%;
  padding-left: 1rem;
  padding-right: 1rem;
}
.row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -0.75rem;
  margin-right: -0.75rem;
}
.row > [class*="col-"] {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  box-sizing: border-box;
  min-height: 1px;
}

.col-xs-1  { width: 8.333333%; }
.col-xs-2  { width: 16.666667%; }
.col-xs-3  { width: 25%; }
.col-xs-4  { width: 33.333333%; }
.col-xs-5  { width: 41.666667%; }
.col-xs-6  { width: 50%; }
.col-xs-7  { width: 58.333333%; }
.col-xs-8  { width: 66.666667%; }
.col-xs-9  { width: 75%; }
.col-xs-10 { width: 83.333333%; }
.col-xs-11 { width: 91.666667%; }
.col-xs-12 { width: 100%; }

@media (min-width: 640px) {
  .col-sm-1  { width: 8.333333%; }
  .col-sm-2  { width: 16.666667%; }
  .col-sm-3  { width: 25%; }
  .col-sm-4  { width: 33.333333%; }
  .col-sm-5  { width: 41.666667%; }
  .col-sm-6  { width: 50%; }
  .col-sm-7  { width: 58.333333%; }
  .col-sm-8  { width: 66.666667%; }
  .col-sm-9  { width: 75%; }
  .col-sm-10 { width: 83.333333%; }
  .col-sm-11 { width: 91.666667%; }
  .col-sm-12 { width: 100%; }
}

@media (min-width: 768px) {
  .col-md-1  { width: 8.333333%; }
  .col-md-2  { width: 16.666667%; }
  .col-md-3  { width: 25%; }
  .col-md-4  { width: 33.333333%; }
  .col-md-5  { width: 41.666667%; }
  .col-md-6  { width: 50%; }
  .col-md-7  { width: 58.333333%; }
  .col-md-8  { width: 66.666667%; }
  .col-md-9  { width: 75%; }
  .col-md-10 { width: 83.333333%; }
  .col-md-11 { width: 91.666667%; }
  .col-md-12 { width: 100%; }
}

@media (min-width: 1024px) {
  .col-lg-1  { width: 8.333333%; }
  .col-lg-2  { width: 16.666667%; }
  .col-lg-3  { width: 25%; }
  .col-lg-4  { width: 33.333333%; }
  .col-lg-5  { width: 41.666667%; }
  .col-lg-6  { width: 50%; }
  .col-lg-7  { width: 58.333333%; }
  .col-lg-8  { width: 66.666667%; }
  .col-lg-9  { width: 75%; }
  .col-lg-10 { width: 83.333333%; }
  .col-lg-11 { width: 91.666667%; }
  .col-lg-12 { width: 100%; }
}

@media (min-width: 1280px) {
  .col-xl-1  { width: 8.333333%; }
  .col-xl-2  { width: 16.666667%; }
  .col-xl-3  { width: 25%; }
  .col-xl-4  { width: 33.333333%; }
  .col-xl-5  { width: 41.666667%; }
  .col-xl-6  { width: 50%; }
  .col-xl-7  { width: 58.333333%; }
  .col-xl-8  { width: 66.666667%; }
  .col-xl-9  { width: 75%; }
  .col-xl-10 { width: 83.333333%; }
  .col-xl-11 { width: 91.666667%; }
  .col-xl-12 { width: 100%; }
}

.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }
.list-unstyled { list-style: none; padding-left: 0; margin-bottom: 0; }
.list-inline { list-style: none; padding-left: 0; }
.list-inline > li { display: inline-block; }
.img-responsive { max-width: 100%; height: auto; display: block; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

/* ============================================================
   Old Subpage Content Compatibility
   ============================================================ */

.aboutHeader {
  font-size: 2rem;
  font-weight: 800;
  color: #0f172a;
  text-align: center;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.list-align {
  list-style: none;
  padding-left: 0;
  text-align: left;
}
.list-align li {
  padding: 0.25rem 0;
}

/* Diagonal image section — image is missing, hide it and expand text */
.diagonal {
  display: none !important;
}
.textEdit {
  width: 100% !important;
  margin-top: 2rem;
  padding: 0 1rem;
}
.textEdit h2 {
  color: #9333ea;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.textEdit p {
  color: #475569;
  line-height: 1.7;
}

/* CTA button in parallax bands */
.break-btn {
  display: inline-block;
  color: white;
  text-transform: uppercase;
  background-color: transparent;
  border: 1px solid white;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  transition: all 0.3s ease;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
}
.break-btn:hover {
  color: #0f172a;
  background-color: white;
}

/* Highlight parallax border variant */
.highlight-para {
  border: 2px solid #9333ea;
}

/* Cities list container */
.cities {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
}
.cities ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1rem;
}
.cities li a {
  color: #475569;
  text-decoration: none;
  display: block;
  padding: 0.25rem 0;
  transition: color 0.2s;
}
.cities li a:hover {
  color: #2563eb;
}
.cities h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 0.5rem;
}

/* Parallax CTA bands (subpages) */
.js__parallax-window,
.js__parallax-window1,
.js__parallax-window2,
.js__parallax-window3 {
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  padding: 4rem 1rem;
  text-align: center;
  color: white;
}
/* Parallax bands — kept for subpages, main page now uses clean CTA sections */
.js__parallax-window {
  background-image: url(/CustomPictures/break5.jpg);
}
.js__parallax-window1 {
  background-image: url(/CustomPictures/break2.jpg);
}
.js__parallax-window2 {
  background-image: url(/CustomPictures/break1.jpg);
}
.js__parallax-window3 {
  background-image: url(/CustomPictures/break3.jpg);
}

.autoText {
  color: white;
}
.autoText p {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}
.autoText span {
  font-size: 1.125rem;
}

/* AboutHr in subpages */
#AboutHr {
  width: 4rem;
  height: 3px;
  background-color: #9333ea;
  border: none;
  border-radius: 2px;
  margin: 0.75rem auto 1.5rem;
}


/* ============================================================
   Swiper pagination spacing
   ============================================================ */
.partner-swiper .swiper-pagination {
  position: relative;
  margin-top: 2rem;
  padding-top: 0.5rem;
}
.partner-swiper .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: #cbd5e1;
  opacity: 1;
  margin: 0 6px !important;
}
.partner-swiper .swiper-pagination-bullet-active {
  background: #2563eb;
}

/* ============================================================
   Mapael responsive safeguard
   ============================================================ */
.mapcontainer {
  max-width: 100%;
}

.mapael .map svg {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Reduce plot markers on narrow screens */
@media (max-width: 640px) {
  .mapael .map [data-id] {
    transform: scale(0.65);
    transform-origin: center;
  }
}
