/* ============================================================
   COMPONENTS — Buttons, Cards, Forms, Badges, Modal
   ============================================================ */

/* ============================================================
   BUTTONS
   ============================================================ */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .04em;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all .3s var(--ease-out);
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  white-space: nowrap;
}

.btn-primary{
  background: linear-gradient(135deg, var(--teal-400) 0%, var(--teal-600) 100%);
  color: #001a1a;
  clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
}
.btn-primary::before{
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--teal-200) 0%, var(--teal-400) 100%);
  opacity: 0;
  transition: opacity .3s;
}
.btn-primary:hover::before{ opacity: 1; }
.btn-primary:hover{
  box-shadow: 0 0 32px rgba(20, 184, 166, .5), 0 0 80px rgba(20, 184, 166, .2);
  transform: translateY(-2px);
}
.btn-primary > *{ position: relative; z-index: 1; }

/* Holographic shimmer on primary CTA */
.btn-primary::after{
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, .25),
    transparent
  );
  transition: left .6s;
  z-index: 2;
}
.btn-primary:hover::after{ left: 100%; }

.btn-secondary{
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line-strong);
  clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
}
.btn-secondary:hover{
  border-color: var(--teal-300);
  color: var(--teal-200);
  background: rgba(20, 184, 166, .06);
  box-shadow: var(--glow-sm);
}

/* ============================================================
   CARDS — Service / EV / Why
   ============================================================ */
.service-card{
  position: relative;
  padding: 36px 30px;
  background: linear-gradient(180deg, var(--bg-1) 0%, var(--bg-2) 100%);
  border: 1px solid var(--line);
  clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px);
  transition: all .4s var(--ease);
  cursor: default;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Cursor-follow glow */
.service-card::before{
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at var(--mx, 50%) var(--my, 50%),
    rgba(20, 184, 166, .12),
    transparent 40%
  );
  opacity: 0;
  transition: opacity .4s;
  pointer-events: none;
}

/* Border beam animation on hover */
.service-card::after{
  content: '';
  position: absolute;
  inset: 0;
  padding: 1px;
  background: conic-gradient(
    from var(--angle, 0deg),
    transparent 0%,
    var(--teal-300) 20%,
    transparent 40%
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .4s;
  pointer-events: none;
}

.service-card:hover{
  border-color: rgba(94, 234, 212, .4);
  transform: translateY(-6px);
  box-shadow:
    0 20px 60px -20px rgba(20, 184, 166, .35),
    0 0 0 1px rgba(94, 234, 212, .15);
}
.service-card:hover::before{ opacity: 1; }
.service-card:hover .service-icon{
  color: var(--teal-200);
  transform: rotate(-6deg) scale(1.1);
  filter: drop-shadow(0 0 12px var(--teal-300));
}
.service-card:hover .service-num{ color: var(--teal-300); }

.service-num{
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--text-dim);
  margin-bottom: 22px;
  display: block;
  transition: color .3s;
}

.service-icon{
  width: 56px;
  height: 56px;
  margin-bottom: 24px;
  color: var(--teal-300);
  transition: all .4s var(--ease);
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-icon svg{ width: 100%; height: 100%; }

.service-card h3{
  font-size: 22px;
  margin-bottom: 14px;
  line-height: 1.3;
  color: var(--text);
}
.service-card p{
  font-size: 14.5px;
  color: var(--text-mute);
  line-height: 1.7;
  margin-bottom: 18px;
  flex-grow: 1;
}

.service-tags{
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}
.service-tags span{
  font-size: 10.5px;
  padding: 4px 10px;
  background: rgba(20, 184, 166, .06);
  border: 1px solid var(--line-medium);
  color: var(--teal-200);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: .08em;
  font-weight: 500;
}

.service-card.has-badge::after{
  content: 'EV READY';
  position: absolute;
  top: 18px;
  right: -32px;
  background: var(--success);
  color: #001a10;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .15em;
  padding: 5px 36px;
  transform: rotate(45deg);
  box-shadow: 0 4px 12px rgba(16, 185, 129, .4);
  opacity: 1;
  z-index: 2;
}

/* ============================================================
   FORM
   ============================================================ */
.form-row{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}
.form-group{ margin-bottom: 18px; }

.form-group label{
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--teal-300);
  margin-bottom: 10px;
  font-weight: 500;
}
.form-group label .req{ color: var(--danger); }

.form-control{
  width: 100%;
  padding: 14px 18px;
  background: var(--bg-0);
  border: 1px solid var(--line-medium);
  color: var(--text);
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 14.5px;
  transition: all .3s;
  outline: none;
}
.form-control::placeholder{ color: var(--text-dim); }
.form-control:focus{
  border-color: var(--teal-400);
  background: rgba(20, 184, 166, .04);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, .12);
}

textarea.form-control{
  resize: vertical;
  min-height: 100px;
  font-family: 'Be Vietnam Pro', sans-serif;
  line-height: 1.6;
}

select.form-control{
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314b8a6' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-position: right 16px center;
  background-repeat: no-repeat;
  background-size: 18px;
  padding-right: 48px;
  cursor: pointer;
}

.form-submit{
  width: 100%;
  padding: 18px;
  background: linear-gradient(135deg, var(--teal-400) 0%, var(--teal-600) 100%);
  color: #001a1a;
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  clip-path: polygon(14px 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
  transition: all .3s;
  position: relative;
  overflow: hidden;
}
.form-submit:hover{
  background: linear-gradient(135deg, var(--teal-200) 0%, var(--teal-400) 100%);
  box-shadow: 0 0 32px rgba(20, 184, 166, .5);
}
.form-submit:disabled{ opacity: .6; cursor: not-allowed; }

/* Holographic shimmer on submit */
.form-submit::after{
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .3), transparent);
  transition: left .6s;
}
.form-submit:hover::after{ left: 100%; }

.success-msg{
  display: none;
  padding: 36px;
  background: rgba(16, 185, 129, .08);
  border: 1px solid var(--success);
  text-align: center;
  clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px);
}
.success-msg.show{
  display: block;
  animation: fade-up .5s forwards;
}
@keyframes fade-up{
  from{ opacity: 0; transform: translateY(20px); }
  to{ opacity: 1; transform: translateY(0); }
}
.success-msg svg{
  width: 56px;
  height: 56px;
  color: var(--success);
  margin-bottom: 16px;
}
.success-msg h4{
  color: var(--success);
  font-size: 22px;
  margin-bottom: 12px;
  line-height: 1.3;
}
.success-msg p{
  color: var(--text-mute);
  font-size: 15px;
  line-height: 1.7;
}

/* ============================================================
   CONTACT BLOCKS
   ============================================================ */
.contact-block{
  padding: 24px 26px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  margin-bottom: 14px;
  transition: all .3s;
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.contact-block:hover{
  border-color: var(--line-strong);
  background: rgba(20, 184, 166, .03);
  transform: translateX(4px);
}
.contact-block .ico{
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 184, 166, .08);
  color: var(--teal-300);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
.contact-block .ico svg{ width: 22px; height: 22px; }
.contact-block h4{
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: .2em;
  color: var(--teal-300);
  margin-bottom: 8px;
  text-transform: uppercase;
  font-weight: 500;
}
.contact-block p{
  font-size: 14.5px;
  color: var(--text);
  line-height: 1.55;
}
.contact-block a{
  color: var(--text);
  transition: color .3s;
}
.contact-block a:hover{ color: var(--teal-200); }

.social-row{
  display: flex;
  gap: 10px;
  margin-top: 8px;
}
.social-row a{
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-2);
  border: 1px solid var(--line);
  color: var(--text-mute);
  transition: all .3s;
}
.social-row a:hover{
  background: var(--teal-400);
  color: var(--bg-0);
  border-color: var(--teal-400);
  transform: translateY(-2px);
  box-shadow: var(--glow-sm);
}
.social-row svg{ width: 18px; height: 18px; }

/* ============================================================
   GALLERY MODAL / LIGHTBOX
   ============================================================ */
.lightbox{
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, .92);
  backdrop-filter: blur(20px);
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  animation: lightbox-fade .3s;
}
.lightbox.open{ display: flex; }
@keyframes lightbox-fade{
  from{ opacity: 0; }
  to{ opacity: 1; }
}
.lightbox-content{
  max-width: 1100px;
  max-height: 90vh;
  width: 100%;
  position: relative;
}
.lightbox-img{
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: contain;
  border: 1px solid var(--line-strong);
}
.lightbox-caption{
  text-align: center;
  margin-top: 16px;
  color: var(--teal-200);
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  letter-spacing: .1em;
}
.lightbox-close{
  position: absolute;
  top: -50px;
  right: 0;
  width: 44px;
  height: 44px;
  background: var(--bg-1);
  border: 1px solid var(--line-strong);
  color: var(--teal-200);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .3s;
}
.lightbox-close:hover{
  background: var(--teal-400);
  color: var(--bg-0);
}
.lightbox-close svg{ width: 22px; height: 22px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px){
  .form-row{ grid-template-columns: 1fr; }
  .service-card{ padding: 28px 24px; }
}
